|
@@ -15,20 +15,17 @@
|
|
|
AND m.status_flag != '3'
|
|
|
</if>
|
|
|
<if test="searchType == 2">
|
|
|
- AND m.status_flag == '3'
|
|
|
- </if>
|
|
|
- <if test="searchType == 3">
|
|
|
- AND p.mildew_grain != 0
|
|
|
+ AND m.status_flag = '3'
|
|
|
</if>
|
|
|
|
|
|
</if>
|
|
|
- <if test="startDate != null and startDate != ''">
|
|
|
- AND DATE_FORMAT(m.signing_date,"%Y%m%d") ge
|
|
|
- DATE_FORMAT(#{startDate},"%Y%m%d")
|
|
|
+ <if test="startDate != null">
|
|
|
+ AND (DATE_FORMAT(m.signing_date,"%Y%m%d") >=
|
|
|
+ DATE_FORMAT(#{startDate},"%Y%m%d"))
|
|
|
</if>
|
|
|
- <if test="endDate != null and endDate != ''">
|
|
|
- AND DATE_FORMAT(m.signing_date,"%Y%m%d") le
|
|
|
- DATE_FORMAT(#{endDate},"%Y%m%d")
|
|
|
+ <if test="endDate != null">
|
|
|
+ AND (DATE_FORMAT(m.signing_date,"%Y%m%d") <=
|
|
|
+ DATE_FORMAT(#{endDate},"%Y%m%d"))
|
|
|
</if>
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
AND (lower(m.contract_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
@@ -64,20 +61,20 @@
|
|
|
AND m.status_flag != '3'
|
|
|
</if>
|
|
|
<if test="searchType == 2">
|
|
|
- AND m.status_flag == '3'
|
|
|
- </if>
|
|
|
- <if test="searchType == 3">
|
|
|
- AND p.mildew_grain != 0
|
|
|
+ AND m.status_flag = '3'
|
|
|
</if>
|
|
|
|
|
|
</if>
|
|
|
- <if test="startDate != null and startDate != ''">
|
|
|
- AND DATE_FORMAT(m.signing_date,"%Y%m%d") ge
|
|
|
- DATE_FORMAT(#{startDate},"%Y%m%d")
|
|
|
+ <if test="contractType != null and contractType != ''">
|
|
|
+ AND m.contract_type = #{contractType}
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ AND (DATE_FORMAT(m.signing_date,"%Y%m%d") >=
|
|
|
+ DATE_FORMAT(#{startDate},"%Y%m%d"))
|
|
|
</if>
|
|
|
- <if test="endDate != null and endDate != ''">
|
|
|
- AND DATE_FORMAT(m.signing_date,"%Y%m%d") le
|
|
|
- DATE_FORMAT(#{endDate},"%Y%m%d")
|
|
|
+ <if test="endDate != null">
|
|
|
+ AND (DATE_FORMAT(m.signing_date,"%Y%m%d") <=
|
|
|
+ DATE_FORMAT(#{endDate},"%Y%m%d"))
|
|
|
</if>
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
AND (lower(m.contract_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|