Commit 5b7ce9e5 authored by duanruiming's avatar duanruiming

[add] 绿波图参数校验优化

parent 72909caa
......@@ -32,6 +32,9 @@ public class StrategyGreenBeltServiceImpl implements StrategyGreenBeltService {
@Override
public GreenBeltChartVO selectChart(Integer greenId, Date queryDate) {
try {
if (Objects.isNull(queryDate)) {
queryDate = new Date();
}
ObjectMapper mapper = JacksonUtils.getInstance();
QueryWrapper<StrategyGreenOptHistEntity> queryWrapper = new QueryWrapper<>();
String customOrderBy = "ABS(DATEDIFF(control_time, '" + queryDate + "'))";
......
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