|
@@ -470,8 +470,8 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
"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, " +
|
|
|
- "cDefine25 as outsourceAttributeString1,cDefine24 as 'outsourceAttributeString2',cDefine27 as 'outsourceAttributeString3'" +
|
|
|
- " from OM_MOMaterials where MODetailsID = '"+map.get("MODetailsID")+"'";
|
|
|
+ "mo.cDefine25 as outsourceAttributeString1,mo.cDefine24 as 'outsourceAttributeString2',mo.cDefine27 as 'outsourceAttributeString3'" +
|
|
|
+ " from OM_MOMaterials mo where MODetailsID = '"+map.get("MODetailsID")+"'";
|
|
|
List<Map<String, Object>> list = senYuDataSourceOne.queryForList(sql1);
|
|
|
//子表转JSON
|
|
|
List<JSONObject> json = toListJson(list);
|
|
@@ -483,8 +483,8 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
"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, " +
|
|
|
- "cDefine25 as outsourceAttributeString1,cDefine24 as 'outsourceAttributeString2',cDefine27 as 'outsourceAttributeString3'" +
|
|
|
- " from OM_MOMaterials where MODetailsID = '"+map.get("MODetailsID")+"'";
|
|
|
+ "mo.cDefine25 as outsourceAttributeString1,mo.cDefine24 as 'outsourceAttributeString2',mo.cDefine27 as 'outsourceAttributeString3'" +
|
|
|
+ " from OM_MOMaterials mo where MODetailsID = '"+map.get("MODetailsID")+"'";
|
|
|
List<Map<String, Object>> list = senYuDataSourceTwo.queryForList(sql1);
|
|
|
//子表转JSON
|
|
|
List<JSONObject> json = toListJson(list);
|
|
@@ -496,8 +496,8 @@ public class JsonChangeUtils implements ApplicationContextAware{
|
|
|
"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, " +
|
|
|
- "cDefine25 as outsourceAttributeString1,cDefine24 as 'outsourceAttributeString2',cDefine27 as 'outsourceAttributeString3'" +
|
|
|
- " from OM_MOMaterials where MODetailsID = '"+map.get("MODetailsID")+"'";
|
|
|
+ "mo.cDefine25 as outsourceAttributeString1,mo.cDefine24 as 'outsourceAttributeString2',mo.cDefine27 as 'outsourceAttributeString3'" +
|
|
|
+ " from OM_MOMaterials mo where MODetailsID = '"+map.get("MODetailsID")+"'";
|
|
|
List<Map<String, Object>> list = iSenYuDataSourceThree.queryForList(sql1);
|
|
|
//子表转JSON
|
|
|
List<JSONObject> json = toListJson(list);
|