大屏
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.api.statistics.mapper.JobStatisticsMapper">
|
||||
<mapper namespace="com.ruoyi.api.mapper.JobStatisticsMapper">
|
||||
|
||||
<!-- 查询当日入库数量 -->
|
||||
<select id="selectDailyInCount" parameterType="String" resultType="Integer">
|
||||
@@ -20,4 +20,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND in_or_out >= 20
|
||||
</select>
|
||||
|
||||
<!-- 查询当月每日入库出库统计 -->
|
||||
<select id="selectMonthlyStatistics" resultType="java.util.Map">
|
||||
SELECT
|
||||
CONVERT(varchar(10), create_time, 120) as date,
|
||||
SUM(CASE WHEN in_or_out < 20 THEN 1 ELSE 0 END) as '入库',
|
||||
SUM(CASE WHEN in_or_out >= 20 THEN 1 ELSE 0 END) as '出库'
|
||||
FROM mydo_job_finish
|
||||
WHERE YEAR(create_time) = #{year}
|
||||
AND MONTH(create_time) = #{month}
|
||||
GROUP BY CONVERT(varchar(10), create_time, 120)
|
||||
ORDER BY date
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -196,4 +196,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{jobId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectCurrentTasks" resultMap="MydoJobResult">
|
||||
<include refid="selectMydoJobVo"/>
|
||||
where mj.status = '3'
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user