|
@ -24,6 +24,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
import org.json.JSONObject;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.MediaType;
|
|
@ -77,6 +78,9 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
private CommonUtil CommonUtil;
|
|
private CommonUtil CommonUtil;
|
|
@Autowired
|
|
@Autowired
|
|
private HttpUtil HttpUtil;
|
|
private HttpUtil HttpUtil;
|
|
|
|
@Value("${sign.check_upload}")
|
|
|
|
private String sign_check_upload;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 根据姓名、地址、身份证搜索已分配的居民
|
|
* 根据姓名、地址、身份证搜索已分配的居民
|
|
*
|
|
*
|
|
@ -226,10 +230,10 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/getPatientLables")
|
|
@RequestMapping(value = "/getPatientLables")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String getPatientLables( @RequestParam(required = false)String labelType,
|
|
|
|
@RequestParam(required = false)String level,
|
|
|
|
@RequestParam(required = false)String oldDoctorCode,
|
|
|
|
@RequestParam(required = false)Long teamCode) {
|
|
|
|
|
|
public String getPatientLables(@RequestParam(required = false) String labelType,
|
|
|
|
@RequestParam(required = false) String level,
|
|
|
|
@RequestParam(required = false) String oldDoctorCode,
|
|
|
|
@RequestParam(required = false) Long teamCode) {
|
|
try {
|
|
try {
|
|
//修改年度服务类型1.3.4需求
|
|
//修改年度服务类型1.3.4需求
|
|
if ("1".equals(labelType)) {
|
|
if ("1".equals(labelType)) {
|
|
@ -487,7 +491,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
//1.3.5 新增居委会字段countryCode
|
|
//1.3.5 新增居委会字段countryCode
|
|
SignFamily sf = familyContractService.agent(getAccessToken(), name, doctor, doctorName,
|
|
SignFamily sf = familyContractService.agent(getAccessToken(), name, doctor, doctorName,
|
|
healthDoctor, healthDoctorName, cDoctor.getHospital(), cDoctor.getHospitalName(),
|
|
healthDoctor, healthDoctorName, cDoctor.getHospital(), cDoctor.getHospitalName(),
|
|
idcard, ssc, mobile, emerMobile, images, healthLabel, customLabel, disease, expenses, signDoctorCode, signDoctorName, signDoctorLevel, adminTeamCode, sevId,countryCode);
|
|
|
|
|
|
idcard, ssc, mobile, emerMobile, images, healthLabel, customLabel, disease, expenses, signDoctorCode, signDoctorName, signDoctorLevel, adminTeamCode, sevId, countryCode);
|
|
if (sf == null) {
|
|
if (sf == null) {
|
|
return error(-1, "代理签约失败!");
|
|
return error(-1, "代理签约失败!");
|
|
} else {
|
|
} else {
|
|
@ -539,7 +543,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
try {
|
|
try {
|
|
if (type != 2) {
|
|
if (type != 2) {
|
|
try {
|
|
try {
|
|
String checkUrl = SystemConf.getInstance().getJwUrl();
|
|
|
|
|
|
String checkUrl = sign_check_upload;
|
|
String jsonString = HttpUtil.sendPost(checkUrl + "/third/sign/CheckSignFamily?idcard=" + patientIDcard, "");
|
|
String jsonString = HttpUtil.sendPost(checkUrl + "/third/sign/CheckSignFamily?idcard=" + patientIDcard, "");
|
|
|
|
|
|
if (!StringUtils.isEmpty(jsonString)) {
|
|
if (!StringUtils.isEmpty(jsonString)) {
|
|
@ -769,7 +773,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
JSONObject result = new JSONObject();
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
|
try {
|
|
try {
|
|
String checkUrl = SystemConf.getInstance().getJwUrl();
|
|
|
|
|
|
String checkUrl = sign_check_upload;
|
|
String jsonString = HttpUtil.sendPost(checkUrl + "/third/sign/CheckSignFamily?idcard=" + idCard, "");
|
|
String jsonString = HttpUtil.sendPost(checkUrl + "/third/sign/CheckSignFamily?idcard=" + idCard, "");
|
|
|
|
|
|
if (!StringUtils.isEmpty(jsonString)) {
|
|
if (!StringUtils.isEmpty(jsonString)) {
|
|
@ -907,8 +911,8 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
json.put("jtSign", new JSONObject(jtSign));
|
|
json.put("jtSign", new JSONObject(jtSign));
|
|
}
|
|
}
|
|
|
|
|
|
json.put("countryCode",temp.getSickVillage()==null?"":temp.getSickVillage());
|
|
|
|
json.put("countryName",temp.getSickVillageName()==null?"":temp.getSickVillageName());
|
|
|
|
|
|
json.put("countryCode", temp.getSickVillage() == null ? "" : temp.getSickVillage());
|
|
|
|
json.put("countryName", temp.getSickVillageName() == null ? "" : temp.getSickVillageName());
|
|
|
|
|
|
return write(200, "患者信息查询成功!", "data", json);
|
|
return write(200, "患者信息查询成功!", "data", json);
|
|
} else {
|
|
} else {
|
|
@ -979,8 +983,8 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
json.put("jtSign", new JSONObject(jtSign));
|
|
json.put("jtSign", new JSONObject(jtSign));
|
|
}
|
|
}
|
|
|
|
|
|
json.put("countryCode",temp.getSickVillage()==null?"":temp.getSickVillage());
|
|
|
|
json.put("countryName",temp.getSickVillageName()==null?"":temp.getSickVillageName());
|
|
|
|
|
|
json.put("countryCode", temp.getSickVillage() == null ? "" : temp.getSickVillage());
|
|
|
|
json.put("countryName", temp.getSickVillageName() == null ? "" : temp.getSickVillageName());
|
|
|
|
|
|
return write(200, "患者信息查询成功!", "data", json);
|
|
return write(200, "患者信息查询成功!", "data", json);
|
|
} else {
|
|
} else {
|
|
@ -1132,7 +1136,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
@RequestMapping(value = "/sign_info_update")
|
|
@RequestMapping(value = "/sign_info_update")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ObserverRequired
|
|
@ObserverRequired
|
|
public String updateSignInfo(@RequestParam(required = false)String patient, @RequestParam(required = false) String healthDoctor,
|
|
|
|
|
|
public String updateSignInfo(@RequestParam(required = false) String patient, @RequestParam(required = false) String healthDoctor,
|
|
@RequestParam(required = false) String doctor,
|
|
@RequestParam(required = false) String doctor,
|
|
@RequestParam(required = false) String expensesType) {
|
|
@RequestParam(required = false) String expensesType) {
|
|
try {
|
|
try {
|
|
@ -1175,7 +1179,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
return write(200, "查询成功!", "data", rs);
|
|
return write(200, "查询成功!", "data", rs);
|
|
}
|
|
}
|
|
//1.3.5按居委会字段划分居民
|
|
//1.3.5按居委会字段划分居民
|
|
if("5".equals(labelType)){
|
|
|
|
|
|
if ("5".equals(labelType)) {
|
|
JSONObject rs = familyContractService.getCountryPatientList(teamCode);
|
|
JSONObject rs = familyContractService.getCountryPatientList(teamCode);
|
|
return write(200, "查询成功!", "data", rs);
|
|
return write(200, "查询成功!", "data", rs);
|
|
}
|
|
}
|