页面报错

This commit is contained in:
2023-04-23 11:54:54 +08:00
parent 87f08d8558
commit bc54c20e1d
6 changed files with 9 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
package com.njcn.device.pms.controller;
package com.njcn.device.pms.controller.ledgerManger;
import com.njcn.common.pojo.annotation.OperateInfo;
import com.njcn.common.pojo.constant.OperateType;

View File

@@ -30,7 +30,7 @@ public interface TerminalBaseClient {
* @author xy
* @date 2022/2/21 18:53
*/
@GetMapping("/getSubstationById")
@PostMapping("/getSubstationById")
HttpResult<List<Line>> getSubstationById(@RequestParam("list") List<String> list);

View File

@@ -48,6 +48,7 @@ public class HarmDateToDayJob {
@XxlJob("harmDateToDayJobToMysql")
public void harmDateToDayJobToMysql(){
log.info(LocalDateTime.now()+"data转day数据调度开始------------------------");
LineParam lineParam = new LineParam();
lineParam.setType(Integer.valueOf(BizParamConstant.STAT_BIZ_DAY));
lineParam.setDataDate(CommonExecutorUtils.prepareTimeDeal(BizParamConstant.STAT_BIZ_DAY));

View File

@@ -36,7 +36,8 @@ public class CommonExecutorUtils {
break;
case BizParamConstant.STAT_BIZ_MONTH:
//月
date = sdf.format(DateUtil.beginOfMonth(DateUtil.lastMonth()));
calendar.add(Calendar.DAY_OF_MONTH,-1);
date = sdf.format(DateUtil.beginOfDay(calendar.getTime()));
break;
case BizParamConstant.STAT_BIZ_QUARTER:
//季度

View File

@@ -98,6 +98,7 @@ public class DayDataController extends BaseController {
} else {
startTime = jobParam.getDataDate()+" "+"00:00:00";
endTime = jobParam.getDataDate()+" "+"23:59:59";
log.info("统计时间范围:"+startTime+"----->"+endTime);
dayDataService.dataToDayHandler(indexLists,startTime,endTime);
}
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);

View File

@@ -130,7 +130,7 @@ public class PollutionServiceImpl implements PollutionService {
localEnd = LocalDateTimeUtil.parse(lineParam.getDataDate() + "T23:59:59");
}else if (Integer.valueOf(BizParamConstant.STAT_BIZ_MONTH).equals(lineParam.getType())){
Date dateOutb = DateUtil.beginOfMonth(dateOut);
Date dateOute = DateUtil.endOfMonth(dateOut);
Date dateOute = dateOut;
local = LocalDateTimeUtil.parse(DateUtil.formatDate(dateOutb) + "T00:00:00");
localEnd = LocalDateTimeUtil.parse(DateUtil.formatDate(dateOute) + "T23:59:59");
}else if (Integer.valueOf(BizParamConstant.STAT_BIZ_QUARTER).equals(lineParam.getType())){
@@ -144,6 +144,8 @@ public class PollutionServiceImpl implements PollutionService {
local = LocalDateTimeUtil.parse(DateUtil.formatDate(dateOutb) + "T00:00:00");
localEnd = LocalDateTimeUtil.parse(DateUtil.formatDate(dateOute) + "T23:59:59");
}
log.info("污区数据统计间隔"+local+"----->"+localEnd);
lambdaQuery.ge(RMpPollutionDPO::getDataDate, local).le(RMpPollutionDPO::getDataDate,localEnd);
List<RMpPollutionDPO> pollutionDayList = rMpPollutionDMapper.selectList(lambdaQuery);
//MySql入表变电站、单位