gaoningbom新增接口自由态添加默认和有效
This commit is contained in:
parent
34edc8c0d2
commit
bd21c31e4e
|
@ -720,7 +720,7 @@ public class APIBomBusinessServiceImpl implements IAPIBomBusinessService {
|
||||||
if (VersionTypeEnum.AVAILABLE.equalsValue(head.getHfversiontype())
|
if (VersionTypeEnum.AVAILABLE.equalsValue(head.getHfversiontype())
|
||||||
&& !head.getCbomid().equals(headvo.getCbomid())) {
|
&& !head.getCbomid().equals(headvo.getCbomid())) {
|
||||||
// sdlizheng --添加独立判断--plm三方越过此校验
|
// sdlizheng --添加独立判断--plm三方越过此校验
|
||||||
if ("gaoning".equals(userCode) || "dlkght".equals(userCode)) {
|
if ("gaoning".equals(userCode) || "dlkgsrm".equals(userCode)) {
|
||||||
// AggBomVO afterVO = service.canceldefault(aggBomVO);
|
// AggBomVO afterVO = service.canceldefault(aggBomVO);
|
||||||
} else {
|
} else {
|
||||||
return UFBoolean.TRUE;
|
return UFBoolean.TRUE;
|
||||||
|
@ -774,12 +774,17 @@ public class APIBomBusinessServiceImpl implements IAPIBomBusinessService {
|
||||||
agg.getParent().setAttributeValue("fbillstatus", Integer.valueOf(-1));
|
agg.getParent().setAttributeValue("fbillstatus", Integer.valueOf(-1));
|
||||||
agg.getParent().setAttributeValue("hfbomsource", Integer.valueOf(1));
|
agg.getParent().setAttributeValue("hfbomsource", Integer.valueOf(1));
|
||||||
agg.getParent().setAttributeValue("hfbomcategory", Integer.valueOf(1));
|
agg.getParent().setAttributeValue("hfbomcategory", Integer.valueOf(1));
|
||||||
if ("gaoning".equals(userCode) || "dlkght".equals(userCode)) {
|
if ("gaoning".equals(userCode) || "dlkgsrm".equals(userCode)) {
|
||||||
// sdlizheng
|
// sdlizheng
|
||||||
// 1、对于之前不存在的BOM,新增时:如果是传自由态,不默认且无效,走标准逻辑,如果传的是审批态默认且有效。2025年4月11日16点28分 start
|
// 1、对于之前不存在的BOM,新增时:如果是传自由态,不默认且无效,走标准逻辑,如果传的是审批态默认且有效。2025年4月11日16点28分 start
|
||||||
if (fbillstatus != null && "1".equals(fbillstatus.toString())) {
|
if (fbillstatus != null && "1".equals(fbillstatus.toString())) {
|
||||||
agg.getParent().setAttributeValue("hfversiontype", Integer.valueOf(1));
|
agg.getParent().setAttributeValue("hfversiontype", Integer.valueOf(1));
|
||||||
agg.getParent().setAttributeValue("hbdefault", UFBoolean.TRUE);
|
agg.getParent().setAttributeValue("hbdefault", UFBoolean.TRUE);
|
||||||
|
}else if(fbillstatus != null && "-1".equals(fbillstatus.toString())){
|
||||||
|
if("gaoning".equals(userCode)){
|
||||||
|
agg.getParent().setAttributeValue("hfversiontype", Integer.valueOf(1));
|
||||||
|
agg.getParent().setAttributeValue("hbdefault", UFBoolean.TRUE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// sdlizheng 1、对于之前不存在的BOM,新增时:如果是传自由态,不默认且无效,如果传的是审批态默认且有效。2025年4月11日16点28分 end
|
// sdlizheng 1、对于之前不存在的BOM,新增时:如果是传自由态,不默认且无效,如果传的是审批态默认且有效。2025年4月11日16点28分 end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue