forked from I3-YF/i3plus-mes-yfai
主页面输入查询条件后未按查询条件查询
parent
573ed6b5f8
commit
e06f85e3c0
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkCellExtendCfg;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @CreateDate 2024/04/16
|
||||
* @Author mingliang.li
|
||||
*/
|
||||
public interface IMesWorkCellExtendCfgService extends IBaseMesService<MesWorkCellExtendCfg> {
|
||||
|
||||
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkCellSubCell;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @CreateDate 2024/04/16
|
||||
* @Author mingliang.li
|
||||
*/
|
||||
public interface IMesWorkCellSubCellService extends IBaseMesService<MesWorkCellSubCell> {
|
||||
|
||||
|
||||
}
|
@ -1,15 +1,14 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkCellBin;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkCellSubCell;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkCellExtendCfg;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api("主工位与子工位关系维护")
|
||||
@Api("主子工位关系维护")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesWorkCellSubCell")
|
||||
|
||||
public class MesWorkCellSubCellController extends BaseMesController<MesWorkCellSubCell> {
|
||||
public class MesWorkCellExtendCfgController extends BaseMesController<MesWorkCellExtendCfg> {
|
||||
}
|
@ -1,30 +1,29 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.base.IMesWorkCellSubCellService;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkCellBin;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkCellSubCell;
|
||||
import cn.estsh.i3plus.ext.mes.api.base.IMesWorkCellExtendCfgService;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkCellExtendCfg;
|
||||
import cn.estsh.impp.framework.boot.util.ValidatorBean;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
@Slf4j
|
||||
public class MesWorkCellSubCellService extends BaseMesService<MesWorkCellSubCell> implements IMesWorkCellSubCellService {
|
||||
public class MesWorkCellExtendCfgService extends BaseMesService<MesWorkCellExtendCfg> implements IMesWorkCellExtendCfgService {
|
||||
|
||||
|
||||
protected void onInsertBean(MesWorkCellSubCell item) {
|
||||
protected void onInsertBean(MesWorkCellExtendCfg item) {
|
||||
// 数据校验
|
||||
ValidatorBean.checkNotNull(item.getWorkCenterCode(), "产线不能为空");
|
||||
ValidatorBean.checkNotNull(item.getWorkCellCode(), "主工位不能为空");
|
||||
ValidatorBean.checkNotNull(item.getSubCellCode(), "子工位不能为空");
|
||||
ValidatorBean.checkNotNull(item.getWorkCellCodeBak(), "子工位不能为空");
|
||||
|
||||
}
|
||||
|
||||
protected void onUpdateBean(MesWorkCellSubCell item) {
|
||||
protected void onUpdateBean(MesWorkCellExtendCfg item) {
|
||||
// 数据校验
|
||||
ValidatorBean.checkNotNull(item.getWorkCenterCode(), "产线不能为空");
|
||||
ValidatorBean.checkNotNull(item.getWorkCellCode(), "主工位不能为空");
|
||||
ValidatorBean.checkNotNull(item.getSubCellCode(), "子工位不能为空");
|
||||
ValidatorBean.checkNotNull(item.getWorkCellCodeBak(), "子工位不能为空");
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue