Commit d8fa4600 authored by zp's avatar zp

add

parent 26fec8d3
...@@ -1842,12 +1842,17 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -1842,12 +1842,17 @@ public class ProductServiceImpl implements ProductService, Constant {
beginTime = DateUtil.offset(endTime, DateField.YEAR, -5); beginTime = DateUtil.offset(endTime, DateField.YEAR, -5);
} else if (req.getInceptionDate() == 5) { } else if (req.getInceptionDate() == 5) {
endTime = DateUtil.offset(DateUtil.beginOfYear(beginYear), DateField.YEAR, -2); endTime = DateUtil.offset(DateUtil.beginOfYear(beginYear), DateField.YEAR, -2);
beginTime = DateUtil.offset(endTime, DateField.YEAR, -5); beginTime = DateUtil.offset(beginYear, DateField.YEAR, -5);
} else { } else {
endTime = DateUtil.endOfDay(new Date()); endTime = DateUtil.endOfDay(new Date());
beginTime = beginYear; beginTime = beginYear;
} }
criteria.andInceptionDateBetween(beginTime, endTime);
if (req.getInceptionDate() != 5) {
criteria.andInceptionDateBetween(beginTime, endTime);
} else {
criteria.andInceptionDateLessThanOrEqualTo(beginTime);
}
} }
} }
......
...@@ -10,8 +10,8 @@ management.endpoints.web.base-path = /myhealth ...@@ -10,8 +10,8 @@ management.endpoints.web.base-path = /myhealth
management.endpoint.health.enabled=true management.endpoint.health.enabled=true
management.endpoint.health.show-details=always management.endpoint.health.show-details=always
spring.datasource.url=jdbc:mysql://118.190.63.109:3306/tamp_fund?autoReconnect=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&useSSL=false spring.datasource.url=jdbc:mysql://rm-uf6r22t3d798q4kmkao.mysql.rds.aliyuncs.com:3306/tamp_fund?autoReconnect=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&useSSL=false
spring.datasource.username=root spring.datasource.username=tamp_admin
spring.datasource.password= @imeng123 spring.datasource.password= @imeng123
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
......
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