裁片基础数据 长度修改类型校验

tags/yfai-mes-ext-v2.3
pzj 9 months ago
parent 5641d27974
commit d02f6ef9fb

@ -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(), "原因名称不能为空");
}
}

Loading…
Cancel
Save