提交 f40d8762 作者: zhenjie

单位、加盟列表编辑bug修复

上级 22068356
...@@ -254,19 +254,9 @@ public class CooperationServiceImpl implements CooperationService { ...@@ -254,19 +254,9 @@ public class CooperationServiceImpl implements CooperationService {
if (!userApplyTag.getApplyStatus().equals(1)) { if (!userApplyTag.getApplyStatus().equals(1)) {
return ResultBody.error("当前服务商暂未通过审核!"); return ResultBody.error("当前服务商暂未通过审核!");
} }
// 编辑服务商信息 if (!CollectionUtils.isEmpty(applyTagEditVO.getAttachmentList())) {
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) {
cooperationDao.deleteApplyResource(applyTagEditVO.getId()); cooperationDao.deleteApplyResource(applyTagEditVO.getId());
if (attachmentList.size() != 0) { cooperationDao.insertApplyResource(applyTagEditVO.getAttachmentList());
cooperationDao.insertApplyResource(userApplyTagDO.getAttachmentList());
}
} }
// 修改单位网点位置信息 // 修改单位网点位置信息
CompanyInfoDO companyInfoDO = companyDao.getAppCompanyInfoUId(userApplyTag.getUserAccountId()); CompanyInfoDO companyInfoDO = companyDao.getAppCompanyInfoUId(userApplyTag.getUserAccountId());
......
...@@ -185,7 +185,9 @@ ...@@ -185,7 +185,9 @@
</select> </select>
<select id="listCompanyMembers" resultType="com.mmc.iuav.user.entity.CompanyMemberDO"> <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>
<select id="getAppCompanyInfoUId" resultType="com.mmc.iuav.user.entity.CompanyInfoDO"> <select id="getAppCompanyInfoUId" resultType="com.mmc.iuav.user.entity.CompanyInfoDO">
...@@ -215,7 +217,8 @@ ...@@ -215,7 +217,8 @@
</select> </select>
<select id="countCompanyMembers" resultType="java.lang.Integer"> <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>
<select id="listCompanyMembersPage" resultType="com.mmc.iuav.user.entity.UserAccountDO"> <select id="listCompanyMembersPage" resultType="com.mmc.iuav.user.entity.UserAccountDO">
...@@ -230,7 +233,7 @@ ...@@ -230,7 +233,7 @@
company_member cm company_member cm
INNER JOIN company_info ci ON cm.company_info_id = ci.id INNER JOIN company_info ci ON cm.company_info_id = ci.id
INNER JOIN user_account ua ON ua.id = cm.user_account_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 order by cm.is_leader desc, cm.create_time desc
limit #{pageNo}, #{pageSize} limit #{pageNo}, #{pageSize}
</select> </select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论