|
@@ -182,7 +182,7 @@ public class SySOAndOMController extends JeecgController<SySOAndOM, ISySOAndOMSe
|
|
|
syOrderDataItem.setGarmentFactory(syOrderData.getGarmentFactory());
|
|
syOrderDataItem.setGarmentFactory(syOrderData.getGarmentFactory());
|
|
|
}
|
|
}
|
|
|
if (syOrderDataItem.getOmpoIdItem() != null && sy.getAccount() != null) {
|
|
if (syOrderDataItem.getOmpoIdItem() != null && sy.getAccount() != null) {
|
|
|
- List<String> rsup = queryRSupplier(syOrderDataItem.getOmpoIdItem(), sy.getAccount());
|
|
|
|
|
|
|
+ List<String> rsup = queryRSupplier(syOrderDataItem.getOmpoIdItem(), sy.getAccount(),syOrderDataItem.getSupplier());
|
|
|
if (rsup.size() > 0) {
|
|
if (rsup.size() > 0) {
|
|
|
syOrderDataItem.setRSupplierCode(rsup.get(0));
|
|
syOrderDataItem.setRSupplierCode(rsup.get(0));
|
|
|
syOrderDataItem.setRSupplier(rsup.get(1));
|
|
syOrderDataItem.setRSupplier(rsup.get(1));
|
|
@@ -230,7 +230,7 @@ public class SySOAndOMController extends JeecgController<SySOAndOM, ISySOAndOMSe
|
|
|
syOrderDataItem.setGarmentFactory(syOrderData.getGarmentFactory());
|
|
syOrderDataItem.setGarmentFactory(syOrderData.getGarmentFactory());
|
|
|
}
|
|
}
|
|
|
if (syOrderDataItem.getOmpoIdItem() != null && sy.getAccount() != null) {
|
|
if (syOrderDataItem.getOmpoIdItem() != null && sy.getAccount() != null) {
|
|
|
- List<String> rsup = queryRSupplier(syOrderDataItem.getOmpoIdItem(), sy.getAccount());
|
|
|
|
|
|
|
+ List<String> rsup = queryRSupplier(syOrderDataItem.getOmpoIdItem(), sy.getAccount(),syOrderDataItem.getSupplier());
|
|
|
if (rsup.size() > 0) {
|
|
if (rsup.size() > 0) {
|
|
|
syOrderDataItem.setRSupplierCode(rsup.get(0));
|
|
syOrderDataItem.setRSupplierCode(rsup.get(0));
|
|
|
syOrderDataItem.setRSupplier(rsup.get(1));
|
|
syOrderDataItem.setRSupplier(rsup.get(1));
|
|
@@ -317,7 +317,7 @@ public class SySOAndOMController extends JeecgController<SySOAndOM, ISySOAndOMSe
|
|
|
/*
|
|
/*
|
|
|
* 查询染厂供应商编码 供应商名称
|
|
* 查询染厂供应商编码 供应商名称
|
|
|
* */
|
|
* */
|
|
|
- public List<String> queryRSupplier(String id,String zhangtao){
|
|
|
|
|
|
|
+ public List<String> queryRSupplier(String id,String zhangtao,String supplier){
|
|
|
/*
|
|
/*
|
|
|
查询账套用于判断
|
|
查询账套用于判断
|
|
|
*/
|
|
*/
|
|
@@ -336,6 +336,26 @@ public class SySOAndOMController extends JeecgController<SySOAndOM, ISySOAndOMSe
|
|
|
index++;
|
|
index++;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ List<Map<String, Object>> supplierList = new ArrayList<>();
|
|
|
|
|
+ String supplierSql="select cvccode from Vendor where cVenAbbName='"+supplier+"'";
|
|
|
|
|
+ String cvccode="";
|
|
|
|
|
+ if(zhangtao.equals(account[0])){
|
|
|
|
|
+ supplierList= senYuDataSourceOne.queryForList(supplierSql);
|
|
|
|
|
+ }else if(zhangtao.equals(account[1])){
|
|
|
|
|
+ supplierList= senYuDataSourceTwo.queryForList(supplierSql);
|
|
|
|
|
+ }else if(zhangtao.equals(account[2])){
|
|
|
|
|
+ supplierList= senYuDataSourceThree.queryForList(supplierSql);
|
|
|
|
|
+ }
|
|
|
|
|
+ List<JSONObject> supplierObjects = JsonChangeUtils.toJSONObject(supplierList);
|
|
|
|
|
+ if(supplierObjects.size()>0){
|
|
|
|
|
+ for (JSONObject json:supplierObjects) {
|
|
|
|
|
+ cvccode= (String) json.get("cvccode");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!cvccode.equals("0105")){
|
|
|
|
|
+ return new ArrayList<>();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
String sql = "select om.cVenCode as cVenCode,v.cVenAbbName as cVenName From OM_MODetails o " +
|
|
String sql = "select om.cVenCode as cVenCode,v.cVenAbbName as cVenName From OM_MODetails o " +
|
|
|
"join ( " +
|
|
"join ( " +
|
|
|
" select ommos.isosid,ommom.cInvCode from " +
|
|
" select ommos.isosid,ommom.cInvCode from " +
|