Merge remote-tracking branch 'origin/dev' into dev

tags/yfai-mes-ext-v1.0
jun 1 year ago
commit e2fc0df9f3

@ -0,0 +1,13 @@
package cn.estsh.i3plus.ext.mes.api.base;
import cn.estsh.i3plus.pojo.mes.bean.MesPartTypeDefect;
/**
* @Description:
* @CreateDate 2024/04/16
* @Author mingliang.li
*/
public interface IMesPartTypeDefectService extends IBaseMesService<MesPartTypeDefect> {
}

@ -0,0 +1,13 @@
package cn.estsh.i3plus.ext.mes.api.base;
import cn.estsh.i3plus.pojo.mes.bean.MesPartTypePicture;
/**
* @Description:
* @CreateDate 2024/04/16
* @Author mingliang.li
*/
public interface IMesPartTypePictureService extends IBaseMesService<MesPartTypePicture> {
}

@ -1621,7 +1621,8 @@ public class BaseExtDataController extends MesBaseController {
ValidatorBean.beginValid(mesDefect)
.notNull("defectCode", mesDefect.getDefectCode())
.notNull("defectName", mesDefect.getDefectName())
.notNull("defectType", mesDefect.getDefectType());
// .notNull("defectType", mesDefect.getDefectType())
;
mesDefect.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
ConvertBean.modelInitialize(mesDefect, AuthUtil.getSessionUser());
@ -1648,7 +1649,8 @@ public class BaseExtDataController extends MesBaseController {
ValidatorBean.beginValid(mesDefect)
.notNull("defectCode", mesDefect.getDefectCode())
.notNull("defectName", mesDefect.getDefectName())
.notNull("defectType", mesDefect.getDefectType());
// .notNull("defectType", mesDefect.getDefectType())
;
defectService.updateMesDefect(mesDefect);
return ResultBean.success("修改成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
} catch (ImppBusiException busExcep) {

@ -0,0 +1,16 @@
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.MesPartTypeDefect;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
*
*/
@Api("零件类型缺陷类型对应关系")
@RestController
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesPartTypeDefect")
public class MesPartTypeDefectController extends BaseMesController<MesPartTypeDefect> {
}

@ -1,14 +1,16 @@
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.MesDefectManagement;
import cn.estsh.i3plus.pojo.mes.bean.MesPartTypePicture;
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 + "/mesDefectManagement")
public class MesDefectManagementController extends BaseMesController<MesDefectManagement> {
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesPartTypePicture")
public class MesPartTypePictureController extends BaseMesController<MesPartTypePicture> {
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
import cn.estsh.i3plus.ext.mes.api.base.IMesPartTypeDefectService;
import cn.estsh.i3plus.pojo.mes.bean.MesPartTypeDefect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Service
@Slf4j
public class MesPartTypeDefectService extends BaseMesService<MesPartTypeDefect> implements IMesPartTypeDefectService {
// protected void setPackQueryBean(MesDefect bean, DdlPackBean packBean) {
// DdlPreparedPack.getStringLikerPack(bean.getDefectCode(), "defectCode", packBean);
// DdlPreparedPack.getStringLikerPack(bean.getDefectName(), "defectName", packBean);
// DdlPreparedPack.getNumEqualPack(bean.getCategory(), "category", packBean);
// }
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
import cn.estsh.i3plus.ext.mes.api.base.IMesPartTypePictureService;
import cn.estsh.i3plus.pojo.mes.bean.MesPartTypePicture;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Service
@Slf4j
public class MesPartTypePictureService extends BaseMesService<MesPartTypePicture> implements IMesPartTypePictureService {
// protected void setPackQueryBean(MesDefect bean, DdlPackBean packBean) {
// DdlPreparedPack.getStringLikerPack(bean.getDefectCode(), "defectCode", packBean);
// DdlPreparedPack.getStringLikerPack(bean.getDefectName(), "defectName", packBean);
// DdlPreparedPack.getNumEqualPack(bean.getCategory(), "category", packBean);
// }
}
Loading…
Cancel
Save