소스 검색

关闭日志

Your Name 3 년 전
부모
커밋
c2851b72bc
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml

+ 2 - 2
java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml

@@ -340,7 +340,7 @@
 
     <!-- 查询费用月统计信息 add by wuxw 2018-07-03 -->
     <select id="queryReportFeeSummary" parameterType="Map" resultType="Map">
-        select t.fee_year feeYear,t.fee_month feeMonth,t.create_time createTime
+        select t.fee_year feeYear,t.fee_month feeMonth,max(t.create_time) createTime
         <if test="configIds !=null">
             ,t.config_id configId
         </if>
@@ -409,7 +409,7 @@
         <if test="endTime !=null and endTime != ''">
             and t.create_time &lt;= #{endTime}
         </if>
-        group by t.fee_year,t.fee_month,t.create_time
+        group by t.fee_year,t.fee_month
         <if test="configIds !=null">
             ,t.config_id
         </if>