浏览代码

问题处理

yzc 11 月之前
父节点
当前提交
9ff7ea0701
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hx-common/src/main/resources/mapper/logistics/LogisticsEndingAmountMapper.xml

+ 1 - 1
hx-common/src/main/resources/mapper/logistics/LogisticsEndingAmountMapper.xml

@@ -13,7 +13,7 @@
         WHERE
         WHERE
             pt.`name` LIKE '快递%'
             pt.`name` LIKE '快递%'
           AND ap.`status` != 20
           AND ap.`status` != 20
-          AND YEAR ( ap.expenses_time ) = YEAR ( CURRENT_DATE )
+          AND YEAR ( ap.expenses_time ) = ${dto.year}
         GROUP BY
         GROUP BY
             cod.logistics_company_id,
             cod.logistics_company_id,
             MONTH ( ap.expenses_time );
             MONTH ( ap.expenses_time );