1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11:24 +08:00

Optimized code

This commit is contained in:
2023-06-11 18:20:57 +08:00
parent d2c9b557f3
commit 80190dc6bc
98 changed files with 478 additions and 553 deletions

View File

@@ -35,10 +35,7 @@
</resultMap>
<select id="getAttendanceAndUserByid" resultMap="AttendAndUserResult">
<select id="getAttendanceAndUserById" resultMap="AttendAndUserResult">
select att.id attId,
att.user_id,
att.att_time,
@@ -56,7 +53,8 @@
from t_attendance att,
t_user u
where att.user_id = u.id
and att.deleted = 0 and att.user_id=#{userid}
and att.deleted = 0
and att.user_id = #{userid}
order by att_time DESC
</select>
<resultMap id="AttendAndUserResult" type="attendance" autoMapping="true">
@@ -70,4 +68,4 @@
</association>
</resultMap>
</mapper>
</mapper>