提交 6b6d7795 作者: 张小凤

ApplyTagEditVO(add)

上级 09b619f7
...@@ -41,4 +41,14 @@ public class ApplyTagEditVO implements Serializable { ...@@ -41,4 +41,14 @@ public class ApplyTagEditVO implements Serializable {
private String remark; private String remark;
@ApiModelProperty(value = "附件") @ApiModelProperty(value = "附件")
private List<AttachmentVO> attachmentList; private List<AttachmentVO> attachmentList;
@ApiModelProperty(value = "公司名称")
private String companyName;
@ApiModelProperty(value = "品牌名称")
private String brandName;
@ApiModelProperty(value = "品牌logo")
private String brandLogo;
@ApiModelProperty(value = "营业执照")
private String licenseImg;
} }
...@@ -82,6 +82,16 @@ public class UserApplyTagDO implements Serializable { ...@@ -82,6 +82,16 @@ public class UserApplyTagDO implements Serializable {
.lon(this.companyInfoDO == null ? null : this.companyInfoDO.getLon()) .lon(this.companyInfoDO == null ? null : this.companyInfoDO.getLon())
.content(this.companyInfoDO == null ? null : this.companyInfoDO.getContent()) .content(this.companyInfoDO == null ? null : this.companyInfoDO.getContent())
.score(this.companyInfoDO == null ? null : this.companyInfoDO.getScore()) .score(this.companyInfoDO == null ? null : this.companyInfoDO.getScore())
.attachmentList(this.attachmentList)
.content(this.companyInfoDO == null ? null : this.companyInfoDO.getContent())
.score(this.companyInfoDO == null ? null : this.companyInfoDO.getScore())
.companyName(this.companyInfoDO == null ? null : this.companyInfoDO.getCompanyName())
.brandName(this.companyInfoDO == null ? null : this.companyInfoDO.getBrandName())
.brandLogo(this.companyInfoDO == null ? null : this.companyInfoDO.getBrandLogo())
.licenseImg(this.companyInfoDO == null ? null : this.companyInfoDO.getLicenseImg())
.address(this.companyInfoDO == null ? null : this.companyInfoDO.getAddress())
.lat(this.companyInfoDO == null ? null : this.companyInfoDO.getLat())
.lon(this.companyInfoDO == null ? null : this.companyInfoDO.getLon())
.build(); .build();
} }
} }
...@@ -144,26 +144,30 @@ ...@@ -144,26 +144,30 @@
</select> </select>
<select id="getUserApplyTag" resultMap="UserApplyTagResultMap"> <select id="getUserApplyTag" resultMap="UserApplyTagResultMap">
SELECT SELECT ua.id,
ua.id, ua.cooperation_tag_id,
ua.cooperation_tag_id, ua.user_account_id,
ua.user_account_id, ua.apply_name,
ua.apply_name, ua.apply_phone,
ua.apply_phone, ua.apply_status,
ua.apply_status, ua.remark,
ua.remark, ua.create_time,
ua.create_time, ct.tag_name,
ci.id as company_info_id, ci.id AS company_info_id,
ci.address, ci.company_name,
ci.company_name AS `name`, ci.brand_name,
ci.lat, ci.brand_logo,
ci.lon, ci.credit_code,
ci.content, ci.license_img,
ci.score ci.address,
FROM ci.lat,
user_apply_tag ua ci.lon,
INNER JOIN company_member cm ON cm.user_account_id = ua.user_account_id ci.content,
INNER JOIN company_info ci ON cm.company_info_id = ci.id ci.score
FROM user_apply_tag ua
INNER JOIN cooperation_tag ct ON ua.cooperation_tag_id = ct.id
INNER JOIN company_member cm ON cm.user_account_id = ua.user_account_id
INNER JOIN company_info ci ON cm.company_info_id = ci.id
WHERE ua.id = #{id} WHERE ua.id = #{id}
AND ua.is_deleted = 0 AND ua.is_deleted = 0
</select> </select>
...@@ -286,28 +290,27 @@ ...@@ -286,28 +290,27 @@
</select> </select>
<select id="countServiceBitmapData" resultType="java.lang.Integer"> <select id="countServiceBitmapData" resultType="java.lang.Integer">
SELECT count(*) SELECT count(*)
FROM FROM user_apply_tag uat
user_apply_tag uat INNER JOIN cooperation_tag ct ON uat.cooperation_tag_id = ct.id
INNER JOIN cooperation_tag ct ON uat.cooperation_tag_id = ct.id WHERE ct.id = #{type}
WHERE ct.id = #{type} and uat.is_deleted = 0 and uat.is_deleted = 0
</select> </select>
<select id="listServiceBitmapData" resultType="com.mmc.iuav.user.entity.WebsiteInfoDO"> <select id="listServiceBitmapData" resultType="com.mmc.iuav.user.entity.WebsiteInfoDO">
SELECT SELECT uat.id,
uat.id, ci.company_name AS `name`,
ci.company_name AS `name`, ci.address,
ci.address, ci.lon,
ci.lon, ci.lat,
ci.lat, ct.id AS type,
ct.id AS type, ci.content,
ci.content, ci.score,
ci.score, st_distance_sphere(point(ci.lon, ci.lat), point(${lon}, ${lat})) AS distance
st_distance_sphere(point(ci.lon,ci.lat), point(${lon}, ${lat})) AS distance FROM user_apply_tag uat
FROM INNER JOIN cooperation_tag ct ON uat.cooperation_tag_id = ct.id
user_apply_tag uat INNER JOIN company_member cm ON cm.user_account_id = uat.user_account_id
INNER JOIN cooperation_tag ct ON uat.cooperation_tag_id = ct.id INNER JOIN company_info ci ON cm.company_info_id = ci.id
INNER JOIN company_member cm ON cm.user_account_id = uat.user_account_id WHERE ct.id = #{type}
INNER JOIN company_info ci ON cm.company_info_id = ci.id and uat.is_deleted = 0
WHERE ct.id = #{type} and uat.is_deleted = 0
ORDER BY distance ASC ORDER BY distance ASC
LIMIT #{pageNo}, #{pageSize} LIMIT #{pageNo}, #{pageSize}
</select> </select>
...@@ -395,7 +398,8 @@ ...@@ -395,7 +398,8 @@
select count(*) select count(*)
from user_apply_tag from user_apply_tag
where user_account_id = #{userAccountId} where user_account_id = #{userAccountId}
and is_deleted = 0 and apply_status = 1 and is_deleted = 0
and apply_status = 1
</select> </select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论