物料推送箱变qms增加过滤
This commit is contained in:
parent
025e84b9e4
commit
8b7a962810
|
|
@ -93,7 +93,15 @@ public class MaterialPushToQmsAction implements ICommonAction {
|
|||
String pk_marbasclass = vo.getPk_marbasclass();
|
||||
String mrlTypeName = MyHelper.getStrValByCondition(MarBasClassVO.getDefaultTableName(), MarBasClassVO.CODE,
|
||||
"pk_marbasclass = '" + pk_marbasclass + "'");
|
||||
// 셕좆데貫
|
||||
|
||||
String isPushtoQms = MyHelper.getStrValByCondition(MarBasClassVO.getDefaultTableName(), MarBasClassVO.DEF3,
|
||||
"pk_marbasclass = '" + pk_marbasclass + "'");
|
||||
if(null != isPushtoQms && "Y".equals(isPushtoQms)) {
|
||||
continue;
|
||||
}
|
||||
// if(null == isPushtoQms || !"Y".equals(isPushtoQms)) {
|
||||
// continue;
|
||||
// }
|
||||
// 过滤物料分类
|
||||
if(checkMrlType(mrlTypeName,configParams)){
|
||||
continue;
|
||||
|
|
@ -173,7 +181,7 @@ public class MaterialPushToQmsAction implements ICommonAction {
|
|||
// 遍历每个类型,检查是否以mrlTypeName为前缀
|
||||
for (String typeCode : typeItems) {
|
||||
// 跳过空字符串,且判断当前类型是否以目标名称为前缀
|
||||
if (!typeCode.isEmpty() && typeCode.startsWith(mrlTypeName)) {
|
||||
if (!typeCode.isEmpty() && mrlTypeName.startsWith(typeCode)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,8 +99,8 @@ public class MaterialOutGyImsPlugin implements IBackgroundWorkPlugin {
|
|||
MaterialOutHeadVO hvo = vo.getHead();
|
||||
MaterialOutBodyVO[] bodys = vo.getBodys();
|
||||
hvo.setVbillcode(mainMap.get("vbillcode") + "");
|
||||
hvo.setCreator("BIP");
|
||||
hvo.setBillmaker("BIP");
|
||||
hvo.setCreator(MyHelper.getUserId((String) mainMap.get("creator")) );
|
||||
hvo.setBillmaker(MyHelper.getUserId((String) mainMap.get("billmaker")) );
|
||||
hvo.setVtrantypecode("4D-01");
|
||||
if (MMValueCheck.isEmpty(mainMap.get("cwarehouseid"))) {
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -118,6 +118,13 @@ public class MaterialToQmsPlugin implements IBackgroundWorkPlugin {
|
|||
String mrlTypeName = MyHelper.getStrValByCondition(MarBasClassVO.getDefaultTableName(), MarBasClassVO.CODE,
|
||||
"pk_marbasclass = '" + pk_marbasclass + "'");
|
||||
// 计量单位
|
||||
// 过滤物料分类
|
||||
String isPushtoQms = MyHelper.getStrValByCondition(MarBasClassVO.getDefaultTableName(), MarBasClassVO.DEF3,
|
||||
"pk_marbasclass = '" + pk_marbasclass + "'");
|
||||
// 计量单位
|
||||
if(null != isPushtoQms && "Y".equals(isPushtoQms)) {
|
||||
continue;
|
||||
}
|
||||
// 过滤物料分类
|
||||
if (checkMrlType(mrlTypeName, configParams)) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue