|
@@ -1522,35 +1522,34 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
if (maps.containsKey(account)){
|
|
if (maps.containsKey(account)){
|
|
switch (maps.get(account).get("index")){
|
|
switch (maps.get(account).get("index")){
|
|
case "1":
|
|
case "1":
|
|
- if(!account.equals("102")){
|
|
+
|
|
-
|
|
+
|
|
- String purchaseinName=maps.get(account).get("code");
|
|
+
|
|
-
|
|
+
|
|
- List<Map<String,Object>> purchaseinMaps= syPackingListTailoringMapper.getRdRecord01(purchaseinName);
|
|
+
|
|
- if(purchaseinMaps!=null){
|
|
+
|
|
- for (Map map : purchaseinMaps){
|
|
+
|
|
- System.out.println("mapt4\n"+map);
|
|
+
|
|
- JSONObject jsonObject=mapList5.getJSONObject(0);
|
|
+
|
|
- List<Map<String,Object>> mapItems5= (List<Map<String,Object>>) jsonObject.get("DETAILList");
|
|
+
|
|
- for (Map itemMap5 : mapItems5){
|
|
+
|
|
- if(itemMap5.get("size").equals(map.get("cFree2"))&&(Double.parseDouble( itemMap5.get("IQUANTITY").toString())
|
|
+
|
|
- ==Double.parseDouble( map.get("iQuantity").toString()))&&!itemMap5.containsKey("AUTOID_PO")){
|
|
+
|
|
-
|
|
+
|
|
- itemMap5.put("AUTOID_PO",map.get("AutoID"));
|
|
+
|
|
- }
|
|
+
|
|
- }
|
|
+
|
|
- System.out.println("mapItems4\t"+mapItems5);
|
|
+
|
|
- }
|
|
+
|
|
- }
|
|
+
|
|
- text(mapList5,mapt.get("ordertype")+"发票单");
|
|
+
|
|
- JSONArray resturn5 = InterfaceConnUtils.doPost(mapList5,"purinvoice_import");
|
|
+
|
|
- recording=result(main,resturn5,mapt.get("ordertype")+"发票单",((Map) mapList.get(0)).get("CACCID").toString(),"2");
|
|
+
|
|
- recording(main,recording);
|
|
+
|
|
- this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn5.getJSONObject(0).get("U8ReceiptNo").toString()),"109");
|
|
+
|
|
- }
|
|
+
|
|
case "2":
|
|
case "2":
|
|
text(mapList3,"销售发货单");
|
|
text(mapList3,"销售发货单");
|
|
-
|
|
|
|
JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");
|
|
JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");
|
|
recording=result(main,resturn3,"销售发货单",((Map) mapList.get(0)).get("CACCID").toString(),"3");
|
|
recording=result(main,resturn3,"销售发货单",((Map) mapList.get(0)).get("CACCID").toString(),"3");
|
|
maps.get(account).put("code",resturn3.getJSONObject(0).get("U8ReceiptNo").toString());
|
|
maps.get(account).put("code",resturn3.getJSONObject(0).get("U8ReceiptNo").toString());
|
|
@@ -1581,29 +1580,29 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
recording=result(main,resturn4,"销售出库单",((Map) mapList.get(0)).get("CACCID").toString(),"4");
|
|
recording=result(main,resturn4,"销售出库单",((Map) mapList.get(0)).get("CACCID").toString(),"4");
|
|
maps.get(account).put("code",resturn4.getJSONObject(0).get("U8ReceiptNo").toString());
|
|
maps.get(account).put("code",resturn4.getJSONObject(0).get("U8ReceiptNo").toString());
|
|
recording(main,recording);
|
|
recording(main,recording);
|
|
- case "4":
|
|
+
|
|
- String saleoutName=maps.get(account).get("code");
|
|
+
|
|
- this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131");
|
|
+
|
|
- List<Map<String,Object>> saleoutMaps= syPackingListTailoringMapper.getRdrecord32(saleoutName);
|
|
+
|
|
- if(saleoutMaps!=null){
|
|
+
|
|
- for (Map map : saleoutMaps){
|
|
+
|
|
- JSONObject jsonObject=mapList6.getJSONObject(0);
|
|
+
|
|
- List<Map<String,Object>> mapItems6= (List<Map<String,Object>>) jsonObject.get("DETAILList");
|
|
+
|
|
- System.out.println("获取数据1\t"+saleoutMaps);
|
|
+
|
|
- System.out.println("获取数据2\t"+mapItems6);
|
|
+
|
|
- for (Map itemMap6 : mapItems6){
|
|
+
|
|
- itemMap6.put("DISAUTOIDCOL","AUTOID");
|
|
+
|
|
- if(itemMap6.get("size").equals(map.get("cFree2"))&&(Double.parseDouble( itemMap6.get("IQUANTITY").toString())
|
|
+
|
|
- ==Double.parseDouble( map.get("iQuantity").toString()))&&!itemMap6.containsKey("AUTOID_DIS")){
|
|
+
|
|
- itemMap6.put("AUTOID_DIS",map.get("autoid"));
|
|
+
|
|
- }
|
|
+
|
|
- }
|
|
+
|
|
- }
|
|
+
|
|
- }
|
|
+
|
|
- text(mapList6,"销售发票单");
|
|
+
|
|
- JSONArray resturn6 = InterfaceConnUtils.doPost(mapList6,"saleinvoice_import");
|
|
+
|
|
- recording=result(main,resturn6,"销售发票单",((Map) mapList.get(0)).get("CACCID").toString(),"5");
|
|
+
|
|
- recording(main,recording);
|
|
+
|
|
}
|
|
}
|
|
return account+"账套推送成功!";
|
|
return account+"账套推送成功!";
|
|
}
|
|
}
|
|
@@ -1614,31 +1613,31 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
recording(main,recording);
|
|
recording(main,recording);
|
|
this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn1.getJSONObject(0).get("U8ReceiptNo").toString()),"107");
|
|
this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn1.getJSONObject(0).get("U8ReceiptNo").toString()),"107");
|
|
|
|
|
|
- JSONObject jsonObject1=resturn1.getJSONObject(0);
|
|
+
|
|
- String purchaseinName=jsonObject1.get("U8ReceiptNo").toString();
|
|
+
|
|
- List<Map<String,Object>> purchaseinMaps= syPackingListTailoringMapper.getRdRecord01(purchaseinName);
|
|
+
|
|
- if(purchaseinMaps!=null){
|
|
+
|
|
- for (Map map : purchaseinMaps){
|
|
+
|
|
- JSONObject jsonObject=mapList5.getJSONObject(0);
|
|
+
|
|
- List<Map<String,Object>> mapItems5= (List<Map<String,Object>>) jsonObject.get("DETAILList");
|
|
+
|
|
- for (Map itemMap5 : mapItems5){
|
|
+
|
|
- if(itemMap5.get("size").equals(map.get("cFree2"))&&(Double.parseDouble( itemMap5.get("IQUANTITY").toString())
|
|
+
|
|
- ==Double.parseDouble( map.get("iQuantity").toString()))&&!itemMap5.containsKey("AUTOID_SO")){
|
|
+
|
|
-
|
|
+
|
|
- itemMap5.put("AUTOID_PO",map.get("AutoID"));
|
|
+
|
|
- }
|
|
+
|
|
- }
|
|
+
|
|
- System.out.println("mapItems4\t"+mapItems5);
|
|
+
|
|
- }
|
|
+
|
|
- }
|
|
+
|
|
|
|
|
|
- if(!((Map) mapList.get(0)).get("CACCID").toString().equals("102")){
|
|
+
|
|
- text(mapList5,mapt.get("ordertype")+"发票单");
|
|
+
|
|
- JSONArray resturn5 = InterfaceConnUtils.doPost(mapList5,"purinvoice_import");
|
|
+
|
|
- recording=result(main,resturn5,mapt.get("ordertype")+"发票单",((Map) mapList.get(0)).get("CACCID").toString(),"2");
|
|
+
|
|
- recording(main,recording);
|
|
+
|
|
- this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn5.getJSONObject(0).get("U8ReceiptNo").toString()),"109");
|
|
+
|
|
- }
|
|
+
|
|
|
|
|
|
text(mapList3,"销售发货单");
|
|
text(mapList3,"销售发货单");
|
|
JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");
|
|
JSONArray resturn3 = InterfaceConnUtils.doPost(mapList3,"consignment_import");
|
|
@@ -1677,7 +1676,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
|
|
|
this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131");
|
|
this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131");
|
|
|
|
|
|
- List<Map<String,Object>> saleoutMaps= syPackingListTailoringMapper.getRdrecord32(saleoutName);
|
|
+
|
|
if(saleoutMaps!=null){
|
|
if(saleoutMaps!=null){
|
|
for (Map map : saleoutMaps){
|
|
for (Map map : saleoutMaps){
|
|
JSONObject jsonObject=mapList6.getJSONObject(0);
|
|
JSONObject jsonObject=mapList6.getJSONObject(0);
|
|
@@ -1694,7 +1693,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
text(mapList6,"销售发票单");
|
|
text(mapList6,"销售发票单");
|
|
JSONArray resturn6 = InterfaceConnUtils.doPost(mapList6,"saleinvoice_import");
|
|
JSONArray resturn6 = InterfaceConnUtils.doPost(mapList6,"saleinvoice_import");
|
|
recording=result(main,resturn6,"销售发票单",((Map) mapList.get(0)).get("CACCID").toString(),"5");
|
|
recording=result(main,resturn6,"销售发票单",((Map) mapList.get(0)).get("CACCID").toString(),"5");
|
|
- recording(main,recording);
|
|
+ recording(main,recording);*/
|
|
|
|
|
|
return mapList.getJSONObject(0).get("CACCID").toString()+"账套推送成功!";
|
|
return mapList.getJSONObject(0).get("CACCID").toString()+"账套推送成功!";
|
|
}
|
|
}
|
|
@@ -2033,7 +2032,17 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
jsonObject.put("CINVCODE",item.getInventoryCode());
|
|
jsonObject.put("CINVCODE",item.getInventoryCode());
|
|
jsonObject.put("CDEFINE28",item.getSmallPo());
|
|
jsonObject.put("CDEFINE28",item.getSmallPo());
|
|
jsonObject.put("POAUTOIDCOL","Autoid");
|
|
jsonObject.put("POAUTOIDCOL","Autoid");
|
|
- jsonObject.put("CBMEMO",syPackingListTailoring.getMemo());
|
|
+
|
|
|
|
+ String istc2=item.getIsTc();
|
|
|
|
+ if (istc2!=null&&istc2.equals("1")){
|
|
|
|
+ if(item.getMemo()!=null){
|
|
|
|
+ item.setMemo(item.getMemo()+"TC证书");
|
|
|
|
+ }else{
|
|
|
|
+ item.setMemo("TC证书");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ jsonObject.put("CBMEMO",item.getMemo());
|
|
|
|
+
|
|
for (Map<String,Object> map : invoices){
|
|
for (Map<String,Object> map : invoices){
|
|
if(Double.parseDouble(map.get("iQuantity").toString())==Double.parseDouble(jsonObject.get("IQUANTITY").toString())&&
|
|
if(Double.parseDouble(map.get("iQuantity").toString())==Double.parseDouble(jsonObject.get("IQUANTITY").toString())&&
|
|
map.get("cInvCode").toString().equalsIgnoreCase(item.getInventoryCode())&&map.get("cFree2").equals(item.getSize())
|
|
map.get("cInvCode").toString().equalsIgnoreCase(item.getInventoryCode())&&map.get("cFree2").equals(item.getSize())
|
|
@@ -2181,7 +2190,15 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
jsonObject.put("size",item.getSize());
|
|
jsonObject.put("size",item.getSize());
|
|
jsonObject.put("CINVCODE",item.getInventoryCode());
|
|
jsonObject.put("CINVCODE",item.getInventoryCode());
|
|
jsonObject.put("DISAUTOIDCOL","AUTOID");
|
|
jsonObject.put("DISAUTOIDCOL","AUTOID");
|
|
- jsonObject.put("CBMEMO",syPackingListTailoring.getMemo());
|
|
+ String istc2=item.getIsTc();
|
|
|
|
+ if (istc2!=null&&istc2.equals("1")){
|
|
|
|
+ if(item.getMemo()!=null){
|
|
|
|
+ item.setMemo(item.getMemo()+"TC证书");
|
|
|
|
+ }else{
|
|
|
|
+ item.setMemo("TC证书");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ jsonObject.put("CBMEMO",item.getMemo());
|
|
for (Map<String,Object> map : invoices){
|
|
for (Map<String,Object> map : invoices){
|
|
if(Double.parseDouble(map.get("iQuantity").toString())==Double.parseDouble(jsonObject.get("IQUANTITY").toString())&&
|
|
if(Double.parseDouble(map.get("iQuantity").toString())==Double.parseDouble(jsonObject.get("IQUANTITY").toString())&&
|
|
map.get("cInvCode").toString().equalsIgnoreCase(item.getInventoryCode()) &&jsonObject.get("size").equals(item.getSize())
|
|
map.get("cInvCode").toString().equalsIgnoreCase(item.getInventoryCode()) &&jsonObject.get("size").equals(item.getSize())
|