| | |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.service_community.dao.ComShopGoodsAttrDAO; |
| | | import com.panzhihua.service_community.dao.ComShopGoodsDAO; |
| | | import com.panzhihua.common.model.vos.shop.PageShopStoreVO; |
| | | import com.panzhihua.service_community.dao.ComShopStoreDAO; |
| | | import com.panzhihua.service_community.model.dos.ComShopGoodsAttrDO; |
| | | import com.panzhihua.service_community.model.dos.ComShopGoodsDO; |
| | |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | import java.util.stream.Collectors; |
| | | import java.util.stream.Stream; |
| | | |
| | | /** |
| | | * @auther lyq |
| | |
| | | private ComShopOrderService orderService; |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | | /** |
| | | * 查询店铺列表 |
| | | * |
| | |
| | | if (oldComShopStoreDO != null) { |
| | | return R.fail("商家账号已注册"); |
| | | } |
| | | //TODO 判断用户 |
| | | //this.baseMapper.select(storeVO.getPhone()); |
| | | int reasonable1 = this.baseMapper.reasonableUserByPhone(storeVO.getPhone()); |
| | | int reasonable2 = this.baseMapper.reasonableUserByAccount(storeVO.getStoreAccount()); |
| | | if (reasonable1 > 0) { |
| | | return R.fail("手机号:" + storeVO.getPhone() + "在系统用户中已存在"); |
| | | } |
| | | if (reasonable2 > 0) { |
| | | return R.fail("账号:" + storeVO.getStoreAccount() + "在系统用户中已存在"); |
| | | } |
| | | //新增店铺先判断是否拥有已删除的店铺 |
| | | ComShopStoreDO comShopStoreDO = this.baseMapper.selectOne(new LambdaQueryWrapper<ComShopStoreDO>() |
| | | .eq(ComShopStoreDO::getStoreAccount, storeVO.getStoreAccount()).eq(ComShopStoreDO::getDeleteStatus,ComShopStoreDO.deleteStatus.yes)); |