|
|
@ -6,10 +6,10 @@ |
|
|
|
<insert id="add" useGeneratedKeys="true" keyProperty="userId" keyColumn="userId"> |
|
|
|
<insert id="add" useGeneratedKeys="true" keyProperty="userId" keyColumn="userId"> |
|
|
|
insert into hr_user_info( |
|
|
|
insert into hr_user_info( |
|
|
|
userName, uniqueIdentificationAccount, provinceId, |
|
|
|
userName, uniqueIdentificationAccount, provinceId, |
|
|
|
cityId, schoolId, phone,account,password,roleId,schoolId,creationTime) |
|
|
|
cityId, schoolId, phone,account,password,roleId,creationTime) |
|
|
|
values( |
|
|
|
values( |
|
|
|
#{userName}, #{uniqueIdentificationAccount}, #{provinceId}, |
|
|
|
#{userName}, #{uniqueIdentificationAccount}, #{provinceId}, |
|
|
|
#{cityId}, #{schoolId},#{phone}, #{account},#{password},#{roleId},#{schoolId},now()) |
|
|
|
#{cityId}, #{schoolId},#{phone}, #{account},#{password},#{roleId},now()) |
|
|
|
</insert> |
|
|
|
</insert> |
|
|
|
|
|
|
|
|
|
|
|
<update id="userInfupdateUserInfoById" parameterType="com.msdw.tms.entity.UserInfoEntity"> |
|
|
|
<update id="userInfupdateUserInfoById" parameterType="com.msdw.tms.entity.UserInfoEntity"> |
|
|
@ -69,6 +69,8 @@ |
|
|
|
hr_user_info |
|
|
|
hr_user_info |
|
|
|
WHERE |
|
|
|
WHERE |
|
|
|
account = #{account} |
|
|
|
account = #{account} |
|
|
|
|
|
|
|
AND |
|
|
|
|
|
|
|
isdel = 0 |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="queryStudentPhone" resultType="com.msdw.tms.entity.StudentEntity"> |
|
|
|
<select id="queryStudentPhone" resultType="com.msdw.tms.entity.StudentEntity"> |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
@ -77,6 +79,8 @@ |
|
|
|
hr_user_info |
|
|
|
hr_user_info |
|
|
|
WHERE |
|
|
|
WHERE |
|
|
|
phone = #{phone} |
|
|
|
phone = #{phone} |
|
|
|
|
|
|
|
AND |
|
|
|
|
|
|
|
isdel = 0 |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="queryPhone" resultType="java.lang.Integer"> |
|
|
|
<select id="queryPhone" resultType="java.lang.Integer"> |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
@ -117,12 +121,14 @@ |
|
|
|
WHERE |
|
|
|
WHERE |
|
|
|
u.userId = s.userId |
|
|
|
u.userId = s.userId |
|
|
|
AND u.account = #{account} and u.phone = #{phone} and s.workNumber = #{workNumber} |
|
|
|
AND u.account = #{account} and u.phone = #{phone} and s.workNumber = #{workNumber} |
|
|
|
|
|
|
|
AND |
|
|
|
|
|
|
|
u.isdel = 0 |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<insert id="saveUserInfo" useGeneratedKeys="true" keyProperty="userId" keyColumn="userId"> |
|
|
|
<insert id="saveUserInfo" useGeneratedKeys="true" keyProperty="userId" keyColumn="userId"> |
|
|
|
INSERT INTO hr_user_info ( userName,email,phone,uniqueIdentificationAccount, schoolId, account,password, roleId,isdel,creationTime) |
|
|
|
INSERT INTO hr_user_info ( userName,email,phone,uniqueIdentificationAccount, schoolId, account,password, roleId,isdel,creationTime,token) |
|
|
|
VALUES |
|
|
|
VALUES |
|
|
|
( #{userName},#{email},#{phone},#{uniqueIdentificationAccount}, #{schoolId}, #{account}, #{password}, 4 ,0,now()) |
|
|
|
( #{userName},#{email},#{phone},#{uniqueIdentificationAccount}, #{schoolId}, #{account}, #{password}, 4 ,0,now(),#{token}) |
|
|
|
</insert> |
|
|
|
</insert> |
|
|
|
<!-- <insert id="bacthAddStudents">--> |
|
|
|
<!-- <insert id="bacthAddStudents">--> |
|
|
|
<!-- insert into hr_user_info(--> |
|
|
|
<!-- insert into hr_user_info(--> |
|
|
@ -136,16 +142,16 @@ |
|
|
|
<!-- </insert>--> |
|
|
|
<!-- </insert>--> |
|
|
|
<insert id="batchSaveUserInfo" useGeneratedKeys="true" keyProperty="userId" keyColumn="userId"> |
|
|
|
<insert id="batchSaveUserInfo" useGeneratedKeys="true" keyProperty="userId" keyColumn="userId"> |
|
|
|
insert into hr_user_info( |
|
|
|
insert into hr_user_info( |
|
|
|
userName, uniqueIdentificationAccount, phone,account,password,roleId, schoolId,creationTime) |
|
|
|
userName, uniqueIdentificationAccount, phone,account,password,roleId, schoolId,creationTime,token) |
|
|
|
values |
|
|
|
values |
|
|
|
(#{userName}, #{uniqueIdentificationAccount}, |
|
|
|
(#{userName}, #{uniqueIdentificationAccount}, |
|
|
|
#{phone}, #{account},#{password},#{roleId}, |
|
|
|
#{phone}, #{account},#{password},#{roleId}, |
|
|
|
(SELECT schoolId FROM school WHERE schoolName = #{schoolAppellationName}),now()) |
|
|
|
(SELECT schoolId FROM school WHERE schoolName = #{schoolAppellationName}),now(),#{token}) |
|
|
|
</insert> |
|
|
|
</insert> |
|
|
|
<insert id="addUserinfo" useGeneratedKeys="true" keyProperty="userId" keyColumn="userId"> |
|
|
|
<insert id="addUserinfo" useGeneratedKeys="true" keyProperty="userId" keyColumn="userId"> |
|
|
|
INSERT INTO hr_user_info ( account, userName, roleId, phone, email, uniqueIdentificationAccount, schoolId,creationTime,password) |
|
|
|
INSERT INTO hr_user_info ( account, userName, roleId, phone, email, uniqueIdentificationAccount, schoolId,creationTime,password,token) |
|
|
|
VALUES |
|
|
|
VALUES |
|
|
|
(#{account},#{userName},#{roleId},#{phone},#{email},#{uniqueIdentificationAccount},#{schoolId},now(),#{password}) |
|
|
|
(#{account},#{userName},#{roleId},#{phone},#{email},#{uniqueIdentificationAccount},#{schoolId},now(),#{password},#{token}) |
|
|
|
</insert> |
|
|
|
</insert> |
|
|
|
|
|
|
|
|
|
|
|
<update id="initialPassword"> |
|
|
|
<update id="initialPassword"> |
|
|
|