Commit d94a1812 by Water Wang

optimize

parent 5906a672
...@@ -1098,6 +1098,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -1098,6 +1098,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
getResponseMessage(potentialInfoList,trackStatusMap,recruitSourceMap,item,remarkMap,timeToOnBoardingMap); getResponseMessage(potentialInfoList,trackStatusMap,recruitSourceMap,item,remarkMap,timeToOnBoardingMap);
}else if(status == 2 && trackStatusId.longValue() != LastStatusId && trackStatusId.longValue() != firstTrackStatusId){ }else if(status == 2 && trackStatusId.longValue() != LastStatusId && trackStatusId.longValue() != firstTrackStatusId){
getResponseMessage(potentialInfoList,trackStatusMap,recruitSourceMap,item,remarkMap,timeToOnBoardingMap); getResponseMessage(potentialInfoList,trackStatusMap,recruitSourceMap,item,remarkMap,timeToOnBoardingMap);
potentialInfoList.sort((o1, o2) -> o2.getUpdateAt().compareTo(o1.getUpdateAt()));
} }
}else{ }else{
getResponseMessage(potentialInfoList,trackStatusMap,recruitSourceMap,item,remarkMap,timeToOnBoardingMap); getResponseMessage(potentialInfoList,trackStatusMap,recruitSourceMap,item,remarkMap,timeToOnBoardingMap);
...@@ -1123,6 +1124,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -1123,6 +1124,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
potentialInfo.setTrackStatus(trackStatusMap.get(item.getTrackStatusId())); potentialInfo.setTrackStatus(trackStatusMap.get(item.getTrackStatusId()));
potentialInfo.setResourceDropMasterName(recruitSourceMap.get(item.getResourceDropMasterId())); potentialInfo.setResourceDropMasterName(recruitSourceMap.get(item.getResourceDropMasterId()));
potentialInfo.setTimeToOnboarding(CommonUtil.dateParseString(timeToOnBoardingMap.get(item.getPotentialId()),"yyyy-MM-dd")); potentialInfo.setTimeToOnboarding(CommonUtil.dateParseString(timeToOnBoardingMap.get(item.getPotentialId()),"yyyy-MM-dd"));
potentialInfo.setUpdateAt(item.getUpdateAt());
potentialInfoList.add(potentialInfo); potentialInfoList.add(potentialInfo);
} }
......
package com.yd.api.practitioner.vo.recruit; package com.yd.api.practitioner.vo.recruit;
import java.util.Date;
public class PractitionerPotentialInfo { public class PractitionerPotentialInfo {
private Long potentialId; private Long potentialId;
private String name; private String name;
...@@ -20,6 +22,7 @@ public class PractitionerPotentialInfo { ...@@ -20,6 +22,7 @@ public class PractitionerPotentialInfo {
private String trackStatus; private String trackStatus;
private Long trackId; private Long trackId;
private String createdAt; private String createdAt;
private Date updateAt;
private String timeToOnboarding; private String timeToOnboarding;
public Long getPotentialId() { public Long getPotentialId() {
...@@ -181,4 +184,12 @@ public class PractitionerPotentialInfo { ...@@ -181,4 +184,12 @@ public class PractitionerPotentialInfo {
public void setTimeToOnboarding(String timeToOnboarding) { public void setTimeToOnboarding(String timeToOnboarding) {
this.timeToOnboarding = timeToOnboarding; this.timeToOnboarding = timeToOnboarding;
} }
public Date getUpdateAt() {
return updateAt;
}
public void setUpdateAt(Date updateAt) {
this.updateAt = updateAt;
}
} }
...@@ -310,6 +310,7 @@ ...@@ -310,6 +310,7 @@
p.oss_path_resume ossPathResume, p.oss_path_resume ossPathResume,
t.track_status_id trackStatusId, t.track_status_id trackStatusId,
t.id trackId, t.id trackId,
t.created_at updateAt,
date_format(p.created_at,'%Y-%m-%d') createdAt date_format(p.created_at,'%Y-%m-%d') createdAt
FROM FROM
ag_acl_practitioner_potential p ag_acl_practitioner_potential p
......
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