Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
张松 2024-11-23 11:08:38 +08:00
commit a470d8c472
1 changed files with 11 additions and 3 deletions

View File

@ -11,6 +11,7 @@ import cn.ysk.cashier.exception.BadRequestException;
import cn.ysk.cashier.exception.EntityNotFoundException;
import cn.ysk.cashier.mapper.shop.TbShopInfoMapper;
import cn.ysk.cashier.mybatis.mapper.MpShopInfoMapper;
import cn.ysk.cashier.pojo.product.TbProductGroup;
import cn.ysk.cashier.pojo.shop.TbMerchantAccount;
import cn.ysk.cashier.pojo.shop.TbMerchantRegister;
import cn.ysk.cashier.pojo.shop.TbPlussShopStaff;
@ -18,6 +19,7 @@ import cn.ysk.cashier.pojo.shop.TbShopInfo;
import cn.ysk.cashier.repository.TbShopPayTypeRepository;
import cn.ysk.cashier.repository.shop.*;
import cn.ysk.cashier.service.WxService;
import cn.ysk.cashier.service.product.TbProductGroupService;
import cn.ysk.cashier.service.shop.TbShopInfoService;
import cn.ysk.cashier.system.domain.Dept;
import cn.ysk.cashier.system.domain.Job;
@ -66,7 +68,7 @@ public class TbShopInfoServiceImpl implements TbShopInfoService {
private TbShopInfoMapper tbShopInfoMapper;
private final TbMerchantAccountRepository merchantAccountRepository;
private final TbProductGroupService tbProductGroupService;
private final UserRepository userRepository;
private final UserService userService;
@ -229,8 +231,14 @@ public class TbShopInfoServiceImpl implements TbShopInfoService {
if (integer<4){
throw new BadRequestException("请重试");
}
return tbShopInfoMapper.toDto(new TbShopInfo());
TbProductGroup tbProductGroup = new TbProductGroup();
tbProductGroup.setName("热销");
tbProductGroup.setShopId(save.getId());
tbProductGroup.setProductIds("[]");
tbProductGroup.setSortMode("0");
tbProductGroup.setUseTime(0);
tbProductGroupService.create(tbProductGroup);
return tbShopInfoMapper.toDto(save);
}
@Override