|
|
@ -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 |
|
|
|
userName, |
|
|
|
u.userId, |
|
|
|
sex, |
|
|
|
userName, |
|
|
|
countries, |
|
|
|
u.sex, |
|
|
|
p.provinceName as provinceName, |
|
|
|
u.countries, |
|
|
|
c.cityName as cityName, |
|
|
|
c.cityName, |
|
|
|
IDNumber, |
|
|
|
u.dateBirth, |
|
|
|
educationDegree, |
|
|
|
u.weChatID, |
|
|
|
schoolName, |
|
|
|
u.IDNumber, |
|
|
|
account, |
|
|
|
u.documentType, |
|
|
|
phone, |
|
|
|
u.educationDegree, |
|
|
|
email, |
|
|
|
pro.provinceName, |
|
|
|
weChatID, |
|
|
|
s.schoolName AS userSchoolName, |
|
|
|
'password' |
|
|
|
per.schoolName, |
|
|
|
|
|
|
|
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, |
|
|
|
city c, |
|
|
|
school s, |
|
|
|
school s |
|
|
|
city c, |
|
|
|
|
|
|
|
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 u.schoolId = s.schoolId |
|
|
|
AND c.cityId = u.cityId |
|
|
|
AND u.cityId = c.cityId |
|
|
|
AND u.schoolId = s.schoolId |
|
|
|
AND u.isdel = #{isdel} |
|
|
|
AND p.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> |
|
|
|