Commit 90ba06de by huluobin

创建时间筛选

parent 6fb07a96
...@@ -32,9 +32,16 @@ public class CostTemplateApiDto { ...@@ -32,9 +32,16 @@ public class CostTemplateApiDto {
@ApiModelProperty("是否开启最终人审核") @ApiModelProperty("是否开启最终人审核")
private Boolean enableFinalReview; private Boolean enableFinalReview;
@ApiModelProperty("更新时间")
private LocalDateTime startTime; private LocalDateTime startTime;
@ApiModelProperty("更新时间")
private LocalDateTime endTime; private LocalDateTime endTime;
@ApiModelProperty("创建时间")
private LocalDateTime createStartTime;
@ApiModelProperty("创建时间")
private LocalDateTime createEndTime;
private Integer pageNum; private Integer pageNum;
private Integer pageSize; private Integer pageSize;
} }
......
...@@ -123,6 +123,12 @@ public class CostTemplateServiceImpl extends ServiceImpl<CostTemplateMapper, Cos ...@@ -123,6 +123,12 @@ public class CostTemplateServiceImpl extends ServiceImpl<CostTemplateMapper, Cos
if (req.getEndTime() != null) { if (req.getEndTime() != null) {
wrapper.le(CostTemplate::getLastUpdateTime, req.getEndTime()); wrapper.le(CostTemplate::getLastUpdateTime, req.getEndTime());
} }
if (req.getCreateStartTime() != null) {
wrapper.ge(CostTemplate::getCreateUserName, req.getCreateStartTime());
}
if (req.getCreateEndTime() != null) {
wrapper.le(CostTemplate::getCreateTime, req.getCreateEndTime());
}
List<CostTemplate> costTemplateList = this.list(wrapper); List<CostTemplate> costTemplateList = this.list(wrapper);
costTemplateColService.setCostTemplateCol(costTemplateList); costTemplateColService.setCostTemplateCol(costTemplateList);
return costTemplateList; return costTemplateList;
......
...@@ -2,9 +2,9 @@ spring: ...@@ -2,9 +2,9 @@ spring:
# 数据源配置 # 数据源配置
datasource: datasource:
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://106.55.55.253:3306/bailun_other?useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true url: jdbc:mysql://cdb-aanqm573.gz.tencentcdb.com:10120/bailun_other?useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true
username: root username: root
password: 'gogirl2020test.' password: 'Aarob2020#'
thymeleaf: thymeleaf:
prefix: classpath:/templates/ prefix: classpath:/templates/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment