|
@ -1,5 +1,6 @@
|
|
package com.yihu.wlyy.web.patient.account;
|
|
package com.yihu.wlyy.web.patient.account;
|
|
|
|
|
|
|
|
import com.sun.org.apache.regexp.internal.RE;
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
|
|
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
@ -781,7 +782,7 @@ public class PatientController extends WeixinBaseController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/switch_account")
|
|
@RequestMapping(value = "/switch_account")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String switchFamilyAccount(String family, String openid) {
|
|
|
|
|
|
public String switchFamilyAccount(@RequestParam(required = false) String lastUid, String family, String openid) {
|
|
try {
|
|
try {
|
|
if (StringUtils.isEmpty(family)) {
|
|
if (StringUtils.isEmpty(family)) {
|
|
return error(-1, "家庭成员不能为空");
|
|
return error(-1, "家庭成员不能为空");
|
|
@ -790,7 +791,7 @@ public class PatientController extends WeixinBaseController {
|
|
return error(-1, "openid不能为空");
|
|
return error(-1, "openid不能为空");
|
|
}
|
|
}
|
|
|
|
|
|
JSONObject result = patientInfoService.switchFamilyAccount(getUID(), family, openid);
|
|
|
|
|
|
JSONObject result = patientInfoService.switchFamilyAccount(StringUtils.isNotEmpty(lastUid) ? lastUid : getUID(), family, openid);
|
|
|
|
|
|
int status = result.getInt("status");
|
|
int status = result.getInt("status");
|
|
|
|
|