Fixing .gitignore
This commit is contained in:
@@ -1,79 +1,79 @@
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://59.110.212.44:3306/e_book_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
||||
# url: jdbc:mysql://59.110.212.44:3306/e_book?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
||||
username: root
|
||||
password: HSXY1234hsxy
|
||||
initial-size: 10
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
max-wait: 60000
|
||||
pool-prepared-statements: true
|
||||
max-pool-prepared-statement-per-connection-size: 20
|
||||
time-between-eviction-runs-millis: 60000
|
||||
min-evictable-idle-time-millis: 300000
|
||||
#Oracle需要打开注释
|
||||
#validation-query: SELECT 1 FROM DUAL
|
||||
test-while-idle: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
url-pattern: /druid/*
|
||||
#login-username: admin
|
||||
#login-password: admin
|
||||
filter:
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 1000
|
||||
merge-sql: false
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
||||
tomcat:
|
||||
initSQL: SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci
|
||||
|
||||
rabbitmq:
|
||||
host: 127.0.0.1
|
||||
port: 15672
|
||||
username: guest
|
||||
password: guest
|
||||
virtualHost: /
|
||||
|
||||
|
||||
# redis:
|
||||
# host: 82.157.238.238
|
||||
# port: 6379
|
||||
# password: redis970104
|
||||
|
||||
aliyun:
|
||||
oss:
|
||||
file:
|
||||
endpoint: oss-cn-beijing.aliyuncs.com
|
||||
keyid: LTAI5tRDbidmtFSoxQ2rgFd2
|
||||
keysecret: 08XmfSoaC980DiAK4swQEvb6MwKedG
|
||||
bucketname: peanut9377
|
||||
sms:
|
||||
accessKeyId: LTAI5tRDbidmtFSoxQ2rgFd2
|
||||
accessKeySecret: 08XmfSoaC980DiAK4swQEvb6MwKedG
|
||||
singName: 水晶球
|
||||
templateCode: SMS_216832090
|
||||
|
||||
|
||||
##多数据源的配置
|
||||
#dynamic:
|
||||
# datasource:
|
||||
# slave1:
|
||||
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
# url: jdbc:sqlserver://localhost:1433;DatabaseName=renren_security
|
||||
# username: sa
|
||||
# password: 123456
|
||||
# slave2:
|
||||
# driver-class-name: org.postgresql.Driver
|
||||
# url: jdbc:postgresql://localhost:5432/renren_security
|
||||
# username: renren
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://59.110.212.44:3306/e_book_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
||||
# url: jdbc:mysql://59.110.212.44:3306/e_book?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
||||
username: root
|
||||
password: HSXY1234hsxy
|
||||
initial-size: 10
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
max-wait: 60000
|
||||
pool-prepared-statements: true
|
||||
max-pool-prepared-statement-per-connection-size: 20
|
||||
time-between-eviction-runs-millis: 60000
|
||||
min-evictable-idle-time-millis: 300000
|
||||
#Oracle需要打开注释
|
||||
#validation-query: SELECT 1 FROM DUAL
|
||||
test-while-idle: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
url-pattern: /druid/*
|
||||
#login-username: admin
|
||||
#login-password: admin
|
||||
filter:
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 1000
|
||||
merge-sql: false
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
||||
tomcat:
|
||||
initSQL: SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci
|
||||
|
||||
rabbitmq:
|
||||
host: 127.0.0.1
|
||||
port: 15672
|
||||
username: guest
|
||||
password: guest
|
||||
virtualHost: /
|
||||
|
||||
|
||||
# redis:
|
||||
# host: 82.157.238.238
|
||||
# port: 6379
|
||||
# password: redis970104
|
||||
|
||||
aliyun:
|
||||
oss:
|
||||
file:
|
||||
endpoint: oss-cn-beijing.aliyuncs.com
|
||||
keyid: LTAI5tRDbidmtFSoxQ2rgFd2
|
||||
keysecret: 08XmfSoaC980DiAK4swQEvb6MwKedG
|
||||
bucketname: peanut9377
|
||||
sms:
|
||||
accessKeyId: LTAI5tRDbidmtFSoxQ2rgFd2
|
||||
accessKeySecret: 08XmfSoaC980DiAK4swQEvb6MwKedG
|
||||
singName: 水晶球
|
||||
templateCode: SMS_216832090
|
||||
|
||||
|
||||
##多数据源的配置
|
||||
#dynamic:
|
||||
# datasource:
|
||||
# slave1:
|
||||
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
# url: jdbc:sqlserver://localhost:1433;DatabaseName=renren_security
|
||||
# username: sa
|
||||
# password: 123456
|
||||
# slave2:
|
||||
# driver-class-name: org.postgresql.Driver
|
||||
# url: jdbc:postgresql://localhost:5432/renren_security
|
||||
# username: renren
|
||||
|
||||
# password: 123456
|
||||
@@ -1,70 +1,70 @@
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# url: jdbc:mysql://59.110.212.44:3306/e_book?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
url: jdbc:mysql://59.110.212.44:3306/e_book_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: HSXY1234hsxy
|
||||
initial-size: 10
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
max-wait: 60000
|
||||
pool-prepared-statements: true
|
||||
max-pool-prepared-statement-per-connection-size: 20
|
||||
time-between-eviction-runs-millis: 60000
|
||||
min-evictable-idle-time-millis: 300000
|
||||
#Oracle需要打开注释
|
||||
#validation-query: SELECT 1 FROM DUAL
|
||||
test-while-idle: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
url-pattern: /druid/*
|
||||
#login-username: admin
|
||||
#login-password: admin
|
||||
filter:
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 1000
|
||||
merge-sql: false
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
||||
|
||||
rabbitmq:
|
||||
host: 59.110.212.44
|
||||
port: 5672
|
||||
username: admin
|
||||
password: 751019
|
||||
virtualHost: /
|
||||
|
||||
aliyun:
|
||||
oss:
|
||||
file:
|
||||
endpoint: oss-cn-beijing.aliyuncs.com
|
||||
keyid: LTAIiSMeo8ztauV5
|
||||
keysecret: pVIYAOIFSUGg61lYfE8cjg2ZNpnLJA
|
||||
bucketname: ehh-private-01
|
||||
sms:
|
||||
accessKeyId: LTAI5tJbbw5fY97pnw635yq3
|
||||
accessKeySecret: LTXQ9v3OYVwNVbDWWfVpbbcVDKErKi
|
||||
singName: 疯子读书
|
||||
|
||||
templateCode: SMS_248840040
|
||||
|
||||
##多数据源的配置
|
||||
#dynamic:
|
||||
# datasource:
|
||||
# slave1:
|
||||
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
# url: jdbc:sqlserver://localhost:1433;DatabaseName=renren_security
|
||||
# username: sa
|
||||
# password: 123456
|
||||
# slave2:
|
||||
# driver-class-name: org.postgresql.Driver
|
||||
# url: jdbc:postgresql://localhost:5432/renren_security
|
||||
# username: renren
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# url: jdbc:mysql://59.110.212.44:3306/e_book?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
url: jdbc:mysql://59.110.212.44:3306/e_book_test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: HSXY1234hsxy
|
||||
initial-size: 10
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
max-wait: 60000
|
||||
pool-prepared-statements: true
|
||||
max-pool-prepared-statement-per-connection-size: 20
|
||||
time-between-eviction-runs-millis: 60000
|
||||
min-evictable-idle-time-millis: 300000
|
||||
#Oracle需要打开注释
|
||||
#validation-query: SELECT 1 FROM DUAL
|
||||
test-while-idle: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
url-pattern: /druid/*
|
||||
#login-username: admin
|
||||
#login-password: admin
|
||||
filter:
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 1000
|
||||
merge-sql: false
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
||||
|
||||
rabbitmq:
|
||||
host: 59.110.212.44
|
||||
port: 5672
|
||||
username: admin
|
||||
password: 751019
|
||||
virtualHost: /
|
||||
|
||||
aliyun:
|
||||
oss:
|
||||
file:
|
||||
endpoint: oss-cn-beijing.aliyuncs.com
|
||||
keyid: LTAIiSMeo8ztauV5
|
||||
keysecret: pVIYAOIFSUGg61lYfE8cjg2ZNpnLJA
|
||||
bucketname: ehh-private-01
|
||||
sms:
|
||||
accessKeyId: LTAI5tJbbw5fY97pnw635yq3
|
||||
accessKeySecret: LTXQ9v3OYVwNVbDWWfVpbbcVDKErKi
|
||||
singName: 疯子读书
|
||||
|
||||
templateCode: SMS_248840040
|
||||
|
||||
##多数据源的配置
|
||||
#dynamic:
|
||||
# datasource:
|
||||
# slave1:
|
||||
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
# url: jdbc:sqlserver://localhost:1433;DatabaseName=renren_security
|
||||
# username: sa
|
||||
# password: 123456
|
||||
# slave2:
|
||||
# driver-class-name: org.postgresql.Driver
|
||||
# url: jdbc:postgresql://localhost:5432/renren_security
|
||||
# username: renren
|
||||
# password: 123456
|
||||
@@ -1,49 +1,49 @@
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/renren_fast?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: renren
|
||||
password: 123456
|
||||
initial-size: 10
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
max-wait: 60000
|
||||
pool-prepared-statements: true
|
||||
max-pool-prepared-statement-per-connection-size: 20
|
||||
time-between-eviction-runs-millis: 60000
|
||||
min-evictable-idle-time-millis: 300000
|
||||
#Oracle需要打开注释
|
||||
#validation-query: SELECT 1 FROM DUAL
|
||||
test-while-idle: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
url-pattern: /druid/*
|
||||
#login-username: admin
|
||||
#login-password: admin
|
||||
filter:
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 1000
|
||||
merge-sql: false
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
||||
|
||||
|
||||
##多数据源的配置
|
||||
#dynamic:
|
||||
# datasource:
|
||||
# slave1:
|
||||
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
# url: jdbc:sqlserver://localhost:1433;DatabaseName=renren_security
|
||||
# username: sa
|
||||
# password: 123456
|
||||
# slave2:
|
||||
# driver-class-name: org.postgresql.Driver
|
||||
# url: jdbc:postgresql://localhost:5432/renren_security
|
||||
# username: renren
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/renren_fast?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: renren
|
||||
password: 123456
|
||||
initial-size: 10
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
max-wait: 60000
|
||||
pool-prepared-statements: true
|
||||
max-pool-prepared-statement-per-connection-size: 20
|
||||
time-between-eviction-runs-millis: 60000
|
||||
min-evictable-idle-time-millis: 300000
|
||||
#Oracle需要打开注释
|
||||
#validation-query: SELECT 1 FROM DUAL
|
||||
test-while-idle: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
url-pattern: /druid/*
|
||||
#login-username: admin
|
||||
#login-password: admin
|
||||
filter:
|
||||
stat:
|
||||
log-slow-sql: true
|
||||
slow-sql-millis: 1000
|
||||
merge-sql: false
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
||||
|
||||
|
||||
##多数据源的配置
|
||||
#dynamic:
|
||||
# datasource:
|
||||
# slave1:
|
||||
# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
# url: jdbc:sqlserver://localhost:1433;DatabaseName=renren_security
|
||||
# username: sa
|
||||
# password: 123456
|
||||
# slave2:
|
||||
# driver-class-name: org.postgresql.Driver
|
||||
# url: jdbc:postgresql://localhost:5432/renren_security
|
||||
# username: renren
|
||||
# password: 123456
|
||||
@@ -1,3 +1,3 @@
|
||||
wx.open.app_id=
|
||||
wx.open.app_secret=
|
||||
wx.open.app_id=
|
||||
wx.open.app_secret=
|
||||
wx.open.redirect_url=http://59.110.212.44:9100/api/ucenter/wx/callback
|
||||
@@ -1,89 +1,89 @@
|
||||
# Tomcat
|
||||
server:
|
||||
tomcat:
|
||||
uri-encoding: UTF-8
|
||||
max-threads: 1000
|
||||
min-spare-threads: 30
|
||||
port: 9200
|
||||
servlet:
|
||||
context-path: /pb
|
||||
|
||||
connection-timeout: 6000000ms
|
||||
spring:
|
||||
# 环境 dev|test|prod
|
||||
profiles:
|
||||
active: prod
|
||||
# jackson时间格式化
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 100MB
|
||||
max-request-size: 100MB
|
||||
enabled: true
|
||||
redis:
|
||||
open: false # 是否开启redis缓存 true开启 false关闭
|
||||
database: 0
|
||||
host: 59.110.212.44
|
||||
port: 6379
|
||||
password: Jgll2015 # 密码(默认为空)
|
||||
timeout: 6000000ms # 连接超时时长(毫秒)
|
||||
jedis:
|
||||
pool:
|
||||
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
|
||||
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||
max-idle: 10 # 连接池中的最大空闲连接
|
||||
min-idle: 5 # 连接池中的最小空闲连接
|
||||
mvc:
|
||||
throw-exception-if-no-handler-found: true
|
||||
pathmatch:
|
||||
matching-strategy: ANT_PATH_MATCHER
|
||||
# resources:
|
||||
# add-mappings: false
|
||||
output:
|
||||
ansi:
|
||||
enabled: always
|
||||
|
||||
task:
|
||||
execution:
|
||||
pool:
|
||||
core-size: 5
|
||||
max-size: 50
|
||||
|
||||
#mybatis
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:/mapper/**/*.xml
|
||||
#实体扫描,多个package用逗号或者分号分隔
|
||||
typeAliasesPackage: io.renren.modules.*.entity
|
||||
global-config:
|
||||
#数据库相关配置
|
||||
db-config:
|
||||
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
|
||||
id-type: AUTO
|
||||
logic-delete-value: -1
|
||||
logic-not-delete-value: 0
|
||||
banner: false
|
||||
#原生配置
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
cache-enabled: false
|
||||
call-setters-on-nulls: true
|
||||
jdbc-type-for-null: 'null'
|
||||
|
||||
|
||||
renren:
|
||||
redis:
|
||||
open: false
|
||||
shiro:
|
||||
redis: false
|
||||
# APP模块,是通过jwt认证的,如果要使用APP模块,则需要修改【加密秘钥】
|
||||
jwt:
|
||||
# 加密秘钥
|
||||
secret: f4e2e52034348f86b67cde581c0f9eb5[www.renren.io]
|
||||
# token有效时长,7天,单位秒
|
||||
expire: 604800
|
||||
header: token
|
||||
|
||||
|
||||
spring.jackson.serialization.FAIL_ON_EMPTY_BEANS: false
|
||||
# Tomcat
|
||||
server:
|
||||
tomcat:
|
||||
uri-encoding: UTF-8
|
||||
max-threads: 1000
|
||||
min-spare-threads: 30
|
||||
port: 9200
|
||||
servlet:
|
||||
context-path: /pb
|
||||
|
||||
connection-timeout: 6000000ms
|
||||
spring:
|
||||
# 环境 dev|test|prod
|
||||
profiles:
|
||||
active: prod
|
||||
# jackson时间格式化
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 100MB
|
||||
max-request-size: 100MB
|
||||
enabled: true
|
||||
redis:
|
||||
open: false # 是否开启redis缓存 true开启 false关闭
|
||||
database: 0
|
||||
host: 59.110.212.44
|
||||
port: 6379
|
||||
password: Jgll2015 # 密码(默认为空)
|
||||
timeout: 6000000ms # 连接超时时长(毫秒)
|
||||
jedis:
|
||||
pool:
|
||||
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
|
||||
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||
max-idle: 10 # 连接池中的最大空闲连接
|
||||
min-idle: 5 # 连接池中的最小空闲连接
|
||||
mvc:
|
||||
throw-exception-if-no-handler-found: true
|
||||
pathmatch:
|
||||
matching-strategy: ANT_PATH_MATCHER
|
||||
# resources:
|
||||
# add-mappings: false
|
||||
output:
|
||||
ansi:
|
||||
enabled: always
|
||||
|
||||
task:
|
||||
execution:
|
||||
pool:
|
||||
core-size: 5
|
||||
max-size: 50
|
||||
|
||||
#mybatis
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:/mapper/**/*.xml
|
||||
#实体扫描,多个package用逗号或者分号分隔
|
||||
typeAliasesPackage: io.renren.modules.*.entity
|
||||
global-config:
|
||||
#数据库相关配置
|
||||
db-config:
|
||||
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
|
||||
id-type: AUTO
|
||||
logic-delete-value: -1
|
||||
logic-not-delete-value: 0
|
||||
banner: false
|
||||
#原生配置
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
cache-enabled: false
|
||||
call-setters-on-nulls: true
|
||||
jdbc-type-for-null: 'null'
|
||||
|
||||
|
||||
renren:
|
||||
redis:
|
||||
open: false
|
||||
shiro:
|
||||
redis: false
|
||||
# APP模块,是通过jwt认证的,如果要使用APP模块,则需要修改【加密秘钥】
|
||||
jwt:
|
||||
# 加密秘钥
|
||||
secret: f4e2e52034348f86b67cde581c0f9eb5[www.renren.io]
|
||||
# token有效时长,7天,单位秒
|
||||
expire: 604800
|
||||
header: token
|
||||
|
||||
|
||||
spring.jackson.serialization.FAIL_ON_EMPTY_BEANS: false
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
====================================================================================================================
|
||||
|
||||
欢迎使用众妙之门花生享阅
|
||||
|
||||
====================================================================================================================
|
||||
|
||||
欢迎使用众妙之门花生享阅
|
||||
|
||||
====================================================================================================================
|
||||
@@ -1,18 +1,18 @@
|
||||
欢迎使用微信支付!
|
||||
附件中的三份文件(证书pkcs12格式、证书pem格式、证书密钥pem格式),为接口中强制要求时需携带的证书文件。
|
||||
证书属于敏感信息,请妥善保管不要泄露和被他人复制。
|
||||
不同开发语言下的证书格式不同,以下为说明指引:
|
||||
证书pkcs12格式(apiclient_cert.p12)
|
||||
包含了私钥信息的证书文件,为p12(pfx)格式,由微信支付签发给您用来标识和界定您的身份
|
||||
部分安全性要求较高的API需要使用该证书来确认您的调用身份
|
||||
windows上可以直接双击导入系统,导入过程中会提示输入证书密码,证书密码默认为您的商户号(如:1900006031)
|
||||
证书pem格式(apiclient_cert.pem)
|
||||
从apiclient_cert.p12中导出证书部分的文件,为pem格式,请妥善保管不要泄漏和被他人复制
|
||||
部分开发语言和环境,不能直接使用p12文件,而需要使用pem,所以为了方便您使用,已为您直接提供
|
||||
您也可以使用openssl命令来自己导出:openssl pkcs12 -clcerts -nokeys -in apiclient_cert.p12 -out apiclient_cert.pem
|
||||
证书密钥pem格式(apiclient_key.pem)
|
||||
从apiclient_cert.p12中导出密钥部分的文件,为pem格式
|
||||
部分开发语言和环境,不能直接使用p12文件,而需要使用pem,所以为了方便您使用,已为您直接提供
|
||||
您也可以使用openssl命令来自己导出:openssl pkcs12 -nocerts -in apiclient_cert.p12 -out apiclient_key.pem
|
||||
备注说明:
|
||||
欢迎使用微信支付!
|
||||
附件中的三份文件(证书pkcs12格式、证书pem格式、证书密钥pem格式),为接口中强制要求时需携带的证书文件。
|
||||
证书属于敏感信息,请妥善保管不要泄露和被他人复制。
|
||||
不同开发语言下的证书格式不同,以下为说明指引:
|
||||
证书pkcs12格式(apiclient_cert.p12)
|
||||
包含了私钥信息的证书文件,为p12(pfx)格式,由微信支付签发给您用来标识和界定您的身份
|
||||
部分安全性要求较高的API需要使用该证书来确认您的调用身份
|
||||
windows上可以直接双击导入系统,导入过程中会提示输入证书密码,证书密码默认为您的商户号(如:1900006031)
|
||||
证书pem格式(apiclient_cert.pem)
|
||||
从apiclient_cert.p12中导出证书部分的文件,为pem格式,请妥善保管不要泄漏和被他人复制
|
||||
部分开发语言和环境,不能直接使用p12文件,而需要使用pem,所以为了方便您使用,已为您直接提供
|
||||
您也可以使用openssl命令来自己导出:openssl pkcs12 -clcerts -nokeys -in apiclient_cert.p12 -out apiclient_cert.pem
|
||||
证书密钥pem格式(apiclient_key.pem)
|
||||
从apiclient_cert.p12中导出密钥部分的文件,为pem格式
|
||||
部分开发语言和环境,不能直接使用p12文件,而需要使用pem,所以为了方便您使用,已为您直接提供
|
||||
您也可以使用openssl命令来自己导出:openssl pkcs12 -nocerts -in apiclient_cert.p12 -out apiclient_key.pem
|
||||
备注说明:
|
||||
由于绝大部分操作系统已内置了微信支付服务器证书的根CA证书, 2018年3月6日后, 不再提供CA证书文件(rootca.pem)下载
|
||||
@@ -1,26 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml" />
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
<logger name="org.springboot.sample" level="TRACE" />
|
||||
|
||||
<!-- 开发、测试环境 -->
|
||||
<springProfile name="dev,test">
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
<logger name="org.springboot.sample" level="INFO" />
|
||||
<logger name="com.peanut" level="DEBUG" />
|
||||
</springProfile>
|
||||
|
||||
<!-- 生产环境 -->
|
||||
<!-- <springProfile name="prod">-->
|
||||
<!-- <logger name="org.springframework.web" level="ERROR"/>-->
|
||||
<!-- <logger name="org.springboot.sample" level="ERROR" />-->
|
||||
<!-- <logger name="com.peanut" level="ERROR" />-->
|
||||
<!-- </springProfile>-->
|
||||
<springProfile name="prod">
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
<logger name="org.springboot.sample" level="INFO" />
|
||||
<logger name="com.peanut" level="DEBUG" />
|
||||
</springProfile>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml" />
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
<logger name="org.springboot.sample" level="TRACE" />
|
||||
|
||||
<!-- 开发、测试环境 -->
|
||||
<springProfile name="dev,test">
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
<logger name="org.springboot.sample" level="INFO" />
|
||||
<logger name="com.peanut" level="DEBUG" />
|
||||
</springProfile>
|
||||
|
||||
<!-- 生产环境 -->
|
||||
<!-- <springProfile name="prod">-->
|
||||
<!-- <logger name="org.springframework.web" level="ERROR"/>-->
|
||||
<!-- <logger name="org.springboot.sample" level="ERROR" />-->
|
||||
<!-- <logger name="com.peanut" level="ERROR" />-->
|
||||
<!-- </springProfile>-->
|
||||
<springProfile name="prod">
|
||||
<logger name="org.springframework.web" level="INFO"/>
|
||||
<logger name="org.springboot.sample" level="INFO" />
|
||||
<logger name="com.peanut" level="DEBUG" />
|
||||
</springProfile>
|
||||
|
||||
</configuration>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.app.dao.UserDao">
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.app.dao.UserDao">
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,25 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ActivityDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ActivityEntity" id="activityMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="activityName" column="activity_name" />
|
||||
<result property="activityType" column="activity_type" />
|
||||
<result property="activityManner" column="activity_manner" />
|
||||
<result property="activityContent" column="activity_content" />
|
||||
<result property="point" column="point" />
|
||||
<result property="validity" column="validity" />
|
||||
<result property="beginTime" column="begin_time" />
|
||||
<result property="endTime" column="end_time" />
|
||||
<result property="activityUrl" column="activity_url" />
|
||||
<result property="currentState" column="current_state" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ActivityDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ActivityEntity" id="activityMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="activityName" column="activity_name" />
|
||||
<result property="activityType" column="activity_type" />
|
||||
<result property="activityManner" column="activity_manner" />
|
||||
<result property="activityContent" column="activity_content" />
|
||||
<result property="point" column="point" />
|
||||
<result property="validity" column="validity" />
|
||||
<result property="beginTime" column="begin_time" />
|
||||
<result property="endTime" column="end_time" />
|
||||
<result property="activityUrl" column="activity_url" />
|
||||
<result property="currentState" column="current_state" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="remark" column="remark" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,22 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.AuthorDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.AuthorEntity" id="authorMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="authorName" column="author_name"/>
|
||||
<result property="sex" column="sex"/>
|
||||
<result property="age" column="age"/>
|
||||
<result property="introduction" column="introduction"/>
|
||||
<result property="tel" column="tel"/>
|
||||
<result property="address" column="address"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.AuthorDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.AuthorEntity" id="authorMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="authorName" column="author_name"/>
|
||||
<result property="sex" column="sex"/>
|
||||
<result property="age" column="age"/>
|
||||
<result property="introduction" column="introduction"/>
|
||||
<result property="tel" column="tel"/>
|
||||
<result property="address" column="address"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,20 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookBrowseRecordsDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookBrowseRecordsEntity" id="bookBrowseRecordsMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookName" column="book_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="images" column="images"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookBrowseRecordsDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookBrowseRecordsEntity" id="bookBrowseRecordsMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookName" column="book_name"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="images" column="images"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,18 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookBuyConfigDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookBuyConfigEntity" id="bookBuyConfigMap">
|
||||
<result property="priceTypeId" column="price_type_id"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="qudao" column="qudao"/>
|
||||
<result property="realMoney" column="real_money"/>
|
||||
<result property="money" column="money"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="month" column="month"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookBuyConfigDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookBuyConfigEntity" id="bookBuyConfigMap">
|
||||
<result property="priceTypeId" column="price_type_id"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="qudao" column="qudao"/>
|
||||
<result property="realMoney" column="real_money"/>
|
||||
<result property="money" column="money"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="month" column="month"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,20 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookClockinCommentDao">
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookCategoryEntity" id="categoryEntity">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="bookCid" column="book_cid"/>
|
||||
<result property="bookLevel" column="book_level"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="bookCount" column="book_count"/>
|
||||
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookClockinCommentDao">
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookCategoryEntity" id="categoryEntity">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="bookCid" column="book_cid"/>
|
||||
<result property="bookLevel" column="book_level"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="bookCount" column="book_count"/>
|
||||
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,23 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookChapterContentDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookChapterContentEntity" id="bookChapterContentMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookChatperId" column="book_chatper_id"/>
|
||||
<result property="number" column="number"/>
|
||||
<result property="level" column="level"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="voices" column="voices"/>
|
||||
<result property="otherContent" column="other_content"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookChapterContentDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookChapterContentEntity" id="bookChapterContentMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookChatperId" column="book_chatper_id"/>
|
||||
<result property="number" column="number"/>
|
||||
<result property="level" column="level"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="voices" column="voices"/>
|
||||
<result property="otherContent" column="other_content"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,20 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookChapterDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookChapterEntity" id="bookChapterMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="chapter" column="chapter"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="voices" column="voices"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookChapterDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookChapterEntity" id="bookChapterMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="chapter" column="chapter"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="voices" column="voices"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,22 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookClockinCommentDao">
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookClockinCommentEntity" id="ClockinCommentrMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="taskId" column="task_id"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="likeSum" column="like_sum"/>
|
||||
<result property="pid" column="pid"/>
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookClockinCommentDao">
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookClockinCommentEntity" id="ClockinCommentrMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="taskId" column="task_id"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="likeSum" column="like_sum"/>
|
||||
<result property="pid" column="pid"/>
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,31 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookClockinDao">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookClockinEntity" id="bookClockinMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="clockinSum" column="clockin_sum"/>
|
||||
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="voices" column="voices"/>
|
||||
<result property="likes" column="like_s"/>
|
||||
<result property="likeSum" column="like_sum"/>
|
||||
<result property="commentSum" column="comment_sum"/>
|
||||
<result property="taskId" column="task_id"/>
|
||||
<result property="dayId" column="day_id"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookClockinDao">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookClockinEntity" id="bookClockinMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="clockinSum" column="clockin_sum"/>
|
||||
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="voices" column="voices"/>
|
||||
<result property="likes" column="like_s"/>
|
||||
<result property="likeSum" column="like_sum"/>
|
||||
<result property="commentSum" column="comment_sum"/>
|
||||
<result property="taskId" column="task_id"/>
|
||||
<result property="dayId" column="day_id"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,24 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookClockinPunchDao">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookClockinPunchEntity" id="clockinPunchMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="days" column="days"/>
|
||||
<result property="tId" column="t_id"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookClockinPunchDao">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookClockinPunchEntity" id="clockinPunchMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="days" column="days"/>
|
||||
<result property="tId" column="t_id"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,63 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookEntity" id="bookMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="authorId" column="author_id"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="title" column="title"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="price" column="price"/>
|
||||
<result property="salePrice" column="sale_price"/>
|
||||
<result property="istop" column="istop"/>
|
||||
<result property="isSale" column="is_sale"/>
|
||||
<result property="isVip" column="isVip"/>
|
||||
<result property="freeChapterCount" column="free_chapter_count"/>
|
||||
<result property="publisherId" column="publisher_id"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="imagesList" column="images_list"/>
|
||||
<result property="pid" column="pid"/>
|
||||
<result property="chapterStatus" column="chapter_status"/>
|
||||
<result property="contentStatus" column="content_status"/>
|
||||
<result property="voicesStatus" column="voices_status"/>
|
||||
<result property="level" column="level"/>
|
||||
<result property="state" column="state"/>
|
||||
<result property="novel" column="novel"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="splits" column="splits"/>
|
||||
<result property="canListen" column="can_listen"/>
|
||||
<result property="clockIn" column="clock_in"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="queryBookInOther" resultType="com.peanut.modules.book.entity.BookEntity">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
book
|
||||
WHERE
|
||||
FIND_IN_SET(
|
||||
( SELECT id FROM publisher WHERE
|
||||
<if test="publisherName != null and publisherName != ''">
|
||||
publisher_name LIKE concat('%', #{ publisherName } , '%')
|
||||
</if>
|
||||
),
|
||||
publisher_id)
|
||||
and
|
||||
FIND_IN_SET(
|
||||
( SELECT id FROM author WHERE
|
||||
<if test="authorName != null and authorName != ''">
|
||||
author_name LIKE concat('%', #{ authorName } , '%')
|
||||
</if>
|
||||
),
|
||||
publisher_id)
|
||||
</select>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookEntity" id="bookMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="authorId" column="author_id"/>
|
||||
<result property="description" column="description"/>
|
||||
<result property="title" column="title"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="price" column="price"/>
|
||||
<result property="salePrice" column="sale_price"/>
|
||||
<result property="istop" column="istop"/>
|
||||
<result property="isSale" column="is_sale"/>
|
||||
<result property="isVip" column="isVip"/>
|
||||
<result property="freeChapterCount" column="free_chapter_count"/>
|
||||
<result property="publisherId" column="publisher_id"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="imagesList" column="images_list"/>
|
||||
<result property="pid" column="pid"/>
|
||||
<result property="chapterStatus" column="chapter_status"/>
|
||||
<result property="contentStatus" column="content_status"/>
|
||||
<result property="voicesStatus" column="voices_status"/>
|
||||
<result property="level" column="level"/>
|
||||
<result property="state" column="state"/>
|
||||
<result property="novel" column="novel"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="splits" column="splits"/>
|
||||
<result property="canListen" column="can_listen"/>
|
||||
<result property="clockIn" column="clock_in"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="queryBookInOther" resultType="com.peanut.modules.book.entity.BookEntity">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
book
|
||||
WHERE
|
||||
FIND_IN_SET(
|
||||
( SELECT id FROM publisher WHERE
|
||||
<if test="publisherName != null and publisherName != ''">
|
||||
publisher_name LIKE concat('%', #{ publisherName } , '%')
|
||||
</if>
|
||||
),
|
||||
publisher_id)
|
||||
and
|
||||
FIND_IN_SET(
|
||||
( SELECT id FROM author WHERE
|
||||
<if test="authorName != null and authorName != ''">
|
||||
author_name LIKE concat('%', #{ authorName } , '%')
|
||||
</if>
|
||||
),
|
||||
publisher_id)
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,25 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookForumArticlesDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookForumArticlesEntity" id="forumarticlesMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="userid" column="userid" />
|
||||
<result property="content" column="content" />
|
||||
<result property="image" column="image" />
|
||||
<result property="imagelist" column="imagelist" />
|
||||
<result property="bookid" column="bookid" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="contlike" column="contlike" />
|
||||
<result property="delflag" column="del_flag" />
|
||||
<result property="author" column="author" />
|
||||
<result property="publishername" column="publishername" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookForumArticlesDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookForumArticlesEntity" id="forumarticlesMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="userid" column="userid" />
|
||||
<result property="content" column="content" />
|
||||
<result property="image" column="image" />
|
||||
<result property="imagelist" column="imagelist" />
|
||||
<result property="bookid" column="bookid" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="contlike" column="contlike" />
|
||||
<result property="delflag" column="del_flag" />
|
||||
<result property="author" column="author" />
|
||||
<result property="publishername" column="publishername" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,23 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookForumCommentDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookForumCommentEntity" id="ForumCommentMap">
|
||||
|
||||
|
||||
|
||||
<result property="id" column="id" />
|
||||
<result property="bfaid" column="bfa_id" />
|
||||
<result property="userid" column="userid" />
|
||||
<result property="content" column="content" />
|
||||
<result property="image" column="image" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="delflag" column="del_flag" />
|
||||
<result property="bookid" column="book_id" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookForumCommentDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookForumCommentEntity" id="ForumCommentMap">
|
||||
|
||||
|
||||
|
||||
<result property="id" column="id" />
|
||||
<result property="bfaid" column="bfa_id" />
|
||||
<result property="userid" column="userid" />
|
||||
<result property="content" column="content" />
|
||||
<result property="image" column="image" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="delflag" column="del_flag" />
|
||||
<result property="bookid" column="book_id" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
@@ -1,22 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookListeningDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookListeningEntity" id="bookListeningMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="bookId" column="book_id" />
|
||||
<result property="chapterId" column="chapter_id" />
|
||||
<result property="chapterName" column="chapter_name" />
|
||||
<result property="contentId" column="content_id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="sort" column="sort" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookListeningDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookListeningEntity" id="bookListeningMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="bookId" column="book_id" />
|
||||
<result property="chapterId" column="chapter_id" />
|
||||
<result property="chapterName" column="chapter_name" />
|
||||
<result property="contentId" column="content_id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="sort" column="sort" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,31 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookReadRateDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookReadRateEntity" id="bookReadRateMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="bookId" column="book_id" />
|
||||
<result property="chapterId" column="chapter_id" />
|
||||
<result property="chapterName" column="chapter_name" />
|
||||
<result property="contentId" column="content_id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="sort" column="sort" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="domDep" column="del_dep" />
|
||||
<result property="domValue" column="del_value" />
|
||||
<result property="domVmCount" column="del_vm_count" />
|
||||
<result property="domId" column="dom_id" />
|
||||
<result property="bottomGap" column="bottom_gap" />
|
||||
<result property="heightGap" column="height_gap" />
|
||||
<result property="leftGap" column="left_gap" />
|
||||
<result property="rightGap" column="right_gap" />
|
||||
<result property="topGap" column="top_gap" />
|
||||
<result property="widthGap" column="width_gap" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookReadRateDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookReadRateEntity" id="bookReadRateMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="bookId" column="book_id" />
|
||||
<result property="chapterId" column="chapter_id" />
|
||||
<result property="chapterName" column="chapter_name" />
|
||||
<result property="contentId" column="content_id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="sort" column="sort" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="domDep" column="del_dep" />
|
||||
<result property="domValue" column="del_value" />
|
||||
<result property="domVmCount" column="del_vm_count" />
|
||||
<result property="domId" column="dom_id" />
|
||||
<result property="bottomGap" column="bottom_gap" />
|
||||
<result property="heightGap" column="height_gap" />
|
||||
<result property="leftGap" column="left_gap" />
|
||||
<result property="rightGap" column="right_gap" />
|
||||
<result property="topGap" column="top_gap" />
|
||||
<result property="widthGap" column="width_gap" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,19 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookShelfDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookShelfEntity" id="bookShelfMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookName" column="book_name"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookShelfDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookShelfEntity" id="bookShelfMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookName" column="book_name"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,26 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookTaskDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookTaskEntity" id="taskMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookid" column="book_id"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="voices" column="voices"/>
|
||||
<result property="days" column="days"/>
|
||||
<result property="likesun" column="like_sun"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="video" column="video"/>
|
||||
<result property="heading" column="heading"/>
|
||||
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BookTaskDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BookTaskEntity" id="taskMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="bookid" column="book_id"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="voices" column="voices"/>
|
||||
<result property="days" column="days"/>
|
||||
<result property="likesun" column="like_sun"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="video" column="video"/>
|
||||
<result property="heading" column="heading"/>
|
||||
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,73 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BuyOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BuyOrderEntity" id="buyOrderMap">
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="orderSn" column="order_sn" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="shippingUser" column="shipping_user" />
|
||||
<result property="province" column="province" />
|
||||
<result property="city" column="city" />
|
||||
<result property="district" column="district" />
|
||||
<result property="address" column="address" />
|
||||
<result property="paymentMethod" column="payment_method" />
|
||||
<result property="orderMoney" column="order_money" />
|
||||
<result property="districtMoney" column="district_money" />
|
||||
<result property="realMoney" column="real_money" />
|
||||
<result property="shippingMoney" column="shipping_money" />
|
||||
<result property="shippingCompName" column="shipping_comp_name" />
|
||||
<result property="shippingSn" column="shipping_sn" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="shippingTime" column="shipping_time" />
|
||||
<result property="orderStatus" column="order_status" />
|
||||
<result property="successTime" column="success_time" />
|
||||
<result property="couponId" column="coupon_id" />
|
||||
<result property="couponName" column="coupon_name" />
|
||||
<result property="userPhone" column="user_phone" />
|
||||
<result property="orderType" column="order_type" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="expNo" column="exp_no" />
|
||||
<result property="isSend" column="is_send" />
|
||||
<result property="addressId" column="address_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="orderCode" column="order_code" />
|
||||
<result property="paymentDate" column="payment_date" />
|
||||
|
||||
|
||||
<collection property="products" ofType="com.peanut.modules.book.entity.BuyOrderDetailEntity">
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="productPrice" column="product_price" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="remark" column="remark" />
|
||||
</collection>
|
||||
</resultMap>
|
||||
|
||||
<!-- <resultMap id="OrderDetailResult" type="com.peanut.modules.book.entity.BuyOrderDetailEntity">-->
|
||||
|
||||
<!-- </resultMap>-->
|
||||
|
||||
<select id="queryListByOrderIds" resultType="com.peanut.modules.book.entity.BuyOrderEntity">
|
||||
select
|
||||
*,
|
||||
buy_order_detail.order_id,
|
||||
buy_order_detail.product_name,
|
||||
buy_order_detail.quantity,
|
||||
buy_order_detail.product_price,
|
||||
buy_order_detail.weight,
|
||||
buy_order_detail.remark
|
||||
from buy_order
|
||||
left join buy_order_detail on buy_order.order_id = buy_order_detail.order_id
|
||||
where buy_order.order_id in
|
||||
<foreach collection="array" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
and del_flag = 0
|
||||
|
||||
</select>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BuyOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BuyOrderEntity" id="buyOrderMap">
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="orderSn" column="order_sn" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="shippingUser" column="shipping_user" />
|
||||
<result property="province" column="province" />
|
||||
<result property="city" column="city" />
|
||||
<result property="district" column="district" />
|
||||
<result property="address" column="address" />
|
||||
<result property="paymentMethod" column="payment_method" />
|
||||
<result property="orderMoney" column="order_money" />
|
||||
<result property="districtMoney" column="district_money" />
|
||||
<result property="realMoney" column="real_money" />
|
||||
<result property="shippingMoney" column="shipping_money" />
|
||||
<result property="shippingCompName" column="shipping_comp_name" />
|
||||
<result property="shippingSn" column="shipping_sn" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="shippingTime" column="shipping_time" />
|
||||
<result property="orderStatus" column="order_status" />
|
||||
<result property="successTime" column="success_time" />
|
||||
<result property="couponId" column="coupon_id" />
|
||||
<result property="couponName" column="coupon_name" />
|
||||
<result property="userPhone" column="user_phone" />
|
||||
<result property="orderType" column="order_type" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="expNo" column="exp_no" />
|
||||
<result property="isSend" column="is_send" />
|
||||
<result property="addressId" column="address_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="orderCode" column="order_code" />
|
||||
<result property="paymentDate" column="payment_date" />
|
||||
|
||||
|
||||
<collection property="products" ofType="com.peanut.modules.book.entity.BuyOrderDetailEntity">
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="productPrice" column="product_price" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="remark" column="remark" />
|
||||
</collection>
|
||||
</resultMap>
|
||||
|
||||
<!-- <resultMap id="OrderDetailResult" type="com.peanut.modules.book.entity.BuyOrderDetailEntity">-->
|
||||
|
||||
<!-- </resultMap>-->
|
||||
|
||||
<select id="queryListByOrderIds" resultType="com.peanut.modules.book.entity.BuyOrderEntity">
|
||||
select
|
||||
*,
|
||||
buy_order_detail.order_id,
|
||||
buy_order_detail.product_name,
|
||||
buy_order_detail.quantity,
|
||||
buy_order_detail.product_price,
|
||||
buy_order_detail.weight,
|
||||
buy_order_detail.remark
|
||||
from buy_order
|
||||
left join buy_order_detail on buy_order.order_id = buy_order_detail.order_id
|
||||
where buy_order.order_id in
|
||||
<foreach collection="array" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
and del_flag = 0
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,43 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BuyOrderDetailDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BuyOrderDetailEntity" id="buyOrderDetailMap">
|
||||
<result property="allOrderId" column="all_order_id" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="productPrice" column="product_price" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="productType" column="product_type" />
|
||||
<result property="creatTime" column="creat_time" />
|
||||
<result property="shippingSn" column="shipping_sn" />
|
||||
<result property="orderStatus" column="order_status" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="addressId" column="address_id" />
|
||||
<result property="fmsHtml" column="fms_html" />
|
||||
<result property="shipperCode" column="shipper_code" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="isPrint" column="is_print" />
|
||||
<result property="productUrl" column="product_url" />
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="queryListByOrderIds" resultType="com.peanut.modules.book.entity.BuyOrderDetailEntity">
|
||||
select
|
||||
*
|
||||
from buy_order_detail
|
||||
where buy_order_detail.order_id in
|
||||
<foreach collection="array" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
</select>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.BuyOrderDetailDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.BuyOrderDetailEntity" id="buyOrderDetailMap">
|
||||
<result property="allOrderId" column="all_order_id" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="productPrice" column="product_price" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="productType" column="product_type" />
|
||||
<result property="creatTime" column="creat_time" />
|
||||
<result property="shippingSn" column="shipping_sn" />
|
||||
<result property="orderStatus" column="order_status" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="addressId" column="address_id" />
|
||||
<result property="fmsHtml" column="fms_html" />
|
||||
<result property="shipperCode" column="shipper_code" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="isPrint" column="is_print" />
|
||||
<result property="productUrl" column="product_url" />
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="queryListByOrderIds" resultType="com.peanut.modules.book.entity.BuyOrderDetailEntity">
|
||||
select
|
||||
*
|
||||
from buy_order_detail
|
||||
where buy_order_detail.order_id in
|
||||
<foreach collection="array" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CityDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CityEntity" id="cityMap">
|
||||
<result property="cityId" column="city_id"/>
|
||||
<result property="provId" column="prov_id"/>
|
||||
<result property="cityName" column="city_name"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
<result property="regionCode" column="region_code"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CityDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CityEntity" id="cityMap">
|
||||
<result property="cityId" column="city_id"/>
|
||||
<result property="provId" column="prov_id"/>
|
||||
<result property="cityName" column="city_name"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
<result property="regionCode" column="region_code"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CountyDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CountyEntity" id="countyMap">
|
||||
<result property="countyId" column="county_id"/>
|
||||
<result property="cityId" column="city_id"/>
|
||||
<result property="countyName" column="county_name"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
<result property="regionCode" column="region_code"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CountyDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CountyEntity" id="countyMap">
|
||||
<result property="countyId" column="county_id"/>
|
||||
<result property="cityId" column="city_id"/>
|
||||
<result property="countyName" column="county_name"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
<result property="regionCode" column="region_code"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,28 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CouponDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CouponEntity" id="couponMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="couponType" column="coupon_type" />
|
||||
<result property="couponName" column="coupon_name" />
|
||||
<result property="couponAmount" column="coupon_amount" />
|
||||
<result property="couponUrl" column="coupon_url" />
|
||||
<result property="limitedCollar" column="limited_collar" />
|
||||
<result property="validity" column="validity" />
|
||||
<result property="takeEffectType" column="take_effect_type" />
|
||||
<result property="takeEffectDate" column="take_effect_date" />
|
||||
<result property="expirationDate" column="expiration_date" />
|
||||
<result property="totalCirculation" column="total_circulation" />
|
||||
<result property="currentState" column="current_state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="couponProType" column="coupon_pro_type" />
|
||||
<result property="useLevel" column="use_level" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CouponDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CouponEntity" id="couponMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="couponType" column="coupon_type" />
|
||||
<result property="couponName" column="coupon_name" />
|
||||
<result property="couponAmount" column="coupon_amount" />
|
||||
<result property="couponUrl" column="coupon_url" />
|
||||
<result property="limitedCollar" column="limited_collar" />
|
||||
<result property="validity" column="validity" />
|
||||
<result property="takeEffectType" column="take_effect_type" />
|
||||
<result property="takeEffectDate" column="take_effect_date" />
|
||||
<result property="expirationDate" column="expiration_date" />
|
||||
<result property="totalCirculation" column="total_circulation" />
|
||||
<result property="currentState" column="current_state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="couponProType" column="coupon_pro_type" />
|
||||
<result property="useLevel" column="use_level" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,23 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CouponHistoryDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CouponHistoryEntity" id="couponHistoryMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="couponId" column="coupon_id"/>
|
||||
<result property="memberId" column="member_id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="couponCode" column="coupon_code"/>
|
||||
<result property="memberNickname" column="member_nickname"/>
|
||||
<result property="getType" column="get_type"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="useStatus" column="use_status"/>
|
||||
<result property="useTime" column="use_time"/>
|
||||
<result property="orderSn" column="order_sn"/>
|
||||
<result property="couponProType" column="coupon_pro_type" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CouponHistoryDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CouponHistoryEntity" id="couponHistoryMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="couponId" column="coupon_id"/>
|
||||
<result property="memberId" column="member_id"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="couponCode" column="coupon_code"/>
|
||||
<result property="memberNickname" column="member_nickname"/>
|
||||
<result property="getType" column="get_type"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="useStatus" column="use_status"/>
|
||||
<result property="useTime" column="use_time"/>
|
||||
<result property="orderSn" column="order_sn"/>
|
||||
<result property="couponProType" column="coupon_pro_type" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CouponProductCategoryRelationDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CouponProductCategoryRelationEntity" id="couponProductCategoryRelationMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="couponId" column="coupon_id"/>
|
||||
<result property="productCategoryId" column="product_category_id"/>
|
||||
<result property="productCategoryName" column="product_category_name"/>
|
||||
<result property="parentCategoryName" column="parent_category_name"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CouponProductCategoryRelationDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CouponProductCategoryRelationEntity" id="couponProductCategoryRelationMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="couponId" column="coupon_id"/>
|
||||
<result property="productCategoryId" column="product_category_id"/>
|
||||
<result property="productCategoryName" column="product_category_name"/>
|
||||
<result property="parentCategoryName" column="parent_category_name"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CouponProductRelationDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CouponProductRelationEntity" id="couponProductRelationMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="couponId" column="coupon_id"/>
|
||||
<result property="productId" column="product_id"/>
|
||||
<result property="productName" column="product_name"/>
|
||||
<result property="productSn" column="product_sn"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.CouponProductRelationDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.CouponProductRelationEntity" id="couponProductRelationMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="couponId" column="coupon_id"/>
|
||||
<result property="productId" column="product_id"/>
|
||||
<result property="productName" column="product_name"/>
|
||||
<result property="productSn" column="product_sn"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,42 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.FMSCommodityDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
|
||||
<resultMap id="CommodityResult" type="com.peanut.modules.book.entity.FMSCommodity">
|
||||
<result property="id" column="id" />
|
||||
<result property="goodsName" column="goods_name" />
|
||||
<result property="goodsQuantity" column="goods_quantity" />
|
||||
<result property="goodsPrice" column="goods_price" />
|
||||
<result property="goodsWeight" column="goods_weight" />
|
||||
<result property="goodsDesc" column="goods_desc" />
|
||||
<result property="fmsOrderId" column="fms_order_id" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="fmsCommodityVo">
|
||||
(
|
||||
goods_name,
|
||||
goods_quantity,
|
||||
goods_price,
|
||||
goods_weight,
|
||||
goods_desc,
|
||||
fms_order_id
|
||||
)
|
||||
</sql>
|
||||
|
||||
|
||||
<insert id="batchInsert">
|
||||
insert into fms_commodity
|
||||
<include refid="fmsCommodityVo"/>
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(
|
||||
#{item.goodsName},#{item.goodsQuantity},#{item.goodsPrice},#{item.goodsWeight},#{item.goodsDesc},#{item.fmsOrderId}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.FMSCommodityDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
|
||||
<resultMap id="CommodityResult" type="com.peanut.modules.book.entity.FMSCommodity">
|
||||
<result property="id" column="id" />
|
||||
<result property="goodsName" column="goods_name" />
|
||||
<result property="goodsQuantity" column="goods_quantity" />
|
||||
<result property="goodsPrice" column="goods_price" />
|
||||
<result property="goodsWeight" column="goods_weight" />
|
||||
<result property="goodsDesc" column="goods_desc" />
|
||||
<result property="fmsOrderId" column="fms_order_id" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="fmsCommodityVo">
|
||||
(
|
||||
goods_name,
|
||||
goods_quantity,
|
||||
goods_price,
|
||||
goods_weight,
|
||||
goods_desc,
|
||||
fms_order_id
|
||||
)
|
||||
</sql>
|
||||
|
||||
|
||||
<insert id="batchInsert">
|
||||
insert into fms_commodity
|
||||
<include refid="fmsCommodityVo"/>
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(
|
||||
#{item.goodsName},#{item.goodsQuantity},#{item.goodsPrice},#{item.goodsWeight},#{item.goodsDesc},#{item.fmsOrderId}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
@@ -1,61 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.FMSOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.FMSOrderEntity" id="buyOrderMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderCode" column="order_code" />
|
||||
<result property="shipperCode" column="shipper_code" />
|
||||
<result property="receiverName" column="receiver_name" />
|
||||
<result property="receiverMobile" column="receiver_mobile" />
|
||||
<result property="receiverProvinceName" column="receiver_province_name" />
|
||||
<result property="receiverCityName" column="receiver_city_name" />
|
||||
<result property="receiverExpAreaName" column="receiverExp_area_name" />
|
||||
<result property="receiverAddress" column="receiver_address" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<collection property="commodityList" javaType="java.util.List" resultMap="CommodityResult" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="CommodityResult" type="com.peanut.modules.book.entity.FMSCommodity">
|
||||
<result property="id" column="id" />
|
||||
<result property="goodsName" column="goods_name" />
|
||||
<result property="goodsQuantity" column="goods_quantity" />
|
||||
<result property="goodsPrice" column="goods_price" />
|
||||
<result property="goodsWeight" column="goods_weight" />
|
||||
<result property="goodsDesc" column="goods_desc" />
|
||||
<result property="fmsOrderId" column="fms_order_id" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="fmsVo">
|
||||
(
|
||||
order_code,
|
||||
shipper_code,
|
||||
receiver_name,
|
||||
receiver_mobile,
|
||||
receiver_province_name,
|
||||
receiver_city_name,
|
||||
receiverExp_area_name,
|
||||
receiver_address,
|
||||
remark,
|
||||
order_id
|
||||
)
|
||||
</sql>
|
||||
|
||||
|
||||
<insert id="batchInsert">
|
||||
insert into fms_order
|
||||
<include refid="fmsVo"/>
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(
|
||||
#{item.orderCode},#{item.shipperCode},#{item.receiverName},#{item.receiverMobile},#{item.receiverProvinceName},
|
||||
#{item.receiverCityName},#{item.receiverExpAreaName},#{item.receiverAddress},#{item.remark},#{item.orderId}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.FMSOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.FMSOrderEntity" id="buyOrderMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderCode" column="order_code" />
|
||||
<result property="shipperCode" column="shipper_code" />
|
||||
<result property="receiverName" column="receiver_name" />
|
||||
<result property="receiverMobile" column="receiver_mobile" />
|
||||
<result property="receiverProvinceName" column="receiver_province_name" />
|
||||
<result property="receiverCityName" column="receiver_city_name" />
|
||||
<result property="receiverExpAreaName" column="receiverExp_area_name" />
|
||||
<result property="receiverAddress" column="receiver_address" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<collection property="commodityList" javaType="java.util.List" resultMap="CommodityResult" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="CommodityResult" type="com.peanut.modules.book.entity.FMSCommodity">
|
||||
<result property="id" column="id" />
|
||||
<result property="goodsName" column="goods_name" />
|
||||
<result property="goodsQuantity" column="goods_quantity" />
|
||||
<result property="goodsPrice" column="goods_price" />
|
||||
<result property="goodsWeight" column="goods_weight" />
|
||||
<result property="goodsDesc" column="goods_desc" />
|
||||
<result property="fmsOrderId" column="fms_order_id" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="fmsVo">
|
||||
(
|
||||
order_code,
|
||||
shipper_code,
|
||||
receiver_name,
|
||||
receiver_mobile,
|
||||
receiver_province_name,
|
||||
receiver_city_name,
|
||||
receiverExp_area_name,
|
||||
receiver_address,
|
||||
remark,
|
||||
order_id
|
||||
)
|
||||
</sql>
|
||||
|
||||
|
||||
<insert id="batchInsert">
|
||||
insert into fms_order
|
||||
<include refid="fmsVo"/>
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(
|
||||
#{item.orderCode},#{item.shipperCode},#{item.receiverName},#{item.receiverMobile},#{item.receiverProvinceName},
|
||||
#{item.receiverCityName},#{item.receiverExpAreaName},#{item.receiverAddress},#{item.remark},#{item.orderId}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.FMSOrderDetailDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.FMSOrderDetailEntity" id="fmsOrderMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="detailId" column="detail_id" />
|
||||
<result property="orderCode" column="order_code" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.FMSOrderDetailDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.FMSOrderDetailEntity" id="fmsOrderMap">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="detailId" column="detail_id" />
|
||||
<result property="orderCode" column="order_code" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,41 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.MyUserDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.MyUserEntity" id="userMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="age" column="age"/>
|
||||
<result property="sex" column="sex"/>
|
||||
<result property="avatar" column="avatar"/>
|
||||
<result property="nickname" column="nickname"/>
|
||||
<result property="tel" column="tel"/>
|
||||
<result property="password" column="password"/>
|
||||
<result property="vip" column="vip"/>
|
||||
<result property="vipStartTime" column="vip_start_time"/>
|
||||
<result property="vipValidtime" column="vip_validtime"/>
|
||||
<result property="peanutCoin" column="peanut_coin"/>
|
||||
<result property="readTime" column="read_time"/>
|
||||
<result property="lastLoginTime" column="last_login_time"/>
|
||||
<result property="yljkOid" column="yljk_oid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<update id="update">
|
||||
|
||||
update user
|
||||
<set>
|
||||
age = #{age}, sex = #{sex} ,avatar=#{avatar} ,nickname =#{nickname}
|
||||
</set>
|
||||
where id = #{id}
|
||||
|
||||
</update>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.MyUserDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.MyUserEntity" id="userMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="age" column="age"/>
|
||||
<result property="sex" column="sex"/>
|
||||
<result property="avatar" column="avatar"/>
|
||||
<result property="nickname" column="nickname"/>
|
||||
<result property="tel" column="tel"/>
|
||||
<result property="password" column="password"/>
|
||||
<result property="vip" column="vip"/>
|
||||
<result property="vipStartTime" column="vip_start_time"/>
|
||||
<result property="vipValidtime" column="vip_validtime"/>
|
||||
<result property="peanutCoin" column="peanut_coin"/>
|
||||
<result property="readTime" column="read_time"/>
|
||||
<result property="lastLoginTime" column="last_login_time"/>
|
||||
<result property="yljkOid" column="yljk_oid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<update id="update">
|
||||
|
||||
update user
|
||||
<set>
|
||||
age = #{age}, sex = #{sex} ,avatar=#{avatar} ,nickname =#{nickname}
|
||||
</set>
|
||||
where id = #{id}
|
||||
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,32 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.OrderCartDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.OrderCartEntity" id="orderCartMap">
|
||||
<result property="cartId" column="cart_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="productId" column="product_id"/>
|
||||
<result property="productAmount" column="product_amount"/>
|
||||
<result property="price" column="price"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="proudictBook" column="proudict_book"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<select id="getDeteleOrderCart" resultType="com.peanut.modules.book.entity.OrderCartEntity">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
`order_cart`
|
||||
WHERE
|
||||
product_id = #{productId}
|
||||
AND user_id = #{userId}
|
||||
AND del_flag = -1
|
||||
</select>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.OrderCartDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.OrderCartEntity" id="orderCartMap">
|
||||
<result property="cartId" column="cart_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="productId" column="product_id"/>
|
||||
<result property="productAmount" column="product_amount"/>
|
||||
<result property="price" column="price"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="proudictBook" column="proudict_book"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<select id="getDeteleOrderCart" resultType="com.peanut.modules.book.entity.OrderCartEntity">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
`order_cart`
|
||||
WHERE
|
||||
product_id = #{productId}
|
||||
AND user_id = #{userId}
|
||||
AND del_flag = -1
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,33 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayIOSOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.pay.IOSPay.model.entities.IosPayOrderEntity" id="PayIOSOrderMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderID" column="orderid"/>
|
||||
<result property="productID" column="productID"/>
|
||||
<result property="customerOid" column="customerOid"/>
|
||||
<result property="authToken" column="authToken"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="orderStatus" column="order_status"/>
|
||||
<result property="money" column="money"/>
|
||||
<result property="point" column="point"/>
|
||||
<result property="jf" column="jf"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="closeOrder" column="close_order"/>
|
||||
<result property="rechargeAmount" column="recharge_Amount"/>
|
||||
<result property="rechargeChannel" column="recharge_Channel"/>
|
||||
<result property="realAmount" column="realAmount"/>
|
||||
<result property="rechargeStatus" column="recharge_Status"/>
|
||||
<result property="successTime" column="successTime"/>
|
||||
<result property="body" column="body"/>
|
||||
<result property="subject" column="subject"/>
|
||||
<result property="relevanceoid" column="relevanceoid"/>
|
||||
<result property="buyerPayAmount" column="buyerPay_Amount"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayIOSOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.pay.IOSPay.model.entities.IosPayOrderEntity" id="PayIOSOrderMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="orderID" column="orderid"/>
|
||||
<result property="productID" column="productID"/>
|
||||
<result property="customerOid" column="customerOid"/>
|
||||
<result property="authToken" column="authToken"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="orderStatus" column="order_status"/>
|
||||
<result property="money" column="money"/>
|
||||
<result property="point" column="point"/>
|
||||
<result property="jf" column="jf"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="closeOrder" column="close_order"/>
|
||||
<result property="rechargeAmount" column="recharge_Amount"/>
|
||||
<result property="rechargeChannel" column="recharge_Channel"/>
|
||||
<result property="realAmount" column="realAmount"/>
|
||||
<result property="rechargeStatus" column="recharge_Status"/>
|
||||
<result property="successTime" column="successTime"/>
|
||||
<result property="body" column="body"/>
|
||||
<result property="subject" column="subject"/>
|
||||
<result property="relevanceoid" column="relevanceoid"/>
|
||||
<result property="buyerPayAmount" column="buyerPay_Amount"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,22 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayPaymentOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PayPaymentOrderEntity" id="payPaymentOrderMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="rechargeAmount" column="recharge_amount"/>
|
||||
<result property="rechargeChannel" column="recharge_channel"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="realAmount" column="real_amount"/>
|
||||
<result property="rechargeStatus" column="recharge_status"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="successTime" column="success_time"/>
|
||||
<result property="userName" column="user_name"/>
|
||||
<result property="tel" column="tel"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayPaymentOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PayPaymentOrderEntity" id="payPaymentOrderMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="rechargeAmount" column="recharge_amount"/>
|
||||
<result property="rechargeChannel" column="recharge_channel"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="realAmount" column="real_amount"/>
|
||||
<result property="rechargeStatus" column="recharge_status"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="successTime" column="success_time"/>
|
||||
<result property="userName" column="user_name"/>
|
||||
<result property="tel" column="tel"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,24 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayWechatOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PayWechatOrderEntity" id="payWechatOrderMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="prepayId" column="prepay_id"/>
|
||||
<result property="customerId" column="customer_id"/>
|
||||
<result property="orderSn" column="order_sn"/>
|
||||
<result property="totalAmount" column="total_amount"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="systemLog" column="system_log"/>
|
||||
<result property="payType" column="pay_type"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="buyOrderId" column="buy_order_id"/>
|
||||
<result property="endtime" column="endtime"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayWechatOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PayWechatOrderEntity" id="payWechatOrderMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="prepayId" column="prepay_id"/>
|
||||
<result property="customerId" column="customer_id"/>
|
||||
<result property="orderSn" column="order_sn"/>
|
||||
<result property="totalAmount" column="total_amount"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="systemLog" column="system_log"/>
|
||||
<result property="payType" column="pay_type"/>
|
||||
<result property="orderId" column="order_id"/>
|
||||
<result property="buyOrderId" column="buy_order_id"/>
|
||||
<result property="endtime" column="endtime"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,45 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayZfbOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PayZfbOrderEntity" id="payZfbOrderMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="customerid" column="customerId"/>
|
||||
<result property="outTradeNo" column="out_trade_no"/>
|
||||
<result property="tradeNo" column="trade_no"/>
|
||||
<result property="notifyTime" column="notify_time"/>
|
||||
<result property="notifyType" column="notify_type"/>
|
||||
<result property="notifyId" column="notify_id"/>
|
||||
<result property="appId" column="app_id"/>
|
||||
<result property="authAppId" column="auth_app_id"/>
|
||||
<result property="charset" column="charset"/>
|
||||
<result property="version" column="version"/>
|
||||
<result property="signType" column="sign_type"/>
|
||||
<result property="sign" column="sign"/>
|
||||
<result property="outBizNo" column="out_biz_no"/>
|
||||
<result property="buyerId" column="buyer_id"/>
|
||||
<result property="buyerLogonId" column="buyer_logon_id"/>
|
||||
<result property="sellerId" column="seller_id"/>
|
||||
<result property="sellerEmail" column="seller_email"/>
|
||||
<result property="tradeStatus" column="trade_status"/>
|
||||
<result property="totalAmount" column="total_amount"/>
|
||||
<result property="receiptAmount" column="receipt_amount"/>
|
||||
<result property="invoiceAmount" column="invoice_amount"/>
|
||||
<result property="buyerPayAmount" column="buyer_pay_amount"/>
|
||||
<result property="pointAmount" column="point_amount"/>
|
||||
<result property="refundFee" column="refund_fee"/>
|
||||
<result property="subject" column="subject"/>
|
||||
<result property="body" column="body"/>
|
||||
<result property="gmtCreate" column="gmt_create"/>
|
||||
<result property="gmtPayment" column="gmt_payment"/>
|
||||
<result property="gmtRefund" column="gmt_refund"/>
|
||||
<result property="gmtClose" column="gmt_close"/>
|
||||
<result property="fundBillList" column="fund_bill_list"/>
|
||||
<result property="voucherDetailList" column="voucher_detail_list"/>
|
||||
<result property="relevanceoid" column="relevanceOid"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PayZfbOrderDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PayZfbOrderEntity" id="payZfbOrderMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="customerid" column="customerId"/>
|
||||
<result property="outTradeNo" column="out_trade_no"/>
|
||||
<result property="tradeNo" column="trade_no"/>
|
||||
<result property="notifyTime" column="notify_time"/>
|
||||
<result property="notifyType" column="notify_type"/>
|
||||
<result property="notifyId" column="notify_id"/>
|
||||
<result property="appId" column="app_id"/>
|
||||
<result property="authAppId" column="auth_app_id"/>
|
||||
<result property="charset" column="charset"/>
|
||||
<result property="version" column="version"/>
|
||||
<result property="signType" column="sign_type"/>
|
||||
<result property="sign" column="sign"/>
|
||||
<result property="outBizNo" column="out_biz_no"/>
|
||||
<result property="buyerId" column="buyer_id"/>
|
||||
<result property="buyerLogonId" column="buyer_logon_id"/>
|
||||
<result property="sellerId" column="seller_id"/>
|
||||
<result property="sellerEmail" column="seller_email"/>
|
||||
<result property="tradeStatus" column="trade_status"/>
|
||||
<result property="totalAmount" column="total_amount"/>
|
||||
<result property="receiptAmount" column="receipt_amount"/>
|
||||
<result property="invoiceAmount" column="invoice_amount"/>
|
||||
<result property="buyerPayAmount" column="buyer_pay_amount"/>
|
||||
<result property="pointAmount" column="point_amount"/>
|
||||
<result property="refundFee" column="refund_fee"/>
|
||||
<result property="subject" column="subject"/>
|
||||
<result property="body" column="body"/>
|
||||
<result property="gmtCreate" column="gmt_create"/>
|
||||
<result property="gmtPayment" column="gmt_payment"/>
|
||||
<result property="gmtRefund" column="gmt_refund"/>
|
||||
<result property="gmtClose" column="gmt_close"/>
|
||||
<result property="fundBillList" column="fund_bill_list"/>
|
||||
<result property="voucherDetailList" column="voucher_detail_list"/>
|
||||
<result property="relevanceoid" column="relevanceOid"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,15 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ProvinceDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ProvinceEntity" id="provinceMap">
|
||||
<result property="provId" column="prov_id"/>
|
||||
<result property="provName" column="prov_name"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
<result property="regionCode" column="region_code"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ProvinceDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ProvinceEntity" id="provinceMap">
|
||||
<result property="provId" column="prov_id"/>
|
||||
<result property="provName" column="prov_name"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
<result property="regionCode" column="region_code"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,18 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PublisherDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PublisherEntity" id="publisherMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="publisherName" column="publisher_name"/>
|
||||
<result property="introduction" column="introduction"/>
|
||||
<result property="tel" column="tel"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.PublisherDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.PublisherEntity" id="publisherMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="publisherName" column="publisher_name"/>
|
||||
<result property="introduction" column="introduction"/>
|
||||
<result property="tel" column="tel"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,19 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.SeckillProdRelationDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.SeckillProdRelationEntity" id="seckillProdRelationMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="promotionId" column="promotion_id"/>
|
||||
<result property="promotionSeckillId" column="promotion_seckill_id"/>
|
||||
<result property="prodId" column="prod_id"/>
|
||||
<result property="seckillPrice" column="seckill_price"/>
|
||||
<result property="seckillCount" column="seckill_count"/>
|
||||
<result property="seckillLimit" column="seckill_limit"/>
|
||||
<result property="seckillSort" column="seckill_sort"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.SeckillProdRelationDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.SeckillProdRelationEntity" id="seckillProdRelationMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="promotionId" column="promotion_id"/>
|
||||
<result property="promotionSeckillId" column="promotion_seckill_id"/>
|
||||
<result property="prodId" column="prod_id"/>
|
||||
<result property="seckillPrice" column="seckill_price"/>
|
||||
<result property="seckillCount" column="seckill_count"/>
|
||||
<result property="seckillLimit" column="seckill_limit"/>
|
||||
<result property="seckillSort" column="seckill_sort"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,21 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopCategoryDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopCategoryEntity" id="shopCategoryMap">
|
||||
<result property="catId" column="cat_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="parentCid" column="parent_cid"/>
|
||||
<result property="catLevel" column="cat_level"/>
|
||||
<result property="showStatus" column="show_status"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="icon" column="icon"/>
|
||||
<result property="productUnit" column="product_unit"/>
|
||||
<result property="productCount" column="product_count"/>
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopCategoryDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopCategoryEntity" id="shopCategoryMap">
|
||||
<result property="catId" column="cat_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="parentCid" column="parent_cid"/>
|
||||
<result property="catLevel" column="cat_level"/>
|
||||
<result property="showStatus" column="show_status"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="icon" column="icon"/>
|
||||
<result property="productUnit" column="product_unit"/>
|
||||
<result property="productCount" column="product_count"/>
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
@@ -1,59 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopProductDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopProductEntity" id="shopProductMap">
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="price" column="price" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="publishStatus" column="publish_status" />
|
||||
<result property="productDetails" column="product_details" />
|
||||
<result property="productPid" column="product_pid" />
|
||||
<result property="productType" column="product_type" />
|
||||
<result property="productStock" column="product_stock" />
|
||||
<result property="productImages" column="product_images" />
|
||||
<result property="productImageList" column="product_image_list" />
|
||||
<result property="productSalesVolume" column="product_sales_volume" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="sort" column="sort" />
|
||||
<result property="author" column="author" />
|
||||
<result property="publisher" column=" publisher" />
|
||||
<result property="pubDate" column="pub_date" />
|
||||
<result property="format" column="format" />
|
||||
<result property="pageNum" column="page_num" />
|
||||
<result property="quality" column="quality" />
|
||||
<result property="sumSales" column="sum_sales" />
|
||||
<result property="goodsType" column="goods_type" />
|
||||
<result property="goodsTypeCode" column="goods_type_code" />
|
||||
<result property="activityPrice" column="activity_price" />
|
||||
<result property="isFreeMail" column="is_free_mail" />
|
||||
<result property="bookId" column="book_ids" />
|
||||
<!-- <result property="bookidsimages" column="bookidsimages" />-->
|
||||
|
||||
|
||||
<!-- <result property="bookids" column="book_ids" />-->
|
||||
<!-- <result property="bookidsimages" column="bookidsimages" />-->
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="appGetCategoryList" resultType="com.peanut.modules.book.entity.ShopProductEntity">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
`shop_product` a
|
||||
LEFT JOIN shop_category b ON a.product_pid = b.cat_id
|
||||
<where>
|
||||
<if test="catId != null and catId != ''">
|
||||
b.cat_id = #{catId}
|
||||
</if>
|
||||
</where>
|
||||
order by a.sort desc
|
||||
</select>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopProductDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopProductEntity" id="shopProductMap">
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="price" column="price" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="publishStatus" column="publish_status" />
|
||||
<result property="productDetails" column="product_details" />
|
||||
<result property="productPid" column="product_pid" />
|
||||
<result property="productType" column="product_type" />
|
||||
<result property="productStock" column="product_stock" />
|
||||
<result property="productImages" column="product_images" />
|
||||
<result property="productImageList" column="product_image_list" />
|
||||
<result property="productSalesVolume" column="product_sales_volume" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="sort" column="sort" />
|
||||
<result property="author" column="author" />
|
||||
<result property="publisher" column=" publisher" />
|
||||
<result property="pubDate" column="pub_date" />
|
||||
<result property="format" column="format" />
|
||||
<result property="pageNum" column="page_num" />
|
||||
<result property="quality" column="quality" />
|
||||
<result property="sumSales" column="sum_sales" />
|
||||
<result property="goodsType" column="goods_type" />
|
||||
<result property="goodsTypeCode" column="goods_type_code" />
|
||||
<result property="activityPrice" column="activity_price" />
|
||||
<result property="isFreeMail" column="is_free_mail" />
|
||||
<result property="bookId" column="book_ids" />
|
||||
<!-- <result property="bookidsimages" column="bookidsimages" />-->
|
||||
|
||||
|
||||
<!-- <result property="bookids" column="book_ids" />-->
|
||||
<!-- <result property="bookidsimages" column="bookidsimages" />-->
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="appGetCategoryList" resultType="com.peanut.modules.book.entity.ShopProductEntity">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
`shop_product` a
|
||||
LEFT JOIN shop_category b ON a.product_pid = b.cat_id
|
||||
<where>
|
||||
<if test="catId != null and catId != ''">
|
||||
b.cat_id = #{catId}
|
||||
</if>
|
||||
</where>
|
||||
order by a.sort desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,19 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopProudictBookDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopProudictBookEntity" id="ProudictBookMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="proudictId" column="proudict_id"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookdIds" column="book_ids"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopProudictBookDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopProudictBookEntity" id="ProudictBookMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="proudictId" column="proudict_id"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookdIds" column="book_ids"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopSeckillDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopSeckillEntity" id="shopSeckillMap">
|
||||
<result property="seckillId" column="seckill_id"/>
|
||||
<result property="nam" column="nam"/>
|
||||
<result property="startTime" column="start_time"/>
|
||||
<result property="endTime" column="end_time"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.ShopSeckillDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.ShopSeckillEntity" id="shopSeckillMap">
|
||||
<result property="seckillId" column="seckill_id"/>
|
||||
<result property="nam" column="nam"/>
|
||||
<result property="startTime" column="start_time"/>
|
||||
<result property="endTime" column="end_time"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,22 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.TransactionDetailsDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.TransactionDetailsEntity" id="transactionDetailsMap">
|
||||
<result property="transactionId" column="transaction_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="orderType" column="order_type"/>
|
||||
<result property="changeAmount" column="change_amount"/>
|
||||
<result property="relationId" column="relation_id"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="userBalance" column="user_balance"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="userName" column="user_name"/>
|
||||
<result property="tel" column="tel"/>
|
||||
<result property="note" column="note"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.TransactionDetailsDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.TransactionDetailsEntity" id="transactionDetailsMap">
|
||||
<result property="transactionId" column="transaction_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="orderType" column="order_type"/>
|
||||
<result property="changeAmount" column="change_amount"/>
|
||||
<result property="relationId" column="relation_id"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="userBalance" column="user_balance"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="userName" column="user_name"/>
|
||||
<result property="tel" column="tel"/>
|
||||
<result property="note" column="note"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,23 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserAddressDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserAddressEntity" id="userAddressMap">
|
||||
<result property="addressid" column="addressId"/>
|
||||
<result property="userid" column="userId"/>
|
||||
<result property="username" column="userName"/>
|
||||
<result property="userphone" column="userPhone"/>
|
||||
<result property="areaidpath" column="areaIdPath"/>
|
||||
<result property="areaid" column="areaId"/>
|
||||
<result property="useraddress" column="userAddress"/>
|
||||
<result property="areaidpathtext" column="areaIdPathText"/>
|
||||
<result property="isdefault" column="isDefault"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserAddressDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserAddressEntity" id="userAddressMap">
|
||||
<result property="addressid" column="addressId"/>
|
||||
<result property="userid" column="userId"/>
|
||||
<result property="username" column="userName"/>
|
||||
<result property="userphone" column="userPhone"/>
|
||||
<result property="areaidpath" column="areaIdPath"/>
|
||||
<result property="areaid" column="areaId"/>
|
||||
<result property="useraddress" column="userAddress"/>
|
||||
<result property="areaidpathtext" column="areaIdPathText"/>
|
||||
<result property="isdefault" column="isDefault"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,20 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserEbookBuyDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserEbookBuyEntity" id="userEbookBuyMap">
|
||||
<result property="buyId" column="buy_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookName" column="book_name"/>
|
||||
<result property="payType" column="pay_type"/>
|
||||
<result property="payTime" column="pay_time"/>
|
||||
<result property="payStatus" column="pay_status"/>
|
||||
<result property="image" column="image"/>
|
||||
<result property="author" column="author"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserEbookBuyDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserEbookBuyEntity" id="userEbookBuyMap">
|
||||
<result property="buyId" column="buy_id"/>
|
||||
<result property="userId" column="user_id"/>
|
||||
<result property="bookId" column="book_id"/>
|
||||
<result property="bookName" column="book_name"/>
|
||||
<result property="payType" column="pay_type"/>
|
||||
<result property="payTime" column="pay_time"/>
|
||||
<result property="payStatus" column="pay_status"/>
|
||||
<result property="image" column="image"/>
|
||||
<result property="author" column="author"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,21 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserFeedbackDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserFeedbackEntity" id="UserFeedbackMap">
|
||||
<result property="id" column="oid"/>
|
||||
<result property="userId" column="userId"/>
|
||||
<result property="fuid" column="fu_id"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="rid" column="r_id"/>
|
||||
<result property="delFlag" column="delFlag"/>
|
||||
<result property="ordersn" column="ordersn"/>
|
||||
<result property="create_date" column="create_date"/>
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserFeedbackDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserFeedbackEntity" id="UserFeedbackMap">
|
||||
<result property="id" column="oid"/>
|
||||
<result property="userId" column="userId"/>
|
||||
<result property="fuid" column="fu_id"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="rid" column="r_id"/>
|
||||
<result property="delFlag" column="delFlag"/>
|
||||
<result property="ordersn" column="ordersn"/>
|
||||
<result property="create_date" column="create_date"/>
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,21 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserFollowUpDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserFollowUpEntity" id="UserFollowUpMap">
|
||||
<result property="id" column="oid"/>
|
||||
<result property="userId" column="userId"/>
|
||||
<result property="oid" column="oid"/>
|
||||
<result property="conTent" column="conTent"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="delflag" column="delflag"/>
|
||||
<result property="bookid" column="bookid"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserFollowUpDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserFollowUpEntity" id="UserFollowUpMap">
|
||||
<result property="id" column="oid"/>
|
||||
<result property="userId" column="userId"/>
|
||||
<result property="oid" column="oid"/>
|
||||
<result property="conTent" column="conTent"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="delflag" column="delflag"/>
|
||||
<result property="bookid" column="bookid"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,21 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserRecordDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserRecordEntity" id="UserRecordMap">
|
||||
<result property="id" column="oid"/>
|
||||
<result property="createDate" column="createDate"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="userid" column="userid"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="orderCode" column="orderCode"/>
|
||||
<result property="orderSn" column="orderSn"/>
|
||||
<result property="starLevel" column="starLevel"/>
|
||||
<result property="proudictId" column="proudict_id"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.UserRecordDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.UserRecordEntity" id="UserRecordMap">
|
||||
<result property="id" column="oid"/>
|
||||
<result property="createDate" column="createDate"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="userid" column="userid"/>
|
||||
<result property="images" column="images"/>
|
||||
<result property="orderCode" column="orderCode"/>
|
||||
<result property="orderSn" column="orderSn"/>
|
||||
<result property="starLevel" column="starLevel"/>
|
||||
<result property="proudictId" column="proudict_id"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,14 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.job.dao.ScheduleJobDao">
|
||||
|
||||
<!-- 批量更新状态 -->
|
||||
<update id="updateBatch">
|
||||
update schedule_job set status = #{status} where job_id in
|
||||
<foreach item="jobId" collection="list" open="(" separator="," close=")">
|
||||
#{jobId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.job.dao.ScheduleJobDao">
|
||||
|
||||
<!-- 批量更新状态 -->
|
||||
<update id="updateBatch">
|
||||
update schedule_job set status = #{status} where job_id in
|
||||
<foreach item="jobId" collection="list" open="(" separator="," close=")">
|
||||
#{jobId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.job.dao.ScheduleJobLogDao">
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.job.dao.ScheduleJobLogDao">
|
||||
|
||||
</mapper>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.oss.dao.SysOssDao">
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.oss.dao.SysOssDao">
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysAgreementDao">
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysAgreementDao">
|
||||
|
||||
</mapper>
|
||||
@@ -1,15 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysConfigDao">
|
||||
|
||||
<!-- 根据key,更新value -->
|
||||
<update id="updateValueByKey" parameterType="map">
|
||||
update sys_config set param_value = #{paramValue} where param_key = #{paramKey}
|
||||
</update>
|
||||
|
||||
<!-- 根据key,查询value -->
|
||||
<select id="queryByKey" parameterType="string" resultType="com.peanut.modules.sys.entity.SysConfigEntity">
|
||||
select * from sys_config where param_key = #{paramKey}
|
||||
</select>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysConfigDao">
|
||||
|
||||
<!-- 根据key,更新value -->
|
||||
<update id="updateValueByKey" parameterType="map">
|
||||
update sys_config set param_value = #{paramValue} where param_key = #{paramKey}
|
||||
</update>
|
||||
|
||||
<!-- 根据key,查询value -->
|
||||
<select id="queryByKey" parameterType="string" resultType="com.peanut.modules.sys.entity.SysConfigEntity">
|
||||
select * from sys_config where param_key = #{paramKey}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,21 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.SysDictDataDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.SysDictDataEntity" id="sysDictDataMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="dictType" column="dict_type"/>
|
||||
<result property="dictLabel" column="dict_label"/>
|
||||
<result property="dictValue" column="dict_value"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="creator" column="creator"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
<result property="updater" column="updater"/>
|
||||
<result property="updateDate" column="update_date"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.book.dao.SysDictDataDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.peanut.modules.book.entity.SysDictDataEntity" id="sysDictDataMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="dictType" column="dict_type"/>
|
||||
<result property="dictLabel" column="dict_label"/>
|
||||
<result property="dictValue" column="dict_value"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="creator" column="creator"/>
|
||||
<result property="createDate" column="create_date"/>
|
||||
<result property="updater" column="updater"/>
|
||||
<result property="updateDate" column="update_date"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysLogDao">
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysLogDao">
|
||||
|
||||
</mapper>
|
||||
@@ -1,14 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysMenuDao">
|
||||
|
||||
<select id="queryListParentId" resultType="com.peanut.modules.sys.entity.SysMenuEntity">
|
||||
select * from sys_menu where parent_id = #{parentId} order by order_num asc
|
||||
</select>
|
||||
|
||||
<select id="queryNotButtonList" resultType="com.peanut.modules.sys.entity.SysMenuEntity">
|
||||
select * from sys_menu where type != 2 order by order_num asc
|
||||
</select>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysMenuDao">
|
||||
|
||||
<select id="queryListParentId" resultType="com.peanut.modules.sys.entity.SysMenuEntity">
|
||||
select * from sys_menu where parent_id = #{parentId} order by order_num asc
|
||||
</select>
|
||||
|
||||
<select id="queryNotButtonList" resultType="com.peanut.modules.sys.entity.SysMenuEntity">
|
||||
select * from sys_menu where type != 2 order by order_num asc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysRoleDao">
|
||||
|
||||
<!-- 查询用户创建的角色ID列表 -->
|
||||
<select id="queryRoleIdList" resultType="long">
|
||||
select role_id from sys_role where create_user_id = #{createUserId}
|
||||
</select>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysRoleDao">
|
||||
|
||||
<!-- 查询用户创建的角色ID列表 -->
|
||||
<select id="queryRoleIdList" resultType="long">
|
||||
select role_id from sys_role where create_user_id = #{createUserId}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysRoleMenuDao">
|
||||
|
||||
<select id="queryMenuIdList" resultType="long">
|
||||
select menu_id from sys_role_menu where role_id = #{value}
|
||||
</select>
|
||||
|
||||
<delete id="deleteBatch">
|
||||
delete from sys_role_menu where role_id in
|
||||
<foreach item="roleId" collection="array" open="(" separator="," close=")">
|
||||
#{roleId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysRoleMenuDao">
|
||||
|
||||
<select id="queryMenuIdList" resultType="long">
|
||||
select menu_id from sys_role_menu where role_id = #{value}
|
||||
</select>
|
||||
|
||||
<delete id="deleteBatch">
|
||||
delete from sys_role_menu where role_id in
|
||||
<foreach item="roleId" collection="array" open="(" separator="," close=")">
|
||||
#{roleId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
@@ -1,24 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysUserDao">
|
||||
<!-- 查询用户的所有权限 -->
|
||||
<select id="queryAllPerms" resultType="string">
|
||||
select m.perms from sys_user_role ur
|
||||
LEFT JOIN sys_role_menu rm on ur.role_id = rm.role_id
|
||||
LEFT JOIN sys_menu m on rm.menu_id = m.menu_id
|
||||
where ur.user_id = #{userId}
|
||||
</select>
|
||||
|
||||
<!-- 查询用户的所有菜单ID -->
|
||||
<select id="queryAllMenuId" resultType="long">
|
||||
select distinct rm.menu_id from sys_user_role ur
|
||||
LEFT JOIN sys_role_menu rm on ur.role_id = rm.role_id
|
||||
where ur.user_id = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="queryByUserName" resultType="com.peanut.modules.sys.entity.SysUserEntity">
|
||||
select * from sys_user where username = #{username}
|
||||
</select>
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysUserDao">
|
||||
<!-- 查询用户的所有权限 -->
|
||||
<select id="queryAllPerms" resultType="string">
|
||||
select m.perms from sys_user_role ur
|
||||
LEFT JOIN sys_role_menu rm on ur.role_id = rm.role_id
|
||||
LEFT JOIN sys_menu m on rm.menu_id = m.menu_id
|
||||
where ur.user_id = #{userId}
|
||||
</select>
|
||||
|
||||
<!-- 查询用户的所有菜单ID -->
|
||||
<select id="queryAllMenuId" resultType="long">
|
||||
select distinct rm.menu_id from sys_user_role ur
|
||||
LEFT JOIN sys_role_menu rm on ur.role_id = rm.role_id
|
||||
where ur.user_id = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="queryByUserName" resultType="com.peanut.modules.sys.entity.SysUserEntity">
|
||||
select * from sys_user where username = #{username}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysUserRoleDao">
|
||||
|
||||
<delete id="deleteBatch">
|
||||
delete from sys_user_role where role_id in
|
||||
<foreach item="roleId" collection="array" open="(" separator="," close=")">
|
||||
#{roleId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="queryRoleIdList" resultType="long">
|
||||
select role_id from sys_user_role where user_id = #{value}
|
||||
</select>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysUserRoleDao">
|
||||
|
||||
<delete id="deleteBatch">
|
||||
delete from sys_user_role where role_id in
|
||||
<foreach item="roleId" collection="array" open="(" separator="," close=")">
|
||||
#{roleId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="queryRoleIdList" resultType="long">
|
||||
select role_id from sys_user_role where user_id = #{value}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysUserTokenDao">
|
||||
|
||||
<select id="queryByToken" resultType="com.peanut.modules.sys.entity.SysUserTokenEntity">
|
||||
select * from sys_user_token where token = #{value}
|
||||
</select>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.peanut.modules.sys.dao.SysUserTokenDao">
|
||||
|
||||
<select id="queryByToken" resultType="com.peanut.modules.sys.entity.SysUserTokenEntity">
|
||||
select * from sys_user_token where token = #{value}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,107 +1,107 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="x-ua-compatible" content="IE=edge">
|
||||
<title>接口文档 - 人人开源</title>
|
||||
<link rel="icon" type="image/png" href="/favicon.ico" />
|
||||
<link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||
<link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||
<link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
|
||||
<link href='css/print.css' media='print' rel='stylesheet' type='text/css'/>
|
||||
|
||||
<script src='lib/object-assign-pollyfill.js' type='text/javascript'></script>
|
||||
<script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
|
||||
<script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
|
||||
<script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
|
||||
<script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
|
||||
<script src='lib/handlebars-4.0.5.js' type='text/javascript'></script>
|
||||
<script src='lib/lodash.min.js' type='text/javascript'></script>
|
||||
<script src='lib/backbone-min.js' type='text/javascript'></script>
|
||||
<script src='swagger-ui.js' type='text/javascript'></script>
|
||||
<script src='lib/highlight.9.1.0.pack.js' type='text/javascript'></script>
|
||||
<script src='lib/highlight.9.1.0.pack_extended.js' type='text/javascript'></script>
|
||||
<script src='lib/jsoneditor.min.js' type='text/javascript'></script>
|
||||
<script src='lib/marked.js' type='text/javascript'></script>
|
||||
<script src='lib/swagger-oauth.js' type='text/javascript'></script>
|
||||
|
||||
<!-- Some basic translations -->
|
||||
<script src='lang/translator.js' type='text/javascript'></script>
|
||||
<script src='lang/zh-cn.js' type='text/javascript'></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var url = window.location.search.match(/url=([^&]+)/);
|
||||
if (url && url.length > 1) {
|
||||
url = decodeURIComponent(url[1]);
|
||||
} else {
|
||||
//url = "http://petstore.swagger.io/v2/swagger.json";
|
||||
url = "../index.yaml";
|
||||
}
|
||||
|
||||
hljs.configure({
|
||||
highlightSizeThreshold: 5000
|
||||
});
|
||||
|
||||
// Pre load translate...
|
||||
if(window.SwaggerTranslator) {
|
||||
window.SwaggerTranslator.translate();
|
||||
}
|
||||
window.swaggerUi = new SwaggerUi({
|
||||
url: url,
|
||||
dom_id: "swagger-ui-container",
|
||||
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
|
||||
onComplete: function(swaggerApi, swaggerUi){
|
||||
if(typeof initOAuth == "function") {
|
||||
initOAuth({
|
||||
clientId: "your-client-id",
|
||||
clientSecret: "your-client-secret-if-required",
|
||||
realm: "your-realms",
|
||||
appName: "your-app-name",
|
||||
scopeSeparator: " ",
|
||||
additionalQueryStringParams: {}
|
||||
});
|
||||
}
|
||||
|
||||
if(window.SwaggerTranslator) {
|
||||
window.SwaggerTranslator.translate();
|
||||
}
|
||||
},
|
||||
onFailure: function(data) {
|
||||
log("Unable to Load SwaggerUI");
|
||||
},
|
||||
docExpansion: "none",
|
||||
jsonEditor: false,
|
||||
defaultModelRendering: 'schema',
|
||||
showRequestHeaders: false,
|
||||
showOperationIds: false
|
||||
});
|
||||
|
||||
window.swaggerUi.load();
|
||||
|
||||
function log() {
|
||||
if ('console' in window) {
|
||||
console.log.apply(console, arguments);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="swagger-section">
|
||||
<div id='header'>
|
||||
<div class="swagger-ui-wrap">
|
||||
<a id="logo" href="http://swagger.io"><img class="logo__img" alt="swagger" height="30" width="30" src="images/logo_small.png" /><span class="logo__title">swagger</span></a>
|
||||
<form id='api_selector'>
|
||||
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
|
||||
<div id='auth_container'></div>
|
||||
<div class='input'><a id="explore" class="header__btn" href="#" data-sw-translate>Explore</a></div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="message-bar" class="swagger-ui-wrap" data-sw-translate> </div>
|
||||
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="x-ua-compatible" content="IE=edge">
|
||||
<title>接口文档 - 人人开源</title>
|
||||
<link rel="icon" type="image/png" href="/favicon.ico" />
|
||||
<link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||
<link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||
<link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
|
||||
<link href='css/print.css' media='print' rel='stylesheet' type='text/css'/>
|
||||
|
||||
<script src='lib/object-assign-pollyfill.js' type='text/javascript'></script>
|
||||
<script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
|
||||
<script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
|
||||
<script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
|
||||
<script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
|
||||
<script src='lib/handlebars-4.0.5.js' type='text/javascript'></script>
|
||||
<script src='lib/lodash.min.js' type='text/javascript'></script>
|
||||
<script src='lib/backbone-min.js' type='text/javascript'></script>
|
||||
<script src='swagger-ui.js' type='text/javascript'></script>
|
||||
<script src='lib/highlight.9.1.0.pack.js' type='text/javascript'></script>
|
||||
<script src='lib/highlight.9.1.0.pack_extended.js' type='text/javascript'></script>
|
||||
<script src='lib/jsoneditor.min.js' type='text/javascript'></script>
|
||||
<script src='lib/marked.js' type='text/javascript'></script>
|
||||
<script src='lib/swagger-oauth.js' type='text/javascript'></script>
|
||||
|
||||
<!-- Some basic translations -->
|
||||
<script src='lang/translator.js' type='text/javascript'></script>
|
||||
<script src='lang/zh-cn.js' type='text/javascript'></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var url = window.location.search.match(/url=([^&]+)/);
|
||||
if (url && url.length > 1) {
|
||||
url = decodeURIComponent(url[1]);
|
||||
} else {
|
||||
//url = "http://petstore.swagger.io/v2/swagger.json";
|
||||
url = "../index.yaml";
|
||||
}
|
||||
|
||||
hljs.configure({
|
||||
highlightSizeThreshold: 5000
|
||||
});
|
||||
|
||||
// Pre load translate...
|
||||
if(window.SwaggerTranslator) {
|
||||
window.SwaggerTranslator.translate();
|
||||
}
|
||||
window.swaggerUi = new SwaggerUi({
|
||||
url: url,
|
||||
dom_id: "swagger-ui-container",
|
||||
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
|
||||
onComplete: function(swaggerApi, swaggerUi){
|
||||
if(typeof initOAuth == "function") {
|
||||
initOAuth({
|
||||
clientId: "your-client-id",
|
||||
clientSecret: "your-client-secret-if-required",
|
||||
realm: "your-realms",
|
||||
appName: "your-app-name",
|
||||
scopeSeparator: " ",
|
||||
additionalQueryStringParams: {}
|
||||
});
|
||||
}
|
||||
|
||||
if(window.SwaggerTranslator) {
|
||||
window.SwaggerTranslator.translate();
|
||||
}
|
||||
},
|
||||
onFailure: function(data) {
|
||||
log("Unable to Load SwaggerUI");
|
||||
},
|
||||
docExpansion: "none",
|
||||
jsonEditor: false,
|
||||
defaultModelRendering: 'schema',
|
||||
showRequestHeaders: false,
|
||||
showOperationIds: false
|
||||
});
|
||||
|
||||
window.swaggerUi.load();
|
||||
|
||||
function log() {
|
||||
if ('console' in window) {
|
||||
console.log.apply(console, arguments);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="swagger-section">
|
||||
<div id='header'>
|
||||
<div class="swagger-ui-wrap">
|
||||
<a id="logo" href="http://swagger.io"><img class="logo__img" alt="swagger" height="30" width="30" src="images/logo_small.png" /><span class="logo__title">swagger</span></a>
|
||||
<form id='api_selector'>
|
||||
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
|
||||
<div id='auth_container'></div>
|
||||
<div class='input'><a id="explore" class="header__btn" href="#" data-sw-translate>Explore</a></div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="message-bar" class="swagger-ui-wrap" data-sw-translate> </div>
|
||||
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,56 +1,56 @@
|
||||
'use strict';
|
||||
|
||||
/* jshint quotmark: double */
|
||||
window.SwaggerTranslator.learn({
|
||||
"Warning: Deprecated":"Warning: Deprecated",
|
||||
"Implementation Notes":"Implementation Notes",
|
||||
"Response Class":"Response Class",
|
||||
"Status":"Status",
|
||||
"Parameters":"Parameters",
|
||||
"Parameter":"Parameter",
|
||||
"Value":"Value",
|
||||
"Description":"Description",
|
||||
"Parameter Type":"Parameter Type",
|
||||
"Data Type":"Data Type",
|
||||
"Response Messages":"Response Messages",
|
||||
"HTTP Status Code":"HTTP Status Code",
|
||||
"Reason":"Reason",
|
||||
"Response Model":"Response Model",
|
||||
"Request URL":"Request URL",
|
||||
"Response Body":"Response Body",
|
||||
"Response Code":"Response Code",
|
||||
"Response Headers":"Response Headers",
|
||||
"Hide Response":"Hide Response",
|
||||
"Headers":"Headers",
|
||||
"Try it out!":"Try it out!",
|
||||
"Show/Hide":"Show/Hide",
|
||||
"List Operations":"List Operations",
|
||||
"Expand Operations":"Expand Operations",
|
||||
"Raw":"Raw",
|
||||
"can't parse JSON. Raw result":"can't parse JSON. Raw result",
|
||||
"Example Value":"Example Value",
|
||||
"Model Schema":"Model Schema",
|
||||
"Model":"Model",
|
||||
"Click to set as parameter value":"Click to set as parameter value",
|
||||
"apply":"apply",
|
||||
"Username":"Username",
|
||||
"Password":"Password",
|
||||
"Terms of service":"Terms of service",
|
||||
"Created by":"Created by",
|
||||
"See more at":"See more at",
|
||||
"Contact the developer":"Contact the developer",
|
||||
"api version":"api version",
|
||||
"Response Content Type":"Response Content Type",
|
||||
"Parameter content type:":"Parameter content type:",
|
||||
"fetching resource":"fetching resource",
|
||||
"fetching resource list":"fetching resource list",
|
||||
"Explore":"Explore",
|
||||
"Show Swagger Petstore Example Apis":"Show Swagger Petstore Example Apis",
|
||||
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Can't read from server. It may not have the appropriate access-control-origin settings.",
|
||||
"Please specify the protocol for":"Please specify the protocol for",
|
||||
"Can't read swagger JSON from":"Can't read swagger JSON from",
|
||||
"Finished Loading Resource Information. Rendering Swagger UI":"Finished Loading Resource Information. Rendering Swagger UI",
|
||||
"Unable to read api":"Unable to read api",
|
||||
"from path":"from path",
|
||||
"server returned":"server returned"
|
||||
});
|
||||
'use strict';
|
||||
|
||||
/* jshint quotmark: double */
|
||||
window.SwaggerTranslator.learn({
|
||||
"Warning: Deprecated":"Warning: Deprecated",
|
||||
"Implementation Notes":"Implementation Notes",
|
||||
"Response Class":"Response Class",
|
||||
"Status":"Status",
|
||||
"Parameters":"Parameters",
|
||||
"Parameter":"Parameter",
|
||||
"Value":"Value",
|
||||
"Description":"Description",
|
||||
"Parameter Type":"Parameter Type",
|
||||
"Data Type":"Data Type",
|
||||
"Response Messages":"Response Messages",
|
||||
"HTTP Status Code":"HTTP Status Code",
|
||||
"Reason":"Reason",
|
||||
"Response Model":"Response Model",
|
||||
"Request URL":"Request URL",
|
||||
"Response Body":"Response Body",
|
||||
"Response Code":"Response Code",
|
||||
"Response Headers":"Response Headers",
|
||||
"Hide Response":"Hide Response",
|
||||
"Headers":"Headers",
|
||||
"Try it out!":"Try it out!",
|
||||
"Show/Hide":"Show/Hide",
|
||||
"List Operations":"List Operations",
|
||||
"Expand Operations":"Expand Operations",
|
||||
"Raw":"Raw",
|
||||
"can't parse JSON. Raw result":"can't parse JSON. Raw result",
|
||||
"Example Value":"Example Value",
|
||||
"Model Schema":"Model Schema",
|
||||
"Model":"Model",
|
||||
"Click to set as parameter value":"Click to set as parameter value",
|
||||
"apply":"apply",
|
||||
"Username":"Username",
|
||||
"Password":"Password",
|
||||
"Terms of service":"Terms of service",
|
||||
"Created by":"Created by",
|
||||
"See more at":"See more at",
|
||||
"Contact the developer":"Contact the developer",
|
||||
"api version":"api version",
|
||||
"Response Content Type":"Response Content Type",
|
||||
"Parameter content type:":"Parameter content type:",
|
||||
"fetching resource":"fetching resource",
|
||||
"fetching resource list":"fetching resource list",
|
||||
"Explore":"Explore",
|
||||
"Show Swagger Petstore Example Apis":"Show Swagger Petstore Example Apis",
|
||||
"Can't read from server. It may not have the appropriate access-control-origin settings.":"Can't read from server. It may not have the appropriate access-control-origin settings.",
|
||||
"Please specify the protocol for":"Please specify the protocol for",
|
||||
"Can't read swagger JSON from":"Can't read swagger JSON from",
|
||||
"Finished Loading Resource Information. Rendering Swagger UI":"Finished Loading Resource Information. Rendering Swagger UI",
|
||||
"Unable to read api":"Unable to read api",
|
||||
"from path":"from path",
|
||||
"server returned":"server returned"
|
||||
});
|
||||
|
||||
@@ -1,39 +1,39 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Translator for documentation pages.
|
||||
*
|
||||
* To enable translation you should include one of language-files in your index.html
|
||||
* after <script src='lang/translator.js' type='text/javascript'></script>.
|
||||
* For example - <script src='lang/ru.js' type='text/javascript'></script>
|
||||
*
|
||||
* If you wish to translate some new texts you should do two things:
|
||||
* 1. Add a new phrase pair ("New Phrase": "New Translation") into your language file (for example lang/ru.js). It will be great if you add it in other language files too.
|
||||
* 2. Mark that text it templates this way <anyHtmlTag data-sw-translate>New Phrase</anyHtmlTag> or <anyHtmlTag data-sw-translate value='New Phrase'/>.
|
||||
* The main thing here is attribute data-sw-translate. Only inner html, title-attribute and value-attribute are going to translate.
|
||||
*
|
||||
*/
|
||||
window.SwaggerTranslator = {
|
||||
|
||||
_words:[],
|
||||
|
||||
translate: function(sel) {
|
||||
var $this = this;
|
||||
sel = sel || '[data-sw-translate]';
|
||||
|
||||
$(sel).each(function() {
|
||||
$(this).html($this._tryTranslate($(this).html()));
|
||||
|
||||
$(this).val($this._tryTranslate($(this).val()));
|
||||
$(this).attr('title', $this._tryTranslate($(this).attr('title')));
|
||||
});
|
||||
},
|
||||
|
||||
_tryTranslate: function(word) {
|
||||
return this._words[$.trim(word)] !== undefined ? this._words[$.trim(word)] : word;
|
||||
},
|
||||
|
||||
learn: function(wordsMap) {
|
||||
this._words = wordsMap;
|
||||
}
|
||||
};
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Translator for documentation pages.
|
||||
*
|
||||
* To enable translation you should include one of language-files in your index.html
|
||||
* after <script src='lang/translator.js' type='text/javascript'></script>.
|
||||
* For example - <script src='lang/ru.js' type='text/javascript'></script>
|
||||
*
|
||||
* If you wish to translate some new texts you should do two things:
|
||||
* 1. Add a new phrase pair ("New Phrase": "New Translation") into your language file (for example lang/ru.js). It will be great if you add it in other language files too.
|
||||
* 2. Mark that text it templates this way <anyHtmlTag data-sw-translate>New Phrase</anyHtmlTag> or <anyHtmlTag data-sw-translate value='New Phrase'/>.
|
||||
* The main thing here is attribute data-sw-translate. Only inner html, title-attribute and value-attribute are going to translate.
|
||||
*
|
||||
*/
|
||||
window.SwaggerTranslator = {
|
||||
|
||||
_words:[],
|
||||
|
||||
translate: function(sel) {
|
||||
var $this = this;
|
||||
sel = sel || '[data-sw-translate]';
|
||||
|
||||
$(sel).each(function() {
|
||||
$(this).html($this._tryTranslate($(this).html()));
|
||||
|
||||
$(this).val($this._tryTranslate($(this).val()));
|
||||
$(this).attr('title', $this._tryTranslate($(this).attr('title')));
|
||||
});
|
||||
},
|
||||
|
||||
_tryTranslate: function(word) {
|
||||
return this._words[$.trim(word)] !== undefined ? this._words[$.trim(word)] : word;
|
||||
},
|
||||
|
||||
learn: function(wordsMap) {
|
||||
this._words = wordsMap;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,56 +1,56 @@
|
||||
'use strict';
|
||||
|
||||
/* jshint quotmark: double */
|
||||
window.SwaggerTranslator.learn({
|
||||
"Warning: Deprecated":"警告:已过时",
|
||||
"Implementation Notes":"接口备注",
|
||||
"Response Class":"响应类",
|
||||
"Status":"状态",
|
||||
"Parameters":"参数",
|
||||
"Parameter":"参数",
|
||||
"Value":"值",
|
||||
"Description":"描述",
|
||||
"Parameter Type":"参数类型",
|
||||
"Data Type":"数据类型",
|
||||
"Response Messages":"响应消息",
|
||||
"HTTP Status Code":"HTTP状态码",
|
||||
"Reason":"原因",
|
||||
"Response Model":"响应模型",
|
||||
"Request URL":"请求URL",
|
||||
"Response Body":"响应体",
|
||||
"Response Code":"响应码",
|
||||
"Response Headers":"响应头",
|
||||
"Hide Response":"隐藏响应",
|
||||
"Headers":"头",
|
||||
"Try it out!":"试一下!",
|
||||
"Show/Hide":"显示/隐藏",
|
||||
"List Operations":"显示操作",
|
||||
"Expand Operations":"展开操作",
|
||||
"Raw":"原始",
|
||||
"can't parse JSON. Raw result":"无法解析JSON. 原始结果",
|
||||
"Example Value":"示例",
|
||||
"Click to set as parameter value":"点击设置参数",
|
||||
"Model Schema":"模型架构",
|
||||
"Model":"模型",
|
||||
"apply":"应用",
|
||||
"Username":"用户名",
|
||||
"Password":"密码",
|
||||
"Terms of service":"服务条款",
|
||||
"Created by":"创建者",
|
||||
"See more at":"查看更多:",
|
||||
"Contact the developer":"联系开发者",
|
||||
"api version":"api版本",
|
||||
"Response Content Type":"响应类型",
|
||||
"Parameter content type:":"参数类型:",
|
||||
"fetching resource":"正在获取资源",
|
||||
"fetching resource list":"正在获取资源列表",
|
||||
"Explore":"浏览",
|
||||
"Show Swagger Petstore Example Apis":"显示 Swagger Petstore 示例 Apis",
|
||||
"Can't read from server. It may not have the appropriate access-control-origin settings.":"无法从服务器读取。可能没有正确设置access-control-origin。",
|
||||
"Please specify the protocol for":"请指定协议:",
|
||||
"Can't read swagger JSON from":"无法读取swagger JSON于",
|
||||
"Finished Loading Resource Information. Rendering Swagger UI":"已加载资源信息。正在渲染Swagger UI",
|
||||
"Unable to read api":"无法读取api",
|
||||
"from path":"从路径",
|
||||
"server returned":"服务器返回"
|
||||
});
|
||||
'use strict';
|
||||
|
||||
/* jshint quotmark: double */
|
||||
window.SwaggerTranslator.learn({
|
||||
"Warning: Deprecated":"警告:已过时",
|
||||
"Implementation Notes":"接口备注",
|
||||
"Response Class":"响应类",
|
||||
"Status":"状态",
|
||||
"Parameters":"参数",
|
||||
"Parameter":"参数",
|
||||
"Value":"值",
|
||||
"Description":"描述",
|
||||
"Parameter Type":"参数类型",
|
||||
"Data Type":"数据类型",
|
||||
"Response Messages":"响应消息",
|
||||
"HTTP Status Code":"HTTP状态码",
|
||||
"Reason":"原因",
|
||||
"Response Model":"响应模型",
|
||||
"Request URL":"请求URL",
|
||||
"Response Body":"响应体",
|
||||
"Response Code":"响应码",
|
||||
"Response Headers":"响应头",
|
||||
"Hide Response":"隐藏响应",
|
||||
"Headers":"头",
|
||||
"Try it out!":"试一下!",
|
||||
"Show/Hide":"显示/隐藏",
|
||||
"List Operations":"显示操作",
|
||||
"Expand Operations":"展开操作",
|
||||
"Raw":"原始",
|
||||
"can't parse JSON. Raw result":"无法解析JSON. 原始结果",
|
||||
"Example Value":"示例",
|
||||
"Click to set as parameter value":"点击设置参数",
|
||||
"Model Schema":"模型架构",
|
||||
"Model":"模型",
|
||||
"apply":"应用",
|
||||
"Username":"用户名",
|
||||
"Password":"密码",
|
||||
"Terms of service":"服务条款",
|
||||
"Created by":"创建者",
|
||||
"See more at":"查看更多:",
|
||||
"Contact the developer":"联系开发者",
|
||||
"api version":"api版本",
|
||||
"Response Content Type":"响应类型",
|
||||
"Parameter content type:":"参数类型:",
|
||||
"fetching resource":"正在获取资源",
|
||||
"fetching resource list":"正在获取资源列表",
|
||||
"Explore":"浏览",
|
||||
"Show Swagger Petstore Example Apis":"显示 Swagger Petstore 示例 Apis",
|
||||
"Can't read from server. It may not have the appropriate access-control-origin settings.":"无法从服务器读取。可能没有正确设置access-control-origin。",
|
||||
"Please specify the protocol for":"请指定协议:",
|
||||
"Can't read swagger JSON from":"无法读取swagger JSON于",
|
||||
"Finished Loading Resource Information. Rendering Swagger UI":"已加载资源信息。正在渲染Swagger UI",
|
||||
"Unable to read api":"无法读取api",
|
||||
"from path":"从路径",
|
||||
"server returned":"服务器返回"
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,20 +1,20 @@
|
||||
<script>
|
||||
var qp = null;
|
||||
if(/code|token|error/.test(window.location.hash)) {
|
||||
qp = location.hash.substring(1);
|
||||
}
|
||||
else {
|
||||
qp = location.search.substring(1);
|
||||
}
|
||||
qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}',
|
||||
function(key, value) {
|
||||
return key===""?value:decodeURIComponent(value) }
|
||||
):{}
|
||||
|
||||
if (window.opener.swaggerUiAuth.tokenUrl)
|
||||
window.opener.processOAuthCode(qp);
|
||||
else
|
||||
window.opener.onOAuthComplete(qp);
|
||||
|
||||
window.close();
|
||||
</script>
|
||||
<script>
|
||||
var qp = null;
|
||||
if(/code|token|error/.test(window.location.hash)) {
|
||||
qp = location.hash.substring(1);
|
||||
}
|
||||
else {
|
||||
qp = location.search.substring(1);
|
||||
}
|
||||
qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}',
|
||||
function(key, value) {
|
||||
return key===""?value:decodeURIComponent(value) }
|
||||
):{}
|
||||
|
||||
if (window.opener.swaggerUiAuth.tokenUrl)
|
||||
window.opener.processOAuthCode(qp);
|
||||
else
|
||||
window.opener.onOAuthComplete(qp);
|
||||
|
||||
window.close();
|
||||
</script>
|
||||
|
||||
@@ -1,53 +1,53 @@
|
||||
<!doctype html>
|
||||
<html lang="en-US">
|
||||
<body onload="run()">
|
||||
</body>
|
||||
</html>
|
||||
<script>
|
||||
'use strict';
|
||||
function run () {
|
||||
var oauth2 = window.opener.swaggerUIRedirectOauth2;
|
||||
var sentState = oauth2.state;
|
||||
var redirectUrl = oauth2.redirectUrl;
|
||||
var isValid, qp, arr;
|
||||
|
||||
qp = (window.location.hash || location.search).substring(1);
|
||||
|
||||
arr = qp.split("&")
|
||||
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
|
||||
qp = qp ? JSON.parse('{' + arr.join() + '}',
|
||||
function (key, value) {
|
||||
return key === "" ? value : decodeURIComponent(value)
|
||||
}
|
||||
) : {}
|
||||
|
||||
isValid = qp.state === sentState
|
||||
|
||||
if (oauth2.auth.schema.get("flow") === "accessCode" && !oauth2.auth.code) {
|
||||
if (!isValid) {
|
||||
oauth2.errCb({
|
||||
authId: oauth2.auth.name,
|
||||
source: "auth",
|
||||
level: "warning",
|
||||
message: "Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"
|
||||
});
|
||||
}
|
||||
|
||||
if (qp.code) {
|
||||
delete oauth2.state;
|
||||
oauth2.auth.code = qp.code;
|
||||
oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
|
||||
} else {
|
||||
oauth2.errCb({
|
||||
authId: oauth2.auth.name,
|
||||
source: "auth",
|
||||
level: "error",
|
||||
message: "Authorization failed: no accessCode received from the server"
|
||||
});
|
||||
}
|
||||
} else {
|
||||
oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl});
|
||||
}
|
||||
window.close();
|
||||
}
|
||||
</script>
|
||||
<!doctype html>
|
||||
<html lang="en-US">
|
||||
<body onload="run()">
|
||||
</body>
|
||||
</html>
|
||||
<script>
|
||||
'use strict';
|
||||
function run () {
|
||||
var oauth2 = window.opener.swaggerUIRedirectOauth2;
|
||||
var sentState = oauth2.state;
|
||||
var redirectUrl = oauth2.redirectUrl;
|
||||
var isValid, qp, arr;
|
||||
|
||||
qp = (window.location.hash || location.search).substring(1);
|
||||
|
||||
arr = qp.split("&")
|
||||
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
|
||||
qp = qp ? JSON.parse('{' + arr.join() + '}',
|
||||
function (key, value) {
|
||||
return key === "" ? value : decodeURIComponent(value)
|
||||
}
|
||||
) : {}
|
||||
|
||||
isValid = qp.state === sentState
|
||||
|
||||
if (oauth2.auth.schema.get("flow") === "accessCode" && !oauth2.auth.code) {
|
||||
if (!isValid) {
|
||||
oauth2.errCb({
|
||||
authId: oauth2.auth.name,
|
||||
source: "auth",
|
||||
level: "warning",
|
||||
message: "Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"
|
||||
});
|
||||
}
|
||||
|
||||
if (qp.code) {
|
||||
delete oauth2.state;
|
||||
oauth2.auth.code = qp.code;
|
||||
oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
|
||||
} else {
|
||||
oauth2.errCb({
|
||||
authId: oauth2.auth.name,
|
||||
source: "auth",
|
||||
level: "error",
|
||||
message: "Authorization failed: no accessCode received from the server"
|
||||
});
|
||||
}
|
||||
} else {
|
||||
oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl});
|
||||
}
|
||||
window.close();
|
||||
}
|
||||
</script>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,50 +0,0 @@
|
||||
wxpay:
|
||||
#应用编号
|
||||
wxpay.appId: wx47134a8f15083734
|
||||
#商户号
|
||||
wxpay.mchId: 1612860909
|
||||
# APIv3密钥
|
||||
wxpay.apiV3Key: 4aYFklzaULeGlr7oJPZ6rHWKcxjihZUF
|
||||
# 微信支付V3-url前缀
|
||||
wxpay.baseUrl: https://api.mch.weixin.qq.com/v3
|
||||
#po9k1ezoyexk.ngrok.xiaomiqiu123.top 内网穿透地址 测试ok 正式环境下切换服务器地址
|
||||
#wxpay.notifyUrl: http://101.201.146.165:9100
|
||||
|
||||
wxpay.notifyUrl: http://59.110.212.44:9100/pb/pay/payNotify
|
||||
|
||||
# 退款通知回调, pjm6m9.natappfree.cc 为内网穿透地址
|
||||
wxpay.refundNotifyUrl: http://pjm6m9.natappfree.cc/pay/refundNotify
|
||||
# 密钥路径,resources下 /usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
||||
|
||||
wxpay.keyPemPath:C:/Users/Administrator/IdeaProjects/peanut_book/src/main/resources/cent/apiclient_key.pem
|
||||
#wxpay.keyPemPath:D:/hs/nuttyreading-java/src/main/resources/cent/apiclient_key.pem
|
||||
#商户证书序列号
|
||||
wxpay.serialNo: 679AECB2F7AC4183033F713828892BA640E4EEE3
|
||||
#微信服务器地址
|
||||
wxpay.domain: https://api.mch.weixin.qq.com
|
||||
|
||||
|
||||
#wxpay:
|
||||
##应用编号
|
||||
#wxpay.appId: wx47134a8f15083734
|
||||
##商户号
|
||||
#wxpay.mchId: 1612860909
|
||||
## APIv3密钥
|
||||
#wxpay.apiV3Key: 4aYFklzaULeGlr7oJPZ6rHWKcxjihZUF
|
||||
## 微信支付V3-url前缀
|
||||
#wxpay.baseUrl: https://api.mch.weixin.qq.com/v3
|
||||
##po9k1ezoyexk.ngrok.xiaomiqiu123.top 内网穿透地址 测试ok 正式环境下切换服务器地址
|
||||
#
|
||||
##wxpay.notifyUrl: http://101.201.146.165:9100
|
||||
#
|
||||
#wxpay.notifyUrl: http://59.110.212.44:9100/pb/pay/payNotify
|
||||
#
|
||||
## 退款通知回调, pjm6m9.natappfree.cc 为内网穿透地址
|
||||
#wxpay.refundNotifyUrl: http://pjm6m9.natappfree.cc/pay/refundNotify
|
||||
## 密钥路径,resources下 /usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
||||
#
|
||||
#wxpay.keyPemPath:/usr/local/hs/peanut_book/target/classes/cent/apiclient_key.pem
|
||||
##商户证书序列号
|
||||
#wxpay.serialNo: 679AECB2F7AC4183033F713828892BA640E4EEE3
|
||||
##微信服务器地址
|
||||
#wxpay.domain: https://api.mch.weixin.qq.com
|
||||
Reference in New Issue
Block a user