|
|
|
@ -3,6 +3,7 @@ package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.api.base.IMesWorkCenterPartRelationService;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.util.MesExtConstWords;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.exception.ImppExceptionEnum;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.tool.TimeTool;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
|
|
|
@ -94,7 +95,9 @@ public class MesWorkCenterPartRelationService extends BaseMesService<MesWorkCent
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(item.getPartNo(), "partNo", partRelationPackBean);
|
|
|
|
|
boolean flg = baseRDao.isExitByHql(partRelationPackBean);
|
|
|
|
|
if (flg) {
|
|
|
|
|
baseRDao.deleteByProperties(new String[]{"workCenterCode","partNo","organizeCode"},new Object[]{item.getWorkCenterCode(),item.getPartNo(),organizeCode});
|
|
|
|
|
baseRDao.updateByProperties(
|
|
|
|
|
new String[]{"modifyUser", "modifyDatetime", "isDeleted"},
|
|
|
|
|
new Object[]{item.getModifyUser(), TimeTool.getNowTime(true), CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue()},partRelationPackBean);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|