fix: 密码验证和部门修改状态和图片删除和视频删除 车辆批量删除
| | |
| | | return CommonResult.success(departService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation("批处理-开启或者禁用部门") |
| | | @PutMapping(value = "/batch_status") |
| | | @LogSave(operationType = "部门管理", contain = "批量开启或者禁用部门") |
| | | public CommonResult updateBatch(@RequestParam List<UmsDepart> umsDepartList) { |
| | | if (umsDepartList.isEmpty()) { |
| | | return CommonResult.failed("bad request parameter"); |
| | | } |
| | | return CommonResult.success(departService.updateBatchById(umsDepartList)); |
| | | } |
| | | |
| | | @ApiOperation("详情") |
| | | @PostMapping(value = "/detail") |
| | | @LogSave(operationType = "部门管理", contain = "查看部门") |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | |
| | |
| | | @ApiModelProperty(value = "旧密码", required = true) |
| | | private String oldPassword; |
| | | @NotEmpty |
| | | @Length(min = 6, max = 16) |
| | | @ApiModelProperty(value = "新密码", required = true) |
| | | private String newPassword; |
| | | } |
| | |
| | | |
| | | @Override |
| | | public int updatePassword(UpdateAdminPasswordParam param) { |
| | | if (StrUtil.isEmpty(param.getUsername()) |
| | | || StrUtil.isEmpty(param.getOldPassword()) |
| | | || StrUtil.isEmpty(param.getNewPassword())) { |
| | | if (StrUtil.isNotEmpty(param.getUsername()) |
| | | && StrUtil.isNotEmpty(param.getOldPassword()) |
| | | && StrUtil.isNotEmpty(param.getNewPassword()) |
| | | && !param.getNewPassword().matches("^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{6,16}$")) { |
| | | return -1; |
| | | } |
| | | QueryWrapper<UmsAdmin> wrapper = new QueryWrapper<>(); |
| | |
| | | public CommonResult deleteSlagCar(@RequestParam Integer id) { |
| | | return CommonResult.success(iCarSlagcarService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation("批量删除执法车") |
| | | @DeleteMapping("/batch_deletion_enforce") |
| | | @LogSave(operationType = "车辆管理", contain = "批量删除执法车") |
| | | public CommonResult batchDeleteEnforce(@RequestParam List<Long> ids) { |
| | | return CommonResult.success(iCarEnforcecarService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation("批量删除渣土车") |
| | | @DeleteMapping("/batch_deletion_slag") |
| | | @LogSave(operationType = "车辆管理", contain = "批量删除渣土车") |
| | | public CommonResult batchDeleteSlag(@RequestParam List<Long> ids) { |
| | | return CommonResult.success(iCarSlagcarService.removeBatchByIds(ids)); |
| | | } |
| | | } |
| | |
| | | public CommonResult delete(@RequestParam List<Integer> ids) { |
| | | return CommonResult.success(iImageResourcesService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | @Test |
| | | void contextLoads() { |
| | | String msg = baseCaseService.processEvent(3); |
| | | System.out.println("123456a".matches("^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{6,16}$")); |
| | | } |
| | | |
| | | @Test |