|
@@ -41,6 +41,10 @@
|
|
|
update sap_user set result=#{result} where personId=#{personId}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateResultByDelFlag">
|
|
|
+ update sap_user set result=#{result} where delFlag=#{delFlag}
|
|
|
+ </update>
|
|
|
+
|
|
|
<select id="selectByUserId" resultType="SapUser">
|
|
|
select * from sap_user where userId=#{userId}
|
|
|
</select>
|
|
@@ -64,7 +68,8 @@
|
|
|
|
|
|
<select id="selectPrimaryListByName" resultType="SapUser">
|
|
|
select * from sap_user
|
|
|
- where result = 'SUCCESS' and isPrimary = 1 and delFlag = 0 and name like CONCAT(CONCAT('%', #{name}),'%')
|
|
|
+ where result = 'SUCCESS' and isPrimary = 1 and delFlag = 0
|
|
|
+ and name like CONCAT(CONCAT('%', #{name}),'%')
|
|
|
order by sortNumber ASC
|
|
|
</select>
|
|
|
|
|
@@ -100,7 +105,13 @@
|
|
|
|
|
|
<select id="selectToBeConfirmedPrimaryList" resultType="SapUser">
|
|
|
select * from sap_user
|
|
|
- where isPrimary = 1 and delFlag = 0
|
|
|
+ where isPrimary = 1 and delFlag = 0 and result in ('ENTRY','LEAVE','SENSITIVE')
|
|
|
+ <if test="type != null and type != ''">
|
|
|
+ and result = #{type}
|
|
|
+ </if>
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ and name like CONCAT(CONCAT('%', #{name}),'%')
|
|
|
+ </if>
|
|
|
order by sortNumber ASC
|
|
|
</select>
|
|
|
</mapper>
|