|
@@ -1896,15 +1896,21 @@
|
|
|
LEFT JOIN ptl_agreement pa ON pa.id = iac.agreement_id
|
|
LEFT JOIN ptl_agreement pa ON pa.id = iac.agreement_id
|
|
|
LEFT JOIN esm_ins_company eic ON eic.id = pa.partner_companies_id
|
|
LEFT JOIN esm_ins_company eic ON eic.id = pa.partner_companies_id
|
|
|
left join (
|
|
left join (
|
|
|
- select distinct suborder as "suborder" , order_status as "orderStatus",create_time as "createTime" from ins_orders_track
|
|
|
|
|
- ) iot on iot.suborder = iac.id
|
|
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ suborder AS "suborder",
|
|
|
|
|
+ min(create_time) AS "createTime"
|
|
|
|
|
+ FROM
|
|
|
|
|
+ ins_orders_track iot_
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ order_status =3
|
|
|
|
|
+ GROUP BY
|
|
|
|
|
+ suborder
|
|
|
|
|
+ ) iot on iot.suborder = iac.id
|
|
|
left join sys_user su on su.id =ifa.audituser
|
|
left join sys_user su on su.id =ifa.audituser
|
|
|
<where>
|
|
<where>
|
|
|
1=1
|
|
1=1
|
|
|
and iac.id = ifa.ins_order_no
|
|
and iac.id = ifa.ins_order_no
|
|
|
AND iac.orderstatus = 3
|
|
AND iac.orderstatus = 3
|
|
|
- AND io.orderstatus = 3
|
|
|
|
|
- AND iot.orderStatus ='3'
|
|
|
|
|
AND ifa.audituser != '自动审核'
|
|
AND ifa.audituser != '自动审核'
|
|
|
AND (ifa.auditstatus ='1' or ifa.auditstatus ='0')
|
|
AND (ifa.auditstatus ='1' or ifa.auditstatus ='0')
|
|
|
<if test="taskStatisticsVo.reviewer !=null and taskStatisticsVo.reviewer !=''">
|
|
<if test="taskStatisticsVo.reviewer !=null and taskStatisticsVo.reviewer !=''">
|
|
@@ -1972,15 +1978,21 @@
|
|
|
LEFT JOIN esm_ins_company eic ON eic.id = pa.partner_companies_id
|
|
LEFT JOIN esm_ins_company eic ON eic.id = pa.partner_companies_id
|
|
|
left join sys_user su on su.id =ifa.audituser
|
|
left join sys_user su on su.id =ifa.audituser
|
|
|
left join (
|
|
left join (
|
|
|
- select distinct suborder as "suborder" , order_status as "orderStatus",create_time as "createTime" from ins_orders_track
|
|
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ suborder AS "suborder",
|
|
|
|
|
+ min(create_time) AS "createTime"
|
|
|
|
|
+ FROM
|
|
|
|
|
+ ins_orders_track iot_
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ order_status =3
|
|
|
|
|
+ GROUP BY
|
|
|
|
|
+ suborder
|
|
|
) iot on iot.suborder = iac.id
|
|
) iot on iot.suborder = iac.id
|
|
|
<where>
|
|
<where>
|
|
|
1=1
|
|
1=1
|
|
|
and iac.id = ifa.ins_order_no
|
|
and iac.id = ifa.ins_order_no
|
|
|
AND iac.orderstatus = 3
|
|
AND iac.orderstatus = 3
|
|
|
- AND io.orderstatus = 3
|
|
|
|
|
AND ifa.audituser != '自动审核'
|
|
AND ifa.audituser != '自动审核'
|
|
|
- AND iot.orderStatus ='3'
|
|
|
|
|
AND (ifa.auditstatus ='1' or ifa.auditstatus ='0')
|
|
AND (ifa.auditstatus ='1' or ifa.auditstatus ='0')
|
|
|
<if test="taskStatisticsVo.reviewer !=null and taskStatisticsVo.reviewer !=''">
|
|
<if test="taskStatisticsVo.reviewer !=null and taskStatisticsVo.reviewer !=''">
|
|
|
and su.name =#{taskStatisticsVo.reviewer}
|
|
and su.name =#{taskStatisticsVo.reviewer}
|