|
@@ -485,7 +485,7 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
if(map.get("pkorg").equals("one")){
|
|
|
|
|
|
String sql1 = "select '"+map.get("accId")+"' as accId,'"+map.get("MOID")+"' as poId,'"+map.get("poNum")+"' as poNum," +
|
|
|
- "'N0201002142' as 'customerItemCode','' as 'itemAttrId','' as customerItemId," +
|
|
|
+ "mo.cInvCode as 'customerItemCode','' as 'itemAttrId','' as customerItemId," +
|
|
|
"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," +
|
|
|
"'' as poOutsourceId,''as poOutsourceNum,'' as 'customerUomId','' as customerUomCode,0 as customerPromiseQty, " +
|
|
@@ -498,7 +498,7 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
}else if(map.get("pkorg").equals("two")){
|
|
|
|
|
|
String sql1 = "select '"+map.get("accId")+"' as accId,'"+map.get("MOID")+"' as poId,'"+map.get("poNum")+"' as poNum," +
|
|
|
- "'N0201002142' as 'customerItemCode','' as 'itemAttrId','' as customerItemId," +
|
|
|
+ "mo.cInvCode as 'customerItemCode','' as 'itemAttrId','' as customerItemId," +
|
|
|
"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," +
|
|
|
"'' as poOutsourceId,''as poOutsourceNum,'' as 'customerUomId','' as customerUomCode,0 as customerPromiseQty, " +
|
|
@@ -511,7 +511,7 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
}else if(map.get("pkorg").equals("three")){
|
|
|
|
|
|
String sql1 = "select '"+map.get("accId")+"' as accId,'"+map.get("MOID")+"' as poId,'"+map.get("poNum")+"' as poNum," +
|
|
|
- "'N0201002142' as 'customerItemCode','' as 'itemAttrId','' as customerItemId," +
|
|
|
+ "mo.cInvCode as 'customerItemCode','' as 'itemAttrId','' as customerItemId," +
|
|
|
"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," +
|
|
|
"'' as poOutsourceId,''as poOutsourceNum,'' as 'customerUomId','' as customerUomCode,0 as customerPromiseQty, " +
|