|
@@ -263,13 +263,13 @@ public class GoodsShopServiceImpl extends ServiceImpl<GoodsShopDao, GoodsShop> i
|
|
|
//snCode value
|
|
//snCode value
|
|
|
if(StringUtils.isEmpty(goodsShop.getSnCode())){
|
|
if(StringUtils.isEmpty(goodsShop.getSnCode())){
|
|
|
baseMapper.update(null, Wrappers.<GoodsShop>lambdaUpdate()
|
|
baseMapper.update(null, Wrappers.<GoodsShop>lambdaUpdate()
|
|
|
- .eq(GoodsShop::getSnCode, null)
|
|
|
|
|
- .set(GoodsShop::getShopId, goodsShop.getShopId()));
|
|
|
|
|
|
|
+ .eq(GoodsShop::getShopId, goodsShop.getShopId())
|
|
|
|
|
+ .set(GoodsShop::getSnCode , null));
|
|
|
}
|
|
}
|
|
|
if(StringUtils.isEmpty(goodsShop.getValue())){
|
|
if(StringUtils.isEmpty(goodsShop.getValue())){
|
|
|
baseMapper.update(null, Wrappers.<GoodsShop>lambdaUpdate()
|
|
baseMapper.update(null, Wrappers.<GoodsShop>lambdaUpdate()
|
|
|
- .eq(GoodsShop::getValue, null)
|
|
|
|
|
- .set(GoodsShop::getShopId, goodsShop.getShopId()));
|
|
|
|
|
|
|
+ .eq(GoodsShop::getShopId, goodsShop.getShopId())
|
|
|
|
|
+ .set(GoodsShop::getValue, null));
|
|
|
}
|
|
}
|
|
|
return Result.success();
|
|
return Result.success();
|
|
|
}
|
|
}
|