医生微信登录接口

master
heminjian502 2 years ago
parent d7452cc3bc
commit ee71cb7a93

@ -202,7 +202,8 @@ public class SysLoginService
tDoctor.setMedicalLicense(req.getMedicalLicense());
tDoctor.setUserId(sysUser.getUserId());
tDoctorMapper.insertTDoctor(tDoctor);
tDoctor.setIdentifier("10000000" + tDoctor.getId());
Long identifier = 10000000L + tDoctor.getId();
tDoctor.setIdentifier(String.valueOf(identifier));
Map map = new HashMap();
map.put("id", tDoctor.getId());
map.put("from", "yinuo");

@ -25,8 +25,8 @@ public class LoginForMpReq implements Serializable {
@NotBlank
private String sex;
@Max(100)
@Min(1)
@Max(120)
@Min(0)
private Integer age;
@Max(300)

@ -135,7 +135,8 @@ public class WechatServiceImpl implements IWechatService {
tPatient.setCreateTime(new Date());
tPatient.setUpdateTime(new Date());
tPatientMapper.insertTPatient(tPatient);
tPatient.setIdentifier("10000000" + tPatient.getId());
Long identifier = 10000000L + tPatient.getId();
tPatient.setIdentifier(String.valueOf(identifier));
tPatientMapper.updateTPatient(tPatient);
wechatUser.setUserId(tPatient.getId());
}
@ -182,7 +183,8 @@ public class WechatServiceImpl implements IWechatService {
tDoctor.setUpdateTime(new Date());
tDoctor.setUserId(sysUser.getUserId());
tDoctorMapper.insertTDoctor(tDoctor);
tDoctor.setIdentifier("10000000" + tDoctor.getId());
Long identifier = 10000000L + tDoctor.getId();
tDoctor.setIdentifier(String.valueOf(identifier));
Map map = new HashMap();
map.put("id", tDoctor.getId());

Loading…
Cancel
Save