Your Name лет назад: 3
Родитель
Сommit
c2851b72bc

+ 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>