| | |
| | | @PostMapping("/addition_violation") |
| | | @LogSave(operationType = "事项处置管理", contain = "新增违规案件") |
| | | public CommonResult addViolationCase(@RequestBody @Validated ViolationParam violationParam) { |
| | | log.info("---------------->参数,报警时间{},限时{},对象{}", violationParam.getAlarmTime(), violationParam.getLimitTime(), violationParam); |
| | | if (violationParam.getAlarmTime() != null) { |
| | | violationParam.setAlarmTime(violationParam.getAlarmTime().replace("/", "-")); |
| | | } |
| | | if (violationParam.getLimitTime() != null) { |
| | | violationParam.setLimitTime(violationParam.getLimitTime().replace("/", "-")); |
| | | } |
| | | Integer violation = 1; |
| | | Integer resource = 2; |
| | | BaseCase baseCase = new BaseCase(); |
| | |
| | | @PostMapping("/addition_illegal_building") |
| | | @LogSave(operationType = "事项处置管理", contain = "新增违建案件") |
| | | public CommonResult addIllegalBuildingCase(@RequestBody @Validated IllegalBuildingParam illegalBuildingParam) { |
| | | log.info("---------------->参数,报警时间{},限时{},对象{}", illegalBuildingParam.getAlarmTime(), illegalBuildingParam.getLimitTime(), illegalBuildingParam); |
| | | if (illegalBuildingParam.getAlarmTime() != null) { |
| | | illegalBuildingParam.setAlarmTime(illegalBuildingParam.getAlarmTime().replace("/", "-")); |
| | | } |
| | | if (illegalBuildingParam.getLimitTime() != null) { |
| | | illegalBuildingParam.setLimitTime(illegalBuildingParam.getLimitTime().replace("/", "-")); |
| | | } |
| | | Integer illegalBuilding = 2; |
| | | Integer resource = 2; |
| | | BaseCase baseCase = new BaseCase(); |
| | |
| | | ImageResources imageResources = new ImageResources(); |
| | | imageResources.setType("01"); |
| | | imageResources.setBelongToId(baseCase.getId()); |
| | | imageResources.setUrl(illegalBuildingParam.getImageUrls().get(i)); |
| | | imageResources.setUrl(illegalBuildingParam.getImageUrls().toString()); |
| | | imageResources.setCreateTime(LocalDateTime.now()); |
| | | imageResources.setCreateUser(user.getUserId()); |
| | | iImageResourcesService.save(imageResources); |