增加单据类型过滤
This commit is contained in:
parent
d68f368111
commit
11b094294a
|
@ -87,6 +87,10 @@ public class PmoToQmsAction implements ICommonAction {
|
|||
if (checkIfOrg(orgCode, configParams)) {
|
||||
continue;
|
||||
}
|
||||
String billType = vo.getParentVO().getVtrantypecode();
|
||||
if (checkBillType(billType, configParams)) {
|
||||
continue;
|
||||
}
|
||||
if (vo.getChildrenVO().length >= 0) {
|
||||
if (null != vo.getChildrenVO()[0].getAttributeValue("vdef32") && vo.getChildrenVO()[0].getAttributeValue("vdef32").equals("Y")) {
|
||||
continue;
|
||||
|
@ -211,4 +215,17 @@ public class PmoToQmsAction implements ICommonAction {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
private boolean checkBillType(String code, Map<String, String> configParams) throws BusinessException {
|
||||
String targetCode = configParams.get("xbBillType");
|
||||
if (targetCode == null || nc.vo.am.common.util.StringUtils.isEmpty(targetCode)) {
|
||||
throw new BusinessException("δÅäÖõ¥¾ÝÀàÐͲÎÊý");
|
||||
}
|
||||
String[] types = targetCode.split(",");
|
||||
for (String type : types) {
|
||||
if (!type.isEmpty() && type.equals(code)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue