Bladeren bron

登录添加头像

matianxiang 2 maanden geleden
bovenliggende
commit
c9ac5a2ba1

+ 1 - 1
eitc-patient-base/src/main/java/com/eitc/patient/domain/AppUser.java

@@ -29,7 +29,7 @@ public class AppUser extends EitcBaseEntity {
29
     private String password;
29
     private String password;
30
 
30
 
31
     @TableField(value = "identification_card")
31
     @TableField(value = "identification_card")
32
-    @ApiModelProperty(value = "手机号码", name = "identificationCard")
32
+    @ApiModelProperty(value = "身份证号", name = "identificationCard")
33
     private String identificationCard;
33
     private String identificationCard;
34
 
34
 
35
     @TableField(value = "avatar")
35
     @TableField(value = "avatar")

+ 2 - 1
eitc-patient-base/src/main/java/com/eitc/patient/service/impl/AppUserServiceImpl.java

@@ -205,7 +205,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> impl
205
         payload.put("id", appUser.getId());
205
         payload.put("id", appUser.getId());
206
         payload.put("phoneNumber", appUser.getPhoneNumber());
206
         payload.put("phoneNumber", appUser.getPhoneNumber());
207
         payload.put("identificationCard", appUser.getIdentificationCard());
207
         payload.put("identificationCard", appUser.getIdentificationCard());
208
-
208
+        payload.put("avatar", appUser.getAvatar());
209
         String secretKey = PatientBaseUtil.getSecretKey(appUser.getId());
209
         String secretKey = PatientBaseUtil.getSecretKey(appUser.getId());
210
         //生成JWt的令牌
210
         //生成JWt的令牌
211
         String token = JWTUtil.getToken(payload, secretKey);
211
         String token = JWTUtil.getToken(payload, secretKey);
@@ -224,6 +224,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> impl
224
         Map<String, String> payload = new HashMap<>();
224
         Map<String, String> payload = new HashMap<>();
225
         payload.put("id", userId);
225
         payload.put("id", userId);
226
         payload.put("phoneNumber", user.getPhonenumber());
226
         payload.put("phoneNumber", user.getPhonenumber());
227
+        payload.put("avatar", user.getAvatar());
227
         String secretKey = PatientBaseUtil.getSecretKey(userId);
228
         String secretKey = PatientBaseUtil.getSecretKey(userId);
228
         //生成JWt的令牌
229
         //生成JWt的令牌
229
         String token = JWTUtil.getToken(payload, secretKey);
230
         String token = JWTUtil.getToken(payload, secretKey);

+ 1 - 4
eitc-patient-base/src/main/resources/mapper/patient/PatientFollowUpMapper.xml

@@ -130,19 +130,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
130
         from (select * from erm_patient_follow_up where is_del = 0 group by patient_appointment_id) epfu
130
         from (select * from erm_patient_follow_up where is_del = 0 group by patient_appointment_id) epfu
131
         left join erm_patient_appointment epa on epfu.patient_appointment_id = epa.id
131
         left join erm_patient_appointment epa on epfu.patient_appointment_id = epa.id
132
         left join erm_patient ep on epa.appointment_person_id = ep.id
132
         left join erm_patient ep on epa.appointment_person_id = ep.id
133
-        <where>
134
-            and epa.is_del = 0 and ep.is_del = 0
133
+        where epa.is_del = 0 and ep.is_del = 0
135
             <if test="patientName != null and patientName != ''"> and ep.patient_name like concat('%', #{patientName}, '%')</if>
134
             <if test="patientName != null and patientName != ''"> and ep.patient_name like concat('%', #{patientName}, '%')</if>
136
             <if test="followUpStatus != null and followUpStatus != ''"> and epfu.follow_up_status = #{followUpStatus}</if>
135
             <if test="followUpStatus != null and followUpStatus != ''"> and epfu.follow_up_status = #{followUpStatus}</if>
137
             <if test="followUpUser != null and followUpUser != ''"> and epfu.follow_up_user like concat('%', #{followUpUser}, '%')</if>
136
             <if test="followUpUser != null and followUpUser != ''"> and epfu.follow_up_user like concat('%', #{followUpUser}, '%')</if>
138
-
139
             <if test="followUpStartTime != null and followUpStartTime != ''"><!-- 开始时间检索 -->
137
             <if test="followUpStartTime != null and followUpStartTime != ''"><!-- 开始时间检索 -->
140
                 and date_format(epfu.follow_up_time,'%Y-%m-%d %H:%i:%S') &gt;= date_format(#{followUpStartTime},'%Y-%m-%d %H:%i:%S')
138
                 and date_format(epfu.follow_up_time,'%Y-%m-%d %H:%i:%S') &gt;= date_format(#{followUpStartTime},'%Y-%m-%d %H:%i:%S')
141
             </if>
139
             </if>
142
             <if test="followUpEndTime != null and followUpEndTime != ''"><!-- 结束时间检索 -->
140
             <if test="followUpEndTime != null and followUpEndTime != ''"><!-- 结束时间检索 -->
143
                 and date_format(epfu.follow_up_time,'%Y-%m-%d %H:%i:%S') &lt;= date_format(#{followUpEndTime},'%Y-%m-%d %H:%i:%S')
141
                 and date_format(epfu.follow_up_time,'%Y-%m-%d %H:%i:%S') &lt;= date_format(#{followUpEndTime},'%Y-%m-%d %H:%i:%S')
144
             </if>
142
             </if>
145
-        </where>
146
         ORDER BY epa.appointment_start_time DESC
143
         ORDER BY epa.appointment_start_time DESC
147
     </select>
144
     </select>
148
 </mapper>
145
 </mapper>