|
@@ -93,12 +93,13 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
"mo.cFree5 as cFree5,mo.cFree6 as cFree6,mo.cFree7 as cFree7,mo.cFree8 as cFree8,mo.cFree9 as cFree9,mo.cFree10 as cFree10,mo.iQuantity as 'customerDemandQty',mo.cUnitID as 'customerUomCode'," +
|
|
|
"'"+map.get("customerDemandDate")+"' as 'customerDemandDate',mo.iMoney as 'iMoney'," +
|
|
|
"mo.iTax as lineAttributeDecimal1,mo.cbCloseDate as lineAttributeDatetime1,mo.cDefine24 as lineAttributeString9," +
|
|
|
- "mo.iTaxPrice as 'customerPrice',(mo.iPerTaxRate/100) as 'lineTaxRate',mo.iSum as 'amount'," +
|
|
|
+ "mo.iTaxPrice as 'customerPrice',(mo.iPerTaxRate/100) as 'lineTaxRate',mo.iSum as 'amount',ex.cbdefine2 as lineAttributeString7,ex.cbdefine3 as lineAttributeString8," +
|
|
|
"mo.cDefine28 as 'lineAttributeString1',mo.cDefine32 as 'lineAttributeString2',mo.cDefine29 as 'lineAttributeString3'," +
|
|
|
"mo.cDefine30 as 'lineAttributeString4',mo.cbMemo as 'lineAttributeString5',mo.cDefine22 as lineAttributeString6,'' as lineAttributeString7,'' as lineAttributeString8," +
|
|
|
"cFree1 as 'color','' as 'customerNumber',mo.iUnitPrice as supplierExTaxPrice,'"+map.get("dVerifyDate")+"' as lineAttributeDatetime2," +
|
|
|
"'' as externalLineNum,'' as itemAttrId,'"+map.get("moId")+"' as poId from OM_MODetails mo " +
|
|
|
- "left join Inventory inv on mo.cInvCode = inv.cInvCode"+
|
|
|
+ "left join Inventory inv on mo.cInvCode = inv.cInvCode "+
|
|
|
+ "left join OM_MOdetails_extradefine ex on mo.MODetailsID = ex.MODetailsID "+
|
|
|
" where mo.MOID = "+map.get("moId");
|
|
|
List<Map<String, Object>> list = senYuDataSourceOne.queryForList(sql);
|
|
|
for(Map<String, Object> mapList:list){
|
|
@@ -120,12 +121,13 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
"mo.cFree5 as cFree5,mo.cFree6 as cFree6,mo.cFree7 as cFree7,mo.cFree8 as cFree8,mo.cFree9 as cFree9,mo.cFree10 as cFree10,mo.iQuantity as 'customerDemandQty',mo.cUnitID as 'customerUomCode'," +
|
|
|
"'"+map.get("customerDemandDate")+"' as 'customerDemandDate',mo.iMoney as 'iMoney'," +
|
|
|
"mo.iTax as lineAttributeDecimal1,mo.cbCloseDate as lineAttributeDatetime1,mo.cDefine24 as lineAttributeString9," +
|
|
|
- "mo.iTaxPrice as 'customerPrice',(mo.iPerTaxRate/100) as 'lineTaxRate',mo.iSum as 'amount'," +
|
|
|
+ "mo.iTaxPrice as 'customerPrice',(mo.iPerTaxRate/100) as 'lineTaxRate',mo.iSum as 'amount',ex.cbdefine2 as lineAttributeString7,ex.cbdefine3 as lineAttributeString8," +
|
|
|
"mo.cDefine28 as 'lineAttributeString1',mo.cDefine32 as 'lineAttributeString2',mo.cDefine29 as 'lineAttributeString3'," +
|
|
|
"mo.cDefine30 as 'lineAttributeString4',mo.cbMemo as 'lineAttributeString5',mo.cDefine22 as lineAttributeString6,'' as lineAttributeString7,'' as lineAttributeString8," +
|
|
|
"cFree1 as 'color','' as 'customerNumber',mo.iUnitPrice as supplierExTaxPrice,'"+map.get("dVerifyDate")+"' as lineAttributeDatetime2," +
|
|
|
"'' as externalLineNum,'' as itemAttrId,'"+map.get("moId")+"' as poId from OM_MODetails mo " +
|
|
|
- "left join Inventory inv on mo.cInvCode = inv.cInvCode"+
|
|
|
+ "left join Inventory inv on mo.cInvCode = inv.cInvCode "+
|
|
|
+ "left join OM_MOdetails_extradefine ex on mo.MODetailsID = ex.MODetailsID "+
|
|
|
" where mo.MOID = "+map.get("moId");
|
|
|
List<Map<String, Object>> list = senYuDataSourceTwo.queryForList(sql);
|
|
|
for(Map<String, Object> mapList:list){
|
|
@@ -147,12 +149,13 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
"mo.cFree5 as cFree5,mo.cFree6 as cFree6,mo.cFree7 as cFree7,mo.cFree8 as cFree8,mo.cFree9 as cFree9,mo.cFree10 as cFree10,mo.iQuantity as 'customerDemandQty',mo.cUnitID as 'customerUomCode'," +
|
|
|
"'"+map.get("customerDemandDate")+"' as 'customerDemandDate',mo.iMoney as 'iMoney'," +
|
|
|
"mo.iTax as lineAttributeDecimal1,mo.cbCloseDate as lineAttributeDatetime1,mo.cDefine24 as lineAttributeString9," +
|
|
|
- "mo.iTaxPrice as 'customerPrice',(mo.iPerTaxRate/100) as 'lineTaxRate',mo.iSum as 'amount'," +
|
|
|
+ "mo.iTaxPrice as 'customerPrice',(mo.iPerTaxRate/100) as 'lineTaxRate',mo.iSum as 'amount',ex.cbdefine2 as lineAttributeString7,ex.cbdefine3 as lineAttributeString8," +
|
|
|
"mo.cDefine28 as 'lineAttributeString1',mo.cDefine32 as 'lineAttributeString2',mo.cDefine29 as 'lineAttributeString3'," +
|
|
|
"mo.cDefine30 as 'lineAttributeString4',mo.cbMemo as 'lineAttributeString5',mo.cDefine22 as lineAttributeString6,'' as lineAttributeString7,'' as lineAttributeString8," +
|
|
|
"cFree1 as 'color','' as 'customerNumber',mo.iUnitPrice as supplierExTaxPrice,'"+map.get("dVerifyDate")+"' as lineAttributeDatetime2," +
|
|
|
"'' as externalLineNum,'' as itemAttrId,'"+map.get("moId")+"' as poId from OM_MODetails mo " +
|
|
|
- "left join Inventory inv on mo.cInvCode = inv.cInvCode"+
|
|
|
+ "left join Inventory inv on mo.cInvCode = inv.cInvCode "+
|
|
|
+ "left join OM_MOdetails_extradefine ex on mo.MODetailsID = ex.MODetailsID "+
|
|
|
" where mo.MOID = "+map.get("moId");
|
|
|
List<Map<String, Object>> list = iSenYuDataSourceThree.queryForList(sql);
|
|
|
for(Map<String, Object> mapList:list){
|
|
@@ -210,11 +213,12 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
"'' as receivingInventoryOrgCode,mo.cFree1 as cFree1,mo.cFree2 as cFree2,mo.cFree3 as cFree3,mo.cFree4 as cFree4," +
|
|
|
"mo.cFree5 as cFree5,mo.cFree6 as cFree6,mo.cFree7 as cFree7,mo.cFree8 as cFree8,mo.cFree9 as cFree9,mo.cFree10 as cFree10,mo.iQuantity as 'customerDemandQty',mo.cUnitID as 'customerUomCode'," +
|
|
|
"'"+map.get("customerDemandDate")+"' as 'customerDemandDate',mo.iMoney as 'iMoney',mo.iUnitPrice as supplierExTaxPrice,'"+map.get("cAuditDate")+"' as lineAttributeDatetime2," +
|
|
|
- "mo.iTax as lineAttributeDecimal1,mo.cbCloseDate as lineAttributeDatetime1,mo.cDefine24 as lineAttributeString9," +
|
|
|
+ "mo.iTax as lineAttributeDecimal1,mo.cbCloseDate as lineAttributeDatetime1,mo.cDefine24 as lineAttributeString9,ex.cbdefine2 as lineAttributeString7,ex.cbdefine3 as lineAttributeString8," +
|
|
|
"mo.iTaxPrice as 'customerPrice',(mo.iPerTaxRate/100) as 'lineTaxRate',mo.iSum as 'amount',mo.cDefine28 as 'lineAttributeString1'," +
|
|
|
"mo.cDefine32 as 'lineAttributeString2',mo.cDefine29 as 'lineAttributeString3','' as 'attributeString1',mo.cDefine30 as 'lineAttributeString4'," +
|
|
|
"mo.cbMemo as 'lineAttributeString5',mo.cDefine22 as lineAttributeString6,'' as lineAttributeString7,'' as lineAttributeString8,'' as 'color'," +
|
|
|
- "'' as 'externalLineNum',0 as 'itemAttrId' from PO_Podetails mo left join Inventory inv on mo.cInvCode = inv.cInvCode"+
|
|
|
+ "'' as 'externalLineNum',0 as 'itemAttrId' from PO_Podetails mo left join Inventory inv on mo.cInvCode = inv.cInvCode " +
|
|
|
+ "left join PO_Podetails_extradefine ex on mo.ID = ex.ID"+
|
|
|
" where mo.POID = '"+map.get("moId")+"'";
|
|
|
List<Map<String, Object>> list = senYuDataSourceOne.queryForList(sql);
|
|
|
for(Map<String, Object> mapList:list){
|
|
@@ -235,11 +239,12 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
"'' as receivingInventoryOrgCode,mo.cFree1 as cFree1,mo.cFree2 as cFree2,mo.cFree3 as cFree3,mo.cFree4 as cFree4," +
|
|
|
"mo.cFree5 as cFree5,mo.cFree6 as cFree6,mo.cFree7 as cFree7,mo.cFree8 as cFree8,mo.cFree9 as cFree9,mo.cFree10 as cFree10,mo.iQuantity as 'customerDemandQty',mo.cUnitID as 'customerUomCode'," +
|
|
|
"'"+map.get("customerDemandDate")+"' as 'customerDemandDate',mo.iMoney as 'iMoney',mo.iUnitPrice as supplierExTaxPrice,'"+map.get("cAuditDate")+"' as lineAttributeDatetime2," +
|
|
|
- "mo.iTax as lineAttributeDecimal1,mo.cbCloseDate as lineAttributeDatetime1,mo.cDefine24 as lineAttributeString9," +
|
|
|
+ "mo.iTax as lineAttributeDecimal1,mo.cbCloseDate as lineAttributeDatetime1,mo.cDefine24 as lineAttributeString9,ex.cbdefine2 as lineAttributeString7,ex.cbdefine3 as lineAttributeString8," +
|
|
|
"mo.iTaxPrice as 'customerPrice',(mo.iPerTaxRate/100) as 'lineTaxRate',mo.iSum as 'amount',mo.cDefine28 as 'lineAttributeString1'," +
|
|
|
"mo.cDefine32 as 'lineAttributeString2',mo.cDefine29 as 'lineAttributeString3','' as 'attributeString1',mo.cDefine30 as 'lineAttributeString4'," +
|
|
|
"mo.cbMemo as 'lineAttributeString5',mo.cDefine22 as lineAttributeString6,'' as lineAttributeString7,'' as lineAttributeString8,'' as 'color'," +
|
|
|
- "'' as 'externalLineNum',0 as 'itemAttrId' from PO_Podetails mo left join Inventory inv on mo.cInvCode = inv.cInvCode"+
|
|
|
+ "'' as 'externalLineNum',0 as 'itemAttrId' from PO_Podetails mo left join Inventory inv on mo.cInvCode = inv.cInvCode " +
|
|
|
+ "left join PO_Podetails_extradefine ex on mo.ID = ex.ID"+
|
|
|
" where mo.POID = '"+map.get("moId")+"'";
|
|
|
List<Map<String, Object>> list = senYuDataSourceTwo.queryForList(sql);
|
|
|
for(Map<String, Object> mapList:list){
|
|
@@ -259,11 +264,12 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
"'' as receivingInventoryOrgCode,mo.cFree1 as cFree1,mo.cFree2 as cFree2,mo.cFree3 as cFree3,mo.cFree4 as cFree4," +
|
|
|
"mo.cFree5 as cFree5,mo.cFree6 as cFree6,mo.cFree7 as cFree7,mo.cFree8 as cFree8,mo.cFree9 as cFree9,mo.cFree10 as cFree10,mo.iQuantity as 'customerDemandQty',mo.cUnitID as 'customerUomCode'," +
|
|
|
"'"+map.get("customerDemandDate")+"' as 'customerDemandDate',mo.iMoney as 'iMoney',mo.iUnitPrice as supplierExTaxPrice,'"+map.get("cAuditDate")+"' as lineAttributeDatetime2," +
|
|
|
- "mo.iTax as lineAttributeDecimal1,mo.cbCloseDate as lineAttributeDatetime1,mo.cDefine24 as lineAttributeString9," +
|
|
|
+ "mo.iTax as lineAttributeDecimal1,mo.cbCloseDate as lineAttributeDatetime1,mo.cDefine24 as lineAttributeString9,ex.cbdefine2 as lineAttributeString7,ex.cbdefine3 as lineAttributeString8," +
|
|
|
"mo.iTaxPrice as 'customerPrice',(mo.iPerTaxRate/100) as 'lineTaxRate',mo.iSum as 'amount',mo.cDefine28 as 'lineAttributeString1'," +
|
|
|
"mo.cDefine32 as 'lineAttributeString2',mo.cDefine29 as 'lineAttributeString3','' as 'attributeString1',mo.cDefine30 as 'lineAttributeString4'," +
|
|
|
"mo.cbMemo as 'lineAttributeString5',mo.cDefine22 as lineAttributeString6,'' as lineAttributeString7,'' as lineAttributeString8,'' as 'color'," +
|
|
|
- "'' as 'externalLineNum',0 as 'itemAttrId' from PO_Podetails mo left join Inventory inv on mo.cInvCode = inv.cInvCode"+
|
|
|
+ "'' as 'externalLineNum',0 as 'itemAttrId' from PO_Podetails mo left join Inventory inv on mo.cInvCode = inv.cInvCode " +
|
|
|
+ "left join PO_Podetails_extradefine ex on mo.ID = ex.ID "+
|
|
|
" where mo.POID = '"+map.get("moId")+"'";
|
|
|
List<Map<String, Object>> list = iSenYuDataSourceThree.queryForList(sql);
|
|
|
for(Map<String, Object> mapList:list){
|