|
|
|
@ -28,7 +28,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
**/
|
|
|
|
|
@RestController
|
|
|
|
|
@Api(tags = "松下工位节拍PLC配置 控制层")
|
|
|
|
|
@RequestMapping(CommonConstWords.BASE_URL_MES + "/work-cell-takt")
|
|
|
|
|
@RequestMapping(CommonConstWords.BASE_URL_MES + "/sx/" + "/work-cell-takt-collect-plc-cfg")
|
|
|
|
|
public class SxWorkCellTaktCollectPlcCfgController {
|
|
|
|
|
public static final Logger LOGGER = LoggerFactory.getLogger(SxWorkCellTaktCollectPlcCfgController.class);
|
|
|
|
|
|
|
|
|
@ -99,6 +99,24 @@ public class SxWorkCellTaktCollectPlcCfgController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping(value = "/update-valid-batch")
|
|
|
|
|
@ApiOperation(value = "批量禁用/启用详情", notes = "批量禁用/启用详情")
|
|
|
|
|
public ResultBean updateSxWorkCellTaktCollectPlcCfgValid(String[] ids, int status) {
|
|
|
|
|
try {
|
|
|
|
|
ConvertBean.modelSafeArrayNumber(ids, true);
|
|
|
|
|
//登陆用户
|
|
|
|
|
SessionUser user = AuthUtil.getSessionUser();
|
|
|
|
|
|
|
|
|
|
workCellTaktCollectPlcCfgService.updateSxWorkCellTaktCollectPlcCfgValid(ids, status, user.getUserName());
|
|
|
|
|
return ResultBean.success("修改成功")
|
|
|
|
|
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PutMapping(value = "/update-status-batch")
|
|
|
|
|
@ApiOperation(value = "批量禁用/启用详情", notes = "批量禁用/启用详情")
|
|
|
|
|
public ResultBean updateSxWorkCellTaktCollectPlcCfgStatus(String[] ids, int status) {
|
|
|
|
@ -116,4 +134,22 @@ public class SxWorkCellTaktCollectPlcCfgController {
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@DeleteMapping(value = "/delete-batch")
|
|
|
|
|
@ApiOperation(value = "批量禁用/启用详情", notes = "批量禁用/启用详情")
|
|
|
|
|
public ResultBean deleteWeaklySxWorkCellTaktCollectPlcCfgByIds(String[] ids) {
|
|
|
|
|
try {
|
|
|
|
|
ConvertBean.modelSafeArrayNumber(ids, true);
|
|
|
|
|
//登陆用户
|
|
|
|
|
SessionUser user = AuthUtil.getSessionUser();
|
|
|
|
|
|
|
|
|
|
workCellTaktCollectPlcCfgService.deleteWeaklySxWorkCellTaktCollectPlcCfgByIds(ids, user.getUserName());
|
|
|
|
|
return ResultBean.success("修改成功")
|
|
|
|
|
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|