|
@@ -33,6 +33,7 @@
|
|
|
<result column="IS_INSURANCE" jdbcType="VARCHAR" property="isInsurance" />
|
|
<result column="IS_INSURANCE" jdbcType="VARCHAR" property="isInsurance" />
|
|
|
<result column="OTHER_INSURANCE" jdbcType="VARCHAR" property="otherInsurance" />
|
|
<result column="OTHER_INSURANCE" jdbcType="VARCHAR" property="otherInsurance" />
|
|
|
<result column="IS_SPECIALUNIT" jdbcType="VARCHAR" property="isSpecialunit" />
|
|
<result column="IS_SPECIALUNIT" jdbcType="VARCHAR" property="isSpecialunit" />
|
|
|
|
|
+ <result column="USET_DEPARTMENT_NO" jdbcType="VARCHAR" property="usetDepartmentNo" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
|
PK_NO, CAR_NO, MNEMONIC_CODE, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, CAR_TYPE_NO,
|
|
PK_NO, CAR_NO, MNEMONIC_CODE, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, CAR_TYPE_NO,
|
|
@@ -40,7 +41,7 @@
|
|
|
CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO,
|
|
CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO,
|
|
|
DELETE_MAN_NAME, DELETE_TIME, SSO_ID, VEHICLE_TYPE, BELONG_UNIT_TYPE_NO, BELONG_UNIT_TYPE_NAME,
|
|
DELETE_MAN_NAME, DELETE_TIME, SSO_ID, VEHICLE_TYPE, BELONG_UNIT_TYPE_NO, BELONG_UNIT_TYPE_NAME,
|
|
|
USET_DEPARTMENT, VEHICLE_IDENTIFY_NO, FILLING_DEPARTMENT, FILLING_USER, IS_INSURANCE,
|
|
USET_DEPARTMENT, VEHICLE_IDENTIFY_NO, FILLING_DEPARTMENT, FILLING_USER, IS_INSURANCE,
|
|
|
- OTHER_INSURANCE, IS_SPECIALUNIT
|
|
|
|
|
|
|
+ OTHER_INSURANCE, IS_SPECIALUNIT, USET_DEPARTMENT_NO
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
|
t.PK_NO, t.CAR_NO, t.MNEMONIC_CODE, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME,
|
|
t.PK_NO, t.CAR_NO, t.MNEMONIC_CODE, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME,
|
|
@@ -49,7 +50,7 @@
|
|
|
t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME,
|
|
t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME,
|
|
|
t.SSO_ID, t.VEHICLE_TYPE, t.BELONG_UNIT_TYPE_NO, t.BELONG_UNIT_TYPE_NAME, t.USET_DEPARTMENT,
|
|
t.SSO_ID, t.VEHICLE_TYPE, t.BELONG_UNIT_TYPE_NO, t.BELONG_UNIT_TYPE_NAME, t.USET_DEPARTMENT,
|
|
|
t.VEHICLE_IDENTIFY_NO, t.FILLING_DEPARTMENT, t.FILLING_USER, t.IS_INSURANCE, t.OTHER_INSURANCE,
|
|
t.VEHICLE_IDENTIFY_NO, t.FILLING_DEPARTMENT, t.FILLING_USER, t.IS_INSURANCE, t.OTHER_INSURANCE,
|
|
|
- t.IS_SPECIALUNIT
|
|
|
|
|
|
|
+ t.IS_SPECIALUNIT, t.USET_DEPARTMENT_NO
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select">
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns"/> FROM METER_BASE_CAR
|
|
SELECT <include refid="columns"/> FROM METER_BASE_CAR
|
|
@@ -152,6 +153,9 @@
|
|
|
<if test="isSpecialunit != null and isSpecialunit != ''">
|
|
<if test="isSpecialunit != null and isSpecialunit != ''">
|
|
|
and IS_SPECIALUNIT = #{isSpecialunit}
|
|
and IS_SPECIALUNIT = #{isSpecialunit}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="usetDepartmentNo != null and usetDepartmentNo != ''">
|
|
|
|
|
+ and USET_DEPARTMENT_NO = #{usetDepartmentNo}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -249,6 +253,9 @@
|
|
|
<if test="isSpecialunit != null and isSpecialunit != ''">
|
|
<if test="isSpecialunit != null and isSpecialunit != ''">
|
|
|
and IS_SPECIALUNIT LIKE '%${isSpecialunit}%'
|
|
and IS_SPECIALUNIT LIKE '%${isSpecialunit}%'
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="usetDepartmentNo != null and usetDepartmentNo != ''">
|
|
|
|
|
+ and USET_DEPARTMENT_NO LIKE '%${usetDepartmentNo}%'
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
@@ -348,6 +355,9 @@
|
|
|
<if test="isSpecialunit != null and isSpecialunit != ''">
|
|
<if test="isSpecialunit != null and isSpecialunit != ''">
|
|
|
or IS_SPECIALUNIT = #{isSpecialunit}
|
|
or IS_SPECIALUNIT = #{isSpecialunit}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="usetDepartmentNo != null and usetDepartmentNo != ''">
|
|
|
|
|
+ or USET_DEPARTMENT_NO = #{usetDepartmentNo}
|
|
|
|
|
+ </if>
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
<insert id="insert" parameterType="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
|
insert into METER_BASE_CAR (PK_NO, CAR_NO, MNEMONIC_CODE,
|
|
insert into METER_BASE_CAR (PK_NO, CAR_NO, MNEMONIC_CODE,
|
|
@@ -360,7 +370,8 @@
|
|
|
SSO_ID, VEHICLE_TYPE, BELONG_UNIT_TYPE_NO,
|
|
SSO_ID, VEHICLE_TYPE, BELONG_UNIT_TYPE_NO,
|
|
|
BELONG_UNIT_TYPE_NAME, USET_DEPARTMENT, VEHICLE_IDENTIFY_NO,
|
|
BELONG_UNIT_TYPE_NAME, USET_DEPARTMENT, VEHICLE_IDENTIFY_NO,
|
|
|
FILLING_DEPARTMENT, FILLING_USER, IS_INSURANCE,
|
|
FILLING_DEPARTMENT, FILLING_USER, IS_INSURANCE,
|
|
|
- OTHER_INSURANCE, IS_SPECIALUNIT)
|
|
|
|
|
|
|
+ OTHER_INSURANCE, IS_SPECIALUNIT, USET_DEPARTMENT_NO
|
|
|
|
|
+ )
|
|
|
values (#{pkNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR}, #{mnemonicCode,jdbcType=VARCHAR},
|
|
values (#{pkNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR}, #{mnemonicCode,jdbcType=VARCHAR},
|
|
|
#{customerSupplierNo,jdbcType=VARCHAR}, #{customerSupplierName,jdbcType=VARCHAR},
|
|
#{customerSupplierNo,jdbcType=VARCHAR}, #{customerSupplierName,jdbcType=VARCHAR},
|
|
|
#{carTypeNo,jdbcType=VARCHAR}, #{carTypeName,jdbcType=VARCHAR}, #{carCarrierWeight,jdbcType=DECIMAL},
|
|
#{carTypeNo,jdbcType=VARCHAR}, #{carTypeName,jdbcType=VARCHAR}, #{carCarrierWeight,jdbcType=DECIMAL},
|
|
@@ -371,7 +382,8 @@
|
|
|
#{ssoId,jdbcType=VARCHAR}, #{vehicleType,jdbcType=VARCHAR}, #{belongUnitTypeNo,jdbcType=VARCHAR},
|
|
#{ssoId,jdbcType=VARCHAR}, #{vehicleType,jdbcType=VARCHAR}, #{belongUnitTypeNo,jdbcType=VARCHAR},
|
|
|
#{belongUnitTypeName,jdbcType=VARCHAR}, #{usetDepartment,jdbcType=VARCHAR}, #{vehicleIdentifyNo,jdbcType=VARCHAR},
|
|
#{belongUnitTypeName,jdbcType=VARCHAR}, #{usetDepartment,jdbcType=VARCHAR}, #{vehicleIdentifyNo,jdbcType=VARCHAR},
|
|
|
#{fillingDepartment,jdbcType=VARCHAR}, #{fillingUser,jdbcType=VARCHAR}, #{isInsurance,jdbcType=VARCHAR},
|
|
#{fillingDepartment,jdbcType=VARCHAR}, #{fillingUser,jdbcType=VARCHAR}, #{isInsurance,jdbcType=VARCHAR},
|
|
|
- #{otherInsurance,jdbcType=VARCHAR}, #{isSpecialunit,jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ #{otherInsurance,jdbcType=VARCHAR}, #{isSpecialunit,jdbcType=VARCHAR}, #{usetDepartmentNo,jdbcType=VARCHAR}
|
|
|
|
|
+ )
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
|
insert into METER_BASE_CAR
|
|
insert into METER_BASE_CAR
|
|
@@ -469,6 +481,9 @@
|
|
|
<if test="isSpecialunit != null">
|
|
<if test="isSpecialunit != null">
|
|
|
IS_SPECIALUNIT,
|
|
IS_SPECIALUNIT,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="usetDepartmentNo != null">
|
|
|
|
|
+ USET_DEPARTMENT_NO,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="pkNo != null">
|
|
<if test="pkNo != null">
|
|
@@ -564,6 +579,9 @@
|
|
|
<if test="isSpecialunit != null">
|
|
<if test="isSpecialunit != null">
|
|
|
#{isSpecialunit,jdbcType=VARCHAR},
|
|
#{isSpecialunit,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="usetDepartmentNo != null">
|
|
|
|
|
+ #{usetDepartmentNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
@@ -597,7 +615,8 @@
|
|
|
FILLING_USER = #{fillingUser,jdbcType=VARCHAR},
|
|
FILLING_USER = #{fillingUser,jdbcType=VARCHAR},
|
|
|
IS_INSURANCE = #{isInsurance,jdbcType=VARCHAR},
|
|
IS_INSURANCE = #{isInsurance,jdbcType=VARCHAR},
|
|
|
OTHER_INSURANCE = #{otherInsurance,jdbcType=VARCHAR},
|
|
OTHER_INSURANCE = #{otherInsurance,jdbcType=VARCHAR},
|
|
|
- IS_SPECIALUNIT = #{isSpecialunit,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ IS_SPECIALUNIT = #{isSpecialunit,jdbcType=VARCHAR},
|
|
|
|
|
+ USET_DEPARTMENT_NO = #{usetDepartmentNo,jdbcType=VARCHAR}
|
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
@@ -693,6 +712,9 @@
|
|
|
<if test="isSpecialunit != null">
|
|
<if test="isSpecialunit != null">
|
|
|
IS_SPECIALUNIT = #{isSpecialunit,jdbcType=VARCHAR},
|
|
IS_SPECIALUNIT = #{isSpecialunit,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="usetDepartmentNo != null">
|
|
|
|
|
+ USET_DEPARTMENT_NO = #{usetDepartmentNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
@@ -722,7 +744,8 @@
|
|
|
BELONG_UNIT_TYPE_NAME, USET_DEPARTMENT,
|
|
BELONG_UNIT_TYPE_NAME, USET_DEPARTMENT,
|
|
|
VEHICLE_IDENTIFY_NO, FILLING_DEPARTMENT,
|
|
VEHICLE_IDENTIFY_NO, FILLING_DEPARTMENT,
|
|
|
FILLING_USER, IS_INSURANCE, OTHER_INSURANCE,
|
|
FILLING_USER, IS_INSURANCE, OTHER_INSURANCE,
|
|
|
- IS_SPECIALUNIT)
|
|
|
|
|
|
|
+ IS_SPECIALUNIT, USET_DEPARTMENT_NO
|
|
|
|
|
+ )
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
select
|
|
|
#{item.pkNo,jdbcType=VARCHAR},
|
|
#{item.pkNo,jdbcType=VARCHAR},
|
|
@@ -737,7 +760,8 @@
|
|
|
#{item.belongUnitTypeName,jdbcType=VARCHAR}, #{item.usetDepartment,jdbcType=VARCHAR},
|
|
#{item.belongUnitTypeName,jdbcType=VARCHAR}, #{item.usetDepartment,jdbcType=VARCHAR},
|
|
|
#{item.vehicleIdentifyNo,jdbcType=VARCHAR}, #{item.fillingDepartment,jdbcType=VARCHAR},
|
|
#{item.vehicleIdentifyNo,jdbcType=VARCHAR}, #{item.fillingDepartment,jdbcType=VARCHAR},
|
|
|
#{item.fillingUser,jdbcType=VARCHAR}, #{item.isInsurance,jdbcType=VARCHAR}, #{item.otherInsurance,jdbcType=VARCHAR},
|
|
#{item.fillingUser,jdbcType=VARCHAR}, #{item.isInsurance,jdbcType=VARCHAR}, #{item.otherInsurance,jdbcType=VARCHAR},
|
|
|
- #{item.isSpecialunit,jdbcType=VARCHAR} from dual
|
|
|
|
|
|
|
+ #{item.isSpecialunit,jdbcType=VARCHAR}, #{item.usetDepartmentNo,jdbcType=VARCHAR}
|
|
|
|
|
+ from dual
|
|
|
</foreach> )
|
|
</foreach> )
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -867,6 +891,10 @@
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case PK_NO" close="end">
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case PK_NO" close="end">
|
|
|
when #{item.pkNo,jdbcType=VARCHAR} then #{item.isSpecialunit,jdbcType=VARCHAR}
|
|
when #{item.pkNo,jdbcType=VARCHAR} then #{item.isSpecialunit,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
+ ,USET_DEPARTMENT_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PK_NO" close="end">
|
|
|
|
|
+ when #{item.pkNo,jdbcType=VARCHAR} then #{item.usetDepartmentNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
where PK_NO in
|
|
where PK_NO in
|
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
#{item.pkNo,jdbcType=VARCHAR}
|
|
#{item.pkNo,jdbcType=VARCHAR}
|
|
@@ -930,5 +958,4 @@
|
|
|
and car_type_no = '001004003'
|
|
and car_type_no = '001004003'
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
-
|
|
|
|
|
</mapper>
|
|
</mapper>
|