Commit 81030eb0 by guojuxing

查询联合商户列表接口修改

parent 6b590d2d
......@@ -42,7 +42,16 @@ public class UnionEnterpriseAuthResDetailServiceImpl implements UnionEnterpriseA
@Override
public void initUnionEnterpriseAuthResDetail(@NotNull Integer unionEnterpriseAuthId) {
if (CollectionUtils.isNotEmpty(listUnionEnterpriseAuthResDetail(unionEnterpriseAuthId, null))) {
List<TabSysUnionEnterpriseAuthResDetail> list = listUnionEnterpriseAuthResDetail(unionEnterpriseAuthId, null);
if (CollectionUtils.isNotEmpty(list)) {
//重置状态
for (TabSysUnionEnterpriseAuthResDetail old : list) {
old.setAuthStatus(UnionEnterpriseAuthDetailStatusEnum.NO_AUTH.getCode())
.setUpdateTime(new Date())
.setRemark("")
.setAuthKey("");
tabSysUnionEnterpriseAuthResDetailMapper.updateByPrimaryKeySelective(old);
}
return;
}
Date now = new Date();
......
......@@ -266,12 +266,14 @@
where auth.delete_flag = 0
and auth.own_enterprise_id = #{ownEnterpriseId}
and detail.auth_status = 1
and detail.auth_status = #{authStatus}
<if test="list != null and list.size() > 0">
and auth.union_enterprise_id in
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
GROUP BY auth.union_enterprise_id
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment