jsk 广告 和 公示 后台
This commit is contained in:
parent
3a5bfa3950
commit
9aa63087a7
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.canteen.core.screening.mapper;
|
||||
|
||||
import com.bonus.canteen.core.screening.vo.HydroPowerVo;
|
||||
import com.bonus.canteen.core.screening.vo.MorningCheckVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -9,4 +10,7 @@ import java.util.List;
|
|||
*/
|
||||
public interface HardwareScreenMapper {
|
||||
public List<HydroPowerVo> selectHydroPowerByType(Long type);
|
||||
public MorningCheckVo getMorningCheckInfo();
|
||||
public MorningCheckVo getHealthCheckNum();
|
||||
public List<MorningCheckVo> getCookCertificateInfo();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,8 +82,20 @@ public class HardwareScreenServiceImpl implements HardwareScreenService {
|
|||
public MorningCheckVo getMorningCheckInfo(MorningCheckVo morningCheckVo) {
|
||||
MorningCheckVo vo=new MorningCheckVo();
|
||||
try{
|
||||
vo.setMorningCheckNum(10);
|
||||
vo.setMorningCheckAbno(2);
|
||||
MorningCheckVo morningCheck=mapper.getMorningCheckInfo();
|
||||
MorningCheckVo healthCheck=mapper.getHealthCheckNum();
|
||||
if(morningCheck!=null){
|
||||
vo.setMorningCheckNum(morningCheck.getMorningCheckNum());
|
||||
vo.setMorningCheckAbno(morningCheck.getMorningCheckAbno());
|
||||
vo.setFaceCheckNum(morningCheck.getFaceCheckNum());
|
||||
vo.setFaceCheckAbno(morningCheck.getFaceCheckAbno());
|
||||
vo.setHandCheckNum(morningCheck.getHandCheckNum());
|
||||
vo.setHandCheckAbno(morningCheck.getHandCheckAbno());
|
||||
}
|
||||
if(healthCheck!=null){
|
||||
vo.setHealthNum(healthCheck.getHealthNum());
|
||||
vo.setHealthAbno(healthCheck.getHealthAbno());
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
@ -109,11 +121,12 @@ public class HardwareScreenServiceImpl implements HardwareScreenService {
|
|||
public List<MorningCheckVo> getCookCertificateInfo(MorningCheckVo morningCheckVo) {
|
||||
List<MorningCheckVo> morningCheckVos=new ArrayList<>();
|
||||
try{
|
||||
for(int i=0;i<7;i++){
|
||||
MorningCheckVo vo=new MorningCheckVo();
|
||||
vo.setPicUrl("http://sgwpdm.ah.sgcc.com.cn/canteen/lnyst/378915229716713472/backStaff/45001ac9a65e4692b2c7499381203c65.jpg");
|
||||
morningCheckVos.add(vo);
|
||||
}
|
||||
morningCheckVos=mapper.getCookCertificateInfo();
|
||||
// for(int i=0;i<7;i++){
|
||||
// MorningCheckVo vo=new MorningCheckVo();
|
||||
// vo.setPicUrl("http://sgwpdm.ah.sgcc.com.cn/canteen/lnyst/378915229716713472/backStaff/45001ac9a65e4692b2c7499381203c65.jpg");
|
||||
// morningCheckVos.add(vo);
|
||||
// }
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,4 +38,11 @@ public class MorningCheckVo {
|
|||
private long healthAbno;
|
||||
|
||||
private String picUrl;
|
||||
private String staffId;
|
||||
private String temperatureStatus;
|
||||
private String checkStatus;
|
||||
private String faceCheckStatus;
|
||||
private String handCheckStatus;
|
||||
private String recordTime;
|
||||
private String staffname;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,4 +6,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<select id="selectHydroPowerByType" resultType="com.bonus.canteen.core.screening.vo.HydroPowerVo">
|
||||
|
||||
</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>
|
||||
|
||||
<select id="getHealthCheckNum" resultType="com.bonus.canteen.core.screening.vo.MorningCheckVo">
|
||||
select count(1) as healthNum,
|
||||
SUM(case when DATE(health_cert_expire)>DATE(NOW()) then 0 else 1 end) as healthAbno
|
||||
from kitchen_staff_info aa
|
||||
</select>
|
||||
|
||||
<select id="getCookCertificateInfo" resultType="com.bonus.canteen.core.screening.vo.MorningCheckVo">
|
||||
select aa.post_name as postname,aa.staff_name as staffname,bb.photo_url as picUrl
|
||||
from kitchen_staff_info aa
|
||||
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
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue