更新个人中心查询

hehai
mzh820631607 4 years ago
parent 4fb4a33792
commit 7e152042fc
  1. 56
      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
userName,
sex,
countries,
p.provinceName as provinceName,
c.cityName as cityName,
IDNumber,
educationDegree,
schoolName,
account,
phone,
email,
weChatID,
'password'
u.userId,
userName,
u.sex,
u.countries,
c.cityName,
u.dateBirth,
u.weChatID,
u.IDNumber,
u.documentType,
u.educationDegree,
pro.provinceName,
s.schoolName AS userSchoolName,
per.schoolName,
per.disciplineName,
per.professionalClassName,
per.professionalName,
per.personalCareerId,
c.cityName AS personalCityName,
pro.provinceName AS personalProvinceName
FROM
hr_user_info u,
province p,
city c,
school s
hr_user_info u,
hr_personal_file per,
school s,
city c,
province pro
WHERE
u.userId = #{userid}
AND u.provinceId = p.provinceId
AND p.provinceId = c.provinceId
AND c.cityId = u.cityId
AND u.schoolId = s.schoolId
AND p.isdel = #{isdel}
per.schoolId = s.schoolId
AND u.provinceId = pro.provinceId
AND u.schoolId = s.schoolId
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 s.isdel = #{isdel}
</select>

Loading…
Cancel
Save