|
@@ -72,8 +72,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="isApprove != null and isApprove != ''"> and is_approve = #{isApprove}</if>
|
|
<if test="isApprove != null and isApprove != ''"> and is_approve = #{isApprove}</if>
|
|
<if test="maintenanceFilePath != null and maintenanceFilePath != ''"> and maintenance_file_path = #{maintenanceFilePath}</if>
|
|
<if test="maintenanceFilePath != null and maintenanceFilePath != ''"> and maintenance_file_path = #{maintenanceFilePath}</if>
|
|
<if test="approveFilePath != null and approveFilePath != ''"> and approve_file_path = #{approveFilePath}</if>
|
|
<if test="approveFilePath != null and approveFilePath != ''"> and approve_file_path = #{approveFilePath}</if>
|
|
|
|
+ <if test="startDate != null and startDate != ''">
|
|
|
|
+ and date_format(week_start_dt,'%Y%m%d') >= #{startDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="endDate != null and endDate != ''">
|
|
|
|
+ and date_format(week_start_dt,'%Y%m%d') <= #{endDate}
|
|
|
|
+ </if>
|
|
|
|
+
|
|
</where>
|
|
</where>
|
|
- )a order by plan_code,plan_code_w,station,line_name
|
|
|
|
|
|
+ )a order by week_start_dt desc,plan_code,plan_code_w,station,line_name
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectPdmMaintenanceProcessById" parameterType="Long" resultMap="PdmMaintenanceProcessResult">
|
|
<select id="selectPdmMaintenanceProcessById" parameterType="Long" resultMap="PdmMaintenanceProcessResult">
|