提交 b77efe57 authored 作者: 李炎's avatar 李炎

明细添加主体编号

上级 0880c327
...@@ -68,7 +68,7 @@ public class SoSsReceiptServiceImpl implements SoSsReceiptService { ...@@ -68,7 +68,7 @@ public class SoSsReceiptServiceImpl implements SoSsReceiptService {
public Map changeGeta(SoSsRequestVo soSsRequestVo) { public Map changeGeta(SoSsRequestVo soSsRequestVo) {
Map paramsMap = new HashMap(); Map paramsMap = new HashMap();
Map Data = new LinkedHashMap(); Map Data = new LinkedHashMap();
Data.put("Top", "100");//返回行数 Data.put("Top", soSsRequestVo.getLimit());//返回行数
Data.put("PageSize", soSsRequestVo.getLimit());//每页行数 Data.put("PageSize", soSsRequestVo.getLimit());//每页行数
Data.put("PageIndex", soSsRequestVo.getOffset());//第几页 Data.put("PageIndex", soSsRequestVo.getOffset());//第几页
if (checkFilter(soSsRequestVo)) { if (checkFilter(soSsRequestVo)) {
...@@ -119,6 +119,7 @@ public class SoSsReceiptServiceImpl implements SoSsReceiptService { ...@@ -119,6 +119,7 @@ public class SoSsReceiptServiceImpl implements SoSsReceiptService {
Map listDateMap = JSON.parseObject(o.toString(), Map.class, Feature.OrderedField); Map listDateMap = JSON.parseObject(o.toString(), Map.class, Feature.OrderedField);
Map masterField = new LinkedHashMap<>(); Map masterField = new LinkedHashMap<>();
Map masterFieldVal = new LinkedHashMap<>(); Map masterFieldVal = new LinkedHashMap<>();
masterFieldVal.put("ERPSystemNumber",listDateMap.get(FNumber));//编号
masterFieldVal.put("customerName", listDateMap.get(FCustomer_DSPName));//客户名称 masterFieldVal.put("customerName", listDateMap.get(FCustomer_DSPName));//客户名称
masterFieldVal.put("MSBsTotalAmount", listDateMap.get(FAmountFor));//本次回款总金额 masterFieldVal.put("MSBsTotalAmount", listDateMap.get(FAmountFor));//本次回款总金额
masterFieldVal.put("MSBsDate", listDateMap.get(FDate));//回款日期 masterFieldVal.put("MSBsDate", listDateMap.get(FDate));//回款日期
...@@ -147,7 +148,8 @@ public class SoSsReceiptServiceImpl implements SoSsReceiptService { ...@@ -147,7 +148,8 @@ public class SoSsReceiptServiceImpl implements SoSsReceiptService {
for (Object o : list) { for (Object o : list) {
Map listDateMap = JSON.parseObject(o.toString(), Map.class); Map listDateMap = JSON.parseObject(o.toString(), Map.class);
Map<String, Object> map = new LinkedHashMap(); Map<String, Object> map = new LinkedHashMap();
map.put("ERPUniCode", code+"_"+listDateMap.get("FIndex3")); map.put("ERPSystemNumber",code);//主体唯一
map.put("ERPUniCode", code+"_"+listDateMap.get("FIndex3"));//字体唯一
map.put("salesOrderNo", listDateMap.get(FEntryOrderNo));//销售订单编号 map.put("salesOrderNo", listDateMap.get(FEntryOrderNo));//销售订单编号
map.put("currentRemittanceAmount", listDateMap.get(FSettleAmountFor_3));//本次汇款金额 map.put("currentRemittanceAmount", listDateMap.get(FSettleAmountFor_3));//本次汇款金额
returnDate.put(apiName + i, new ArrayList<Map>() {{ returnDate.put(apiName + i, new ArrayList<Map>() {{
......
...@@ -75,7 +75,7 @@ public class SoSsSalesDeliveryServiceImpl implements SoSsSalesDeliveryService { ...@@ -75,7 +75,7 @@ public class SoSsSalesDeliveryServiceImpl implements SoSsSalesDeliveryService {
public Map changeGeta(SoSsRequestVo soSsRequestVo) { public Map changeGeta(SoSsRequestVo soSsRequestVo) {
Map paramsMap = new HashMap(); Map paramsMap = new HashMap();
Map Data = new LinkedHashMap(); Map Data = new LinkedHashMap();
Data.put("Top", "100");//返回行数 Data.put("Top", soSsRequestVo.getLimit());//返回行数
Data.put("PageSize", soSsRequestVo.getLimit());//每页行数 Data.put("PageSize", soSsRequestVo.getLimit());//每页行数
Data.put("PageIndex", soSsRequestVo.getOffset());//第几页 Data.put("PageIndex", soSsRequestVo.getOffset());//第几页
if (checkFilter(soSsRequestVo)) { if (checkFilter(soSsRequestVo)) {
...@@ -164,7 +164,8 @@ public class SoSsSalesDeliveryServiceImpl implements SoSsSalesDeliveryService { ...@@ -164,7 +164,8 @@ public class SoSsSalesDeliveryServiceImpl implements SoSsSalesDeliveryService {
// } // }
Map listDateMap = JSON.parseObject(o.toString(), Map.class); Map listDateMap = JSON.parseObject(o.toString(), Map.class);
Map<String, Object> map = new LinkedHashMap(); Map<String, Object> map = new LinkedHashMap();
map.put("ERPUniCode", listDateMap.get("FDetailID2")); map.put("ERPSystemNumber",code);//主体唯一
map.put("ERPUniCode", listDateMap.get("FDetailID2"));//子体唯一
map.put("productCode", JSONObject.fromObject(listDateMap.get(FItemID)).get("FNumber"));//产品编号 map.put("productCode", JSONObject.fromObject(listDateMap.get(FItemID)).get("FNumber"));//产品编号
map.put("productName", listDateMap.get(FItemName));//产品名称 map.put("productName", listDateMap.get(FItemName));//产品名称
map.put("chineseDescription", listDateMap.get(FEntrySelfB0164));//中文描述 map.put("chineseDescription", listDateMap.get(FEntrySelfB0164));//中文描述
......
...@@ -70,7 +70,7 @@ public class SoSsSalesInvoiceServiceImpl implements SoSsSalesInvoiceService { ...@@ -70,7 +70,7 @@ public class SoSsSalesInvoiceServiceImpl implements SoSsSalesInvoiceService {
public Map changeGeta(SoSsRequestVo soSsRequestVo) { public Map changeGeta(SoSsRequestVo soSsRequestVo) {
Map paramsMap = new HashMap(); Map paramsMap = new HashMap();
Map Data = new LinkedHashMap(); Map Data = new LinkedHashMap();
Data.put("Top", "100");//返回行数 Data.put("Top", soSsRequestVo.getLimit());//返回行数
Data.put("PageSize", soSsRequestVo.getLimit());//每页行数 Data.put("PageSize", soSsRequestVo.getLimit());//每页行数
Data.put("PageIndex", soSsRequestVo.getOffset());//第几页 Data.put("PageIndex", soSsRequestVo.getOffset());//第几页
if (checkFilter(soSsRequestVo)) { if (checkFilter(soSsRequestVo)) {
...@@ -153,7 +153,8 @@ public class SoSsSalesInvoiceServiceImpl implements SoSsSalesInvoiceService { ...@@ -153,7 +153,8 @@ public class SoSsSalesInvoiceServiceImpl implements SoSsSalesInvoiceService {
for (Object o : list) { for (Object o : list) {
Map listDateMap = JSON.parseObject(o.toString(), Map.class); Map listDateMap = JSON.parseObject(o.toString(), Map.class);
Map<String,Object> map = new LinkedHashMap(); Map<String,Object> map = new LinkedHashMap();
map.put("ERPUniCode", listDateMap.get("FDetailID2")); map.put("ERPSystemNumber",code);//主体唯一
map.put("ERPUniCode", listDateMap.get("FDetailID2"));//子体唯一
map.put("productCode", JSONObject.fromObject(listDateMap.get(FItemID)).get("FNumber"));//产品编码 map.put("productCode", JSONObject.fromObject(listDateMap.get(FItemID)).get("FNumber"));//产品编码
map.put("quantity", listDateMap.get(Fauxqty));//数量 map.put("quantity", listDateMap.get(Fauxqty));//数量
map.put("salesUnitPrice", listDateMap.get(FAuxPriceDiscount));//销售单价 map.put("salesUnitPrice", listDateMap.get(FAuxPriceDiscount));//销售单价
......
...@@ -73,7 +73,7 @@ public class SoSsSalesOrderServiceImpl implements SoSsSalesOrderService { ...@@ -73,7 +73,7 @@ public class SoSsSalesOrderServiceImpl implements SoSsSalesOrderService {
public Map changeGeta(SoSsRequestVo soSsRequestVo) { public Map changeGeta(SoSsRequestVo soSsRequestVo) {
Map paramsMap = new HashMap(); Map paramsMap = new HashMap();
Map Data = new LinkedHashMap(); Map Data = new LinkedHashMap();
Data.put("Top", "100");//返回行数 Data.put("Top", soSsRequestVo.getLimit());//返回行数
Data.put("PageSize", soSsRequestVo.getLimit());//每页行数 Data.put("PageSize", soSsRequestVo.getLimit());//每页行数
Data.put("PageIndex", soSsRequestVo.getOffset());//第几页 Data.put("PageIndex", soSsRequestVo.getOffset());//第几页
if (checkFilter(soSsRequestVo)) { if (checkFilter(soSsRequestVo)) {
...@@ -153,7 +153,8 @@ public class SoSsSalesOrderServiceImpl implements SoSsSalesOrderService { ...@@ -153,7 +153,8 @@ public class SoSsSalesOrderServiceImpl implements SoSsSalesOrderService {
for (Object o : list) { for (Object o : list) {
Map listDateMap = JSON.parseObject(o.toString(), Map.class); Map listDateMap = JSON.parseObject(o.toString(), Map.class);
Map<String, Object> map = new LinkedHashMap(); Map<String, Object> map = new LinkedHashMap();
map.put("ERPUniCode", listDateMap.get("FDetailID2")); map.put("ERPSystemNumber",code);//主体唯一
map.put("ERPUniCode", listDateMap.get("FDetailID2"));//子体唯一
map.put("productNumber", JSONObject.fromObject(listDateMap.get(FItemID)).get("FNumber"));//产品编号 map.put("productNumber", JSONObject.fromObject(listDateMap.get(FItemID)).get("FNumber"));//产品编号
map.put("correspondingCode", listDateMap.get("FMapNumber"));//对应代码 map.put("correspondingCode", listDateMap.get("FMapNumber"));//对应代码
map.put("quantity", listDateMap.get(Fauxqty));//数量 map.put("quantity", listDateMap.get(Fauxqty));//数量
......
...@@ -47,13 +47,14 @@ public class HttpClientUtil { ...@@ -47,13 +47,14 @@ public class HttpClientUtil {
// 总配置,主要涉及是以下两个参数,如果要作调整没有用到properties会比较后麻烦,但鉴于一经粘贴,随处可用的特点,就不再做依赖性配置化处理了. // 总配置,主要涉及是以下两个参数,如果要作调整没有用到properties会比较后麻烦,但鉴于一经粘贴,随处可用的特点,就不再做依赖性配置化处理了.
// 而且这个参数同一家公司基本不会变动. // 而且这个参数同一家公司基本不会变动.
static final int maxTotal = 500;// 最大总并发,很重要的参数 static final int maxTotal = 500;// 最大总并发,很重要的参数
static final int maxPerRoute = 100;// 每路并发,很重要的参数 static final int maxPerRoute = 100;// 每路并发,很重要的参数
// static final int maxPerRoute = 200;// 每路并发,很重要的参数
// 正常情况这里应该配成MAP或LIST // 正常情况这里应该配成MAP或LIST
// 细化配置参数,用来对每路参数做精细化处理,可以管控各ip的流量,比如默认配置请求baidu:80端口最大100个并发链接, // 细化配置参数,用来对每路参数做精细化处理,可以管控各ip的流量,比如默认配置请求baidu:80端口最大100个并发链接,
// static final String detailHostName = "http://www.baidu.com";// 每个细化配置之ip(不重要,在特殊场景很有用) // static final String detailHostName = "http://www.baidu.com";// 每个细化配置之ip(不重要,在特殊场景很有用)
static final String detailHostName = "http://123.58.109.39:86";// 每个细化配置之ip(不重要,在特殊场景很有用) //static final int detailPort = 80;// 每个细化配置之port(不重要,在特殊场景很有用)
static final int detailPort = 80;// 每个细化配置之port(不重要,在特殊场景很有用) static final String detailHostName = "http://123.58.109.39";// 每个细化配置之ip(不重要,在特殊场景很有用)
static final int detailPort = 86;// 每个细化配置之port(不重要,在特殊场景很有用)
static final int detailMaxPerRoute = 100;// 每个细化配置之最大并发数(不重要,在特殊场景很有用) static final int detailMaxPerRoute = 100;// 每个细化配置之最大并发数(不重要,在特殊场景很有用)
private static CloseableHttpClient getHttpClient() { private static CloseableHttpClient getHttpClient() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论