From 586510e643625b09f08e7289d90c9d5df1a56304 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 26 四月 2024 14:17:13 +0800
Subject: [PATCH] 字段调整

---
 ycl-server/src/main/resources/mapper/zgyw/CalculateReportMapper.xml |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/ycl-server/src/main/resources/mapper/zgyw/CalculateReportMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/CalculateReportMapper.xml
index 1bf3060..a70a9b1 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/CalculateReportMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/CalculateReportMapper.xml
@@ -11,8 +11,7 @@
         <result column="contract_id" property="contractId"/>
         <result column="calculate_time" property="calculateTime"/>
         <result column="deduct_money" property="deductMoney"/>
-        <result column="which_year" property="whichYear"/>
-        <result column="which_month" property="whichMonth"/>
+        <result column="latest_time" property="latestTime"/>
         <result column="update_by" property="updateBy"/>
     </resultMap>
 
@@ -25,8 +24,7 @@
         tcr.create_time,
         tcr.update_time,
         tcr.calculate_time,
-        tcr.which_year,
-        tcr.which_month
+        tcr.latest_time
         FROM
         t_calculate_report tcr
         INNER JOIN t_contract tc ON tcr.contract_id = tc.id
@@ -67,11 +65,16 @@
                id,
                create_time  as createTime,
                score,
-               deduct_money as deductMoney
+               deduct_money as deductMoney,
+               which_year as whichYear,
+               which_month as whichMonth
         FROM
              t_calculate_record
         WHERE
               contract_id = #{contractId} AND deleted = 0
+        ORDER BY
+            create_time DESC
+
     </select>
 
     <select id="getById" resultMap="DetailResultMap">

--
Gitblit v1.8.0