|
|
|
@ -2,6 +2,7 @@ package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.api.base.IMesCutLengthModifyTypeService;
|
|
|
|
|
import cn.estsh.i3plus.pojo.mes.bean.MesCutLengthModifyType;
|
|
|
|
|
import cn.estsh.impp.framework.boot.util.ValidatorBean;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
@ -16,4 +17,15 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
@Service
|
|
|
|
|
public class MesCutLengthModifyTypeServiceImpl extends BaseMesService<MesCutLengthModifyType> implements IMesCutLengthModifyTypeService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void onInsertBean(MesCutLengthModifyType item) {
|
|
|
|
|
ValidatorBean.checkNotNull(item.getReasonName(), "原因名称不能为空");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void onUpdateBean(MesCutLengthModifyType item) {
|
|
|
|
|
ValidatorBean.checkNotNull(item.getId(), "主键不能为空");
|
|
|
|
|
ValidatorBean.checkNotNull(item.getReasonName(), "原因名称不能为空");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|