医生微信登录接口

master
heminjian502 2 years ago
parent d7452cc3bc
commit ee71cb7a93

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

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

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

Loading…
Cancel
Save