| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.owner.OwnerDto; |
| | | import com.java110.dto.report.QueryStatisticsDto; |
| | | import com.java110.intf.report.IReportOrderStatisticsInnerServiceSMO; |
| | | import com.java110.report.statistics.IOrderStatistics; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | infos = new ArrayList<>(); |
| | | } |
| | | |
| | | freshStartDateAndEndDate(infos,ownerDto); |
| | | |
| | | ResponseEntity<String> responseEntity = ResultVo.createResponseEntity((int) Math.ceil((double) total / (double) row), total, infos); |
| | | context.setResponseEntity(responseEntity); |
| | | |
| | | } |
| | | |
| | | private void freshStartDateAndEndDate(List<Map> infos,OwnerDto ownerDto) { |
| | | if(infos == null || infos.size() < 1){ |
| | | return ; |
| | | } |
| | | |
| | | for(Map info :infos){ |
| | | info.put("startDate",ownerDto.getStartDate()); |
| | | info.put("endDate",ownerDto.getEndDate()); |
| | | } |
| | | } |
| | | } |