Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
ims
Commits
159664e7
提交
159664e7
authored
1月 16, 2024
作者:
刘明祎-运维用途
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改查找总数
上级
2be37194
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
27 行增加
和
18 行删除
+27
-18
BackRequirementsDao.xml
...ain/resources/mapper/requirements/BackRequirementsDao.xml
+27
-18
没有找到文件。
release-service/src/main/resources/mapper/requirements/BackRequirementsDao.xml
浏览文件 @
159664e7
...
@@ -131,21 +131,33 @@
...
@@ -131,21 +131,33 @@
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()"
/>
<choose>
<if
test=
"isPilotUserIdListEmpty"
>
<when
test=
"pilotUserIdList != null and !pilotUserIdList.isEmpty()"
>
AND
<!-- 当 pilotUserIdList 不为空时 说明不是后台用户不是admin 是其他后台用户啊查看飞手接单或者货单就只能看到自己团队飞手的接单发单-->
<choose>
and (
<when
test=
"isPilotOrder == 0"
>
<choose>
ri.father_require_id = 0 and
<when
test=
"isPilotOrder == 0"
>
ri.user_account_id IN
-- 当时发单的时候要是看到的是总订单
</when>
ri.father_require_id = 0
<when
test=
"isPilotOrder == 1"
>
and ri.user_account_id IN
rs.pilot_certification_user_id IN
</when>
</when>
<when
test=
"isPilotOrder == 1"
>
</choose>
-- 接单接的是子订单就只能看到子订单
<foreach
item=
"item"
collection=
"pilotUserIdList"
open=
"("
separator=
","
close=
")"
>
rs.pilot_certification_user_id IN
#{item}
</when>
</foreach>
</choose>
<foreach
item=
"item"
collection=
"pilotUserIdList"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
)
</when>
<otherwise>
<!-- 剩下就是admin用户就是要查出所用接单发单就行 只要主订单-->
and ri.father_require_id = 0
</otherwise>
</choose>
<if
test=
"orderStatus != null and orderStatus!='' "
>
and sf.order_status = #{orderStatus}
</if>
</if>
<if
test=
" publishPhone != null and publishPhone!='' "
>
<if
test=
" publishPhone != null and publishPhone!='' "
>
and ri.publish_phone = #{publishPhone}
and ri.publish_phone = #{publishPhone}
...
@@ -153,9 +165,6 @@
...
@@ -153,9 +165,6 @@
<if
test=
" preemptPhone != null and preemptPhone!='' "
>
<if
test=
" preemptPhone != null and preemptPhone!='' "
>
and rs.preempt_phone = #{preemptPhone}
and rs.preempt_phone = #{preemptPhone}
</if>
</if>
<if
test=
"orderStatus != null and orderStatus!='' "
>
and sf.order_status = #{orderStatus}
</if>
<if
test=
" orderAttribute != null and orderAttribute!='' "
>
<if
test=
" orderAttribute != null and orderAttribute!='' "
>
and ri.order_attribute = #{orderAttribute}
and ri.order_attribute = #{orderAttribute}
</if>
</if>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论