Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
f40d8762
提交
f40d8762
authored
8月 01, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
单位、加盟列表编辑bug修复
上级
22068356
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
15 行删除
+8
-15
CooperationServiceImpl.java
...om/mmc/iuav/user/service/impl/CooperationServiceImpl.java
+2
-12
CompanyDao.xml
...cms-service-user/src/main/resources/mapper/CompanyDao.xml
+6
-3
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/CooperationServiceImpl.java
浏览文件 @
f40d8762
...
...
@@ -254,19 +254,9 @@ public class CooperationServiceImpl implements CooperationService {
if
(!
userApplyTag
.
getApplyStatus
().
equals
(
1
))
{
return
ResultBody
.
error
(
"当前服务商暂未通过审核!"
);
}
// 编辑服务商信息
UserApplyTagDO
userApplyTagDO
=
new
UserApplyTagDO
();
userApplyTagDO
.
setId
(
applyTagEditVO
.
getId
());
userApplyTagDO
.
setRemark
(
applyTagEditVO
.
getRemark
());
cooperationDao
.
updateUserApplyTag
(
userApplyTagDO
);
userApplyTagDO
.
setAttachmentList
(
applyTagEditVO
.
getAttachmentList
());
List
<
AttachmentVO
>
attachmentList
=
userApplyTagDO
.
getAttachmentList
();
if
(
null
!=
attachmentList
)
{
if
(!
CollectionUtils
.
isEmpty
(
applyTagEditVO
.
getAttachmentList
()))
{
cooperationDao
.
deleteApplyResource
(
applyTagEditVO
.
getId
());
if
(
attachmentList
.
size
()
!=
0
)
{
cooperationDao
.
insertApplyResource
(
userApplyTagDO
.
getAttachmentList
());
}
cooperationDao
.
insertApplyResource
(
applyTagEditVO
.
getAttachmentList
());
}
// 修改单位网点位置信息
CompanyInfoDO
companyInfoDO
=
companyDao
.
getAppCompanyInfoUId
(
userApplyTag
.
getUserAccountId
());
...
...
csm-service/cms-service-user/src/main/resources/mapper/CompanyDao.xml
浏览文件 @
f40d8762
...
...
@@ -185,7 +185,9 @@
</select>
<select
id=
"listCompanyMembers"
resultType=
"com.mmc.iuav.user.entity.CompanyMemberDO"
>
select id,user_account_id,company_info_id,is_leader as leader from company_member where company_info_id = #{companyInfoId}
select cm.id, cm.user_account_id, cm.company_info_id, cm.is_leader as leader
from company_member cm inner join user_account ua on ua.id = cm.user_account_id
where cm.company_info_id = #{companyInfoId} and ua.`disable` = 0
</select>
<select
id=
"getAppCompanyInfoUId"
resultType=
"com.mmc.iuav.user.entity.CompanyInfoDO"
>
...
...
@@ -215,7 +217,8 @@
</select>
<select
id=
"countCompanyMembers"
resultType=
"java.lang.Integer"
>
select count(*) from company_member where company_info_id = #{companyInfoId}
select count(*) from company_member cm inner join user_account ua on ua.id = cm.user_account_id
where cm.company_info_id = #{companyInfoId} and ua.`disable` = 0
</select>
<select
id=
"listCompanyMembersPage"
resultType=
"com.mmc.iuav.user.entity.UserAccountDO"
>
...
...
@@ -230,7 +233,7 @@
company_member cm
INNER JOIN company_info ci ON cm.company_info_id = ci.id
INNER JOIN user_account ua ON ua.id = cm.user_account_id
WHERE ci.id = #{id}
WHERE ci.id = #{id}
and ua.`disable` = 0
order by cm.is_leader desc, cm.create_time desc
limit #{pageNo}, #{pageSize}
</select>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论