Explorar el Código

切换账号修改

lyr hace 8 años
padre
commit
7d22dc9e1b

+ 3 - 2
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/patient/account/PatientController.java

@ -1,5 +1,6 @@
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.team.admin.AdminTeam;
import com.yihu.wlyy.entity.patient.Patient;
@ -781,7 +782,7 @@ public class PatientController extends WeixinBaseController {
     */
    @RequestMapping(value = "/switch_account")
    @ResponseBody
    public String switchFamilyAccount(String family, String openid) {
    public String switchFamilyAccount(@RequestParam(required = false) String lastUid, String family, String openid) {
        try {
            if (StringUtils.isEmpty(family)) {
                return error(-1, "家庭成员不能为空");
@ -790,7 +791,7 @@ public class PatientController extends WeixinBaseController {
                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");