需要用到的时间工具
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.10</version>
<scope>compile</scope>
</dependency>
controller
/**
* 临停收费统计
*/
@GetMapping("/parkTempChargeStat")
public List<ParkTempChargeStatVo> parkTempChargeStat(@Validated ChargeStatForm form) {
return pmaStatService.parkTempChargeStat(form);
}
service
@Override
public List<ParkTempChargeStatVo> parkTempChargeStat(ChargeStatForm form) {
// 查询项目vpnIp
Map<String, Object> pmap = punitMapper.findInfoByUnitKey(form.getUnitKey());
if (pmap == null) {
throw new ResponseException("未找到项目信息");
}
long punitId =