diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java index a973633..3787df0 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java @@ -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"); diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/LoginForMpReq.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/LoginForMpReq.java index 3f9fda0..f9a7071 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/LoginForMpReq.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/LoginForMpReq.java @@ -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) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatServiceImpl.java index e73a1b8..fc0d4c0 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WechatServiceImpl.java @@ -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());