Quellcode durchsuchen

登录添加头像

matianxiang vor 2 Monaten
Ursprung
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 29
     private String password;
30 30
 
31 31
     @TableField(value = "identification_card")
32
-    @ApiModelProperty(value = "手机号码", name = "identificationCard")
32
+    @ApiModelProperty(value = "身份证号", name = "identificationCard")
33 33
     private String identificationCard;
34 34
 
35 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 205
         payload.put("id", appUser.getId());
206 206
         payload.put("phoneNumber", appUser.getPhoneNumber());
207 207
         payload.put("identificationCard", appUser.getIdentificationCard());
208
-
208
+        payload.put("avatar", appUser.getAvatar());
209 209
         String secretKey = PatientBaseUtil.getSecretKey(appUser.getId());
210 210
         //生成JWt的令牌
211 211
         String token = JWTUtil.getToken(payload, secretKey);
@@ -224,6 +224,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> impl
224 224
         Map<String, String> payload = new HashMap<>();
225 225
         payload.put("id", userId);
226 226
         payload.put("phoneNumber", user.getPhonenumber());
227
+        payload.put("avatar", user.getAvatar());
227 228
         String secretKey = PatientBaseUtil.getSecretKey(userId);
228 229
         //生成JWt的令牌
229 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 130
         from (select * from erm_patient_follow_up where is_del = 0 group by patient_appointment_id) epfu
131 131
         left join erm_patient_appointment epa on epfu.patient_appointment_id = epa.id
132 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 134
             <if test="patientName != null and patientName != ''"> and ep.patient_name like concat('%', #{patientName}, '%')</if>
136 135
             <if test="followUpStatus != null and followUpStatus != ''"> and epfu.follow_up_status = #{followUpStatus}</if>
137 136
             <if test="followUpUser != null and followUpUser != ''"> and epfu.follow_up_user like concat('%', #{followUpUser}, '%')</if>
138
-
139 137
             <if test="followUpStartTime != null and followUpStartTime != ''"><!-- 开始时间检索 -->
140 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 139
             </if>
142 140
             <if test="followUpEndTime != null and followUpEndTime != ''"><!-- 结束时间检索 -->
143 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 142
             </if>
145
-        </where>
146 143
         ORDER BY epa.appointment_start_time DESC
147 144
     </select>
148 145
 </mapper>