From a5b1bad21ba279ade3954852a5e281e9086042f0 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期二, 26 十一月 2024 15:22:52 +0800 Subject: [PATCH] 前端联调修改2.0 --- inspect-server/src/main/resources/mapper/InsOrderMapper.xml | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/inspect-server/src/main/resources/mapper/InsOrderMapper.xml b/inspect-server/src/main/resources/mapper/InsOrderMapper.xml index 34a07c7..987d5ac 100644 --- a/inspect-server/src/main/resources/mapper/InsOrderMapper.xml +++ b/inspect-server/src/main/resources/mapper/InsOrderMapper.xml @@ -89,21 +89,22 @@ <collection property="reportDtos" ofType="com.yuanchu.mom.dto.ReportDto" resultMap="reportDto"/> </resultMap> <resultMap id="reportDto" type="com.yuanchu.mom.dto.ReportDto"> - <result property="reportId" column="reportId"/> + <result property="reportId" column="report_id"/> <result property="url" column="url"/> <result property="urlS" column="urlS"/> - <result property="name" column="name"/> + <result property="codeUrl" column="codeUrl"/> </resultMap> <select id="selectInsOrderPage" resultMap="SampleOrderDto"> - select * + select *from (select a.* , + ir.id report_id, + ir.url, + ir.url_s, + ir.sample_code as codeUrl from ( SELECT io.*, isau.user_id assign, - ir.id report_id, - ir.url, - ir.url_s, sample_counts.sample_num, CONCAT(ROUND(approved_product_counts.approved_count / total_product_counts.total_count * 100, 2), '%') AS insProgress, @@ -118,9 +119,6 @@ ins_sample isa ON io.id = isa.ins_order_id LEFT JOIN ins_sample_user isau ON isau.ins_sample_id = io.id - LEFT JOIN - (SELECT id, ins_order_id, is_ratify, url, url_s FROM ins_report WHERE is_ratify = 1) ir ON io.id = - ir.ins_order_id LEFT JOIN user u ON io.create_user = u.id LEFT JOIN @@ -149,6 +147,9 @@ GROUP BY io.id,type order by type desc,io.id desc ) a + LEFT JOIN + (SELECT r.id, r.ins_order_id, is_ratify, url, url_s,sample_code FROM ins_report r left join ins_sample isa on r.ins_sample_id = isa.id WHERE is_ratify = 1) ir ON a.id = + ir.ins_order_id )b <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> ${ew.customSqlSegment} </if> -- Gitblit v1.9.3