更新个人中心查询

hehai
mzh820631607 4 years ago
parent 4fb4a33792
commit 7e152042fc
  1. 48
      src/main/resources/mapper/tms/UserDao.xml

@ -5,31 +5,41 @@
<select id="getByUserId" parameterType="com.msdw.tms.entity.UserEntity" resultType="com.msdw.tms.entity.vo.UserEntityVo"> <select id="getByUserId" parameterType="com.msdw.tms.entity.UserEntity" resultType="com.msdw.tms.entity.vo.UserEntityVo">
SELECT SELECT
u.userId,
userName, userName,
sex, u.sex,
countries, u.countries,
p.provinceName as provinceName, c.cityName,
c.cityName as cityName, u.dateBirth,
IDNumber, u.weChatID,
educationDegree, u.IDNumber,
schoolName, u.documentType,
account, u.educationDegree,
phone, pro.provinceName,
email, s.schoolName AS userSchoolName,
weChatID, per.schoolName,
'password' per.disciplineName,
per.professionalClassName,
per.professionalName,
per.personalCareerId,
c.cityName AS personalCityName,
pro.provinceName AS personalProvinceName
FROM FROM
hr_user_info u, hr_user_info u,
province p, hr_personal_file per,
school s,
city c, city c,
school s province pro
WHERE WHERE
u.userId = #{userid} per.schoolId = s.schoolId
AND u.provinceId = p.provinceId AND u.provinceId = pro.provinceId
AND p.provinceId = c.provinceId
AND c.cityId = u.cityId
AND u.schoolId = s.schoolId AND u.schoolId = s.schoolId
AND p.isdel = #{isdel} AND u.cityId = c.cityId
AND u.isdel = #{isdel}
AND u.provinceId = c.provinceId
AND u.userId = per.userId
AND per.userId = #{userid}
AND pro.isdel = #{isdel}
AND c.isdel = #{isdel} AND c.isdel = #{isdel}
AND s.isdel = #{isdel} AND s.isdel = #{isdel}
</select> </select>

Loading…
Cancel
Save