|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
@@ -264,18 +265,24 @@ public class GoodsShopServiceImpl extends ServiceImpl<GoodsShopDao, GoodsShop> i
|
|
|
// sendMsgDXB(goodsShop.getPhone(), null, 1);
|
|
// sendMsgDXB(goodsShop.getPhone(), null, 1);
|
|
|
userService.sendMsg(goodsShop.getPhone(),"weigui");
|
|
userService.sendMsg(goodsShop.getPhone(),"weigui");
|
|
|
}
|
|
}
|
|
|
- baseMapper.updateById(goodsShop);
|
|
|
|
|
|
|
+// baseMapper.updateById(goodsShop);
|
|
|
|
|
+ //更新商户号、snCode、打印机参数为空设置为null
|
|
|
|
|
+ baseMapper.update(goodsShop,Wrappers.<GoodsShop>lambdaUpdate()
|
|
|
|
|
+ .eq(GoodsShop::getShopId,goodsShop.getShopId())
|
|
|
|
|
+ .set(GoodsShop::getMchId , StringUtils.isEmpty(goodsShop.getMchId())?null:goodsShop.getMchId())
|
|
|
|
|
+ .set(GoodsShop::getSnCode , StringUtils.isEmpty(goodsShop.getSnCode())?null:goodsShop.getSnCode())
|
|
|
|
|
+ .set(GoodsShop::getValue , StringUtils.isEmpty(goodsShop.getValue())?null:goodsShop.getValue()));
|
|
|
//snCode value
|
|
//snCode value
|
|
|
- if(StringUtils.isEmpty(goodsShop.getSnCode())){
|
|
|
|
|
- baseMapper.update(null, Wrappers.<GoodsShop>lambdaUpdate()
|
|
|
|
|
- .eq(GoodsShop::getShopId, goodsShop.getShopId())
|
|
|
|
|
- .set(GoodsShop::getSnCode , null));
|
|
|
|
|
- }
|
|
|
|
|
- if(StringUtils.isEmpty(goodsShop.getValue())){
|
|
|
|
|
- baseMapper.update(null, Wrappers.<GoodsShop>lambdaUpdate()
|
|
|
|
|
- .eq(GoodsShop::getShopId, goodsShop.getShopId())
|
|
|
|
|
- .set(GoodsShop::getValue, null));
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if(StringUtils.isEmpty(goodsShop.getSnCode())){
|
|
|
|
|
+// baseMapper.update(null, Wrappers.<GoodsShop>lambdaUpdate()
|
|
|
|
|
+// .eq(GoodsShop::getShopId, goodsShop.getShopId())
|
|
|
|
|
+// .set(GoodsShop::getSnCode , null));
|
|
|
|
|
+// }
|
|
|
|
|
+// if(StringUtils.isEmpty(goodsShop.getValue())){
|
|
|
|
|
+// baseMapper.update(null, Wrappers.<GoodsShop>lambdaUpdate()
|
|
|
|
|
+// .eq(GoodsShop::getShopId, goodsShop.getShopId())
|
|
|
|
|
+// .set(GoodsShop::getValue, null));
|
|
|
|
|
+// }
|
|
|
return Result.success();
|
|
return Result.success();
|
|
|
}
|
|
}
|
|
|
|
|
|