|
@ -16,10 +16,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@ -329,5 +326,34 @@ public class CustomerSynergyManageController extends BaseController {
|
|
|
return write(-1,"获取失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("新增临时随访记录(返回ID)")
|
|
|
@RequestMapping(value = "/addFollowup", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
public String addFollowup(@ApiParam(name = "doctor", value = "医生code")
|
|
|
@RequestParam(value = "doctor", required = true) String doctor,
|
|
|
@ApiParam(name = "patient", value = "患者代码", defaultValue = "443a196ef8744536a531260eb26c05d7")
|
|
|
@RequestParam(value = "patient", required = true) String patient,
|
|
|
@ApiParam(name = "date", value = "下次随访时间", defaultValue = "2016-12-15 20:00:00")
|
|
|
@RequestParam(value = "date", required = true) String date,
|
|
|
@ApiParam(name = "followupType", value = "随访方式【字典FOLLOWUP_WAY_DICT】", defaultValue = "12")
|
|
|
@RequestParam(value = "followupType", required = true) String followupType,
|
|
|
@ApiParam(name = "followupClass", value = "随访类别【1.高血压 2.糖尿病 3高糖】", defaultValue = "1")
|
|
|
@RequestParam(value = "followupClass", required = true) String followupClass,
|
|
|
@ApiParam(name = "followupManagerStatus", value = "随访管理状态【字典FOLLOWUP_MANAGER_STATUS】", defaultValue = "1")
|
|
|
@RequestParam(value = "followupManagerStatus", required = false) String followupManagerStatus,
|
|
|
@ApiParam(name = "plandate", value = "下次随访时间", defaultValue = "2016-12-14 20:00:00")
|
|
|
@RequestParam(value = "plandate", required = false) String plandate) {
|
|
|
try {
|
|
|
String response = synergyManageService.addFollowup(doctor, patient, date, followupType, followupClass, followupManagerStatus,plandate);
|
|
|
|
|
|
return write(200, "新增临时随访记录成功!", "data", response);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return invalidUserException(e, -1, "新增临时随访记录失败!" + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|