提交 09bdddf9 作者: 刘明祎-运维用途

修改查询飞手团队发的订单

上级 68db3d32
流水线 #7276 已通过 于阶段
in 2 分 54 秒
...@@ -46,9 +46,8 @@ public class BackRequirementsServiceImpl implements BackRequirementsService { ...@@ -46,9 +46,8 @@ public class BackRequirementsServiceImpl implements BackRequirementsService {
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) {
return PageResult.buildPage(param.getPageNo(), param.getPageSize(), count); return PageResult.buildPage(param.getPageNo(), param.getPageSize(), count);
......
...@@ -76,8 +76,9 @@ ...@@ -76,8 +76,9 @@
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
<if test="pilotUserIdList != null"> <bind name="isPilotUserIdListEmpty" value="pilotUserIdList != null and !pilotUserIdList.isEmpty()" />
AND rs.pilot_certification_user_id IN <if test="isPilotUserIdListEmpty">
AND ri.user_account_id IN
<foreach item="item" collection="pilotUserIdList" open="(" separator="," close=")"> <foreach item="item" collection="pilotUserIdList" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
...@@ -105,9 +106,8 @@ ...@@ -105,9 +106,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()" /> <if test="pilotUserIdList != null">
<if test="isPilotUserIdListEmpty"> AND ri.user_account_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}
</foreach> </foreach>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论