From f2935e5a66f738dbdecc46391aa3200f30fb98a7 Mon Sep 17 00:00:00 2001 From: e Date: Sat, 8 Dec 2018 22:19:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E5=8F=8B=E5=A2=9E=E5=8A=A0=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zzjee/wmutil/yyUtil.java | 40 ++++++++++++++++------ 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/zzjee/wmutil/yyUtil.java b/src/main/java/com/zzjee/wmutil/yyUtil.java index 87b56995..d628574c 100644 --- a/src/main/java/com/zzjee/wmutil/yyUtil.java +++ b/src/main/java/com/zzjee/wmutil/yyUtil.java @@ -56,7 +56,7 @@ public class yyUtil { resultdw = DynamicDBUtil.findList(dbKey, SqlUtil.jeecgCreatePageSql(dbKey, querySql, queryparams, 1, 1000000)); } - querySql = "select * from InventoryClass"; + querySql = "select * from InventoryClass where iInvCGrade = '1' "; if(StringUtils.isNotBlank(dbKey)) { resultgt = DynamicDBUtil.findList(dbKey, SqlUtil.jeecgCreatePageSql(dbKey, querySql, queryparams, 1, 1000000)); } @@ -89,6 +89,8 @@ public class yyUtil { BaUnitEntity mdn = new BaUnitEntity(); mdn.setUnitCode(prodbo.get("cComunitCode").toString()); mdn.setUnitZhName(prodbo.get("cComUnitName").toString()); + mdn.setUnitChange(prodbo.get("iChangeRate").toString()); + try { BaUnitEntity baunit = systemService.findUniqueByProperty( BaUnitEntity.class, "unitCode", mdn.getUnitCode()); @@ -110,30 +112,47 @@ public class yyUtil { String ShpBianMa = prodbo.get("cInvCode").toString(); MdGoodsEntity mdn = new MdGoodsEntity(); mdn.setShpBianMa(ShpBianMa); - mdn.setChlShl("1"); mdn.setSuoShuKeHu("hwm"); mdn.setShpMingCheng(prodbo.get("cInvName").toString()); mdn.setBzhiQi("360"); - mdn.setChpShuXing(prodbo.get("cInvCCode").toString()); + mdn.setChpShuXing(prodbo.get("cInvCCode").toString().substring(0,2)); // mdn.setChpShuXing("其他"); - mdn.setJshDanWei(prodbo.get("cComUnitCode").toString()); + mdn.setShpGuiGe(prodbo.get("cInvStd").toString()); + mdn.setJshDanWei(prodbo.get("cComUnitCode").toString());//拆零单位 BaUnitEntity baunit = systemService.findUniqueByProperty( BaUnitEntity.class, "unitCode", mdn.getJshDanWei()); if (baunit !=null){ - mdn.setJshDanWei(baunit.getUnitZhName()); - mdn.setShlDanWei(baunit.getUnitZhName()); + mdn.setJshDanWei(baunit.getUnitZhName());//拆零单位 } + mdn.setShlDanWei(prodbo.get("cSAComUnitCode").toString());//单位 + if(StringUtil.isEmpty(mdn.getShlDanWei())){ + mdn.setChlShl("1"); + mdn.setChlKongZhi("N"); + mdn.setShlDanWei(baunit.getUnitZhName()); + + }else{ + try{ + BaUnitEntity baunitz = systemService.findUniqueByProperty( + BaUnitEntity.class, "unitCode", mdn.getShlDanWei()); + if (baunitz !=null){ + mdn.setShlDanWei(baunitz.getUnitZhName()); + } + mdn.setChlShl(baunitz.getUnitChange()); + mdn.setChlKongZhi("Y"); + }catch (Exception e){ + + } + + } try { mdn.setShpTiaoMa(prodbo.get("cBarCode").toString()); - }catch (Exception e){ } mdn.setCfWenCeng("低温"); mdn.setJiZhunwendu("1"); mdn.setTiJiCm("1"); mdn.setZhlKg("1"); - mdn.setChlKongZhi("N"); mdn.setJfShpLei("10"); mdn.setMpCengGao("99"); mdn.setMpDanCeng("99"); @@ -264,7 +283,9 @@ public class yyUtil { }catch (Exception e){ } - String querySqldetail = "select * from DispatchLists where DLID = '"+imcuscode+"'"; +// String querySqldetail = "select * from DispatchLists where cWhCode = '28' and DLID = '"+imcuscode+"'"; + String querySqldetail = "select * from DispatchLists where DLID = '"+imcuscode+"'"; + if (resultdetail!=null){ resultdetail.clear(); } @@ -304,7 +325,6 @@ public class yyUtil { } public static void addOtherIn(Map params){ String to_account = params.get("to_account").toString(); //提供方id String page_index = args[1];// 页号 - String jsonBody = params.get("jsonBody").toString(); OtherInService otherInService = new OtherInService(); try {