提交 3ba292c1 作者: 刘明祎-运维用途

修bug

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