|
@@ -0,0 +1,243 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper
|
|
|
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.ruoyi.orderManagement.mapper.FleetCarManageMapper">
|
|
|
+
|
|
|
+ <resultMap type="FleetCarManage" id="FleetCarManageResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="fleetCompanyId" column="fleet_company_id" />
|
|
|
+ <result property="carNum" column="car_num" />
|
|
|
+ <result property="hangNum" column="hang_num" />
|
|
|
+ <result property="fuelType" column="fuel_type" />
|
|
|
+ <result property="carType" column="car_type" />
|
|
|
+ <result property="carName" column="car_name" />
|
|
|
+ <result property="carBrand" column="car_brand" />
|
|
|
+ <result property="manufactureUnit" column="manufacture_unit" />
|
|
|
+ <result property="officeOfCertificate" column="office_of_certificate" />
|
|
|
+ <result property="pullCarType" column="pull_car_type" />
|
|
|
+ <result property="pullCarShelfNum" column="pull_car_shelf_num" />
|
|
|
+ <result property="mountCarType" column="mount_car_type" />
|
|
|
+ <result property="mountCarNum" column="mount_car_num" />
|
|
|
+ <result property="engine" column="engine" />
|
|
|
+ <result property="carLoadPersion" column="car_load_persion" />
|
|
|
+ <result property="buyCarDate" column="buy_car_date" />
|
|
|
+ <result property="regiestDate" column="regiest_date" />
|
|
|
+ <result property="abandonDate" column="abandon_date" />
|
|
|
+ <result property="outerSize" column="outer_size" />
|
|
|
+ <result property="sumWeight" column="sum_weight" />
|
|
|
+ <result property="vouchWeight" column="vouch_weight" />
|
|
|
+ <result property="equipWeight" column="equip_weight" />
|
|
|
+ <result property="drivingLicenseSrc" column="driving_license_src" />
|
|
|
+ <result property="drivingPendantSrc" column="driving_pendant_src" />
|
|
|
+ <result property="operationLicenseSrc" column="operation_license_src" />
|
|
|
+ <result property="technologySrc" column="technology_src" />
|
|
|
+ <result property="drivingLoadSrc" column="driving_load_src" />
|
|
|
+ <result property="secondLvMaintainSrc" column="second_lv_maintain_src" />
|
|
|
+ <result property="tafficConstranintInsuranceSrc" column="taffic_constranint_insurance_src" />
|
|
|
+ <result property="businessInsuranceSrc" column="business_insurance_src" />
|
|
|
+ <result property="accpetCarrageInsuranceSrc" column="accpet_carrage_insurance_src" />
|
|
|
+ <result property="creatTime" column="creat_time" />
|
|
|
+ <result property="modificationTime" column="modification_time" />
|
|
|
+ <result property="billStatus" column="bill_status" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="remarks" column="remarks" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectFleetCarManageVo">
|
|
|
+ select id, fleet_company_id, car_num, hang_num, fuel_type, car_type, car_name, car_brand, manufacture_unit, office_of_certificate, pull_car_type, pull_car_shelf_num, mount_car_type, mount_car_num, engine, car_load_persion, buy_car_date, regiest_date, abandon_date, outer_size, sum_weight, vouch_weight, equip_weight, driving_license_src, driving_pendant_src, operation_license_src, technology_src, driving_load_src, second_lv_maintain_src, taffic_constranint_insurance_src, business_insurance_src, accpet_carrage_insurance_src, creat_time, modification_time, bill_status, del_flag, create_by, update_by, update_time, remarks from fleet_car_manage
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectFleetCarManageList" parameterType="FleetCarManage" resultMap="FleetCarManageResult">
|
|
|
+ <include refid="selectFleetCarManageVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="fleetCompanyId != null "> and fleet_company_id = #{fleetCompanyId}</if>
|
|
|
+ <if test="carNum != null and carNum != ''"> and car_num = #{carNum}</if>
|
|
|
+ <if test="hangNum != null and hangNum != ''"> and hang_num = #{hangNum}</if>
|
|
|
+ <if test="fuelType != null and fuelType != ''"> and fuel_type = #{fuelType}</if>
|
|
|
+ <if test="carType != null and carType != ''"> and car_type = #{carType}</if>
|
|
|
+ <if test="carName != null and carName != ''"> and car_name like concat('%', #{carName}, '%')</if>
|
|
|
+ <if test="carBrand != null and carBrand != ''"> and car_brand = #{carBrand}</if>
|
|
|
+ <if test="manufactureUnit != null and manufactureUnit != ''"> and manufacture_unit = #{manufactureUnit}</if>
|
|
|
+ <if test="officeOfCertificate != null and officeOfCertificate != ''"> and office_of_certificate = #{officeOfCertificate}</if>
|
|
|
+ <if test="pullCarType != null and pullCarType != ''"> and pull_car_type = #{pullCarType}</if>
|
|
|
+ <if test="pullCarShelfNum != null and pullCarShelfNum != ''"> and pull_car_shelf_num = #{pullCarShelfNum}</if>
|
|
|
+ <if test="mountCarType != null and mountCarType != ''"> and mount_car_type = #{mountCarType}</if>
|
|
|
+ <if test="mountCarNum != null and mountCarNum != ''"> and mount_car_num = #{mountCarNum}</if>
|
|
|
+ <if test="engine != null and engine != ''"> and engine = #{engine}</if>
|
|
|
+ <if test="carLoadPersion != null "> and car_load_persion = #{carLoadPersion}</if>
|
|
|
+ <if test="buyCarDate != null "> and buy_car_date = #{buyCarDate}</if>
|
|
|
+ <if test="regiestDate != null "> and regiest_date = #{regiestDate}</if>
|
|
|
+ <if test="abandonDate != null "> and abandon_date = #{abandonDate}</if>
|
|
|
+ <if test="outerSize != null "> and outer_size = #{outerSize}</if>
|
|
|
+ <if test="sumWeight != null "> and sum_weight = #{sumWeight}</if>
|
|
|
+ <if test="vouchWeight != null "> and vouch_weight = #{vouchWeight}</if>
|
|
|
+ <if test="equipWeight != null "> and equip_weight = #{equipWeight}</if>
|
|
|
+ <if test="drivingLicenseSrc != null and drivingLicenseSrc != ''"> and driving_license_src = #{drivingLicenseSrc}</if>
|
|
|
+ <if test="drivingPendantSrc != null and drivingPendantSrc != ''"> and driving_pendant_src = #{drivingPendantSrc}</if>
|
|
|
+ <if test="operationLicenseSrc != null and operationLicenseSrc != ''"> and operation_license_src = #{operationLicenseSrc}</if>
|
|
|
+ <if test="technologySrc != null and technologySrc != ''"> and technology_src = #{technologySrc}</if>
|
|
|
+ <if test="drivingLoadSrc != null and drivingLoadSrc != ''"> and driving_load_src = #{drivingLoadSrc}</if>
|
|
|
+ <if test="secondLvMaintainSrc != null and secondLvMaintainSrc != ''"> and second_lv_maintain_src = #{secondLvMaintainSrc}</if>
|
|
|
+ <if test="tafficConstranintInsuranceSrc != null and tafficConstranintInsuranceSrc != ''"> and taffic_constranint_insurance_src = #{tafficConstranintInsuranceSrc}</if>
|
|
|
+ <if test="businessInsuranceSrc != null and businessInsuranceSrc != ''"> and business_insurance_src = #{businessInsuranceSrc}</if>
|
|
|
+ <if test="accpetCarrageInsuranceSrc != null and accpetCarrageInsuranceSrc != ''"> and accpet_carrage_insurance_src = #{accpetCarrageInsuranceSrc}</if>
|
|
|
+ <if test="creatTime != null "> and creat_time = #{creatTime}</if>
|
|
|
+ <if test="modificationTime != null "> and modification_time = #{modificationTime}</if>
|
|
|
+ <if test="billStatus != null "> and bill_status = #{billStatus}</if>
|
|
|
+ <if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectFleetCarManageById" parameterType="Long" resultMap="FleetCarManageResult">
|
|
|
+ <include refid="selectFleetCarManageVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertFleetCarManage" parameterType="FleetCarManage" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into fleet_car_manage
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="fleetCompanyId != null">fleet_company_id,</if>
|
|
|
+ <if test="carNum != null">car_num,</if>
|
|
|
+ <if test="hangNum != null">hang_num,</if>
|
|
|
+ <if test="fuelType != null">fuel_type,</if>
|
|
|
+ <if test="carType != null">car_type,</if>
|
|
|
+ <if test="carName != null">car_name,</if>
|
|
|
+ <if test="carBrand != null">car_brand,</if>
|
|
|
+ <if test="manufactureUnit != null">manufacture_unit,</if>
|
|
|
+ <if test="officeOfCertificate != null">office_of_certificate,</if>
|
|
|
+ <if test="pullCarType != null">pull_car_type,</if>
|
|
|
+ <if test="pullCarShelfNum != null">pull_car_shelf_num,</if>
|
|
|
+ <if test="mountCarType != null">mount_car_type,</if>
|
|
|
+ <if test="mountCarNum != null">mount_car_num,</if>
|
|
|
+ <if test="engine != null">engine,</if>
|
|
|
+ <if test="carLoadPersion != null">car_load_persion,</if>
|
|
|
+ <if test="buyCarDate != null">buy_car_date,</if>
|
|
|
+ <if test="regiestDate != null">regiest_date,</if>
|
|
|
+ <if test="abandonDate != null">abandon_date,</if>
|
|
|
+ <if test="outerSize != null">outer_size,</if>
|
|
|
+ <if test="sumWeight != null">sum_weight,</if>
|
|
|
+ <if test="vouchWeight != null">vouch_weight,</if>
|
|
|
+ <if test="equipWeight != null">equip_weight,</if>
|
|
|
+ <if test="drivingLicenseSrc != null">driving_license_src,</if>
|
|
|
+ <if test="drivingPendantSrc != null">driving_pendant_src,</if>
|
|
|
+ <if test="operationLicenseSrc != null">operation_license_src,</if>
|
|
|
+ <if test="technologySrc != null">technology_src,</if>
|
|
|
+ <if test="drivingLoadSrc != null">driving_load_src,</if>
|
|
|
+ <if test="secondLvMaintainSrc != null">second_lv_maintain_src,</if>
|
|
|
+ <if test="tafficConstranintInsuranceSrc != null">taffic_constranint_insurance_src,</if>
|
|
|
+ <if test="businessInsuranceSrc != null">business_insurance_src,</if>
|
|
|
+ <if test="accpetCarrageInsuranceSrc != null">accpet_carrage_insurance_src,</if>
|
|
|
+ <if test="creatTime != null">creat_time,</if>
|
|
|
+ <if test="modificationTime != null">modification_time,</if>
|
|
|
+ <if test="billStatus != null">bill_status,</if>
|
|
|
+ <if test="delFlag != null">del_flag,</if>
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="remarks != null">remarks,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="fleetCompanyId != null">#{fleetCompanyId},</if>
|
|
|
+ <if test="carNum != null">#{carNum},</if>
|
|
|
+ <if test="hangNum != null">#{hangNum},</if>
|
|
|
+ <if test="fuelType != null">#{fuelType},</if>
|
|
|
+ <if test="carType != null">#{carType},</if>
|
|
|
+ <if test="carName != null">#{carName},</if>
|
|
|
+ <if test="carBrand != null">#{carBrand},</if>
|
|
|
+ <if test="manufactureUnit != null">#{manufactureUnit},</if>
|
|
|
+ <if test="officeOfCertificate != null">#{officeOfCertificate},</if>
|
|
|
+ <if test="pullCarType != null">#{pullCarType},</if>
|
|
|
+ <if test="pullCarShelfNum != null">#{pullCarShelfNum},</if>
|
|
|
+ <if test="mountCarType != null">#{mountCarType},</if>
|
|
|
+ <if test="mountCarNum != null">#{mountCarNum},</if>
|
|
|
+ <if test="engine != null">#{engine},</if>
|
|
|
+ <if test="carLoadPersion != null">#{carLoadPersion},</if>
|
|
|
+ <if test="buyCarDate != null">#{buyCarDate},</if>
|
|
|
+ <if test="regiestDate != null">#{regiestDate},</if>
|
|
|
+ <if test="abandonDate != null">#{abandonDate},</if>
|
|
|
+ <if test="outerSize != null">#{outerSize},</if>
|
|
|
+ <if test="sumWeight != null">#{sumWeight},</if>
|
|
|
+ <if test="vouchWeight != null">#{vouchWeight},</if>
|
|
|
+ <if test="equipWeight != null">#{equipWeight},</if>
|
|
|
+ <if test="drivingLicenseSrc != null">#{drivingLicenseSrc},</if>
|
|
|
+ <if test="drivingPendantSrc != null">#{drivingPendantSrc},</if>
|
|
|
+ <if test="operationLicenseSrc != null">#{operationLicenseSrc},</if>
|
|
|
+ <if test="technologySrc != null">#{technologySrc},</if>
|
|
|
+ <if test="drivingLoadSrc != null">#{drivingLoadSrc},</if>
|
|
|
+ <if test="secondLvMaintainSrc != null">#{secondLvMaintainSrc},</if>
|
|
|
+ <if test="tafficConstranintInsuranceSrc != null">#{tafficConstranintInsuranceSrc},</if>
|
|
|
+ <if test="businessInsuranceSrc != null">#{businessInsuranceSrc},</if>
|
|
|
+ <if test="accpetCarrageInsuranceSrc != null">#{accpetCarrageInsuranceSrc},</if>
|
|
|
+ <if test="creatTime != null">#{creatTime},</if>
|
|
|
+ <if test="modificationTime != null">#{modificationTime},</if>
|
|
|
+ <if test="billStatus != null">#{billStatus},</if>
|
|
|
+ <if test="delFlag != null">#{delFlag},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="remarks != null">#{remarks},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateFleetCarManage" parameterType="FleetCarManage">
|
|
|
+ update fleet_car_manage
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="fleetCompanyId != null">fleet_company_id = #{fleetCompanyId},</if>
|
|
|
+ <if test="carNum != null">car_num = #{carNum},</if>
|
|
|
+ <if test="hangNum != null">hang_num = #{hangNum},</if>
|
|
|
+ <if test="fuelType != null">fuel_type = #{fuelType},</if>
|
|
|
+ <if test="carType != null">car_type = #{carType},</if>
|
|
|
+ <if test="carName != null">car_name = #{carName},</if>
|
|
|
+ <if test="carBrand != null">car_brand = #{carBrand},</if>
|
|
|
+ <if test="manufactureUnit != null">manufacture_unit = #{manufactureUnit},</if>
|
|
|
+ <if test="officeOfCertificate != null">office_of_certificate = #{officeOfCertificate},</if>
|
|
|
+ <if test="pullCarType != null">pull_car_type = #{pullCarType},</if>
|
|
|
+ <if test="pullCarShelfNum != null">pull_car_shelf_num = #{pullCarShelfNum},</if>
|
|
|
+ <if test="mountCarType != null">mount_car_type = #{mountCarType},</if>
|
|
|
+ <if test="mountCarNum != null">mount_car_num = #{mountCarNum},</if>
|
|
|
+ <if test="engine != null">engine = #{engine},</if>
|
|
|
+ <if test="carLoadPersion != null">car_load_persion = #{carLoadPersion},</if>
|
|
|
+ <if test="buyCarDate != null">buy_car_date = #{buyCarDate},</if>
|
|
|
+ <if test="regiestDate != null">regiest_date = #{regiestDate},</if>
|
|
|
+ <if test="abandonDate != null">abandon_date = #{abandonDate},</if>
|
|
|
+ <if test="outerSize != null">outer_size = #{outerSize},</if>
|
|
|
+ <if test="sumWeight != null">sum_weight = #{sumWeight},</if>
|
|
|
+ <if test="vouchWeight != null">vouch_weight = #{vouchWeight},</if>
|
|
|
+ <if test="equipWeight != null">equip_weight = #{equipWeight},</if>
|
|
|
+ <if test="drivingLicenseSrc != null">driving_license_src = #{drivingLicenseSrc},</if>
|
|
|
+ <if test="drivingPendantSrc != null">driving_pendant_src = #{drivingPendantSrc},</if>
|
|
|
+ <if test="operationLicenseSrc != null">operation_license_src = #{operationLicenseSrc},</if>
|
|
|
+ <if test="technologySrc != null">technology_src = #{technologySrc},</if>
|
|
|
+ <if test="drivingLoadSrc != null">driving_load_src = #{drivingLoadSrc},</if>
|
|
|
+ <if test="secondLvMaintainSrc != null">second_lv_maintain_src = #{secondLvMaintainSrc},</if>
|
|
|
+ <if test="tafficConstranintInsuranceSrc != null">taffic_constranint_insurance_src = #{tafficConstranintInsuranceSrc},</if>
|
|
|
+ <if test="businessInsuranceSrc != null">business_insurance_src = #{businessInsuranceSrc},</if>
|
|
|
+ <if test="accpetCarrageInsuranceSrc != null">accpet_carrage_insurance_src = #{accpetCarrageInsuranceSrc},</if>
|
|
|
+ <if test="creatTime != null">creat_time = #{creatTime},</if>
|
|
|
+ <if test="modificationTime != null">modification_time = #{modificationTime},</if>
|
|
|
+ <if test="billStatus != null">bill_status = #{billStatus},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="remarks != null">remarks = #{remarks},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteFleetCarManageById" parameterType="Long">
|
|
|
+ delete from fleet_car_manage where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteFleetCarManageByIds" parameterType="String">
|
|
|
+ delete from fleet_car_manage where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+
|
|
|
+</mapper>
|