|
|
|
@ -96,19 +96,19 @@ public class RepairJudgeTypeController extends MesBaseController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping(value = "/update-status-batch")
|
|
|
|
|
@PostMapping(value = "/update-status-batch")
|
|
|
|
|
@ApiOperation(value = "批量禁用/启用详情", notes = "批量禁用/启用详情")
|
|
|
|
|
public ResultBean updateMesRepairJudgeTypeStatus(@RequestBody BatchIdModel model) {
|
|
|
|
|
public ResultBean updateMesRepairJudgeTypeStatus(String[] ids, int status) {
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
ValidatorBean.checkNotNull(model.getStatus(), "未有启用禁用标志");
|
|
|
|
|
ValidatorBean.checkNotNull(model.getIds(), "未选择启用/禁用资源");
|
|
|
|
|
ValidatorBean.checkNotNull(status, "未有启用禁用标志");
|
|
|
|
|
ValidatorBean.checkNotNull(ids, "未选择启用/禁用资源");
|
|
|
|
|
|
|
|
|
|
ConvertBean.modelSafeArrayNumber(model.getIds(), true);
|
|
|
|
|
ConvertBean.modelSafeArrayNumber(ids, true);
|
|
|
|
|
//登陆用户
|
|
|
|
|
SessionUser user = AuthUtil.getSessionUser();
|
|
|
|
|
|
|
|
|
|
repairJudgeTypeService.updateRepairJudgeTypeValidById(model, user.getUserName());
|
|
|
|
|
repairJudgeTypeService.updateRepairJudgeTypeValidById(ids, status, user.getUserName());
|
|
|
|
|
return ResultBean.success("修改成功")
|
|
|
|
|
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
|
|