| | |
| | | String toDay = ardAppPatrolpointRecordParam.getToDay(); |
| | | String planId = ardAppPatrolpointRecordParam.getPlanId(); |
| | | String userId = ardAppPatrolpointRecordParam.getUserId(); |
| | | String planName = ardAppPatrolpointRecordParam.getPlanName(); |
| | | String userName = ardAppPatrolpointRecordParam.getUserName(); |
| | | QueryWrapper<ArdAppPatrolpointRecord> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("plan_id", planId).eq("user_id",userId).like("record_time", toDay); |
| | | //当前计划选中时间里此用户的打卡记录 |
| | | List<ArdAppPatrolpointRecord> list = ardAppPatrolpointRecordMapper.selectList(queryWrapper); |
| | | if(list.size()==0){ |
| | | |
| | | } |
| | | for (ArdAppPatrolpointRecord appPatrolpointRecord : list) { |
| | | QueryWrapper<ArdAppPatrolpointRecordImg> queryWrapper1 = new QueryWrapper<>(); |
| | | queryWrapper1.eq("app_patrolponit_record_id", appPatrolpointRecord.getId()); |
| | |
| | | ardAppPatrolpointRecord.setAppPatrolpointsId(well); |
| | | ardAppPatrolpointRecord.setAppPatrolpointsName(ardAlarmpointsWell.getWellId()); |
| | | ardAppPatrolpointRecord.setPlanId(planId); |
| | | ardAppPatrolpointRecord.setPlanName(list.get(0).getPlanName()); |
| | | ardAppPatrolpointRecord.setPlanName(planName); |
| | | ardAppPatrolpointRecord.setUserId(userId); |
| | | ardAppPatrolpointRecord.setUserName(list.get(0).getUserName()); |
| | | ardAppPatrolpointRecord.setLatitude(ardAlarmpointsWell.getLatitude().toString()); |
| | | ardAppPatrolpointRecord.setLongitude(ardAlarmpointsWell.getLongitude().toString()); |
| | | ardAppPatrolpointRecord.setUserName(userName); |
| | | ardAppPatrolpointRecord.setLatitude(String.valueOf(ardAlarmpointsWell.getLatitude())); |
| | | ardAppPatrolpointRecord.setLongitude(String.valueOf(ardAlarmpointsWell.getLongitude().toString())); |
| | | list.add(ardAppPatrolpointRecord); |
| | | } |
| | | } |