|
|
@@ -278,7 +278,7 @@
|
|
|
<if test="orderQueryVo.orderNo != null and orderQueryVo.orderNo != ''">
|
|
|
and io.orderno = #{orderQueryVo.orderNo}
|
|
|
</if>
|
|
|
- <if test="orderQueryVo.deptId != null and orderQueryVo.deptId != '' and isTeamLeader">
|
|
|
+ <if test="orderQueryVo.deptId != null and orderQueryVo.deptId != ''">
|
|
|
and io.deptid like "${orderQueryVo.deptId}%"
|
|
|
</if>
|
|
|
<if test="orderQueryVo.orderStatus != null and orderQueryVo.orderStatus != ''">
|
|
|
@@ -294,17 +294,19 @@
|
|
|
and io.insuredname = #{orderQueryVo.insuredName}
|
|
|
</if>
|
|
|
<if test="orderQueryVo.startDate != null and orderQueryVo.endDate != null">
|
|
|
- and io.createtime between #{orderQueryVo.startDate} AND #{orderQueryVo.endDate}
|
|
|
+ and DATE_FORMAT(io.createtime, '%Y-%m-%d') between #{orderQueryVo.startDate} AND #{orderQueryVo.endDate}
|
|
|
</if>
|
|
|
<if test="orderQueryVo.companyId != null and orderQueryVo.companyId != ''">
|
|
|
and iac.company_id = #{orderQueryVo.companyId}
|
|
|
</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>
|
|
|
group by io.orderno
|
|
|
) as s
|
|
|
@@ -324,7 +326,7 @@
|
|
|
<if test="orderQueryVo.orderNo != null and orderQueryVo.orderNo != ''">
|
|
|
and io.orderno = #{orderQueryVo.orderNo}
|
|
|
</if>
|
|
|
- <if test="orderQueryVo.deptId != null and orderQueryVo.deptId != '' and isTeamLeader">
|
|
|
+ <if test="orderQueryVo.deptId != null and orderQueryVo.deptId != ''">
|
|
|
and io.deptid like "${orderQueryVo.deptId}%"
|
|
|
</if>
|
|
|
<if test="orderQueryVo.orderStatus != null and orderQueryVo.orderStatus != ''">
|
|
|
@@ -340,14 +342,16 @@
|
|
|
and io.insuredname = #{orderQueryVo.insuredName}
|
|
|
</if>
|
|
|
<if test="orderQueryVo.startDate != null and orderQueryVo.endDate != null">
|
|
|
- and io.createtime between #{orderQueryVo.startDate} AND #{orderQueryVo.endDate}
|
|
|
+ and DATE_FORMAT(io.createtime, '%Y-%m-%d') between #{orderQueryVo.startDate} AND #{orderQueryVo.endDate}
|
|
|
</if>
|
|
|
<if test="orderQueryVo.companyId != null and orderQueryVo.companyId != ''">
|
|
|
and iac.company_id = #{orderQueryVo.companyId}
|
|
|
</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>
|