个人中心更新

hehai
mzh820631607 4 years ago
parent 0a52423dc0
commit 657cbb444b
  1. 2
      src/main/java/com/msdw/tms/entity/vo/UserEntityVo.java
  2. 16
      src/main/resources/mapper/tms/UserDao.xml

@ -49,8 +49,6 @@ public class UserEntityVo extends UserEntity implements Serializable {
private String professionalSchoolName;
//个人档案主键
private Integer personalFileId;
//绑定用户ID
private Integer userId;
}

@ -13,13 +13,16 @@
u.phone,
u.account,
u.countries,
c.cityId,
c.cityName,
u.dateBirth,
u.weChatID,
u.IDNumber,
u.documentType,
u.educationDegree,
pro.provinceId,
pro.provinceName,
s.schoolId,
s.schoolName
FROM
hr_user_info u,
@ -40,8 +43,9 @@
<select id="queryPersonalFile" parameterType="com.msdw.tms.entity.UserEntity" resultType="com.msdw.tms.entity.vo.UserEntityVo">
SELECT
per.schoolId AS personalSchoolId,
per.SchoolName AS personalSchoolName,
per.personalFileId,
per.schoolId,
per.schoolName,
disciplineId,
disciplineName,
professionalClassId,
@ -49,8 +53,10 @@
per.professionalId,
per.professionalName,
per.personalCareerId,
s.cityName AS personalCityName,
s.provinceName AS personalProvinceName
s.cityId,
s.cityName,
s.provinceId,
s.provinceName
FROM
hr_personal_file per,
school s
@ -75,7 +81,7 @@
per.professionalClassName = #{professionalClassName},
per.updatetime = NOW()
WHERE
per.userId = #{userId}
per.userId = #{userid}
AND
per.personalFileId = #{personalFileId}

Loading…
Cancel
Save