Quellcode durchsuchen

王子文 专项培养 bug fixed: 解决了培养计划详细无法按日期检索的问题

wangggziwen vor 3 Jahren
Ursprung
Commit
40c0cfc828

+ 2 - 2
master/src/main/resources/mybatis/training/spec/TStPlanMapper.xml

@@ -137,8 +137,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="year != null  and year != ''"> and yp.plan_year = #{year}</if>
             <if test="staffId != null  and staffId != ''"> and d.staff_id = #{staffId}</if>
             <if test="plantName != null  and plantName != ''"> and plant_name like concat(concat('%', #{plantName}), '%')</if>
-            <if test="startDate != null "> and start_date = #{startDate}</if>
-            <if test="endDate != null "> and end_date = #{endDate}</if>
+            <if test="startDate != null "> and start_date &gt;= #{startDate}</if>
+            <if test="endDate != null "> and end_date &lt;= #{endDate}</if>
             <if test="classHour != null  and classHour != ''"> and class_hour = #{classHour}</if>
             <if test="studyState != null  and studyState != ''"> and study_state = #{studyState}</if>
             <if test="mentorStaffId != null  and mentorStaffId != ''"> and mentor_staff_id = #{mentorStaffId}</if>