个人中心更新

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 String professionalSchoolName;
//个人档案主键 //个人档案主键
private Integer personalFileId; private Integer personalFileId;
//绑定用户ID
private Integer userId;
} }

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

Loading…
Cancel
Save