Commit 97a6193a authored by 赵啸非's avatar 赵啸非

添加服务追踪

parent df191e8b
...@@ -50,7 +50,6 @@ public class RealTimePeopleStatTaskImpl implements ITaskExcuteService { ...@@ -50,7 +50,6 @@ public class RealTimePeopleStatTaskImpl implements ITaskExcuteService {
@Override @Override
public void excuteTask(ITask task) throws AppException { public void excuteTask(ITask task) throws AppException {
statPeople(); statPeople();
donwnloadSnap(); donwnloadSnap();
} }
......
...@@ -58,7 +58,6 @@ public class SyncAppointmentPersonTaskImpl implements ITaskExcuteService { ...@@ -58,7 +58,6 @@ public class SyncAppointmentPersonTaskImpl implements ITaskExcuteService {
@Autowired @Autowired
private FacePlanService facePlanService; private FacePlanService facePlanService;
@Value("${php.host:''}") @Value("${php.host:''}")
private String host; private String host;
......
...@@ -68,8 +68,8 @@ public class SyncRegisterUserPicTaskImpl implements ITaskExcuteService { ...@@ -68,8 +68,8 @@ public class SyncRegisterUserPicTaskImpl implements ITaskExcuteService {
.filter(item -> !ObjectUtils.isEmpty(item.getSourcePhotoUri())).collect(Collectors.toList()); .filter(item -> !ObjectUtils.isEmpty(item.getSourcePhotoUri())).collect(Collectors.toList());
for (PersonEntity personEntity : collect) { for (PersonEntity personEntity : collect) {
//下载图片到本地保存并更新 //下载图片到本地保存并更新
String downUrl = url + personEntity.getSourcePhotoUri();
//String downUrl = "http://192.168.0.98:11078/file/fileupload/1679215657433.jpg"; //String downUrl = "http://192.168.0.98:11078/file/fileupload/1679215657433.jpg";
String downUrl = url + personEntity.getSourcePhotoUri();
log.info("downUrl:{}", downUrl); log.info("downUrl:{}", downUrl);
byte[] bytes = HttpUtil.downloadBytes(downUrl); byte[] bytes = HttpUtil.downloadBytes(downUrl);
if (bytes.length > 0) { if (bytes.length > 0) {
...@@ -107,12 +107,4 @@ public class SyncRegisterUserPicTaskImpl implements ITaskExcuteService { ...@@ -107,12 +107,4 @@ public class SyncRegisterUserPicTaskImpl implements ITaskExcuteService {
public void stopTask(ITask task) throws AppException { public void stopTask(ITask task) throws AppException {
} }
public static void main(String[] args) {
System.out.println(DateUtil.parse("19951071", "yyyyMMdd"));
}
} }
...@@ -26,7 +26,7 @@ import java.util.Date; ...@@ -26,7 +26,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
/** /**
* 今日挂号任务。 * 同步提交预约任务
*/ */
@Slf4j @Slf4j
@Service("SyncSubmitAppointTask") @Service("SyncSubmitAppointTask")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment