Commit 6eb2f2ca79be8d1fa83c96bfda9c8047f506d889
1 parent
68a05c10
金蝶对接pt5
Showing
2 changed files
with
23 additions
and
4 deletions
etrade-thirdparty/src/main/java/com/diligrp/etrade/thirdparty/demarcate/AbstractBillHandler.java
... | ... | @@ -178,7 +178,9 @@ public abstract class AbstractBillHandler<T extends BaseBillCo> implements TypeM |
178 | 178 | }; |
179 | 179 | var dynamicParam = transMapper.getFixedWithQueryArrays(systemCode, dynamicType.code, marketId, SelectType.FIXED.getCode(), queryArrays); |
180 | 180 | Map<String, BusinessDetailDto> map = new HashMap<>(); |
181 | - dynamicParam.forEach(e -> map.computeIfAbsent(e.getCode(), k -> e)); | |
181 | + if (!ObjectUtils.isEmpty(dynamicParam)){ | |
182 | + dynamicParam.forEach(e -> map.computeIfAbsent(e.getCode(), k -> e)); | |
183 | + } | |
182 | 184 | return map; |
183 | 185 | } |
184 | 186 | |
... | ... | @@ -194,7 +196,9 @@ public abstract class AbstractBillHandler<T extends BaseBillCo> implements TypeM |
194 | 196 | var queryArrays = new String[]{BasicEnum.CHARGE_ITEM_TO_LOWER.code}; |
195 | 197 | var dynamicParam = transMapper.getFixedWithQueryArrays(systemCode, dynamicType.code, marketId, SelectType.FIXED.getCode(), queryArrays); |
196 | 198 | Map<String, List<BusinessDetailDto>> map = new HashMap<>(); |
197 | - dynamicParam.forEach(e -> map.computeIfAbsent(e.getCode(), k -> new ArrayList<>()).add(e)); | |
199 | + if (!ObjectUtils.isEmpty(dynamicParam)){ | |
200 | + dynamicParam.forEach(e -> map.computeIfAbsent(e.getCode(), k -> new ArrayList<>()).add(e)); | |
201 | + } | |
198 | 202 | return map; |
199 | 203 | } |
200 | 204 | |
... | ... | @@ -216,6 +220,7 @@ public abstract class AbstractBillHandler<T extends BaseBillCo> implements TypeM |
216 | 220 | identifyInfo.setdCID(clientParam.getDataCentreId()); |
217 | 221 | var util = new PurchaseOrderApiUtils(identifyInfo); |
218 | 222 | for (T e : ts) { |
223 | + var billId = e.getFBillTypeID().getFNUMBER(); | |
219 | 224 | e.getFBillTypeID().setFNUMBER("YSD01_SYS");//TODO TEST |
220 | 225 | util.createOnePurchaseOrder(JsonUtils.toJsonString(e), "AR_receivable"); |
221 | 226 | } | ... | ... |
etrade-thirdparty/src/main/java/com/diligrp/etrade/thirdparty/type/DynamicType.java
... | ... | @@ -13,11 +13,25 @@ public enum DynamicType { |
13 | 13 | COLD("506"), |
14 | 14 | CARD("CARD"), |
15 | 15 | ENTIRE_TENANCY("1"), |
16 | + EARNEST("2"), | |
17 | + BAIL("3"), | |
16 | 18 | SUBLET("4"), |
17 | 19 | ACCOMMODATION("5"), |
18 | - BAIL("3"), | |
19 | - EARNEST("2"), | |
20 | + BOUTIQUE_ENTRANCE("6"), | |
21 | + PASSPORT("7"), | |
22 | + STOCKIN("8"), | |
23 | + STOCKOUT("9"), | |
20 | 24 | OTHER_CHARGES("10"), |
25 | + LABOR_VEST("11"), | |
26 | + MESSAGEFEE("14"), | |
27 | + WATER("15"), | |
28 | + ELECTRICITY("16"), | |
29 | + UTILITY_BILLS_PRE_STORAGE("17"), | |
30 | + SCALES("18"), | |
31 | + ENTRANCE_CARD("301"), | |
32 | + ENQUIRY_FEE_ORDER("513"), | |
33 | + TRADING_AREA("523"), | |
34 | + CARD_METER("525"), | |
21 | 35 | TRADE("5502"), |
22 | 36 | REFUND("5503"); |
23 | 37 | public final String code; | ... | ... |