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

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

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