| | |
| | | </sql> |
| | | |
| | | <sql id="whereCondition"> |
| | | <if test="dispatchNo != null and dispatchNo != ''"> and thisTab.dispatch_no = #{dispatchNo}</if> |
| | | <if test="dispatchNo != null and dispatchNo != ''"> and thisTab.dispatch_no like concat('%', #{dispatchNo}, '%')</if> |
| | | <if test="customerId != null "> and thisTab.customer_id = #{customerId}</if> |
| | | <if test="customerCode != null and customerCode != ''"> and thisTab.customer_code = #{customerCode}</if> |
| | | <if test="customerName != null and customerName != ''"> and thisTab.customer_name like concat('%', #{customerName}, '%')</if> |
| | |
| | | <if test="assistantDriverName != null and assistantDriverName != ''"> and thisTab.assistant_driver_name like concat('%', #{assistantDriverName}, '%')</if> |
| | | <if test="requiredVehicleTypes != null and requiredVehicleTypes != ''"> and thisTab.required_vehicle_types = #{requiredVehicleTypes}</if> |
| | | <if test="vehicleId != null "> and thisTab.vehicle_id = #{vehicleId}</if> |
| | | <if test="licensePlate != null and licensePlate != ''"> and thisTab.license_plate = #{licensePlate}</if> |
| | | <if test="licensePlate != null and licensePlate != ''"> and thisTab.license_plate like concat('%', #{licensePlate}, '%')</if> |
| | | <if test="shipperId != null "> and thisTab.shipper_id = #{shipperId}</if> |
| | | <if test="shipperName != null and shipperName != ''"> and thisTab.shipper_name like concat('%', #{shipperName}, '%')</if> |
| | | <if test="shipperMobile != null and shipperMobile != ''"> and thisTab.shipper_mobile = #{shipperMobile}</if> |