|
@@ -19,6 +19,7 @@ import com.usky.fire.service.PatrolInspectionPersonnelService;
|
|
|
import com.usky.fire.service.PatrolInspectionTypeService;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.usky.system.RemoteDeptService;
|
|
|
|
|
@@ -54,6 +55,10 @@ public class PatrolInspectionAttendanceServiceImpl extends AbstractCrudService<P
|
|
|
|
|
|
@Autowired
|
|
|
private RemotePatrolAgBoxService remotePatrolAgboxService;
|
|
|
+
|
|
|
+ @Value("${agBox.push}")
|
|
|
+ private Integer pushFlag;
|
|
|
+
|
|
|
@Override
|
|
|
public IPage<Map<String, Object>> pageList(Integer pageNum, Integer pageSize, String operateCode, String operator, LocalDateTime startTime, LocalDateTime endTime) {
|
|
|
IPage<PatrolInspectionAttendance> page = new Page<>(pageNum, pageSize);
|
|
@@ -146,7 +151,9 @@ public class PatrolInspectionAttendanceServiceImpl extends AbstractCrudService<P
|
|
|
jsonObj.put("eventCode", eventCode);
|
|
|
jsonObj.put("name", SecurityUtils.getUsername());
|
|
|
jsonObj.put("certifiedNo", patrolInspectionAttendance.getIdentificationNumber());
|
|
|
- JSONObject a = remotePatrolAgboxService.addEvent(jsonObj.toJSONString());
|
|
|
+ if (pushFlag.equals(1)){
|
|
|
+ JSONObject a = remotePatrolAgboxService.addEvent(jsonObj.toJSONString());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|