商品管理

master
e 2019-06-27 07:48:50 +08:00
parent bb6d3d4ed0
commit 9a74513fc7
1 changed files with 17 additions and 1 deletions

View File

@ -207,11 +207,15 @@ public class MdGoodsController extends BaseController {
MdGoodsEntity.class, "shpBianMa", mdGoods.getShpBianMa());
if(mdGoods1 ==null ){
if(mdGoods.getChlKongZhi().equals("N")){
if(StringUtil.isEmpty(mdGoods.getChlKongZhi()) ){
mdGoods.setChlKongZhi("N");
}
if("N".equals(mdGoods.getChlKongZhi() )){
mdGoods.setChlShl("1");
mdGoods.setJshDanWei(mdGoods.getShlDanWei());
}
try {
if(StringUtil.isEmpty(mdGoods.getZhlKgm())){
if(!StringUtil.isEmpty(mdGoods.getBzhiQi())){
@ -425,6 +429,18 @@ public class MdGoodsController extends BaseController {
}
}
if(StringUtil.isEmpty(mdGoods.getChlKongZhi()) ){
mdGoods.setChlKongZhi("N");
}
if("N".equals(mdGoods.getChlKongZhi())){
mdGoods.setChlShl("1");
mdGoods.setJshDanWei(mdGoods.getShlDanWei());
}
} catch (Exception e) {
// TODO: handle exception
}