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