更新商品条码

master
cez 2022-06-24 09:49:24 +08:00
parent fe65d7d462
commit c2835cce9a
1 changed files with 2 additions and 2 deletions

View File

@ -1059,14 +1059,14 @@ public class WmInQmIController extends BaseController {
} else { } else {
try { try {
MvGoodsEntity mvgoods = systemService.findUniqueByProperty( MvGoodsEntity mvgoods = systemService.findUniqueByProperty(
MvGoodsEntity.class, "goodsCode", wmInQmI.getGoodsId()); MvGoodsEntity.class, "goodsCode", wmImNoticeIEntity.getGoodsCode());
if (mvgoods != null) { if (mvgoods != null) {
wmInQmI.setGoodsName(mvgoods.getGoodsName()); wmInQmI.setGoodsName(mvgoods.getGoodsName());
if (StringUtil.isNotEmpty(wmInQmI.getItemText())) { if (StringUtil.isNotEmpty(wmInQmI.getItemText())) {
MdGoodsEntity mdGoodsEntity = systemService.findUniqueByProperty( MdGoodsEntity mdGoodsEntity = systemService.findUniqueByProperty(
MdGoodsEntity.class, "shpBianMa", mvgoods.getGoodsId()); MdGoodsEntity.class, "shpBianMa", mvgoods.getGoodsId());
if (mdGoodsEntity != null) { if (mdGoodsEntity != null) {
mdGoodsEntity.setShpTiaoMa(wmInQmI.getItemText()); mdGoodsEntity.setShpTiaoMa(wmInQmI.getItemText());//更新商品条码
systemService.updateEntitie(mdGoodsEntity); systemService.updateEntitie(mdGoodsEntity);
} }
} }