| | |
| | | import com.thhy.staff.utils.ProcessFlag; |
| | | import com.thhy.staff.utils.StaffNoUtils; |
| | | import io.netty.channel.ChannelHandlerContext; |
| | | import net.bytebuddy.build.Plugin; |
| | | import org.checkerframework.checker.units.qual.A; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.concurrent.CopyOnWriteArraySet; |
| | | |
| | |
| | | int userCount = platUserMapper.queryPlatUser(userInfo.getCompanyId()); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("mod","facerecord"); |
| | | map.put("totalUserCount",userCount); |
| | | map.put("watchUserCount",0); |
| | | map.put("dangerUserCount",0); |
| | | //map.put("totalUserCount",userCount); |
| | | //map.put("watchUserCount",0); |
| | | //map.put("dangerUserCount",0); |
| | | |
| | | List<String> faceAreas = platUserMapper.faceArea(); |
| | | map.put("faceAreas",faceAreas); |
| | | |
| | | List<DoorUserVo> list = platUserMapper.queryDoorUser(); |
| | | map.put("doorUserList",list); |
| | | PlatUserFace platUserFace = platUserMapper.queryFaceUserByJobNum(list.get(0).getJobNum()); |
| | | platUserFace.setPassTime(list.get(0).getCreateTime()); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | platUserFace.setPassTime(sdf.format(list.get(0).getCreateTime())); |
| | | platUserFace.setRecordId(list.get(0).getId()); |
| | | map.put("firstUserInfo",platUserFace); |
| | | return map; |
| | | } |
| | |
| | | platUserMapper.insertDoorListener(doorLisPic); |
| | | } |
| | | |
| | | @Override |
| | | public List<HashMap<String, Object>> queryGroups() { |
| | | return platUserMapper.queryGroups(); |
| | | } |
| | | |
| | | @Override |
| | | public List<HashMap<String, Object>> queryHelmetWarn() { |
| | | return platUserMapper.queryHelmetWarn(); |
| | | } |
| | | |
| | | @Override |
| | | public List<AreaAdmin> areaAdminInfo() { |
| | | List<AreaAdmin> areaAdminList = platUserMapper.queryAreaInfo(); |
| | | for(AreaAdmin areaAdmin : areaAdminList){ |
| | | List<NamePhoneDepart> namePhoneDepartList = platUserMapper.queryAdminByArea(areaAdmin.getAreaId()); |
| | | areaAdmin.setNpdList(namePhoneDepartList); |
| | | } |
| | | return areaAdminList; |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | MqContent mqContent = new MqContent("sync_person", "notify"); |
| | | String uu = "02d32ee86bec2b11e4b23eb6"; |