代码拉取完成,页面将自动刷新
select列表中rule字段没有出现在分组中
<select id="statisticsByRule" resultType="com.jd.platform.hotkey.dashboard.model.Statistics">
select count(1) as count, app_name as app, val as keyName, rule
from hk_key_record
where type = 0
<if test="app !=null and app !=''">
and app_name = #{app}
</if >
<if test="key !=null and key !=''">
and key_name = #{key}
</if >
<if test="startTime != null">
<![CDATA[ and create_time >= #{startTime} and create_time < #{endTime}]]>
</if>
GROUP BY app_name, val order by null
</select>
OK,等控制台开发解决
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
-- !!! 注意设置sql model 否则可能sql报错 !!!
-- 查询你的sql_model参数:select @@global.sql_mode; 发现ONLY_FULL_GROUP_BY 则会导致报错
-- 解决方式:set @@global.sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
-- 详情查阅:https://www.cnblogs.com/hjhsblogs/p/11079356.html
登录 后才可以发表评论