fix initShop

This commit is contained in:
shuo.wang
2025-01-21 16:13:11 +08:00
parent 77a89376f3
commit 9764974aa9
2 changed files with 5 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ import javax.validation.constraints.NotNull;
*/ */
@Data @Data
public class BranchShopDetailRequest { public class BranchShopDetailRequest {
@NotNull
private Long shopId; private Long shopId;
@ApiModelProperty("加盟意向区域") @ApiModelProperty("加盟意向区域")
private Long wantShopAreaId; private Long wantShopAreaId;

View File

@@ -104,6 +104,10 @@ public class ShopServiceImpl implements ShopService {
shopInfo.setLineId(lineInfo.getId()); shopInfo.setLineId(lineInfo.getId());
shopInfo.setPartnerId(lineInfo.getPartnerId()); shopInfo.setPartnerId(lineInfo.getPartnerId());
//初始化 //初始化
shopInfo.setWantShopAreaId(lineInfo.getWantShopAreaId());
shopInfo.setDevelopmentManager(lineInfo.getDevelopmentManager());
shopInfo.setFranchiseBrand(lineInfo.getFranchiseBrand());
shopInfo.setJoinMode(lineInfo.getJoinMode());
shopInfo.setStoreNum(RandomEightCharCodeUtils.getCode()); shopInfo.setStoreNum(RandomEightCharCodeUtils.getCode());
shopInfo.setSupervisorUserId(lineInfo.getInvestmentManager()); shopInfo.setSupervisorUserId(lineInfo.getInvestmentManager());
shopInfo.setShopName("店铺" + NumberConverter.convertArabicToChinese(i + 1)); shopInfo.setShopName("店铺" + NumberConverter.convertArabicToChinese(i + 1));