|
@@ -61,10 +61,10 @@
|
|
|
LEFT JOIN
|
|
|
sys_user b on a.create_id = b.id
|
|
|
<where>
|
|
|
- <if test="schoolId != null and schoolId > 0">
|
|
|
+ <if test="schoolId != null and schoolId != ''">
|
|
|
and a.school_id = #{schoolId}
|
|
|
</if>
|
|
|
- <if test="printPlanIdList.size() > 0">
|
|
|
+ <if test="printPlanIdList != null">
|
|
|
and a.id IN
|
|
|
<foreach collection="printPlanIdList" item="item" index="index" open="(" separator="," close=")">
|
|
|
#{item}
|
|
@@ -73,10 +73,10 @@
|
|
|
<if test="status != null">
|
|
|
and a.status = #{status}
|
|
|
</if>
|
|
|
- <if test="startTime != null and startTime > 0">
|
|
|
+ <if test="startTime != null and startTime != ''">
|
|
|
and a.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime != null and endTime > 0">
|
|
|
+ <if test="endTime != null and endTime != ''">
|
|
|
and #{endTime} >= a.create_time
|
|
|
</if>
|
|
|
<if test="orgIds != null">
|
|
@@ -125,16 +125,16 @@
|
|
|
<foreach collection="status" item="item" index="index" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
- <if test="schoolId != null and schoolId > 0">
|
|
|
+ <if test="schoolId != null and schoolId != ''">
|
|
|
and a.school_id = #{schoolId}
|
|
|
</if>
|
|
|
<if test="printPlanId!= null and printPlanId != ''">
|
|
|
and a.id = #{printPlanId}
|
|
|
</if>
|
|
|
- <if test="startTime != null and startTime > 0">
|
|
|
+ <if test="startTime != null and startTime != ''">
|
|
|
and a.create_time >= #{startTime}
|
|
|
</if>
|
|
|
- <if test="endTime != null and endTime > 0">
|
|
|
+ <if test="endTime != null and endTime != ''">
|
|
|
and #{endTime} >= a.create_time
|
|
|
</if>
|
|
|
<if test="orgIds != null">
|