输入条件支持模糊查询
This commit is contained in:
@ -72,7 +72,6 @@ public class CompanyController extends BaseController
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public TableDataInfo list(Company company)
|
public TableDataInfo list(Company company)
|
||||||
{
|
{
|
||||||
getUserId();
|
|
||||||
startPage();
|
startPage();
|
||||||
// 运营者账号,只能查询所属商户数据
|
// 运营者账号,只能查询所属商户数据
|
||||||
if(UserConstants.USER_TYPE_02 .equals(getSysUser().getUserType())){
|
if(UserConstants.USER_TYPE_02 .equals(getSysUser().getUserType())){
|
||||||
|
|||||||
@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<where>
|
<where>
|
||||||
<if test="userId != null "> and user_id = #{userId}</if>
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||||
<if test="phoneNumber != null and phoneNumber != ''"> and phone_number = #{phoneNumber}</if>
|
<if test="phoneNumber != null and phoneNumber != ''"> and phone_number like concat('%', #{phoneNumber}, '%')</if>
|
||||||
<if test="feedbackContent != null and feedbackContent != ''"> and feedback_content = #{feedbackContent}</if>
|
<if test="feedbackContent != null and feedbackContent != ''"> and feedback_content = #{feedbackContent}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@ -58,12 +58,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="userName != null and userName != ''"> and a.user_name like concat('%', #{userName}, '%')</if>
|
<if test="userName != null and userName != ''"> and a.user_name like concat('%', #{userName}, '%')</if>
|
||||||
<if test="avatarUrl != null and avatarUrl != ''"> and a.avatar_url = #{avatarUrl}</if>
|
<if test="avatarUrl != null and avatarUrl != ''"> and a.avatar_url = #{avatarUrl}</if>
|
||||||
<if test="password != null and password != ''"> and a.password = #{password}</if>
|
<if test="password != null and password != ''"> and a.password = #{password}</if>
|
||||||
<if test="phoneNumber != null and phoneNumber != ''"> and a.phone_number = #{phoneNumber}</if>
|
<if test="phoneNumber != null and phoneNumber != ''"> and a.phone_number like concat('%', #{phoneNumber}, '%')</if>
|
||||||
<if test="roleId != null "> and a.role_id = #{roleId}</if>
|
<if test="roleId != null "> and a.role_id = #{roleId}</if>
|
||||||
<if test="isStore != null "> and a.is_store = #{isStore}</if>
|
<if test="isStore != null "> and a.is_store = #{isStore}</if>
|
||||||
<if test="authed != null "> and a.authed = #{authed}</if>
|
<if test="authed != null "> and a.authed = #{authed}</if>
|
||||||
<if test="idNo != null and idNo != ''"> and a.id_no = #{idNo}</if>
|
<if test="idNo != null and idNo != ''"> and a.id_no like concat('%', #{idNo}, '%')</if>
|
||||||
<if test="realName != null and realName != '' "> and a.real_name = #{realName}</if>
|
<if test="realName != null and realName != '' "> and a.real_name like concat('%', #{realName}, '%')</if>
|
||||||
<if test="nickName != null and nickName != ''"> and a.nick_name like concat('%', #{nickName}, '%')</if>
|
<if test="nickName != null and nickName != ''"> and a.nick_name like concat('%', #{nickName}, '%')</if>
|
||||||
<if test="wechatOpenid != null and wechatOpenid != ''"> and a.wechat_openid = #{wechatOpenid}</if>
|
<if test="wechatOpenid != null and wechatOpenid != ''"> and a.wechat_openid = #{wechatOpenid}</if>
|
||||||
<if test="alipayUserid != null and alipayUserid != ''"> and a.alipay_userid = #{alipayUserid}</if>
|
<if test="alipayUserid != null and alipayUserid != ''"> and a.alipay_userid = #{alipayUserid}</if>
|
||||||
|
|||||||
@ -33,12 +33,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
left join zc_base_user c on a.referral_user_id = c.id
|
left join zc_base_user c on a.referral_user_id = c.id
|
||||||
<where>
|
<where>
|
||||||
<if test="userId != null "> and a.user_id = #{userId}</if>
|
<if test="userId != null "> and a.user_id = #{userId}</if>
|
||||||
<if test="userPhoneNumber != null and userPhoneNumber != ''"> and a.user_phone_number = #{userPhoneNumber}</if>
|
<if test="userPhoneNumber != null and userPhoneNumber != ''"> and a.user_phone_number like concat('%', #{userPhoneNumber}, '%')</if>
|
||||||
<if test="referralUserId != null "> and a.referral_user_id = #{referralUserId}</if>
|
<if test="referralUserId != null "> and a.referral_user_id = #{referralUserId}</if>
|
||||||
<if test="referralUserPhoneNumber != null and referralUserPhoneNumber != ''"> and a.referral_user_phone_number = #{referralUserPhoneNumber}</if>
|
<if test="referralUserPhoneNumber != null and referralUserPhoneNumber != ''"> and a.referral_user_phone_number like concat('%', #{referralUserPhoneNumber}, '%')</if>
|
||||||
<if test="awardDeadline != null "> and a.award_deadline = #{awardDeadline}</if>
|
<if test="awardDeadline != null "> and a.award_deadline = #{awardDeadline}</if>
|
||||||
<if test="awardRate != null "> and a.award_rate = #{awardRate}</if>
|
<if test="awardRate != null "> and a.award_rate = #{awardRate}</if>
|
||||||
<if test="referralOrderNo != null and referralOrderNo != ''"> and a.referral_order_no = #{referralOrderNo}</if>
|
<if test="referralOrderNo != null and referralOrderNo != ''"> and a.referral_order_no like concat('%', #{referralOrderNo}, '%')</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
@ -56,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="changeTime != null "> and a.change_time = #{changeTime}</if>
|
<if test="changeTime != null "> and a.change_time = #{changeTime}</if>
|
||||||
<if test="changeAmount != null "> and a.change_amount = #{changeAmount}</if>
|
<if test="changeAmount != null "> and a.change_amount = #{changeAmount}</if>
|
||||||
<if test="referralOrderNo != null and referralOrderNo != ''"> and a.referral_order_no = #{referralOrderNo}</if>
|
<if test="referralOrderNo != null and referralOrderNo != ''"> and a.referral_order_no = #{referralOrderNo}</if>
|
||||||
<if test="userName != null and userName != ''"> and s.name = #{userName}</if>
|
<if test="userName != null and userName != ''"> and s.name like concat('%', #{userName}, '%')</if>
|
||||||
</where>
|
</where>
|
||||||
order by a.update_time desc
|
order by a.update_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<include refid="selectZcBaseWalletVo"/>
|
<include refid="selectZcBaseWalletVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||||
<if test="phoneNumber != null and phoneNumber != ''"> and phone_number = #{phoneNumber}</if>
|
<if test="phoneNumber != null and phoneNumber != ''"> and phone_number like concat('%', #{phoneNumber}, '%')</if>
|
||||||
<if test="balance != null "> and balance = #{balance}</if>
|
<if test="balance != null "> and balance = #{balance}</if>
|
||||||
<if test="availableAmount != null "> and available_amount = #{availableAmount}</if>
|
<if test="availableAmount != null "> and available_amount = #{availableAmount}</if>
|
||||||
<if test="freezeAmount != null "> and freeze_amount = #{freezeAmount}</if>
|
<if test="freezeAmount != null "> and freeze_amount = #{freezeAmount}</if>
|
||||||
|
|||||||
@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="id != null and id != ''"> and id = #{id}</if>
|
<if test="id != null and id != ''"> and id = #{id}</if>
|
||||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
||||||
<if test="contactName != null and contactName != ''"> and contact_name like concat('%', #{contactName}, '%')</if>
|
<if test="contactName != null and contactName != ''"> and contact_name like concat('%', #{contactName}, '%')</if>
|
||||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
<if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
|
||||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
<if test="address != null and address != ''"> and address = #{address}</if>
|
||||||
<if test="balance != null "> and balance = #{balance}</if>
|
<if test="balance != null "> and balance = #{balance}</if>
|
||||||
<if test="deposit != null "> and deposit = #{deposit}</if>
|
<if test="deposit != null "> and deposit = #{deposit}</if>
|
||||||
|
|||||||
@ -71,8 +71,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<where>
|
<where>
|
||||||
cs.del_flag = '0' and c.del_flag = '0'
|
cs.del_flag = '0' and c.del_flag = '0'
|
||||||
<if test="name != null and name != ''"> and cs.name like concat('%', #{name}, '%')</if>
|
<if test="name != null and name != ''"> and cs.name like concat('%', #{name}, '%')</if>
|
||||||
<if test="contactPerson != null and contactPerson != ''"> and cs.contact_person = #{contactPerson}</if>
|
<if test="contactPerson != null and contactPerson != ''"> and cs.contact_person like concat('%', #{contactPerson}, '%')</if>
|
||||||
<if test="phone != null and phone != ''"> and cs.phone = #{phone}</if>
|
<if test="phone != null and phone != ''"> and cs.phone like concat('%', #{phone}, '%')</if>
|
||||||
<if test="provinceId != null "> and cs.province_id = #{provinceId}</if>
|
<if test="provinceId != null "> and cs.province_id = #{provinceId}</if>
|
||||||
<if test="provinceName != null "> and cs.province_name like concat('%', #{provinceName}, '%')</if>
|
<if test="provinceName != null "> and cs.province_name like concat('%', #{provinceName}, '%')</if>
|
||||||
<if test="cityId != null "> and cs.city_id = #{cityId}</if>
|
<if test="cityId != null "> and cs.city_id = #{cityId}</if>
|
||||||
@ -98,7 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="operatingNature != null "> and cs.operating_nature = #{operatingNature}</if>
|
<if test="operatingNature != null "> and cs.operating_nature = #{operatingNature}</if>
|
||||||
<if test="introduction != null and introduction != ''"> and cs.introduction = #{introduction}</if>
|
<if test="introduction != null and introduction != ''"> and cs.introduction = #{introduction}</if>
|
||||||
<if test="bankAccount != null and bankAccount != ''"> and cs.bank_account = #{bankAccount}</if>
|
<if test="bankAccount != null and bankAccount != ''"> and cs.bank_account = #{bankAccount}</if>
|
||||||
<if test="storeNumber != null and storeNumber != ''"> and cs.store_number = #{storeNumber}</if>
|
<if test="storeNumber != null and storeNumber != ''"> and cs.store_number like concat('%', #{storeNumber}, '%')</if>
|
||||||
<if test="businessLicenseImg != null and businessLicenseImg != ''"> and cs.business_license_img = #{businessLicenseImg}</if>
|
<if test="businessLicenseImg != null and businessLicenseImg != ''"> and cs.business_license_img = #{businessLicenseImg}</if>
|
||||||
<if test="auditStatus != null "> and cs.audit_status = #{auditStatus}</if>
|
<if test="auditStatus != null "> and cs.audit_status = #{auditStatus}</if>
|
||||||
<if test="auditTime != null "> and cs.audit_time = #{auditTime}</if>
|
<if test="auditTime != null "> and cs.audit_time = #{auditTime}</if>
|
||||||
|
|||||||
@ -63,7 +63,7 @@
|
|||||||
<if test="extend2 != null and extend2 != ''"> and a.extend2 = #{extend2}</if>
|
<if test="extend2 != null and extend2 != ''"> and a.extend2 = #{extend2}</if>
|
||||||
<if test="extend3 != null and extend3 != ''"> and a.extend3 = #{extend3}</if>
|
<if test="extend3 != null and extend3 != ''"> and a.extend3 = #{extend3}</if>
|
||||||
<if test="operatorId != null "> and c.operator_id = #{operatorId}</if>
|
<if test="operatorId != null "> and c.operator_id = #{operatorId}</if>
|
||||||
<if test="storeName != null and storeName != ''"> and c.store_name = #{storeName}</if>
|
<if test="storeName != null and storeName != ''"> and c.store_name like concat('%', #{storeName}, '%')</if>
|
||||||
<if test="params.beginSubmitTime != null and params.beginSubmitTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginSubmitTime != null and params.beginSubmitTime != ''"><!-- 开始时间检索 -->
|
||||||
and date_format(a.submit_time,'%y%m%d') >= date_format(#{beginSubmitTime},'%y%m%d')
|
and date_format(a.submit_time,'%y%m%d') >= date_format(#{beginSubmitTime},'%y%m%d')
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@ -50,8 +50,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectZcCarList" parameterType="ZcCar" resultMap="ZcCarResult">
|
<select id="selectZcCarList" parameterType="ZcCar" resultMap="ZcCarResult">
|
||||||
<include refid="selectZcCarVo"/>
|
<include refid="selectZcCarVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="vin != null and vin != ''"> and vin = #{vin}</if>
|
<if test="vin != null and vin != ''"> and vin like concat('%', #{vin}, '%')</if>
|
||||||
<if test="licensePlate != null and licensePlate != ''"> and license_plate = #{licensePlate}</if>
|
<if test="licensePlate != null and licensePlate != ''"> and license_plate like concat('%', #{licensePlate}, '%')</if>
|
||||||
<if test="brandId != null "> and brand_id = #{brandId}</if>
|
<if test="brandId != null "> and brand_id = #{brandId}</if>
|
||||||
<if test="brandName != null and brandName != ''"> and brand_name like concat('%', #{brandName}, '%')</if>
|
<if test="brandName != null and brandName != ''"> and brand_name like concat('%', #{brandName}, '%')</if>
|
||||||
<if test="modelId != null "> and model_id = #{modelId}</if>
|
<if test="modelId != null "> and model_id = #{modelId}</if>
|
||||||
|
|||||||
@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<where>
|
<where>
|
||||||
a.del_flag = '0' and c.del_flag = '0'
|
a.del_flag = '0' and c.del_flag = '0'
|
||||||
<if test="ruleName != null and ruleName != ''"> and a.rule_name like concat('%', #{ruleName}, '%')</if>
|
<if test="ruleName != null and ruleName != ''"> and a.rule_name like concat('%', #{ruleName}, '%')</if>
|
||||||
<if test="ruleCode != null and ruleCode != ''"> and a.rule_code = #{ruleCode}</if>
|
<if test="ruleCode != null and ruleCode != ''"> and a.rule_code like concat('%', #{ruleCode}, '%')</if>
|
||||||
<if test="rentalType != null and rentalType != ''"> and a.rental_type = #{rentalType}</if>
|
<if test="rentalType != null and rentalType != ''"> and a.rental_type = #{rentalType}</if>
|
||||||
<if test="rentalDays != null "> and a.rental_days = #{rentalDays}</if>
|
<if test="rentalDays != null "> and a.rental_days = #{rentalDays}</if>
|
||||||
<if test="rentalPrice != null "> and a.rental_price = #{rentalPrice}</if>
|
<if test="rentalPrice != null "> and a.rental_price = #{rentalPrice}</if>
|
||||||
|
|||||||
@ -27,12 +27,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<include refid="selectZcOrderCarChangeVo"/>
|
<include refid="selectZcOrderCarChangeVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="orderId != null "> and order_id = #{orderId}</if>
|
<if test="orderId != null "> and order_id = #{orderId}</if>
|
||||||
<if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
|
<if test="orderNo != null and orderNo != ''"> and order_no like concat('%', #{orderNo}, '%')</if>
|
||||||
<if test="orderSubNo != null and orderSubNo != ''"> and order_sub_no = #{orderSubNo}</if>
|
<if test="orderSubNo != null and orderSubNo != ''"> and order_sub_no like concat('%', #{orderSubNo}, '%')</if>
|
||||||
<if test="oldVehicleId != null "> and old_vehicle_id = #{oldVehicleId}</if>
|
<if test="oldVehicleId != null "> and old_vehicle_id = #{oldVehicleId}</if>
|
||||||
<if test="oldVehicleVin != null and oldVehicleVin != ''"> and old_vehicle_vin = #{oldVehicleVin}</if>
|
<if test="oldVehicleVin != null and oldVehicleVin != ''"> and old_vehicle_vin like concat('%', #{oldVehicleVin}, '%')</if>
|
||||||
<if test="newVehicleId != null "> and new_vehicle_id = #{newVehicleId}</if>
|
<if test="newVehicleId != null "> and new_vehicle_id = #{newVehicleId}</if>
|
||||||
<if test="newVehicleVin != null and newVehicleVin != ''"> and new_vehicle_vin = #{newVehicleVin}</if>
|
<if test="newVehicleVin != null and newVehicleVin != ''"> and new_vehicle_vin like concat('%', #{newVehicleVin}, '%')</if>
|
||||||
<if test="operatorId != null "> and operator_id = #{operatorId}</if>
|
<if test="operatorId != null "> and operator_id = #{operatorId}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<include refid="selectZcOrderDistribVo"/>
|
<include refid="selectZcOrderDistribVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="orderId != null "> and a.order_id = #{orderId}</if>
|
<if test="orderId != null "> and a.order_id = #{orderId}</if>
|
||||||
<if test="orderNo != null and orderNo != ''"> and a.order_no = #{orderNo}</if>
|
<if test="orderNo != null and orderNo != ''"> and a.order_no like concat('%', #{orderNo}, '%')</if>
|
||||||
<if test="companyId != null "> and a.company_id = #{companyId}</if>
|
<if test="companyId != null "> and a.company_id = #{companyId}</if>
|
||||||
<if test="referralUserId != null "> and a.referral_user_id = #{referralUserId}</if>
|
<if test="referralUserId != null "> and a.referral_user_id = #{referralUserId}</if>
|
||||||
<if test="distribType != null and distribType != ''"> and a.distrib_type = #{distribType}</if>
|
<if test="distribType != null and distribType != ''"> and a.distrib_type = #{distribType}</if>
|
||||||
@ -98,8 +98,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
and date_format(b.first_order_time,'%y%m%d') <= date_format(#{params.endFirstOrderTime},'%y%m%d')
|
and date_format(b.first_order_time,'%y%m%d') <= date_format(#{params.endFirstOrderTime},'%y%m%d')
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="zcOrderMain != null and zcOrderMain.storeName != null and zcOrderMain.storeName != '' "> and s.name = #{zcOrderMain.storeName}</if>
|
<if test="zcOrderMain != null and zcOrderMain.storeName != null and zcOrderMain.storeName != '' "> and s.name like concat('%', #{zcOrderMain.storeName}, '%') </if>
|
||||||
<if test="zcOrderMain != null and zcOrderMain.licensePlate != null and zcOrderMain.licensePlate != '' "> and zc.license_plate = #{zcOrderMain.licensePlate}</if>
|
<if test="zcOrderMain != null and zcOrderMain.licensePlate != null and zcOrderMain.licensePlate != '' "> and zc.license_plate like concat('%', #{zcOrderMain.licensePlate}, '%')</if>
|
||||||
</where>
|
</where>
|
||||||
order by b.first_order_time desc
|
order by b.first_order_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@ -99,14 +99,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
left join zc_company_store s on s.id = a.store_id
|
left join zc_company_store s on s.id = a.store_id
|
||||||
left join zc_car zc on zc.id = a.vehicle_id
|
left join zc_car zc on zc.id = a.vehicle_id
|
||||||
<where>
|
<where>
|
||||||
<if test="orderNo != null and orderNo != ''"> and a.order_no = #{orderNo}</if>
|
<if test="orderNo != null and orderNo != ''"> and a.order_no like concat('%', #{orderNo}, '%')</if>
|
||||||
<if test="orderStatus != null and orderStatus != ''"> and a.order_status = #{orderStatus}</if>
|
<if test="orderStatus != null and orderStatus != ''"> and a.order_status = #{orderStatus}</if>
|
||||||
<if test="operatorId != null "> and a.operator_id = #{operatorId}</if>
|
<if test="operatorId != null "> and a.operator_id = #{operatorId}</if>
|
||||||
<if test="storeId != null "> and a.store_id = #{storeId}</if>
|
<if test="storeId != null "> and a.store_id = #{storeId}</if>
|
||||||
<if test="vehicleId != null "> and a.vehicle_id = #{vehicleId}</if>
|
<if test="vehicleId != null "> and a.vehicle_id = #{vehicleId}</if>
|
||||||
<if test="customerId != null "> and a.customer_id = #{customerId}</if>
|
<if test="customerId != null "> and a.customer_id = #{customerId}</if>
|
||||||
<if test="customerName != null and customerName != ''"> and a.customer_name like concat('%', #{customerName}, '%')</if>
|
<if test="customerName != null and customerName != ''"> and a.customer_name like concat('%', #{customerName}, '%')</if>
|
||||||
<if test="customerPhone != null and customerPhone != ''"> and a.customer_phone = #{customerPhone}</if>
|
<if test="customerPhone != null and customerPhone != ''"> and a.customer_phone like concat('%', #{customerPhone}, '%')</if>
|
||||||
<if test="rentalType != null and rentalType != ''"> and a.rental_type = #{rentalType}</if>
|
<if test="rentalType != null and rentalType != ''"> and a.rental_type = #{rentalType}</if>
|
||||||
<if test="rentalDays != null "> and a.rental_days = #{rentalDays}</if>
|
<if test="rentalDays != null "> and a.rental_days = #{rentalDays}</if>
|
||||||
<if test="rentalPrice != null "> and a.rental_price = #{rentalPrice}</if>
|
<if test="rentalPrice != null "> and a.rental_price = #{rentalPrice}</if>
|
||||||
@ -121,8 +121,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="rentCarRuleId != null "> and a.rent_car_rule_id = #{rentCarRuleId}</if>
|
<if test="rentCarRuleId != null "> and a.rent_car_rule_id = #{rentCarRuleId}</if>
|
||||||
<if test="rentBatteyRuleId != null "> and a.rent_battey_rule_id = #{rentBatteyRuleId}</if>
|
<if test="rentBatteyRuleId != null "> and a.rent_battey_rule_id = #{rentBatteyRuleId}</if>
|
||||||
|
|
||||||
<if test="storeName != null and storeName!= '' "> and s.name = #{storeName}</if>
|
<if test="storeName != null and storeName!= '' "> and s.name like concat('%', #{storeName}, '%')</if>
|
||||||
<if test="licensePlate != null and licensePlate!= '' "> and zc.license_plate = #{licensePlate}</if>
|
<if test="licensePlate != null and licensePlate!= '' "> and zc.license_plate like concat('%', #{licensePlate}, '%')</if>
|
||||||
<if test="params.beginFirstOrderTime != null and params.beginFirstOrderTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginFirstOrderTime != null and params.beginFirstOrderTime != ''"><!-- 开始时间检索 -->
|
||||||
and date_format(a.first_order_time,'%y%m%d') >= date_format(#{params.beginFirstOrderTime},'%y%m%d')
|
and date_format(a.first_order_time,'%y%m%d') >= date_format(#{params.beginFirstOrderTime},'%y%m%d')
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@ -31,11 +31,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<include refid="selectZcOrderSubVo"/>
|
<include refid="selectZcOrderSubVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="orderId != null "> and order_id = #{orderId}</if>
|
<if test="orderId != null "> and order_id = #{orderId}</if>
|
||||||
<if test="suborderNo != null and suborderNo != ''"> and suborder_no = #{suborderNo}</if>
|
<if test="suborderNo != null and suborderNo != ''"> and suborder_no like concat('%', #{suborderNo}, '%')</if>
|
||||||
<if test="suborderType != null and suborderType != ''"> and suborder_type = #{suborderType}</if>
|
<if test="suborderType != null and suborderType != ''"> and suborder_type = #{suborderType}</if>
|
||||||
<if test="amount != null "> and amount = #{amount}</if>
|
<if test="amount != null "> and amount = #{amount}</if>
|
||||||
<if test="paymentMethod != null and paymentMethod != ''"> and payment_method = #{paymentMethod}</if>
|
<if test="paymentMethod != null and paymentMethod != ''"> and payment_method = #{paymentMethod}</if>
|
||||||
<if test="vinBatteryNo != null and vinBatteryNo != ''"> and vin_battery_no = #{vinBatteryNo}</if>
|
<if test="vinBatteryNo != null and vinBatteryNo != ''"> and vin_battery_no like concat('%', #{vinBatteryNo}, '%')</if>
|
||||||
<if test="createdAt != null "> and created_at = #{createdAt}</if>
|
<if test="createdAt != null "> and created_at = #{createdAt}</if>
|
||||||
<if test="paymentId != null and paymentId != ''"> and payment_id = #{paymentId}</if>
|
<if test="paymentId != null and paymentId != ''"> and payment_id = #{paymentId}</if>
|
||||||
<if test="paidAt != null "> and paid_at = #{paidAt}</if>
|
<if test="paidAt != null "> and paid_at = #{paidAt}</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user