|
@@ -5,6 +5,7 @@ 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.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.sqx.common.utils.PageUtils;
|
|
import com.sqx.common.utils.PageUtils;
|
|
@@ -144,6 +145,9 @@ public class GoodsShopServiceImpl extends ServiceImpl<GoodsShopDao, GoodsShop> i
|
|
|
if(goodsShop.getBannedFlag()==null){
|
|
if(goodsShop.getBannedFlag()==null){
|
|
|
goodsShop.setBannedFlag(0);
|
|
goodsShop.setBannedFlag(0);
|
|
|
}
|
|
}
|
|
|
|
|
+ if(goodsShop.getCashDeposit()==null){
|
|
|
|
|
+ goodsShop.setCashDeposit(0.0);
|
|
|
|
|
+ }
|
|
|
baseMapper.insert(goodsShop);
|
|
baseMapper.insert(goodsShop);
|
|
|
UserEntity userEntity1 = userService.selectUserById(goodsShop.getUserId());
|
|
UserEntity userEntity1 = userService.selectUserById(goodsShop.getUserId());
|
|
|
SysUserShop sysUserShop = shopAdminDao.selectOne(new QueryWrapper<SysUserShop>().eq("user_id", userEntity1.getAdminUserId()));
|
|
SysUserShop sysUserShop = shopAdminDao.selectOne(new QueryWrapper<SysUserShop>().eq("user_id", userEntity1.getAdminUserId()));
|
|
@@ -260,6 +264,17 @@ public class GoodsShopServiceImpl extends ServiceImpl<GoodsShopDao, GoodsShop> i
|
|
|
userService.sendMsg(goodsShop.getPhone(),"weigui");
|
|
userService.sendMsg(goodsShop.getPhone(),"weigui");
|
|
|
}
|
|
}
|
|
|
baseMapper.updateById(goodsShop);
|
|
baseMapper.updateById(goodsShop);
|
|
|
|
|
+ //snCode value
|
|
|
|
|
+ if(StringUtils.isEmpty(goodsShop.getSnCode())){
|
|
|
|
|
+ baseMapper.update(null, Wrappers.<GoodsShop>lambdaUpdate()
|
|
|
|
|
+ .eq(GoodsShop::getSnCode, null)
|
|
|
|
|
+ .set(GoodsShop::getShopId, goodsShop.getShopId()));
|
|
|
|
|
+ }
|
|
|
|
|
+ if(StringUtils.isEmpty(goodsShop.getValue())){
|
|
|
|
|
+ baseMapper.update(null, Wrappers.<GoodsShop>lambdaUpdate()
|
|
|
|
|
+ .eq(GoodsShop::getValue, null)
|
|
|
|
|
+ .set(GoodsShop::getShopId, goodsShop.getShopId()));
|
|
|
|
|
+ }
|
|
|
return Result.success();
|
|
return Result.success();
|
|
|
}
|
|
}
|
|
|
|
|
|