提交 d650b046 作者: zhenjie

单位管理添加背景字段

上级 4008e4c4
...@@ -72,4 +72,6 @@ public class CompanyInfoVO implements Serializable { ...@@ -72,4 +72,6 @@ public class CompanyInfoVO implements Serializable {
private String content; private String content;
@ApiModelProperty(value = "评分", example = "*****") @ApiModelProperty(value = "评分", example = "*****")
private Integer score; private Integer score;
@ApiModelProperty(value = "背景图", example = "http://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/3505c402-cbf9-41a5-9d6f-bdb350625bea.jpg")
private String backImg;
} }
...@@ -35,6 +35,7 @@ public class CompanyInfoDO implements Serializable { ...@@ -35,6 +35,7 @@ public class CompanyInfoDO implements Serializable {
private Double lon; private Double lon;
private String creditCode; private String creditCode;
private String licenseImg; private String licenseImg;
private String backImg;
@ApiModelProperty(value = "用户id") @ApiModelProperty(value = "用户id")
private Integer userAccountId; private Integer userAccountId;
...@@ -67,6 +68,7 @@ public class CompanyInfoDO implements Serializable { ...@@ -67,6 +68,7 @@ public class CompanyInfoDO implements Serializable {
.city(city).district(district).address(address).companyUserName(companyUserName).phoneNum(phoneNum).remark(remark) .city(city).district(district).address(address).companyUserName(companyUserName).phoneNum(phoneNum).remark(remark)
.content(this.getContent()) .content(this.getContent())
.score(this.getScore()) .score(this.getScore())
.backImg(this.backImg)
.build(); .build();
} }
...@@ -93,5 +95,6 @@ public class CompanyInfoDO implements Serializable { ...@@ -93,5 +95,6 @@ public class CompanyInfoDO implements Serializable {
this.lat = companyInfo.getLat(); this.lat = companyInfo.getLat();
this.content = companyInfo.getContent(); this.content = companyInfo.getContent();
this.score = companyInfo.getScore(); this.score = companyInfo.getScore();
this.backImg = companyInfo.getBackImg();
} }
} }
...@@ -80,7 +80,10 @@ ...@@ -80,7 +80,10 @@
license_img = #{licenseImg}, license_img = #{licenseImg},
</if> </if>
<if test="creditCode != null"> <if test="creditCode != null">
credit_code = #{creditCode} credit_code = #{creditCode},
</if>
<if test="backImg != null">
back_img = #{backImg}
</if> </if>
</set> </set>
where where
...@@ -109,7 +112,7 @@ ...@@ -109,7 +112,7 @@
<select id="getCompanyInfoById" resultType="com.mmc.iuav.user.entity.CompanyInfoDO"> <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, 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 phone_num, remark, create_time, lon, lat, credit_code, license_img, brand_name, brand_logo,content, score, back_img
from company_info from company_info
where id = #{id} and is_deleted = 0 where id = #{id} and is_deleted = 0
</select> </select>
...@@ -129,7 +132,8 @@ ...@@ -129,7 +132,8 @@
<select id="listCompanyPage" resultType="com.mmc.iuav.user.entity.CompanyInfoDO" <select id="listCompanyPage" resultType="com.mmc.iuav.user.entity.CompanyInfoDO"
parameterType="com.mmc.iuav.user.model.qo.CompanyInfoQO"> parameterType="com.mmc.iuav.user.model.qo.CompanyInfoQO">
select id, company_type, company_name, full_name, province, city, district, address, company_user_name, 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 phone_num, remark, create_time, lon, lat, credit_code, license_img, brand_name, brand_logo,content, score,
back_img
from company_info from company_info
where is_deleted = 0 where is_deleted = 0
<if test="companyName != null"> <if test="companyName != null">
...@@ -144,7 +148,7 @@ ...@@ -144,7 +148,7 @@
<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, SELECT ci.id, ci.company_type, ci.company_name, ci.full_name, ci.province, ci.city, ci.district, ci.address, ci.company_user_name,
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.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
FROM company_info ci INNER JOIN company_back_user cbu ON ci.id = cbu.company_info_id FROM company_info ci INNER JOIN company_back_user cbu ON ci.id = cbu.company_info_id
WHERE cbu.back_user_account_id = #{backUserAccountId} and ci.is_deleted = 0 WHERE cbu.back_user_account_id = #{backUserAccountId} and ci.is_deleted = 0
</select> </select>
...@@ -159,7 +163,7 @@ ...@@ -159,7 +163,7 @@
<select id="listCompanyInfoByUID" resultType="com.mmc.iuav.user.entity.CompanyInfoDO"> <select id="listCompanyInfoByUID" 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, SELECT ci.id, ci.company_type, ci.company_name, ci.full_name, ci.province, ci.city, ci.district, ci.address,
ci.company_user_name, ci.company_user_name,
ci.phone_num, ci.remark, ci.create_time, cbu.back_user_account_id,ci.content, ci.score ci.phone_num, ci.remark, ci.create_time, cbu.back_user_account_id,ci.content, ci.score, ci.back_img
FROM company_info ci INNER JOIN company_back_user cbu ON ci.id = cbu.company_info_id FROM company_info ci INNER JOIN company_back_user cbu ON ci.id = cbu.company_info_id
WHERE ci.is_deleted = 0 WHERE ci.is_deleted = 0
<if test="backUserIds != null"> <if test="backUserIds != null">
...@@ -179,7 +183,8 @@ ...@@ -179,7 +183,8 @@
</select> </select>
<select id="getCompanyInfoByName" resultType="com.mmc.iuav.user.entity.CompanyInfoDO"> <select id="getCompanyInfoByName" 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, content, score select id, company_type, company_name, full_name, province, city, district, address,
company_user_name, phone_num, remark, create_time, content, score, back_img
from company_info from company_info
where company_name = #{companyName} and is_deleted = 0 where company_name = #{companyName} and is_deleted = 0
</select> </select>
...@@ -200,7 +205,7 @@ ...@@ -200,7 +205,7 @@
ci.brand_name, ci.brand_name,
ci.brand_logo, ci.brand_logo,
cm.is_leader as leader, cm.is_leader as leader,
ci.content, ci.score ci.content, ci.score, ci.back_img
FROM FROM
company_info ci company_info ci
INNER JOIN company_member cm ON ci.id = cm.company_info_id INNER JOIN company_member cm ON ci.id = cm.company_info_id
...@@ -244,7 +249,7 @@ ...@@ -244,7 +249,7 @@
<select id="listCompanyInfoByIds" resultType="com.mmc.iuav.user.entity.CompanyInfoDO"> <select id="listCompanyInfoByIds" resultType="com.mmc.iuav.user.entity.CompanyInfoDO">
select id, company_type, company_name, full_name, province, city, district, address, company_user_name, select id, company_type, company_name, full_name, province, city, district, address, company_user_name,
phone_num, remark, create_time, content, score phone_num, remark, create_time, content, score, back_img
from company_info from company_info
where is_deleted = 0 where is_deleted = 0
<if test="ids != null"> <if test="ids != null">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论