上下架读取商品名称

master
e 2019-07-22 11:27:08 +08:00
parent 51e90b9bb6
commit f4d4b02b1b
2 changed files with 28 additions and 0 deletions

View File

@ -324,6 +324,12 @@ public class WvStockController extends BaseController {
.getParameter("stttype").toString());
wmstt.setSttSta("计划中");
wmstt.setTinId(t.getBinId());
try{
MdCusEntity mdcus = systemService.findUniqueByProperty(MdCusEntity.class,"keHuBianMa",wmstt.getCusCode());
wmstt.setCusName(mdcus.getZhongWenQch());
}catch (Exception e){
}
systemService.save(wmstt);
systemService.addLog(message, Globals.Log_Type_UPDATE,
Globals.Log_Leavel_INFO);
@ -369,6 +375,12 @@ public class WvStockController extends BaseController {
.getParameter("stttype").toString());//01 托盘盘点 02 储位盘点
wmstt.setSttSta("计划中");
wmstt.setTinId(t.getBinId());
try{
MdCusEntity mdcus = systemService.findUniqueByProperty(MdCusEntity.class,"keHuBianMa",wmstt.getCusCode());
wmstt.setCusName(mdcus.getZhongWenQch());
}catch (Exception e){
}
systemService.save(wmstt);
systemService.addLog(message, Globals.Log_Type_UPDATE,
Globals.Log_Leavel_INFO);

View File

@ -1,4 +1,5 @@
package com.zzjee.wm.controller;
import com.zzjee.md.entity.MdCusEntity;
import com.zzjee.wm.entity.WmSttInGoodsEntity;
import com.zzjee.wm.entity.WvStockEntity;
import com.zzjee.wm.entity.WvStockSttBinEntity;
@ -202,6 +203,14 @@ public class WvStockSttBinController extends BaseController {
AjaxJson j = new AjaxJson();
message = "储位盘点添加成功";
try{
try{
MdCusEntity mdcus = systemService.findUniqueByProperty(MdCusEntity.class,"keHuBianMa",wvStockSttBin.getCusCode());
wvStockSttBin.setZhongWenQch(mdcus.getZhongWenQch());
}catch (Exception e){
}
wvStockSttBinService.save(wvStockSttBin);
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
}catch(Exception e){
@ -257,6 +266,13 @@ public class WvStockSttBinController extends BaseController {
wmstt.setTinId(t.getBinId());
wmstt.setCusCode(t.getCusCode());
wmstt.setCusName(t.getZhongWenQch());
try{
MdCusEntity mdcus = systemService.findUniqueByProperty(MdCusEntity.class,"keHuBianMa",t.getCusCode());
wmstt.setCusName(mdcus.getZhongWenQch());
}catch (Exception e){
}
wmstt.setGoodsId(t.getGoodsId());
wmstt.setGoodsName(t.getShpMingCheng());
wmstt.setGoodsProData(t.getGoodsProData());