微调
This commit is contained in:
@@ -2,21 +2,6 @@
|
|||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.njcn.system.mapper.LargeScreenMapper">
|
<mapper namespace="com.njcn.system.mapper.LargeScreenMapper">
|
||||||
|
|
||||||
<select id="getUserScale" resultType="com.njcn.device.pq.pojo.vo.UserScaleVO">
|
|
||||||
SELECT DATE_FORMAT(REGISTER_TIME, '%Y-%m') AS `timeId`, COUNT(*) AS `monthIncrementNum`
|
|
||||||
FROM app_user
|
|
||||||
<where>
|
|
||||||
STATE = '1'
|
|
||||||
<if test="searchBeginTime != null and searchBeginTime != ''">
|
|
||||||
and date_format(REGISTER_TIME,'%y%m%d') >= date_format(#{searchBeginTime},'%y%m%d')
|
|
||||||
</if>
|
|
||||||
<if test="searchEndTime != null and searchEndTime != ''">
|
|
||||||
and date_format(REGISTER_TIME,'%y%m%d') <= date_format(#{searchEndTime},'%y%m%d')
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
GROUP BY `timeId`;
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="getDataScale" resultType="com.njcn.device.pq.pojo.vo.DataScaleVO">
|
<select id="getDataScale" resultType="com.njcn.device.pq.pojo.vo.DataScaleVO">
|
||||||
SELECT DATE(pd.TIMEID) as "timeId", round(sum(DATASTATIS),2) as "dataStatis"
|
SELECT DATE(pd.TIMEID) as "timeId", round(sum(DATASTATIS),2) as "dataStatis"
|
||||||
FROM pqs_datastatis pd
|
FROM pqs_datastatis pd
|
||||||
|
|||||||
Reference in New Issue
Block a user