feat:阶段数据
This commit is contained in:
@@ -16,6 +16,8 @@ public class AddSignFranchiseRequest {
|
||||
private Long id;
|
||||
|
||||
private Long shopId;
|
||||
|
||||
private Long regionId;
|
||||
/**
|
||||
* SignTypeEnum
|
||||
*/
|
||||
|
||||
@@ -22,15 +22,19 @@ public class MiniShopPageVO {
|
||||
@ApiModelProperty("店铺名称")
|
||||
private String shopName;
|
||||
|
||||
public MiniShopPageVO(Long shopId, String shopName) {
|
||||
@ApiModelProperty("店铺编码")
|
||||
private String shopCode;
|
||||
|
||||
public MiniShopPageVO(Long shopId, String shopName,String shopCode) {
|
||||
this.shopId = shopId;
|
||||
this.shopName = shopName;
|
||||
this.shopCode = shopCode;
|
||||
}
|
||||
|
||||
public static List<MiniShopPageVO> convertList(List<ShopInfoDO> shopInfoList) {
|
||||
List<MiniShopPageVO> resultList = new ArrayList<>();
|
||||
for (ShopInfoDO shopInfo : shopInfoList) {
|
||||
resultList.add(new MiniShopPageVO(shopInfo.getId(), shopInfo.getShopName()));
|
||||
resultList.add(new MiniShopPageVO(shopInfo.getId(), shopInfo.getShopName(),shopInfo.getShopCode()));
|
||||
}
|
||||
return resultList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user