记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
db90a8e3
Commit
db90a8e3
authored
May 28, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin mybatis 配置提交
parent
9105ba73
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
PerformanceAdminListParam.java
...et/service/kylin/dto/param/PerformanceAdminListParam.java
+17
-2
application-client-admin-web.yml
...n-web/src/main/resources/application-client-admin-web.yml
+2
-2
KylinPerformancesAdminServiceImpl.java
...kylin/service/impl/KylinPerformancesAdminServiceImpl.java
+1
-0
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/PerformanceAdminListParam.java
View file @
db90a8e3
...
@@ -21,7 +21,7 @@ public class PerformanceAdminListParam {
...
@@ -21,7 +21,7 @@ public class PerformanceAdminListParam {
private
Integer
auditStatus
;
private
Integer
auditStatus
;
@ApiModelProperty
(
value
=
"停售时间(天)-2全部"
,
example
=
"-2"
)
@ApiModelProperty
(
value
=
"停售时间(天)-2全部"
,
example
=
"-2"
)
private
long
stopSellDay
;
private
long
stopSellDay
;
@ApiModelProperty
(
value
=
"停售时间"
,
example
=
"2000-01-01 12:00:00"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"停售时间"
,
example
=
"2000-01-01 12:00:00"
,
hidden
=
true
)
private
String
stopSellTime
;
private
String
stopSellTime
;
@ApiModelProperty
(
value
=
"页数"
,
example
=
"0"
)
@ApiModelProperty
(
value
=
"页数"
,
example
=
"0"
)
@NotNull
(
message
=
"不能为空"
)
@NotNull
(
message
=
"不能为空"
)
...
@@ -35,8 +35,23 @@ public class PerformanceAdminListParam {
...
@@ -35,8 +35,23 @@ public class PerformanceAdminListParam {
private
String
orderSc
;
private
String
orderSc
;
public
void
setStopSellDay
(
Long
stopSellDay
)
{
public
void
setStopSellDay
(
Long
stopSellDay
)
{
this
.
stopSellDay
=
stopSellDay
;
this
.
stopSellDay
=
stopSellDay
;
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
this
.
stopSellTime
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
now
.
plusDays
(-
stopSellDay
));
this
.
stopSellTime
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
now
.
plusDays
(-
stopSellDay
));
}
}
@ApiModelProperty
(
hidden
=
true
)
private
Integer
page
;
@ApiModelProperty
(
hidden
=
true
)
private
Integer
size
;
public
void
setPageNum
(
Integer
pageNum
){
this
.
pageNum
=
pageNum
;
this
.
page
=
pageNum
;
}
public
void
setPageSize
(
Integer
pageSize
){
this
.
pageSize
=
pageSize
;
this
.
size
=
pageSize
;
}
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/application-client-admin-web.yml
View file @
db90a8e3
...
@@ -91,9 +91,9 @@ spring:
...
@@ -91,9 +91,9 @@ spring:
# MyBatis
# MyBatis
mybatis
:
mybatis
:
# 搜索指定包别名
# 搜索指定包别名
typeAliasesPackage
:
com.liquidnet.client.admin.**.domain
typeAliasesPackage
:
com.liquidnet.
service.kylin.entity,com.liquidnet.
client.admin.**.domain
# 配置mapper的扫描,找到所有的mapper.xml映射文件
# 配置mapper的扫描,找到所有的mapper.xml映射文件
mapperLocations
:
classpath*:mapper/**/*Mapper.xml
mapperLocations
:
classpath*:mapper/**/*Mapper.xml
,classpath:com.liquidnet.service.kylin.mapper/*Mapper.xml,classpath:com.liquidnet.service.adam.mapper/*Mapper.xml
# 加载全局的配置文件
# 加载全局的配置文件
configLocation
:
classpath:mybatis/mybatis-config.xml
configLocation
:
classpath:mybatis/mybatis-config.xml
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinPerformancesAdminServiceImpl.java
View file @
db90a8e3
...
@@ -205,6 +205,7 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
...
@@ -205,6 +205,7 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
List
<
PerformanceAdminListDao
>
voList
=
performancesMapper
.
misPerformanceList
(
BeanUtil
.
convertBeanToMap
(
performanceAdminListParam
));
List
<
PerformanceAdminListDao
>
voList
=
performancesMapper
.
misPerformanceList
(
BeanUtil
.
convertBeanToMap
(
performanceAdminListParam
));
pageInfoTmp
=
new
PageInfo
(
voList
);
pageInfoTmp
=
new
PageInfo
(
voList
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
null
;
return
null
;
}
}
return
pageInfoTmp
;
return
pageInfoTmp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment