|
@@ -290,7 +290,7 @@
|
|
<include refid="leaveApplyJoins"/>
|
|
<include refid="leaveApplyJoins"/>
|
|
WHERE a.company_id=#{companyId} and a.del_flag = '0' and a.status in('5','8','6','7','9')
|
|
WHERE a.company_id=#{companyId} and a.del_flag = '0' and a.status in('5','8','6','7','9')
|
|
<if test="basicInfo != null and basicInfo.name != null and basicInfo.name != ''">
|
|
<if test="basicInfo != null and basicInfo.name != null and basicInfo.name != ''">
|
|
- AND w.name LIKE
|
|
|
|
|
|
+ AND w.name LIKE
|
|
<if test="dbName == 'oracle'">'%'||#{basicInfo.name}||'%'</if>
|
|
<if test="dbName == 'oracle'">'%'||#{basicInfo.name}||'%'</if>
|
|
<if test="dbName == 'mssql'">'%'+#{basicInfo.name}+'%'</if>
|
|
<if test="dbName == 'mssql'">'%'+#{basicInfo.name}+'%'</if>
|
|
<if test="dbName == 'mysql'">concat('%',#{basicInfo.name},'%')</if>
|
|
<if test="dbName == 'mysql'">concat('%',#{basicInfo.name},'%')</if>
|
|
@@ -298,12 +298,13 @@
|
|
<if test="basicInfo != null and basicInfo.office != null and basicInfo.office.id != null and basicInfo.office.id != ''">
|
|
<if test="basicInfo != null and basicInfo.office != null and basicInfo.office.id != null and basicInfo.office.id != ''">
|
|
AND a.office_id = #{basicInfo.office.id}
|
|
AND a.office_id = #{basicInfo.office.id}
|
|
</if>
|
|
</if>
|
|
- group by a.staff_id order by w.no ASC
|
|
|
|
|
|
+<!-- 有异常-->
|
|
|
|
+<!-- group by a.staff_id order by w.no ASC-->
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getSumDays" resultType="LeaveApply" parameterType="java.lang.String">
|
|
<select id="getSumDays" resultType="LeaveApply" parameterType="java.lang.String">
|
|
SELECT
|
|
SELECT
|
|
- ifnull(sum(a.sums),0) as "sumDays"
|
|
|
|
|
|
+ ifnull(sum(a.sums),0) as "sumDays"
|
|
FROM leave_count a
|
|
FROM leave_count a
|
|
where
|
|
where
|
|
a.del_flag = '0'
|
|
a.del_flag = '0'
|