优化--后台查询加盟商家时候返回当前商家加盟的类型id

上级 3c58d120
流水线 #8951 已通过 于阶段
in 2 分 30 秒
...@@ -87,4 +87,7 @@ public class CompanyInfoVO implements Serializable { ...@@ -87,4 +87,7 @@ public class CompanyInfoVO implements Serializable {
@ApiModelProperty(value = "绑定的客服id") @ApiModelProperty(value = "绑定的客服id")
private Integer companyBindUserId; private Integer companyBindUserId;
@ApiModelProperty(value = "加盟标签id")
private Integer cooperationTagId;
} }
...@@ -55,6 +55,8 @@ public class CompanyInfoDO implements Serializable { ...@@ -55,6 +55,8 @@ public class CompanyInfoDO implements Serializable {
private Double distance; private Double distance;
@ApiModelProperty(value = "企业视频") @ApiModelProperty(value = "企业视频")
private String profileUrl; private String profileUrl;
@ApiModelProperty(value = "加盟标签id")
private Integer cooperationTagId;
public CompanyInfoDO(ApplyTagEditVO applyTagEditVO) { public CompanyInfoDO(ApplyTagEditVO applyTagEditVO) {
this.address = applyTagEditVO.getAddress(); this.address = applyTagEditVO.getAddress();
this.lon = applyTagEditVO.getLon(); this.lon = applyTagEditVO.getLon();
...@@ -77,6 +79,7 @@ public class CompanyInfoDO implements Serializable { ...@@ -77,6 +79,7 @@ public class CompanyInfoDO implements Serializable {
.backImg(this.backImg) .backImg(this.backImg)
.distance(this.distance) .distance(this.distance)
.profileUrl(this.profileUrl) .profileUrl(this.profileUrl)
.cooperationTagId(this.cooperationTagId)
.build(); .build();
} }
......
...@@ -158,9 +158,10 @@ ...@@ -158,9 +158,10 @@
<select id="getCompanyInfoByBackUserAccountId" resultType="com.mmc.iuav.user.entity.CompanyInfoDO"> <select id="getCompanyInfoByBackUserAccountId" resultType="com.mmc.iuav.user.entity.CompanyInfoDO">
SELECT ci.id, ci.company_type, ci.company_name, ci.full_name, ci.province, ci.city, ci.district, ci.address, ci.company_user_name,cbu.back_user_account_id, SELECT ci.id, ci.company_type, ci.company_name, ci.full_name, ci.province, ci.city, ci.district, ci.address, ci.company_user_name,cbu.back_user_account_id,
ci.phone_num, ci.remark, ci.create_time,ci.brand_logo, ci.brand_name, ci.license_img, ci.credit_code, ci.content, ci.score,ci.lon,ci.lat, ci.back_img,cm.user_account_id ci.phone_num, ci.remark, ci.create_time,ci.brand_logo, ci.brand_name, ci.license_img, ci.credit_code, ci.content, ci.score,ci.lon,ci.lat, ci.back_img,cm.user_account_id,ut.cooperation_tag_id
FROM company_back_user cbu INNER JOIN company_info ci ON ci.id = cbu.company_info_id FROM company_back_user cbu INNER JOIN company_info ci ON ci.id = cbu.company_info_id
inner join company_member cm on cm.company_info_id = ci.id inner join company_member cm on cm.company_info_id = ci.id
left outer join user_tag ut on ut.user_account_id = cm.user_account_id
WHERE cbu.back_user_account_id = #{backUserAccountId} and ci.is_deleted = 0 and cm.is_leader = 1 WHERE cbu.back_user_account_id = #{backUserAccountId} and ci.is_deleted = 0 and cm.is_leader = 1
</select> </select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论