|
@@ -98,7 +98,7 @@ public class PatrolInspectionAttendanceServiceImpl extends AbstractCrudService<P
|
|
|
userIdList.add(attendance.getOperatorId());
|
|
|
}
|
|
|
LambdaQueryWrapper<PatrolInspectionPersonnel> queryWrapper1 = Wrappers.lambdaQuery();
|
|
|
- queryWrapper1.in(PatrolInspectionPersonnel::getUserId,userIdList);
|
|
|
+ queryWrapper1.in(!userIdList.isEmpty(),PatrolInspectionPersonnel::getUserId,userIdList);
|
|
|
List<PatrolInspectionPersonnel> personnelList = patrolInspectionPersonnelService.list(queryWrapper1);
|
|
|
for (PatrolInspectionAttendance attendance : attendancePage.getRecords()) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
@@ -176,7 +176,7 @@ public class PatrolInspectionAttendanceServiceImpl extends AbstractCrudService<P
|
|
|
jsonObj.put("name", SecurityUtils.getUsername());
|
|
|
jsonObj.put("certifiedNo", patrolInspectionAttendance.getIdentificationNumber());
|
|
|
|
|
|
- rabbitTemplate.convertAndSend(rabbitMQConfig.patrolFEventExchange, "", jsonObj.toJSONString());
|
|
|
+ rabbitTemplate.convertAndSend(rabbitMQConfig.patrolEventExchange, SecurityUtils.getTenantId().toString(), jsonObj.toJSONString());
|
|
|
// if (pushFlag.equals(1)){
|
|
|
// JSONObject a = remotePatrolAgboxService.addEvent(jsonObj.toJSONString());
|
|
|
// }
|