bug 食堂修改
This commit is contained in:
parent
4fd892e771
commit
6eae0b1c8b
|
|
@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
CAST(w.usage_power AS DECIMAL(10,2))
|
CAST(w.usage_power AS DECIMAL(10,2))
|
||||||
</when>
|
</when>
|
||||||
</choose>
|
</choose>
|
||||||
) AS 'name'
|
) AS total_usage
|
||||||
FROM kitchen_device_info m
|
FROM kitchen_device_info m
|
||||||
LEFT JOIN kitchen_water_info w ON m.device_id = w.device_id
|
LEFT JOIN kitchen_water_info w ON m.device_id = w.device_id
|
||||||
LEFT JOIN basic_area ba ON m.area_id = ba.area_id
|
LEFT JOIN basic_area ba ON m.area_id = ba.area_id
|
||||||
|
|
@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN kitchen_sub_place ksp ON ksp.sub_place_id = m.sub_place
|
LEFT JOIN kitchen_sub_place ksp ON ksp.sub_place_id = m.sub_place
|
||||||
WHERE m.device_type = #{deviceType}
|
WHERE m.device_type = #{deviceType}
|
||||||
GROUP BY m.device_id
|
GROUP BY m.device_id
|
||||||
|
</select>
|
||||||
<select id="getHealthCheckNum" resultType="com.bonus.canteen.core.screening.vo.MorningCheckVo">
|
<select id="getHealthCheckNum" resultType="com.bonus.canteen.core.screening.vo.MorningCheckVo">
|
||||||
select count(1) as healthNum,
|
select count(1) as healthNum,
|
||||||
SUM(case when DATE(health_cert_expire)>DATE(NOW()) then 0 else 1 end) as healthAbno
|
SUM(case when DATE(health_cert_expire)>DATE(NOW()) then 0 else 1 end) as healthAbno
|
||||||
|
|
@ -41,5 +41,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join kitchen_staff_face bb on aa.staff_id=bb.staff_id
|
left join kitchen_staff_face bb on aa.staff_id=bb.staff_id
|
||||||
where aa.post_name like '%厨师%' and bb.photo_url is not null
|
where aa.post_name like '%厨师%' and bb.photo_url is not null
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getMorningCheckInfo" resultType="com.bonus.canteen.core.screening.vo.MorningCheckVo">
|
||||||
|
SELECT
|
||||||
|
count(1) AS morningCheckNum
|
||||||
|
,sum(case when temperature_status='1' then 0 else 1 end) AS morningCheckAbno
|
||||||
|
,count(1) AS handCheckNum
|
||||||
|
,sum(case when temperature_status='1' then 0 else 1 end) AS handCheckAbno
|
||||||
|
,count(1) AS faceCheckNum
|
||||||
|
,sum(case when temperature_status='1' then 0 else 1 end) AS faceCheckAbno
|
||||||
|
FROM kitchen_staff_morning_check
|
||||||
|
where DATE(record_time)=DATE(NOW())
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue