|
|
@ -1,6 +1,7 @@
|
|
|
|
package cn.estsh.i3plus.ext.mes.apiservice.controller.base.jx;
|
|
|
|
package cn.estsh.i3plus.ext.mes.apiservice.controller.base.jx;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.api.base.jx.IJxProcessExtService;
|
|
|
|
import cn.estsh.i3plus.ext.mes.api.base.jx.IJxProcessExtService;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.model.BatchIdModel;
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.util.MesExtConstWords;
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.util.MesExtConstWords;
|
|
|
|
import cn.estsh.i3plus.platform.common.convert.ConvertBean;
|
|
|
|
import cn.estsh.i3plus.platform.common.convert.ConvertBean;
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
|
|
@ -13,10 +14,7 @@ import cn.estsh.impp.framework.boot.util.ResultBean;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @PROJECT_NAME: i3plus-mes-panasonic-jx
|
|
|
|
* @PROJECT_NAME: i3plus-mes-panasonic-jx
|
|
|
@ -34,13 +32,13 @@ public class JxProcessController extends MesBaseController {
|
|
|
|
|
|
|
|
|
|
|
|
@PutMapping(value = "/update-valid-batch")
|
|
|
|
@PutMapping(value = "/update-valid-batch")
|
|
|
|
@ApiOperation(value = "批量禁用/启用详情", notes = "批量禁用/启用详情")
|
|
|
|
@ApiOperation(value = "批量禁用/启用详情", notes = "批量禁用/启用详情")
|
|
|
|
public ResultBean updateProcessValid(String[] ids, int status) {
|
|
|
|
public ResultBean updateProcessValid(@RequestBody BatchIdModel model) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
ConvertBean.modelSafeArrayNumber(ids, true);
|
|
|
|
ConvertBean.modelSafeArrayNumber(model.getIds(), true);
|
|
|
|
//登陆用户
|
|
|
|
//登陆用户
|
|
|
|
SessionUser user = AuthUtil.getSessionUser();
|
|
|
|
SessionUser user = AuthUtil.getSessionUser();
|
|
|
|
|
|
|
|
|
|
|
|
jxProcessExtService.updateProcessValid(ids, status, user.getUserName());
|
|
|
|
jxProcessExtService.updateProcessValid(model.getIds(), model.getStatus(), user.getUserName());
|
|
|
|
return ResultBean.success("修改成功")
|
|
|
|
return ResultBean.success("修改成功")
|
|
|
|
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
@ -52,13 +50,13 @@ public class JxProcessController extends MesBaseController {
|
|
|
|
|
|
|
|
|
|
|
|
@DeleteMapping(value = "/delete-batch")
|
|
|
|
@DeleteMapping(value = "/delete-batch")
|
|
|
|
@ApiOperation(value = "批量删除", notes = "批量删除")
|
|
|
|
@ApiOperation(value = "批量删除", notes = "批量删除")
|
|
|
|
public ResultBean deleteProcessByIds(String[] ids) {
|
|
|
|
public ResultBean deleteProcessByIds(@RequestBody BatchIdModel model) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
ConvertBean.modelSafeArrayNumber(ids, true);
|
|
|
|
ConvertBean.modelSafeArrayNumber(model.getIds(), true);
|
|
|
|
//登陆用户
|
|
|
|
//登陆用户
|
|
|
|
SessionUser user = AuthUtil.getSessionUser();
|
|
|
|
SessionUser user = AuthUtil.getSessionUser();
|
|
|
|
|
|
|
|
|
|
|
|
jxProcessExtService.deleteWeaklySProcessByIds(ids, user.getUserName());
|
|
|
|
jxProcessExtService.deleteWeaklySProcessByIds(model.getIds(), user.getUserName());
|
|
|
|
return ResultBean.success("修改成功")
|
|
|
|
return ResultBean.success("修改成功")
|
|
|
|
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
|