|
@@ -56,8 +56,8 @@ public class FaceTBServiceImpl implements FaceTBService {
|
|
|
private FaceLogDao faceLogDao;
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+ @Resource
|
|
|
+ private SystemLongTermDocumentsDao systemLongTermDocumentsDao;
|
|
|
@Autowired
|
|
|
private AsyncTriggerRetryImpl asyncTriggerRetry;
|
|
|
@Resource
|
|
@@ -67,8 +67,9 @@ public class FaceTBServiceImpl implements FaceTBService {
|
|
|
|
|
|
@Autowired
|
|
|
private UserControlEarlyWarningListService userControlEarlyWarningListService;
|
|
|
-
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private RedisUtil redisUtil;
|
|
|
+
|
|
|
@Value("${web.address}")
|
|
|
private String address;
|
|
|
|
|
@@ -733,11 +734,9 @@ public class FaceTBServiceImpl implements FaceTBService {
|
|
|
|
|
|
@Override
|
|
|
public Map<String, Object> pushTaskResult(Map<String, Object> dto) {
|
|
|
+ System.out.println(dto+"*************");
|
|
|
Map<String, Object> result = Maps.newHashMapWithExpectedSize(1);
|
|
|
result.put("errCode", "00");
|
|
|
- if (dto == null) {
|
|
|
- return result;
|
|
|
- }
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -746,9 +745,6 @@ public class FaceTBServiceImpl implements FaceTBService {
|
|
|
Map<String, Object> result = Maps.newHashMapWithExpectedSize(1);
|
|
|
result.put("errCode", "00");
|
|
|
result.put("taskId", SnowflakeIdWorker.getSnowId());
|
|
|
- if (dto == null) {
|
|
|
- return result;
|
|
|
- }
|
|
|
return result;
|
|
|
}
|
|
|
|
|
@@ -800,29 +796,40 @@ public class FaceTBServiceImpl implements FaceTBService {
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ @Override
|
|
|
+ public Map<String, Object> syncUsers(Map<String, Object> param) {
|
|
|
+ log.info("param===========" + param);
|
|
|
+ Map map = new HashMap();
|
|
|
+ ArrayList<Map<String, Object>> objects = new ArrayList<>();
|
|
|
+ Integer taskId = (Integer) param.get("taskId");
|
|
|
+ if ((taskId != null && "123456789".equals(taskId.toString()))||((taskId != null && "987654321".equals(taskId.toString())))) {
|
|
|
+ String string = (String) redisUtil.get(taskId.toString());
|
|
|
+ List<SystemLongTermDocuments> list = JSON.parseArray(string, SystemLongTermDocuments.class);
|
|
|
+ if (list!= null && !list.isEmpty()) {
|
|
|
+ for (SystemLongTermDocuments documents : list) {
|
|
|
+ Map<String, Object> dataItem = Maps.newHashMapWithExpectedSize(8);
|
|
|
+
|
|
|
+ dataItem.put("pin", documents.getJdyId());
|
|
|
+ dataItem.put("name", documents.getName());
|
|
|
+ dataItem.put("validPeriodStart", DateUtil.format(documents.getCreateTime(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ dataItem.put("validPeriodEnd", DateUtil.format(documents.getExpireTime(), "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ dataItem.put("userType", 0);
|
|
|
+ dataItem.put("photo", documents.getPhoto());
|
|
|
+ dataItem.put("rightno", 105);
|
|
|
+ dataItem.put("cardid", documents.getIdNumber());
|
|
|
+ objects.add(dataItem);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ String sn = (String) param.get("SN");
|
|
|
+ systemLongTermDocumentsDao.updateListSn(sn);
|
|
|
+
|
|
|
+ map.put("errCode", "00");
|
|
|
+ map.put("totalNum", "3");
|
|
|
+ map.put("updateTime", "11");
|
|
|
+ map.put("data", objects);
|
|
|
+ return map;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
@Async
|