|
@ -187,17 +187,17 @@ public class FollowUpService extends BaseService {
|
|
|
* @param type 类型:0全部,1计划,2记录
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONArray getListByPatientAndTeam(String patient, Long teamCode, int page, int pageSize, int type) {
|
|
|
public JSONArray getListByPatientAndTeam(String patient, Long teamCode, int page, int pageSize, String type) {
|
|
|
Sort sort = new Sort(Sort.Direction.DESC,"createTime");
|
|
|
PageRequest pageRequest = new PageRequest(page, pageSize,sort);
|
|
|
Page<Object> result = null;
|
|
|
|
|
|
if(type == 0){
|
|
|
if(StringUtils.isBlank(type)){
|
|
|
result = followupDao.findByPatientAndTeam(patient, teamCode, pageRequest);
|
|
|
}else if(type == 1){
|
|
|
}else if("1".equals(type)){
|
|
|
//已经开始的就是记录
|
|
|
result = followupDao.findPlanByPatientAndTeam(patient, teamCode, pageRequest);
|
|
|
}else if(type == 2){
|
|
|
}else if("2".equals(type)){
|
|
|
//未开始的就是计划
|
|
|
result = followupDao.findRecordByPatientAndTeam(patient, teamCode, pageRequest);
|
|
|
}else{}
|
|
@ -370,10 +370,14 @@ public class FollowUpService extends BaseService {
|
|
|
/**
|
|
|
* 开始随访记录
|
|
|
*/
|
|
|
public void startFollowup(String id, String date, String followupType, String followupClass, String followupManagerStatus) throws Exception {
|
|
|
public void startFollowup(String id, String date, String followupType, String followupClass, String followupManagerStatus,String plandate) throws Exception {
|
|
|
Followup followup = followupDao.findOne(Long.valueOf(id));
|
|
|
if (followup != null) {
|
|
|
followup.setFollowupDate(DateUtil.strToDate(date));
|
|
|
//计划下次随访时间--huangwenjie.2017.10.19
|
|
|
if(StringUtils.isNoneBlank(plandate)){
|
|
|
followup.setFollowupNextDate(DateUtil.strToDate(plandate));
|
|
|
}
|
|
|
followup.setFollowupType(followupType);
|
|
|
followup.setFollowupClass(followupClass);
|
|
|
followup.setFollowupManagerStatus(followupManagerStatus);
|