|
@@ -328,8 +328,6 @@
|
|
|
<if test="searchParams.noResult != null">
|
|
|
AND result_ != #{searchParams.noResult}
|
|
|
</if>
|
|
|
- ORDER BY
|
|
|
- attendance_date,record_time
|
|
|
</select>
|
|
|
|
|
|
<select id="findByPersonIdRecordTimeResult" resultMap="WorkScheduleAttendanceMap">
|
|
@@ -675,4 +673,19 @@
|
|
|
order by record_time asc
|
|
|
limit ${limit}
|
|
|
</select>
|
|
|
+ <select id="findSumWorkMinuteByParams" resultType="java.lang.Double">
|
|
|
+ SELECT COALESCE(sum(work_minute),0)
|
|
|
+ FROM
|
|
|
+ business_work_schedule_attendance
|
|
|
+ WHERE del_flag = 0
|
|
|
+ and person_id = #{personId}
|
|
|
+ and work_minute>0
|
|
|
+ <![CDATA[
|
|
|
+ and attendance_date >= DATE_FORMAT(#{startDate}, '%Y-%m-%d')
|
|
|
+ and attendance_date <= DATE_FORMAT(#{endDate}, '%Y-%m-%d')
|
|
|
+ ]]>
|
|
|
+ <if test="searchParams.classify != null">
|
|
|
+ AND classify_ = #{searchParams.classify}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|