瀏覽代碼

数据统计新增年份需求

wyyay 1 年之前
父節點
當前提交
1fe845ccdd
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      .idea/compiler.xml
  2. 1 1
      business-service/src/main/resources/mapper/service/MsgAlarmMapper.xml

+ 2 - 2
.idea/compiler.xml

@@ -7,10 +7,10 @@
         <sourceOutputDir name="target/generated-sources/annotations" />
         <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
         <outputRelativeToContentRoot value="true" />
+        <module name="base-admin" />
+        <module name="hazard-admin" />
         <module name="hazard-sdk" />
         <module name="business-service" />
-        <module name="hazard-admin" />
-        <module name="base-admin" />
       </profile>
     </annotationProcessing>
     <bytecodeTargetLevel>

+ 1 - 1
business-service/src/main/resources/mapper/service/MsgAlarmMapper.xml

@@ -141,7 +141,7 @@
         <result column="alarm_type" property="alarmType"/>
     </resultMap>
     <select id="listDtoMonth" resultMap="AlarmStatisticMonthDtoResult">
-        SELECT p.monthsta,SUM(p.fre) as frequency
+        SELECT p.monthsta,p.fre as frequency
         from
         (SELECT
         MONTH(a.alarm_time) as monthsta,