|
@@ -293,12 +293,12 @@
|
|
|
<if test="orderQueryVo.companyId != null and orderQueryVo.companyId != ''">
|
|
<if test="orderQueryVo.companyId != null and orderQueryVo.companyId != ''">
|
|
|
and iac.company_id = #{orderQueryVo.companyId}
|
|
and iac.company_id = #{orderQueryVo.companyId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="orderQueryVo.userId != null and orderQueryVo.userId != '' and isCdy">
|
|
|
|
|
- and io.operatorid = #{orderQueryVo.userId}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="orderQueryVo.userId != null and orderQueryVo.userId != '' and !isTeamLeader">
|
|
|
|
|
- and io.userid = #{orderQueryVo.userId}
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+<!-- <if test="orderQueryVo.userId != null and orderQueryVo.userId != '' and isCdy">-->
|
|
|
|
|
+<!-- and io.operatorid = #{orderQueryVo.userId}-->
|
|
|
|
|
+<!-- </if>-->
|
|
|
|
|
+<!-- <if test="orderQueryVo.userId != null and orderQueryVo.userId != '' and !isTeamLeader">-->
|
|
|
|
|
+<!-- and io.userid = #{orderQueryVo.userId}-->
|
|
|
|
|
+<!-- </if>-->
|
|
|
</where>
|
|
</where>
|
|
|
group by io.orderno
|
|
group by io.orderno
|
|
|
) as s
|
|
) as s
|
|
@@ -318,9 +318,9 @@
|
|
|
<if test="orderQueryVo.orderNo != null and orderQueryVo.orderNo != ''">
|
|
<if test="orderQueryVo.orderNo != null and orderQueryVo.orderNo != ''">
|
|
|
and io.orderno = #{orderQueryVo.orderNo}
|
|
and io.orderno = #{orderQueryVo.orderNo}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="orderQueryVo.deptId != null and orderQueryVo.deptId != '' and isTeamLeader">
|
|
|
|
|
- and io.deptid like "${orderQueryVo.deptId}%"
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+<!-- <if test="orderQueryVo.deptId != null and orderQueryVo.deptId != '' and isTeamLeader">-->
|
|
|
|
|
+<!-- and io.deptid like "${orderQueryVo.deptId}%"-->
|
|
|
|
|
+<!-- </if>-->
|
|
|
<if test="orderQueryVo.orderStatus != null and orderQueryVo.orderStatus != ''">
|
|
<if test="orderQueryVo.orderStatus != null and orderQueryVo.orderStatus != ''">
|
|
|
and io.orderstatus = #{orderQueryVo.orderStatus}
|
|
and io.orderstatus = #{orderQueryVo.orderStatus}
|
|
|
</if>
|
|
</if>
|
|
@@ -339,9 +339,9 @@
|
|
|
<if test="orderQueryVo.companyId != null and orderQueryVo.companyId != ''">
|
|
<if test="orderQueryVo.companyId != null and orderQueryVo.companyId != ''">
|
|
|
and iac.company_id = #{orderQueryVo.companyId}
|
|
and iac.company_id = #{orderQueryVo.companyId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="orderQueryVo.userId != null and orderQueryVo.userId != '' and isCdy">
|
|
|
|
|
- and io.operatorid = #{orderQueryVo.userId}
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+<!-- <if test="orderQueryVo.userId != null and orderQueryVo.userId != '' and isCdy">-->
|
|
|
|
|
+<!-- and io.operatorid = #{orderQueryVo.userId}-->
|
|
|
|
|
+<!-- </if>-->
|
|
|
<if test="orderQueryVo.userId != null and orderQueryVo.userId != '' and !isTeamLeader">
|
|
<if test="orderQueryVo.userId != null and orderQueryVo.userId != '' and !isTeamLeader">
|
|
|
and io.userid = #{orderQueryVo.userId}
|
|
and io.userid = #{orderQueryVo.userId}
|
|
|
</if>
|
|
</if>
|