|
@@ -896,7 +896,7 @@
|
|
|
LEFT JOIN ins_fee_audit ifa on ifa.ins_order_no =iac.id
|
|
LEFT JOIN ins_fee_audit ifa on ifa.ins_order_no =iac.id
|
|
|
WHERE
|
|
WHERE
|
|
|
agree.id IS NOT NULL
|
|
agree.id IS NOT NULL
|
|
|
- and ( io.del_flag is null or io.del_flag ='1')
|
|
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
|
AND agree.insurance_company_id = #{vo.companyId}
|
|
AND agree.insurance_company_id = #{vo.companyId}
|
|
|
</if>
|
|
</if>
|
|
@@ -1058,6 +1058,7 @@
|
|
|
LEFT JOIN sys_dept sd ON sd.id = io.deptid
|
|
LEFT JOIN sys_dept sd ON sd.id = io.deptid
|
|
|
WHERE
|
|
WHERE
|
|
|
agree.id IS NOT NULL
|
|
agree.id IS NOT NULL
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
|
AND agree.insurance_company_id = #{vo.companyId}
|
|
AND agree.insurance_company_id = #{vo.companyId}
|
|
|
</if>
|
|
</if>
|
|
@@ -1264,6 +1265,7 @@
|
|
|
LEFT JOIN sys_dept sd ON sd.id = io.deptid
|
|
LEFT JOIN sys_dept sd ON sd.id = io.deptid
|
|
|
<where>
|
|
<where>
|
|
|
sd.management_source = '3'
|
|
sd.management_source = '3'
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
|
and io.deptid like "${taskStatisticsVo.provinceId}%"
|
|
and io.deptid like "${taskStatisticsVo.provinceId}%"
|
|
|
</if>
|
|
</if>
|
|
@@ -1405,6 +1407,7 @@
|
|
|
left join sys_user su on su.id = io.userid
|
|
left join sys_user su on su.id = io.userid
|
|
|
<where>
|
|
<where>
|
|
|
sd.management_source = '1'
|
|
sd.management_source = '1'
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
|
and io.deptid like "${taskStatisticsVo.provinceId}%"
|
|
and io.deptid like "${taskStatisticsVo.provinceId}%"
|
|
|
</if>
|
|
</if>
|
|
@@ -1488,6 +1491,8 @@
|
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
|
<where>
|
|
<where>
|
|
|
pa.insurance_company_id IS NOT NULL
|
|
pa.insurance_company_id IS NOT NULL
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
|
|
+
|
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
|
and io.deptid like concat('%', #{taskStatisticsVo.provinceId}, '%')
|
|
and io.deptid like concat('%', #{taskStatisticsVo.provinceId}, '%')
|
|
|
|
|
|
|
@@ -1549,6 +1554,7 @@
|
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
|
<where>
|
|
<where>
|
|
|
pa.insurance_company_id IS NOT NULL
|
|
pa.insurance_company_id IS NOT NULL
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
|
and io.deptid like concat('%', #{taskStatisticsVo.provinceId}, '%')
|
|
and io.deptid like concat('%', #{taskStatisticsVo.provinceId}, '%')
|
|
|
|
|
|
|
@@ -1625,6 +1631,7 @@
|
|
|
left join sys_user suLeader on suLeader.id =su.leader_id
|
|
left join sys_user suLeader on suLeader.id =su.leader_id
|
|
|
<where>
|
|
<where>
|
|
|
sd.management_source = '2'
|
|
sd.management_source = '2'
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
|
and io.deptid like "${taskStatisticsVo.provinceId}%"
|
|
and io.deptid like "${taskStatisticsVo.provinceId}%"
|
|
|
</if>
|
|
</if>
|
|
@@ -1696,6 +1703,7 @@
|
|
|
left join sys_user su on su.id=io.userid
|
|
left join sys_user su on su.id=io.userid
|
|
|
<where>
|
|
<where>
|
|
|
sd.management_source = '2'
|
|
sd.management_source = '2'
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
|
and io.deptid like "${taskStatisticsVo.provinceId}%"
|
|
and io.deptid like "${taskStatisticsVo.provinceId}%"
|
|
|
</if>
|
|
</if>
|
|
@@ -1765,6 +1773,7 @@
|
|
|
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 (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<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}
|
|
|
</if>
|
|
</if>
|
|
@@ -2154,6 +2163,7 @@
|
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
|
<where>
|
|
<where>
|
|
|
iac.orderstatus = '3'
|
|
iac.orderstatus = '3'
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="vo.ids != null and vo.ids.size()>0 ">
|
|
<if test="vo.ids != null and vo.ids.size()>0 ">
|
|
|
AND io.userid IN
|
|
AND io.userid IN
|
|
|
<foreach item="item" collection="vo.ids" open="(" separator="," close=")">
|
|
<foreach item="item" collection="vo.ids" open="(" separator="," close=")">
|
|
@@ -2211,6 +2221,7 @@
|
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
|
left join sys_user su on su.id=io.userid
|
|
left join sys_user su on su.id=io.userid
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="vo.ids != null and vo.ids.size()>0 ">
|
|
<if test="vo.ids != null and vo.ids.size()>0 ">
|
|
|
AND io.userid IN
|
|
AND io.userid IN
|
|
|
<foreach item="item" collection="vo.ids" open="(" separator="," close=")">
|
|
<foreach item="item" collection="vo.ids" open="(" separator="," close=")">
|
|
@@ -2368,6 +2379,7 @@
|
|
|
agree.id IS NOT NULL
|
|
agree.id IS NOT NULL
|
|
|
and iac.orderstatus = '3'
|
|
and iac.orderstatus = '3'
|
|
|
and ifa.auditstatus != '2'
|
|
and ifa.auditstatus != '2'
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
|
and agree.insurance_company_id = #{vo.companyId}
|
|
and agree.insurance_company_id = #{vo.companyId}
|
|
|
</if>
|
|
</if>
|
|
@@ -2469,6 +2481,7 @@
|
|
|
agree.id IS NOT NULL
|
|
agree.id IS NOT NULL
|
|
|
and iac.orderstatus = '3'
|
|
and iac.orderstatus = '3'
|
|
|
and ifa.auditstatus != '2'
|
|
and ifa.auditstatus != '2'
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
|
and agree.insurance_company_id = #{vo.companyId}
|
|
and agree.insurance_company_id = #{vo.companyId}
|
|
|
</if>
|
|
</if>
|
|
@@ -2544,6 +2557,7 @@
|
|
|
agree.id IS NOT NULL
|
|
agree.id IS NOT NULL
|
|
|
and iac.orderstatus = '3'
|
|
and iac.orderstatus = '3'
|
|
|
and ifa.auditstatus != '2'
|
|
and ifa.auditstatus != '2'
|
|
|
|
|
+ and iac.del_flag = '1'
|
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
|
and agree.insurance_company_id = #{vo.companyId}
|
|
and agree.insurance_company_id = #{vo.companyId}
|
|
|
</if>
|
|
</if>
|
|
@@ -2617,6 +2631,7 @@
|
|
|
WHERE
|
|
WHERE
|
|
|
agree.id IS NOT NULL
|
|
agree.id IS NOT NULL
|
|
|
and ifa.auditstatus != '2'
|
|
and ifa.auditstatus != '2'
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
<if test="vo.companyId != null and vo.companyId!='' ">
|
|
|
and agree.insurance_company_id = #{vo.companyId}
|
|
and agree.insurance_company_id = #{vo.companyId}
|
|
|
</if>
|
|
</if>
|
|
@@ -2684,6 +2699,7 @@
|
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
|
<where>
|
|
<where>
|
|
|
iac.orderstatus = '3'
|
|
iac.orderstatus = '3'
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="vo.ids != null and vo.ids.size()>0 ">
|
|
<if test="vo.ids != null and vo.ids.size()>0 ">
|
|
|
AND io.userid IN
|
|
AND io.userid IN
|
|
|
<foreach item="item" collection="vo.ids" open="(" separator="," close=")">
|
|
<foreach item="item" collection="vo.ids" open="(" separator="," close=")">
|
|
@@ -2912,6 +2928,7 @@
|
|
|
ins_area_company iac
|
|
ins_area_company iac
|
|
|
left join ins_orders io on io.orderno = iac.orderno
|
|
left join ins_orders io on io.orderno = iac.orderno
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="ids != null and ids.size()>0 ">
|
|
<if test="ids != null and ids.size()>0 ">
|
|
|
AND io.userid IN
|
|
AND io.userid IN
|
|
|
<foreach item="item" collection="ids" open="(" separator="," close=")">
|
|
<foreach item="item" collection="ids" open="(" separator="," close=")">
|
|
@@ -2967,6 +2984,7 @@
|
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
|
LEFT JOIN sys_dept sd ON sd.id = io.deptid
|
|
LEFT JOIN sys_dept sd ON sd.id = io.deptid
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="taskStatisticsVo.managementSource != null and taskStatisticsVo.managementSource!=''">
|
|
<if test="taskStatisticsVo.managementSource != null and taskStatisticsVo.managementSource!=''">
|
|
|
AND sd.management_source =#{taskStatisticsVo.managementSource}
|
|
AND sd.management_source =#{taskStatisticsVo.managementSource}
|
|
|
</if>
|
|
</if>
|
|
@@ -3062,6 +3080,7 @@
|
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
LEFT JOIN ins_orders io ON io.orderno = iac.orderno
|
|
|
<where>
|
|
<where>
|
|
|
pa.insurance_company_id IS NOT NULL
|
|
pa.insurance_company_id IS NOT NULL
|
|
|
|
|
+ and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
<if test="taskStatisticsVo.provinceId != null and taskStatisticsVo.provinceId != ''">
|
|
|
and io.deptid like concat('%', #{taskStatisticsVo.provinceId}, '%')
|
|
and io.deptid like concat('%', #{taskStatisticsVo.provinceId}, '%')
|
|
|
|
|
|