|
@@ -3,7 +3,6 @@
|
|
|
<mapper namespace="com.steerinfo.baseinfo.meterbasecar.mapper.MeterBaseCarMapper">
|
|
<mapper namespace="com.steerinfo.baseinfo.meterbasecar.mapper.MeterBaseCarMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
<resultMap id="BaseResultMap" type="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
|
<id column="PK_NO" jdbcType="VARCHAR" property="pkNo" />
|
|
<id column="PK_NO" jdbcType="VARCHAR" property="pkNo" />
|
|
|
- <id column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
|
|
|
|
|
<result column="CAR_NO" jdbcType="VARCHAR" property="carNo" />
|
|
<result column="CAR_NO" jdbcType="VARCHAR" property="carNo" />
|
|
|
<result column="MNEMONIC_CODE" jdbcType="VARCHAR" property="mnemonicCode" />
|
|
<result column="MNEMONIC_CODE" jdbcType="VARCHAR" property="mnemonicCode" />
|
|
|
<result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
|
|
<result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
|
|
@@ -17,23 +16,26 @@
|
|
|
<result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
|
|
<result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
|
|
|
<result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
|
|
<result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
|
|
|
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
+ <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
|
|
|
<result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
|
|
<result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
|
|
|
<result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
<result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
<result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
|
|
<result column="DELETE_MAN_NO" jdbcType="VARCHAR" property="deleteManNo" />
|
|
|
<result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
|
|
<result column="DELETE_MAN_NAME" jdbcType="VARCHAR" property="deleteManName" />
|
|
|
<result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
|
|
<result column="DELETE_TIME" jdbcType="TIMESTAMP" property="deleteTime" />
|
|
|
|
|
+ <result column="SSO_ID" jdbcType="VARCHAR" property="ssoId" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
|
- PK_NO, UPDATE_MAN_NO, CAR_NO, MNEMONIC_CODE, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME,
|
|
|
|
|
- CAR_TYPE_NO, CAR_TYPE_NAME, CAR_CARRIER_WEIGHT, CAR_SELF_WEIGHT, MEMO, VALID_FLAG,
|
|
|
|
|
- CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO,
|
|
|
|
|
- DELETE_MAN_NAME, DELETE_TIME
|
|
|
|
|
|
|
+ PK_NO, CAR_NO, MNEMONIC_CODE, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, CAR_TYPE_NO,
|
|
|
|
|
+ CAR_TYPE_NAME, CAR_CARRIER_WEIGHT, CAR_SELF_WEIGHT, MEMO, VALID_FLAG, CREATE_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
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
|
- t.PK_NO, t.UPDATE_MAN_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,
|
|
|
t.CAR_TYPE_NO, t.CAR_TYPE_NAME, t.CAR_CARRIER_WEIGHT, t.CAR_SELF_WEIGHT, t.MEMO,
|
|
t.CAR_TYPE_NO, t.CAR_TYPE_NAME, t.CAR_CARRIER_WEIGHT, t.CAR_SELF_WEIGHT, t.MEMO,
|
|
|
- t.VALID_FLAG, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NAME,
|
|
|
|
|
- t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME
|
|
|
|
|
|
|
+ t.VALID_FLAG, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME, t.UPDATE_MAN_NO,
|
|
|
|
|
+ t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME, t.DELETE_TIME,
|
|
|
|
|
+ t.SSO_ID
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select">
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns"/> FROM METER_BASE_CAR
|
|
SELECT <include refid="columns"/> FROM METER_BASE_CAR
|
|
@@ -46,9 +48,6 @@
|
|
|
<if test="pkNo != null and pkNo != ''">
|
|
<if test="pkNo != null and pkNo != ''">
|
|
|
and PK_NO = #{pkNo}
|
|
and PK_NO = #{pkNo}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
- and UPDATE_MAN_NO = #{updateManNo}
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="carNo != null and carNo != ''">
|
|
<if test="carNo != null and carNo != ''">
|
|
|
and CAR_NO = #{carNo}
|
|
and CAR_NO = #{carNo}
|
|
|
</if>
|
|
</if>
|
|
@@ -88,6 +87,9 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
+ and UPDATE_MAN_NO = #{updateManNo}
|
|
|
|
|
+ </if>
|
|
|
<if test="updateManName != null and updateManName != ''">
|
|
<if test="updateManName != null and updateManName != ''">
|
|
|
and UPDATE_MAN_NAME = #{updateManName}
|
|
and UPDATE_MAN_NAME = #{updateManName}
|
|
|
</if>
|
|
</if>
|
|
@@ -103,6 +105,9 @@
|
|
|
<if test="deleteTime != null">
|
|
<if test="deleteTime != null">
|
|
|
and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
|
|
and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="ssoId != null and ssoId != ''">
|
|
|
|
|
+ and SSO_ID = #{ssoId}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -110,9 +115,6 @@
|
|
|
<if test="pkNo != null and pkNo != ''">
|
|
<if test="pkNo != null and pkNo != ''">
|
|
|
and PK_NO LIKE '%${pkNo}%'
|
|
and PK_NO LIKE '%${pkNo}%'
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
- and UPDATE_MAN_NO LIKE '%${updateManNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="carNo != null and carNo != ''">
|
|
<if test="carNo != null and carNo != ''">
|
|
|
and CAR_NO LIKE '%${carNo}%'
|
|
and CAR_NO LIKE '%${carNo}%'
|
|
|
</if>
|
|
</if>
|
|
@@ -152,6 +154,9 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
+ and UPDATE_MAN_NO LIKE '%${updateManNo}%'
|
|
|
|
|
+ </if>
|
|
|
<if test="updateManName != null and updateManName != ''">
|
|
<if test="updateManName != null and updateManName != ''">
|
|
|
and UPDATE_MAN_NAME LIKE '%${updateManName}%'
|
|
and UPDATE_MAN_NAME LIKE '%${updateManName}%'
|
|
|
</if>
|
|
</if>
|
|
@@ -167,19 +172,18 @@
|
|
|
<if test="deleteTime != null">
|
|
<if test="deleteTime != null">
|
|
|
and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
|
|
and TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = #{deleteTime}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="ssoId != null and ssoId != ''">
|
|
|
|
|
+ and SSO_ID LIKE '%${ssoId}%'
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="map">
|
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
delete from METER_BASE_CAR
|
|
delete from METER_BASE_CAR
|
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
|
- and UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR}
|
|
|
|
|
</delete>
|
|
</delete>
|
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
|
delete from METER_BASE_CAR
|
|
delete from METER_BASE_CAR
|
|
|
where 1!=1
|
|
where 1!=1
|
|
|
- <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
- or UPDATE_MAN_NO = #{updateManNo}
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="carNo != null and carNo != ''">
|
|
<if test="carNo != null and carNo != ''">
|
|
|
or CAR_NO = #{carNo}
|
|
or CAR_NO = #{carNo}
|
|
|
</if>
|
|
</if>
|
|
@@ -219,6 +223,9 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
|
|
or TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = '#{createTime}'
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
+ or UPDATE_MAN_NO = #{updateManNo}
|
|
|
|
|
+ </if>
|
|
|
<if test="updateManName != null and updateManName != ''">
|
|
<if test="updateManName != null and updateManName != ''">
|
|
|
or UPDATE_MAN_NAME = #{updateManName}
|
|
or UPDATE_MAN_NAME = #{updateManName}
|
|
|
</if>
|
|
</if>
|
|
@@ -234,22 +241,27 @@
|
|
|
<if test="deleteTime != null">
|
|
<if test="deleteTime != null">
|
|
|
or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
|
|
or TO_CHAR(DELETE_TIME,'yyyy-MM-dd') = '#{deleteTime}'
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="ssoId != null and ssoId != ''">
|
|
|
|
|
+ or SSO_ID = #{ssoId}
|
|
|
|
|
+ </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, UPDATE_MAN_NO, CAR_NO,
|
|
|
|
|
- MNEMONIC_CODE, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME,
|
|
|
|
|
|
|
+ insert into METER_BASE_CAR (PK_NO, CAR_NO, MNEMONIC_CODE,
|
|
|
|
|
+ CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME,
|
|
|
CAR_TYPE_NO, CAR_TYPE_NAME, CAR_CARRIER_WEIGHT,
|
|
CAR_TYPE_NO, CAR_TYPE_NAME, CAR_CARRIER_WEIGHT,
|
|
|
CAR_SELF_WEIGHT, MEMO, VALID_FLAG,
|
|
CAR_SELF_WEIGHT, MEMO, VALID_FLAG,
|
|
|
CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
- UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO,
|
|
|
|
|
- DELETE_MAN_NAME, DELETE_TIME)
|
|
|
|
|
- values (#{pkNo,jdbcType=VARCHAR}, #{updateManNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR},
|
|
|
|
|
- #{mnemonicCode,jdbcType=VARCHAR}, #{customerSupplierNo,jdbcType=VARCHAR}, #{customerSupplierName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
|
|
+ DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
|
|
|
+ SSO_ID)
|
|
|
|
|
+ values (#{pkNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR}, #{mnemonicCode,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},
|
|
|
#{carSelfWeight,jdbcType=DECIMAL}, #{memo,jdbcType=VARCHAR}, #{validFlag,jdbcType=VARCHAR},
|
|
#{carSelfWeight,jdbcType=DECIMAL}, #{memo,jdbcType=VARCHAR}, #{validFlag,jdbcType=VARCHAR},
|
|
|
#{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
#{createManNo,jdbcType=VARCHAR}, #{createManName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteManNo,jdbcType=VARCHAR},
|
|
|
|
|
- #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP})
|
|
|
|
|
|
|
+ #{updateManNo,jdbcType=VARCHAR}, #{updateManName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{ssoId,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
|
|
@@ -257,9 +269,6 @@
|
|
|
<if test="pkNo != null">
|
|
<if test="pkNo != null">
|
|
|
PK_NO,
|
|
PK_NO,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateManNo != null">
|
|
|
|
|
- UPDATE_MAN_NO,
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="carNo != null">
|
|
<if test="carNo != null">
|
|
|
CAR_NO,
|
|
CAR_NO,
|
|
|
</if>
|
|
</if>
|
|
@@ -299,6 +308,9 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
CREATE_TIME,
|
|
CREATE_TIME,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ UPDATE_MAN_NO,
|
|
|
|
|
+ </if>
|
|
|
<if test="updateManName != null">
|
|
<if test="updateManName != null">
|
|
|
UPDATE_MAN_NAME,
|
|
UPDATE_MAN_NAME,
|
|
|
</if>
|
|
</if>
|
|
@@ -314,14 +326,14 @@
|
|
|
<if test="deleteTime != null">
|
|
<if test="deleteTime != null">
|
|
|
DELETE_TIME,
|
|
DELETE_TIME,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="ssoId != null">
|
|
|
|
|
+ SSO_ID,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="pkNo != null">
|
|
<if test="pkNo != null">
|
|
|
#{pkNo,jdbcType=VARCHAR},
|
|
#{pkNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateManNo != null">
|
|
|
|
|
- #{updateManNo,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="carNo != null">
|
|
<if test="carNo != null">
|
|
|
#{carNo,jdbcType=VARCHAR},
|
|
#{carNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -361,6 +373,9 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ #{updateManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="updateManName != null">
|
|
<if test="updateManName != null">
|
|
|
#{updateManName,jdbcType=VARCHAR},
|
|
#{updateManName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -376,6 +391,9 @@
|
|
|
<if test="deleteTime != null">
|
|
<if test="deleteTime != null">
|
|
|
#{deleteTime,jdbcType=TIMESTAMP},
|
|
#{deleteTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="ssoId != null">
|
|
|
|
|
+ #{ssoId,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">
|
|
@@ -393,13 +411,14 @@
|
|
|
CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
CREATE_MAN_NO = #{createManNo,jdbcType=VARCHAR},
|
|
|
CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
CREATE_MAN_NAME = #{createManName,jdbcType=VARCHAR},
|
|
|
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
|
|
DELETE_MAN_NO = #{deleteManNo,jdbcType=VARCHAR},
|
|
|
DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
|
|
DELETE_MAN_NAME = #{deleteManName,jdbcType=VARCHAR},
|
|
|
- DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ SSO_ID = #{ssoId,jdbcType=VARCHAR}
|
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
|
- and UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.baseinfo.meterbasecar.model.MeterBaseCar">
|
|
|
update METER_BASE_CAR
|
|
update METER_BASE_CAR
|
|
@@ -443,6 +462,9 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="updateManNo != null">
|
|
|
|
|
+ UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
<if test="updateManName != null">
|
|
<if test="updateManName != null">
|
|
|
UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
UPDATE_MAN_NAME = #{updateManName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -458,14 +480,15 @@
|
|
|
<if test="deleteTime != null">
|
|
<if test="deleteTime != null">
|
|
|
DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
DELETE_TIME = #{deleteTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="ssoId != null">
|
|
|
|
|
+ SSO_ID = #{ssoId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
|
- and UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
</update>
|
|
|
- <select id="selectByPrimaryKey" parameterType="map" resultMap="BaseResultMap">
|
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
<include refid="select"/>
|
|
<include refid="select"/>
|
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
where PK_NO = #{pkNo,jdbcType=VARCHAR}
|
|
|
- and UPDATE_MAN_NO = #{updateManNo,jdbcType=VARCHAR}
|
|
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
<include refid="select"/>
|
|
<include refid="select"/>
|
|
@@ -478,25 +501,25 @@
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
insert into METER_BASE_CAR
|
|
insert into METER_BASE_CAR
|
|
|
(PK_NO,
|
|
(PK_NO,
|
|
|
- UPDATE_MAN_NO, CAR_NO, MNEMONIC_CODE,
|
|
|
|
|
- CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME,
|
|
|
|
|
- CAR_TYPE_NO, CAR_TYPE_NAME, CAR_CARRIER_WEIGHT,
|
|
|
|
|
|
|
+ CAR_NO, MNEMONIC_CODE, CUSTOMER_SUPPLIER_NO,
|
|
|
|
|
+ CUSTOMER_SUPPLIER_NAME, CAR_TYPE_NO,
|
|
|
|
|
+ CAR_TYPE_NAME, CAR_CARRIER_WEIGHT,
|
|
|
CAR_SELF_WEIGHT, MEMO, VALID_FLAG,
|
|
CAR_SELF_WEIGHT, MEMO, VALID_FLAG,
|
|
|
CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME,
|
|
|
- UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
|
|
- DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ UPDATE_MAN_NO, UPDATE_MAN_NAME, UPDATE_TIME,
|
|
|
|
|
+ DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME,
|
|
|
|
|
+ SSO_ID)
|
|
|
( <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},
|
|
|
- #{item.updateManNo,jdbcType=VARCHAR}, #{item.carNo,jdbcType=VARCHAR}, #{item.mnemonicCode,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.customerSupplierNo,jdbcType=VARCHAR}, #{item.customerSupplierName,jdbcType=VARCHAR},
|
|
|
|
|
- #{item.carTypeNo,jdbcType=VARCHAR}, #{item.carTypeName,jdbcType=VARCHAR}, #{item.carCarrierWeight,jdbcType=DECIMAL},
|
|
|
|
|
|
|
+ #{item.carNo,jdbcType=VARCHAR}, #{item.mnemonicCode,jdbcType=VARCHAR}, #{item.customerSupplierNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.customerSupplierName,jdbcType=VARCHAR}, #{item.carTypeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.carTypeName,jdbcType=VARCHAR}, #{item.carCarrierWeight,jdbcType=DECIMAL},
|
|
|
#{item.carSelfWeight,jdbcType=DECIMAL}, #{item.memo,jdbcType=VARCHAR}, #{item.validFlag,jdbcType=VARCHAR},
|
|
#{item.carSelfWeight,jdbcType=DECIMAL}, #{item.memo,jdbcType=VARCHAR}, #{item.validFlag,jdbcType=VARCHAR},
|
|
|
#{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
|
#{item.createManNo,jdbcType=VARCHAR}, #{item.createManName,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
|
|
|
- #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- from dual
|
|
|
|
|
|
|
+ #{item.updateManNo,jdbcType=VARCHAR}, #{item.updateManName,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{item.deleteManNo,jdbcType=VARCHAR}, #{item.deleteManName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{item.ssoId,jdbcType=VARCHAR} from dual
|
|
|
</foreach> )
|
|
</foreach> )
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -506,10 +529,6 @@
|
|
|
<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.pkNo,jdbcType=VARCHAR}
|
|
when #{item.pkNo,jdbcType=VARCHAR} then #{item.pkNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
- ,UPDATE_MAN_NO=
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PK_NO" close="end">
|
|
|
|
|
- when #{item.pkNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
|
|
|
- </foreach>
|
|
|
|
|
,CAR_NO=
|
|
,CAR_NO=
|
|
|
<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.carNo,jdbcType=VARCHAR}
|
|
when #{item.pkNo,jdbcType=VARCHAR} then #{item.carNo,jdbcType=VARCHAR}
|
|
@@ -562,6 +581,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.createTime,jdbcType=TIMESTAMP}
|
|
when #{item.pkNo,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
+ ,UPDATE_MAN_NO=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PK_NO" close="end">
|
|
|
|
|
+ when #{item.pkNo,jdbcType=VARCHAR} then #{item.updateManNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
,UPDATE_MAN_NAME=
|
|
,UPDATE_MAN_NAME=
|
|
|
<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.updateManName,jdbcType=VARCHAR}
|
|
when #{item.pkNo,jdbcType=VARCHAR} then #{item.updateManName,jdbcType=VARCHAR}
|
|
@@ -582,19 +605,38 @@
|
|
|
<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.deleteTime,jdbcType=TIMESTAMP}
|
|
when #{item.pkNo,jdbcType=VARCHAR} then #{item.deleteTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
- where (PK_NO,UPDATE_MAN_NO) in
|
|
|
|
|
- <foreach collection="list" item="item" open="(" close=")" separator=",">
|
|
|
|
|
- (#{item.pkNo, jdbcType=VARCHAR},#{item.updateManNo, jdbcType=VARCHAR})
|
|
|
|
|
- </foreach>
|
|
|
|
|
|
|
+ ,SSO_ID=
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PK_NO" close="end">
|
|
|
|
|
+ when #{item.pkNo,jdbcType=VARCHAR} then #{item.ssoId,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ where PK_NO in
|
|
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
|
+ #{item.pkNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
</update>
|
|
</update>
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
|
delete from METER_BASE_CAR
|
|
delete from METER_BASE_CAR
|
|
|
- where (PK_NO,UPDATE_MAN_NO) in
|
|
|
|
|
- <foreach collection="list" item="item" open="(" close=")" separator=",">
|
|
|
|
|
- ( #{item.pkNo, jdbcType=VARCHAR}, #{item.updateManNo, jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ where PK_NO in
|
|
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
+ #{id}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</delete>
|
|
</delete>
|
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
-
|
|
|
|
|
|
|
+ <select id="GetNewID" parameterType="java.lang.String" resultType="java.lang.String">
|
|
|
|
|
+ SELECT LPAD(NVL(MAX(TO_NUMBER(SUBSTR(PK_NO, LENGTH(PK_NO) -3))),0) + 1,4,'0') PK_NO
|
|
|
|
|
+ FROM METER_BASE_CAR
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="selectForUpdate" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
|
+ <include refid="select"/>
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="pkNo != null and pkNo != ''">
|
|
|
|
|
+ and PK_NO != #{pkNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carNo != null and carNo != ''">
|
|
|
|
|
+ and CCAR_NO = #{cusSupCarNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|