|
|
|
@ -21,6 +21,7 @@ import cn.estsh.i3plus.pojo.base.bean.BaseResultBean;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
|
import cn.estsh.i3plus.pojo.mes.model.GenSerialNoModel;
|
|
|
|
|
import cn.estsh.i3plus.pojo.mes.model.StepResult;
|
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
@ -132,6 +133,8 @@ public class JxProdBusiStrategyStandardService implements IJxProdBusiStrategySer
|
|
|
|
|
String ruleCode;
|
|
|
|
|
try {
|
|
|
|
|
ruleCode = productEncodeCfgExtService.getRuleCodeByMatchType(params.getOrganizeCode(), MesPcnExtEnumUtil.ENCODE_CODE_TYPE.SERIAL_SN.getValue(), partDb, params.getWorkCenterCode());
|
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
|
return stepResult.msg(e.getErrorDetail());
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return stepResult.msg(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|