forked from I3-YF/i3plus-mes-pcn-yfai
pcn
parent
eeddd1811d
commit
bc491b4f84
@ -1,50 +0,0 @@
|
|||||||
package cn.estsh.i3plus.ext.mes.pcn.apiservice.controller.base;
|
|
||||||
|
|
||||||
import cn.estsh.i3plus.ext.mes.pcn.api.base.IMesProdOrgExtService;
|
|
||||||
import cn.estsh.i3plus.platform.common.util.CommonConstWords;
|
|
||||||
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
|
||||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkCell;
|
|
||||||
import cn.estsh.impp.framework.base.controller.MesPcnBaseController;
|
|
||||||
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
|
||||||
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
|
||||||
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
|
||||||
import cn.estsh.impp.framework.boot.util.ResultBean;
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Author: wangjie
|
|
||||||
* @CreateDate: 2021/01/19 15:37
|
|
||||||
* @Description:
|
|
||||||
**/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping(CommonConstWords.BASE_URL_MES_PCN)
|
|
||||||
@Api(tags = "组织")
|
|
||||||
public class ProdOrgExtController extends MesPcnBaseController {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private IMesProdOrgExtService organizeService;
|
|
||||||
|
|
||||||
@GetMapping({"/ext/query-work-cell-by-center"})
|
|
||||||
@ApiOperation(
|
|
||||||
value = "查询工作单元",
|
|
||||||
notes = "查询工作单元"
|
|
||||||
)
|
|
||||||
public ResultBean queryWorkCell(String workCenterCode) {
|
|
||||||
try {
|
|
||||||
List<MesWorkCell> areaList = this.organizeService.findWorkCell(AuthUtil.getOrganize().getOrganizeCode(), workCenterCode);
|
|
||||||
return ResultBean.success("操作成功").setResultList(areaList).setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
||||||
} catch (ImppBusiException var3) {
|
|
||||||
return ResultBean.fail(var3);
|
|
||||||
} catch (Exception var4) {
|
|
||||||
return ImppExceptionBuilder.newInstance().buildExceptionResult(var4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
17
modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/station/YfManyCellMonitorModuleService.java → modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/station/MesProductionNoSortModuleService.java
17
modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/station/YfManyCellMonitorModuleService.java → modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/station/MesProductionNoSortModuleService.java
Loading…
Reference in New Issue