浏览代码

修改时报字段异常问题

songyh 3 年之前
父节点
当前提交
ee92371594

+ 6 - 5
jeecg-boot-report/src/main/java/cn/com/ctop/report/mapper/xml/KuaishouAccountReportHourlyDwMapper.xml

@@ -8,15 +8,16 @@
         account_name as authName,
         ${filedAll}
         FROM ctop_kuaishou_report_hourly_account t1
-        WHERE stat_date = #{statDate}
-        and stat_hour <= #{hour}
-        AND account_id in
+        WHERE t1.stat_date = #{statDate}
+        and t1.`hour` <= #{hour}
+        AND t1.account_id in
         <foreach item="item" index="index" collection="accountIds"
                  open="(" separator="," close=")">
             #{item}
         </foreach>
-        <if test="hasGroupBy == 1"></if>
-        group by t1.account_id
+        <if test="hasGroupBy == 1">
+            group by t1.account_id
+        </if>
         order by ${target} ${order}
     </select>
 </mapper>