Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
d650b046
提交
d650b046
authored
8月 10, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
单位管理添加背景字段
上级
4008e4c4
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
18 行增加
和
8 行删除
+18
-8
CompanyInfoVO.java
...c/main/java/com/mmc/iuav/user/model/vo/CompanyInfoVO.java
+2
-0
CompanyInfoDO.java
...src/main/java/com/mmc/iuav/user/entity/CompanyInfoDO.java
+3
-0
CompanyDao.xml
...cms-service-user/src/main/resources/mapper/CompanyDao.xml
+13
-8
没有找到文件。
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/CompanyInfoVO.java
浏览文件 @
d650b046
...
...
@@ -72,4 +72,6 @@ public class CompanyInfoVO implements Serializable {
private
String
content
;
@ApiModelProperty
(
value
=
"评分"
,
example
=
"*****"
)
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
;
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/entity/CompanyInfoDO.java
浏览文件 @
d650b046
...
...
@@ -35,6 +35,7 @@ public class CompanyInfoDO implements Serializable {
private
Double
lon
;
private
String
creditCode
;
private
String
licenseImg
;
private
String
backImg
;
@ApiModelProperty
(
value
=
"用户id"
)
private
Integer
userAccountId
;
...
...
@@ -67,6 +68,7 @@ public class CompanyInfoDO implements Serializable {
.
city
(
city
).
district
(
district
).
address
(
address
).
companyUserName
(
companyUserName
).
phoneNum
(
phoneNum
).
remark
(
remark
)
.
content
(
this
.
getContent
())
.
score
(
this
.
getScore
())
.
backImg
(
this
.
backImg
)
.
build
();
}
...
...
@@ -93,5 +95,6 @@ public class CompanyInfoDO implements Serializable {
this
.
lat
=
companyInfo
.
getLat
();
this
.
content
=
companyInfo
.
getContent
();
this
.
score
=
companyInfo
.
getScore
();
this
.
backImg
=
companyInfo
.
getBackImg
();
}
}
csm-service/cms-service-user/src/main/resources/mapper/CompanyDao.xml
浏览文件 @
d650b046
...
...
@@ -80,7 +80,10 @@
license_img = #{licenseImg},
</if>
<if
test=
"creditCode != null"
>
credit_code = #{creditCode}
credit_code = #{creditCode},
</if>
<if
test=
"backImg != null"
>
back_img = #{backImg}
</if>
</set>
where
...
...
@@ -109,7 +112,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
phone_num, remark, create_time, lon, lat, credit_code, license_img, brand_name, brand_logo,content, score
, back_img
from company_info
where id = #{id} and is_deleted = 0
</select>
...
...
@@ -129,7 +132,8 @@
<select
id=
"listCompanyPage"
resultType=
"com.mmc.iuav.user.entity.CompanyInfoDO"
parameterType=
"com.mmc.iuav.user.model.qo.CompanyInfoQO"
>
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
where is_deleted = 0
<if
test=
"companyName != null"
>
...
...
@@ -144,7 +148,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,
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
WHERE cbu.back_user_account_id = #{backUserAccountId} and ci.is_deleted = 0
</select>
...
...
@@ -159,7 +163,7 @@
<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,
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
WHERE ci.is_deleted = 0
<if
test=
"backUserIds != null"
>
...
...
@@ -179,7 +183,8 @@
</select>
<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
where company_name = #{companyName} and is_deleted = 0
</select>
...
...
@@ -200,7 +205,7 @@
ci.brand_name,
ci.brand_logo,
cm.is_leader as leader,
ci.content, ci.score
ci.content, ci.score
, ci.back_img
FROM
company_info ci
INNER JOIN company_member cm ON ci.id = cm.company_info_id
...
...
@@ -244,7 +249,7 @@
<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,
phone_num, remark, create_time, content, score
phone_num, remark, create_time, content, score
, back_img
from company_info
where is_deleted = 0
<if
test=
"ids != null"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论