|
|
@@ -159,19 +159,25 @@
|
|
|
and si.cname like CONCAT(CONCAT('%', #{salaryItem.cname}), '%')
|
|
|
</if>
|
|
|
<if test="salaryItem.tenantId!=null and salaryItem.tenantId != ''">
|
|
|
- and si.tenant_id = #{salaryItem.tenantId})
|
|
|
+ and si.tenant_id = #{salaryItem.tenantId}
|
|
|
</if>
|
|
|
<if test="salaryItem.idNumber!=null and salaryItem.idNumber != ''">
|
|
|
- and si.idNumber like CONCAT(CONCAT('%', #{salaryItem.idNumber}), '%')
|
|
|
+ and si.id_number like CONCAT(CONCAT('%', #{salaryItem.idNumber}), '%')
|
|
|
</if>
|
|
|
<if test="salaryItem.inSection!=null and salaryItem.inSection != ''">
|
|
|
and sa.salary_type = #{salaryItem.inSection}
|
|
|
</if>
|
|
|
- <if test="salaryItem.createTimeStart!=null and salaryItem.createTimeStart != ''">
|
|
|
- and sa.create_time >= #{salaryItem.createTimeStart})
|
|
|
+ <if test="salaryItem.startYear!=null and salaryItem.startYear != ''">
|
|
|
+ and sa.annual >= #{salaryItem.startYear}
|
|
|
</if>
|
|
|
- <if test="salaryItem.createTimeEnd!=null and salaryItem.createTimeEnd != ''">
|
|
|
- and sa.create_time <= #{salaryItem.createTimeEnd})
|
|
|
+ <if test="salaryItem.endYear!=null and salaryItem.endYear != ''">
|
|
|
+ and sa.annual <= #{salaryItem.endYear}
|
|
|
+ </if>
|
|
|
+ <if test="salaryItem.startMonth!=null and salaryItem.startMonth != ''">
|
|
|
+ and sa.moon >= #{salaryItem.startMonth}
|
|
|
+ </if>
|
|
|
+ <if test="salaryItem.endMonth!=null and salaryItem.endMonth != ''">
|
|
|
+ and sa.moon <= #{salaryItem.endMonth}
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="exportSalaryStatements" resultType="org.springblade.school.excel.WageExcel">
|
|
|
@@ -188,19 +194,25 @@
|
|
|
and si.cname like CONCAT(CONCAT('%', #{salaryItem.cname}), '%')
|
|
|
</if>
|
|
|
<if test="salaryItem.tenantId!=null and salaryItem.tenantId != ''">
|
|
|
- and si.tenant_id = #{salaryItem.tenantId})
|
|
|
+ and si.tenant_id = #{salaryItem.tenantId}
|
|
|
</if>
|
|
|
<if test="salaryItem.idNumber!=null and salaryItem.idNumber != ''">
|
|
|
- and si.idNumber like CONCAT(CONCAT('%', #{salaryItem.idNumber}), '%')
|
|
|
+ and si.id_number like CONCAT(CONCAT('%', #{salaryItem.idNumber}), '%')
|
|
|
</if>
|
|
|
<if test="salaryItem.inSection!=null and salaryItem.inSection != ''">
|
|
|
and sa.salary_type = #{salaryItem.inSection}
|
|
|
</if>
|
|
|
- <if test="salaryItem.createTimeStart!=null and salaryItem.createTimeStart != ''">
|
|
|
- and sa.create_time >= #{salaryItem.createTimeStart})
|
|
|
+ <if test="salaryItem.startYear!=null and salaryItem.startYear != ''">
|
|
|
+ and sa.annual >= #{salaryItem.startYear}
|
|
|
+ </if>
|
|
|
+ <if test="salaryItem.endYear!=null and salaryItem.endYear != ''">
|
|
|
+ and sa.annual <= #{salaryItem.endYear}
|
|
|
+ </if>
|
|
|
+ <if test="salaryItem.startMonth!=null and salaryItem.startMonth != ''">
|
|
|
+ and sa.moon >= #{salaryItem.startMonth}
|
|
|
</if>
|
|
|
- <if test="salaryItem.createTimeEnd!=null and salaryItem.createTimeEnd != ''">
|
|
|
- and sa.create_time <= #{salaryItem.createTimeEnd})
|
|
|
+ <if test="salaryItem.endMonth!=null and salaryItem.endMonth != ''">
|
|
|
+ and sa.moon <= #{salaryItem.endMonth}
|
|
|
</if>
|
|
|
</select>
|
|
|
|