优化--添加字段公司简介

上级 44a89533
流水线 #9234 已通过 于阶段
in 2 分 30 秒
......@@ -57,4 +57,6 @@ public class ApplyTagEditVO implements Serializable {
private Integer signStatus;
@ApiModelProperty(value = "企业视频")
private String profileUrl;
@ApiModelProperty(value = "企业简介")
private String profileText;
}
......@@ -84,6 +84,8 @@ public class CompanyInfoVO implements Serializable {
@ApiModelProperty(value = "企业视频")
private String profileUrl;
@ApiModelProperty(value = "企业简介")
private String profileText;
@ApiModelProperty(value = "绑定的客服id")
private Integer companyBindUserId;
......
......@@ -55,6 +55,8 @@ public class CompanyInfoDO implements Serializable {
private Double distance;
@ApiModelProperty(value = "企业视频")
private String profileUrl;
@ApiModelProperty(value = "企业简介")
private String profileText;
@ApiModelProperty(value = "加盟标签id")
private Integer cooperationTagId;
public CompanyInfoDO(ApplyTagEditVO applyTagEditVO) {
......@@ -64,6 +66,7 @@ public class CompanyInfoDO implements Serializable {
this.content = applyTagEditVO.getContent();
this.score = applyTagEditVO.getScore();
this.profileUrl = applyTagEditVO.getProfileUrl();
this.profileText = applyTagEditVO.getProfileText();
}
public CompanyInfoVO buildCompanyInfoVO() {
......@@ -79,6 +82,7 @@ public class CompanyInfoDO implements Serializable {
.backImg(this.backImg)
.distance(this.distance)
.profileUrl(this.profileUrl)
.profileText(this.profileText)
.cooperationTagId(this.cooperationTagId)
.build();
}
......
......@@ -91,6 +91,9 @@
<if test="profileUrl != null">
profile_url = #{profileUrl}
</if>
<if test="profileUrl != null">
profile_text = #{profileText}
</if>
</set>
where
id = #{id}
......@@ -135,7 +138,7 @@
<select id="getCompanyInfoById" resultType="com.mmc.iuav.user.entity.CompanyInfoDO">
select id, company_type, company_name, full_name, province, city, district, address, company_user_name,
phone_num, remark, create_time, lon, lat, credit_code, license_img, brand_name, brand_logo,content, score, back_img,profile_url
phone_num, remark, create_time, lon, lat, credit_code, license_img, brand_name, brand_logo,content, score, back_img,profile_url,profile_text
from company_info
where id = #{id} and is_deleted = 0
</select>
......@@ -172,7 +175,7 @@
<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,
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,
ci.profile_url
ci.profile_url,ci.profile_text
FROM company_back_user cbu INNER JOIN company_info ci ON ci.id = cbu.company_info_id
left 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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论