|
|
@@ -2571,4 +2571,41 @@
|
|
|
group by orderno, orderstatus
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getAllRejectOrders" resultType="com.ydtech.modules.order.entity.InsAreaCompany">
|
|
|
+ select
|
|
|
+ iac.id,
|
|
|
+ iac.orderno,
|
|
|
+ iac.agreement_id,
|
|
|
+ iac.jqpremium,
|
|
|
+ iac.sypremium,
|
|
|
+ iac.jypremium,
|
|
|
+ iac.taxamount,
|
|
|
+ iac.sumpremium,
|
|
|
+ io.licenseno,
|
|
|
+ ifa.audittime,
|
|
|
+ ifa.audituser as auditname,
|
|
|
+ ifa.rejectinfo,
|
|
|
+ "1" as orderExternalStatus
|
|
|
+ FROM
|
|
|
+ ins_fee_audit ifa
|
|
|
+ LEFT JOIN
|
|
|
+ ins_area_company iac on iac.id = ifa.ins_order_no
|
|
|
+ LEFT JOIN
|
|
|
+ ins_orders io on iac.orderno = io.orderno
|
|
|
+ left join
|
|
|
+ sys_user su on su.id= ifa.audituser
|
|
|
+ WHERE
|
|
|
+ ifa.auditstatus = 2 and IFNULL(iac.del_flag,'') != '0'
|
|
|
+ <if test="vo.id != null and vo.id!=''">
|
|
|
+ and iac.id = #{vo.id}
|
|
|
+ </if>
|
|
|
+ <if test="vo.licenseno != null and vo.licenseno!='' ">
|
|
|
+ and io.licenseno like CONCAT('%', #{vo.licenseno}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="vo.auditname != null and vo.auditname!='' ">
|
|
|
+ and su.name like CONCAT('%', #{vo.auditname}, '%')
|
|
|
+ </if>
|
|
|
+ order by io.createtime
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|