|
@@ -51,8 +51,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="manager != null and manager != ''"> and manager = #{manager}</if>
|
|
|
<if test="purchase != null and purchase != ''"> and purchase = #{purchase}</if>
|
|
|
<if test="purchaseTime != null "> and purchase_time = #{purchaseTime}</if>
|
|
|
+ <if test="params.beginPurchaseTime != null and params.beginPurchaseTime != ''"> and (purchase_time > #{params.beginPurchaseTime} or purchase_time = #{params.beginPurchaseTime})</if>
|
|
|
+ <if test="params.endPurchaseTime != null and params.endPurchaseTime != ''"> and (purchase_time < #{params.endPurchaseTime} or purchase_time = #{params.endPurchaseTime})</if>
|
|
|
<if test="maintenance != null "> and maintenance = #{maintenance}</if>
|
|
|
<if test="nextMaintenance != null "> and next_maintenance = #{nextMaintenance}</if>
|
|
|
+ <if test="params.beginNextMaintenance != null and params.beginNextMaintenance != ''"> and (next_maintenance > #{params.beginNextMaintenance} or next_maintenance = #{params.beginNextMaintenance})</if>
|
|
|
+ <if test="params.endNextMaintenance != null and params.endNextMaintenance != ''"> and (next_maintenance < #{params.endNextMaintenance} or next_maintenance = #{params.endNextMaintenance})</if>
|
|
|
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
|
|
<if test="createUserId != null and createUserId != ''"> and create_user_id = #{createUserId}</if>
|
|
|
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
|