提交 8af9e76d 作者: 刘明祎-运维用途

修bug

上级 0a37248b
流水线 #7250 已通过 于阶段
in 2 分 56 秒
......@@ -40,9 +40,10 @@ public class BackRequirementsServiceImpl implements BackRequirementsService {
//权限限制,除了admin以外其他飞手团队后台账号只能看到自己团队里面飞手接的订单
Integer userAccountId = userLoginInfoFromRedis.getUserAccountId();
List<Integer> pilotUserIdList = null;
if(userAccountId != 1) {
List<Integer> pilotUserIdList = userAppApi.feignGetPilotIdList(userLoginInfoFromRedis.getToken());
if(pilotUserIdList == null) {
pilotUserIdList = userAppApi.feignGetPilotIdList(userLoginInfoFromRedis.getToken());
if(pilotUserIdList == null || pilotUserIdList.isEmpty()) {
return PageResult.buildPage(param.getPageNo(), param.getPageSize(), 0);
}
param.setPilotUserIdList(pilotUserIdList);
......
......@@ -105,7 +105,8 @@
LEFT JOIN service_flow sf ON ri.service_flow_id = sf.id
WHERE
ri.publish =1
<if test="pilotUserIdList != null">
<bind name="isPilotUserIdListEmpty" value="pilotUserIdList != null and pilotUserIdList.isEmpty()" />
<if test="!isPilotUserIdListEmpty">
AND rs.pilot_certification_user_id IN
<foreach item="item" collection="pilotUserIdList" open="(" separator="," close=")">
#{item}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论