|
|
<?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.sunyo.wlpt.vehicle.manage.mapper.LandRoadDrRecordMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.sunyo.wlpt.vehicle.manage.domain.LandRoadDrRecord">
|
|
|
<!--@mbg.generated-->
|
|
|
<!--@Table land_road_dr_record-->
|
|
|
<id column="ID" jdbcType="VARCHAR" property="id"/>
|
|
|
<result column="EPORT_ID" jdbcType="VARCHAR" property="eportId"/>
|
|
|
<result column="MAIN_PORT" jdbcType="VARCHAR" property="mainPort"/>
|
|
|
<result column="DR_NAME" jdbcType="VARCHAR" property="drName"/>
|
|
|
<result column="ID_CARD" jdbcType="VARCHAR" property="idCard"/>
|
|
|
<result column="DR_NATIVE" jdbcType="VARCHAR" property="drNative"/>
|
|
|
<result column="GENDER" jdbcType="VARCHAR" property="gender"/>
|
|
|
<result column="BIRTHDAY" jdbcType="DATE" property="birthday"/>
|
|
|
<result column="LIVE_ADDR" jdbcType="VARCHAR" property="liveAddr"/>
|
|
|
<result column="CURR_APPLY_BUSSINESS" jdbcType="VARCHAR" property="currApplyBussiness"/>
|
|
|
<result column="PROPOSER" jdbcType="VARCHAR" property="proposer"/>
|
|
|
<result column="PROPOSE_TIME" jdbcType="TIMESTAMP" property="proposeTime"/>
|
|
|
<result column="DR_CLASS_FLAG" jdbcType="VARCHAR" property="drClassFlag"/>
|
|
|
<result column="OPERATION_TYPE" jdbcType="VARCHAR" property="operationType"/>
|
|
|
<result column="DR_PIC" jdbcType="VARCHAR" property="drPic"/>
|
|
|
<result column="MEMO" jdbcType="VARCHAR" property="memo"/>
|
|
|
<result column="ROAD_DR_QUA_INFO" jdbcType="VARCHAR" property="roadDrQuaInfo"/>
|
|
|
<result column="QUA_ID" jdbcType="VARCHAR" property="quaId"/>
|
|
|
<result column="DR_QUA" jdbcType="VARCHAR" property="drQua"/>
|
|
|
<result column="APPR_NO" jdbcType="VARCHAR" property="apprNo"/>
|
|
|
<result column="OPERATION_TYPE_INFO" jdbcType="VARCHAR" property="operationTypeInfo"/>
|
|
|
<result column="NATIONALITY" jdbcType="VARCHAR" property="nationality"/>
|
|
|
<result column="APPR_PERIOD" jdbcType="DATE" property="apprPeriod"/>
|
|
|
<result column="CO_CODE" jdbcType="VARCHAR" property="coCode"/>
|
|
|
<result column="RETURNMESSAGE" jdbcType="VARCHAR" property="returnmessage"/>
|
|
|
<result column="CREATE_BY" jdbcType="VARCHAR" property="createBy"/>
|
|
|
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate"/>
|
|
|
<result column="UPDATE_BY" jdbcType="VARCHAR" property="updateBy"/>
|
|
|
<result column="UPDATE_DATE" jdbcType="TIMESTAMP" property="updateDate"/>
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
<!--@mbg.generated-->
|
|
|
ID, EPORT_ID, MAIN_PORT, DR_NAME, ID_CARD, DR_NATIVE, GENDER, BIRTHDAY, LIVE_ADDR,
|
|
|
CURR_APPLY_BUSSINESS, PROPOSER, PROPOSE_TIME, DR_CLASS_FLAG, OPERATION_TYPE, DR_PIC,
|
|
|
MEMO, ROAD_DR_QUA_INFO, QUA_ID, DR_QUA, APPR_NO, OPERATION_TYPE_INFO, NATIONALITY,
|
|
|
APPR_PERIOD, CO_CODE, RETURNMESSAGE, CREATE_BY, CREATE_DATE, UPDATE_BY, UPDATE_DATE
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
<!--@mbg.generated-->
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from land_road_dr_record
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<!-- 该查询用于分页查询 -->
|
|
|
<select id="selectListByPage" parameterType="com.sunyo.wlpt.vehicle.manage.domain.LandRoadDrRecord" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from land_road_dr_record
|
|
|
<where>
|
|
|
<!-- 驾驶员姓名 -->
|
|
|
<if test="drName != null and drName != ''">
|
|
|
DR_NAME = #{drName,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<!-- 驾车资格编号 -->
|
|
|
<if test="quaId != null and quaId != ''">
|
|
|
AND QUA_ID = #{quaId,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
<!-- 查询,根据驾车资格编号 -->
|
|
|
<select id="selectByQuaId" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from land_road_dr_record
|
|
|
where QUA_ID = #{quaId,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
<!--@mbg.generated-->
|
|
|
delete
|
|
|
from land_road_dr_record
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="batchRemoveByIds" parameterType="java.lang.String">
|
|
|
delete
|
|
|
from land_road_dr_record
|
|
|
where ID in
|
|
|
<foreach collection="array" open="(" close=")" separator="," item="id">
|
|
|
#{id,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.sunyo.wlpt.vehicle.manage.domain.LandRoadDrRecord">
|
|
|
<!--@mbg.generated-->
|
|
|
insert into land_road_dr_record (ID, EPORT_ID, MAIN_PORT,
|
|
|
DR_NAME, ID_CARD, DR_NATIVE,
|
|
|
GENDER, BIRTHDAY, LIVE_ADDR,
|
|
|
CURR_APPLY_BUSSINESS, PROPOSER, PROPOSE_TIME,
|
|
|
DR_CLASS_FLAG, OPERATION_TYPE, DR_PIC,
|
|
|
MEMO, ROAD_DR_QUA_INFO, QUA_ID,
|
|
|
DR_QUA, APPR_NO, OPERATION_TYPE_INFO,
|
|
|
NATIONALITY, APPR_PERIOD, CO_CODE,
|
|
|
RETURNMESSAGE, CREATE_BY, CREATE_DATE,
|
|
|
UPDATE_BY, UPDATE_DATE)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{eportId,jdbcType=VARCHAR}, #{mainPort,jdbcType=VARCHAR},
|
|
|
#{drName,jdbcType=VARCHAR}, #{idCard,jdbcType=VARCHAR}, #{drNative,jdbcType=VARCHAR},
|
|
|
#{gender,jdbcType=VARCHAR}, #{birthday,jdbcType=DATE}, #{liveAddr,jdbcType=VARCHAR},
|
|
|
#{currApplyBussiness,jdbcType=VARCHAR}, #{proposer,jdbcType=VARCHAR}, #{proposeTime,jdbcType=TIMESTAMP},
|
|
|
#{drClassFlag,jdbcType=VARCHAR}, #{operationType,jdbcType=VARCHAR}, #{drPic,jdbcType=VARCHAR},
|
|
|
#{memo,jdbcType=VARCHAR}, #{roadDrQuaInfo,jdbcType=VARCHAR}, #{quaId,jdbcType=VARCHAR},
|
|
|
#{drQua,jdbcType=VARCHAR}, #{apprNo,jdbcType=VARCHAR}, #{operationTypeInfo,jdbcType=VARCHAR},
|
|
|
#{nationality,jdbcType=VARCHAR}, #{apprPeriod,jdbcType=DATE}, #{coCode,jdbcType=VARCHAR},
|
|
|
#{returnmessage,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP},
|
|
|
#{updateBy,jdbcType=VARCHAR}, #{updateDate,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.sunyo.wlpt.vehicle.manage.domain.LandRoadDrRecord">
|
|
|
<!--@mbg.generated-->
|
|
|
insert into land_road_dr_record
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
ID,
|
|
|
</if>
|
|
|
<if test="eportId != null">
|
|
|
EPORT_ID,
|
|
|
</if>
|
|
|
<if test="mainPort != null">
|
|
|
MAIN_PORT,
|
|
|
</if>
|
|
|
<if test="drName != null">
|
|
|
DR_NAME,
|
|
|
</if>
|
|
|
<if test="idCard != null">
|
|
|
ID_CARD,
|
|
|
</if>
|
|
|
<if test="drNative != null">
|
|
|
DR_NATIVE,
|
|
|
</if>
|
|
|
<if test="gender != null">
|
|
|
GENDER,
|
|
|
</if>
|
|
|
<if test="birthday != null">
|
|
|
BIRTHDAY,
|
|
|
</if>
|
|
|
<if test="liveAddr != null">
|
|
|
LIVE_ADDR,
|
|
|
</if>
|
|
|
<if test="currApplyBussiness != null">
|
|
|
CURR_APPLY_BUSSINESS,
|
|
|
</if>
|
|
|
<if test="proposer != null">
|
|
|
PROPOSER,
|
|
|
</if>
|
|
|
<if test="proposeTime != null">
|
|
|
PROPOSE_TIME,
|
|
|
</if>
|
|
|
<if test="drClassFlag != null">
|
|
|
DR_CLASS_FLAG,
|
|
|
</if>
|
|
|
<if test="operationType != null">
|
|
|
OPERATION_TYPE,
|
|
|
</if>
|
|
|
<if test="drPic != null">
|
|
|
DR_PIC,
|
|
|
</if>
|
|
|
<if test="memo != null">
|
|
|
MEMO,
|
|
|
</if>
|
|
|
<if test="roadDrQuaInfo != null">
|
|
|
ROAD_DR_QUA_INFO,
|
|
|
</if>
|
|
|
<if test="quaId != null">
|
|
|
QUA_ID,
|
|
|
</if>
|
|
|
<if test="drQua != null">
|
|
|
DR_QUA,
|
|
|
</if>
|
|
|
<if test="apprNo != null">
|
|
|
APPR_NO,
|
|
|
</if>
|
|
|
<if test="operationTypeInfo != null">
|
|
|
OPERATION_TYPE_INFO,
|
|
|
</if>
|
|
|
<if test="nationality != null">
|
|
|
NATIONALITY,
|
|
|
</if>
|
|
|
<if test="apprPeriod != null">
|
|
|
APPR_PERIOD,
|
|
|
</if>
|
|
|
<if test="coCode != null">
|
|
|
CO_CODE,
|
|
|
</if>
|
|
|
<if test="returnmessage != null">
|
|
|
RETURNMESSAGE,
|
|
|
</if>
|
|
|
<if test="createBy != null">
|
|
|
CREATE_BY,
|
|
|
</if>
|
|
|
<if test="createDate != null">
|
|
|
CREATE_DATE,
|
|
|
</if>
|
|
|
<if test="updateBy != null">
|
|
|
UPDATE_BY,
|
|
|
</if>
|
|
|
<if test="updateDate != null">
|
|
|
UPDATE_DATE,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="eportId != null">
|
|
|
#{eportId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="mainPort != null">
|
|
|
#{mainPort,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="drName != null">
|
|
|
#{drName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="idCard != null">
|
|
|
#{idCard,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="drNative != null">
|
|
|
#{drNative,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="gender != null">
|
|
|
#{gender,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="birthday != null">
|
|
|
#{birthday,jdbcType=DATE},
|
|
|
</if>
|
|
|
<if test="liveAddr != null">
|
|
|
#{liveAddr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="currApplyBussiness != null">
|
|
|
#{currApplyBussiness,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="proposer != null">
|
|
|
#{proposer,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="proposeTime != null">
|
|
|
#{proposeTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="drClassFlag != null">
|
|
|
#{drClassFlag,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="operationType != null">
|
|
|
#{operationType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="drPic != null">
|
|
|
#{drPic,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="memo != null">
|
|
|
#{memo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="roadDrQuaInfo != null">
|
|
|
#{roadDrQuaInfo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="quaId != null">
|
|
|
#{quaId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="drQua != null">
|
|
|
#{drQua,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="apprNo != null">
|
|
|
#{apprNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="operationTypeInfo != null">
|
|
|
#{operationTypeInfo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="nationality != null">
|
|
|
#{nationality,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="apprPeriod != null">
|
|
|
#{apprPeriod,jdbcType=DATE},
|
|
|
</if>
|
|
|
<if test="coCode != null">
|
|
|
#{coCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="returnmessage != null">
|
|
|
#{returnmessage,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createBy != null">
|
|
|
#{createBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createDate != null">
|
|
|
#{createDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateBy != null">
|
|
|
#{updateBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="updateDate != null">
|
|
|
#{updateDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.vehicle.manage.domain.LandRoadDrRecord">
|
|
|
<!--@mbg.generated-->
|
|
|
update land_road_dr_record
|
|
|
<set>
|
|
|
<if test="eportId != null">
|
|
|
EPORT_ID = #{eportId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="mainPort != null">
|
|
|
MAIN_PORT = #{mainPort,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="drName != null">
|
|
|
DR_NAME = #{drName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="idCard != null">
|
|
|
ID_CARD = #{idCard,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="drNative != null">
|
|
|
DR_NATIVE = #{drNative,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="gender != null">
|
|
|
GENDER = #{gender,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="birthday != null">
|
|
|
BIRTHDAY = #{birthday,jdbcType=DATE},
|
|
|
</if>
|
|
|
<if test="liveAddr != null">
|
|
|
LIVE_ADDR = #{liveAddr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="currApplyBussiness != null">
|
|
|
CURR_APPLY_BUSSINESS = #{currApplyBussiness,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="proposer != null">
|
|
|
PROPOSER = #{proposer,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="proposeTime != null">
|
|
|
PROPOSE_TIME = #{proposeTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="drClassFlag != null">
|
|
|
DR_CLASS_FLAG = #{drClassFlag,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="operationType != null">
|
|
|
OPERATION_TYPE = #{operationType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="drPic != null">
|
|
|
DR_PIC = #{drPic,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="memo != null">
|
|
|
MEMO = #{memo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="roadDrQuaInfo != null">
|
|
|
ROAD_DR_QUA_INFO = #{roadDrQuaInfo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="quaId != null">
|
|
|
QUA_ID = #{quaId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="drQua != null">
|
|
|
DR_QUA = #{drQua,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="apprNo != null">
|
|
|
APPR_NO = #{apprNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="operationTypeInfo != null">
|
|
|
OPERATION_TYPE_INFO = #{operationTypeInfo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="nationality != null">
|
|
|
NATIONALITY = #{nationality,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="apprPeriod != null">
|
|
|
APPR_PERIOD = #{apprPeriod,jdbcType=DATE},
|
|
|
</if>
|
|
|
<if test="coCode != null">
|
|
|
CO_CODE = #{coCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="returnmessage != null">
|
|
|
RETURNMESSAGE = #{returnmessage,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createBy != null">
|
|
|
CREATE_BY = #{createBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createDate != null">
|
|
|
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateBy != null">
|
|
|
UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="updateDate != null">
|
|
|
UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</set>
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sunyo.wlpt.vehicle.manage.domain.LandRoadDrRecord">
|
|
|
<!--@mbg.generated-->
|
|
|
update land_road_dr_record
|
|
|
set EPORT_ID = #{eportId,jdbcType=VARCHAR},
|
|
|
MAIN_PORT = #{mainPort,jdbcType=VARCHAR},
|
|
|
DR_NAME = #{drName,jdbcType=VARCHAR},
|
|
|
ID_CARD = #{idCard,jdbcType=VARCHAR},
|
|
|
DR_NATIVE = #{drNative,jdbcType=VARCHAR},
|
|
|
GENDER = #{gender,jdbcType=VARCHAR},
|
|
|
BIRTHDAY = #{birthday,jdbcType=DATE},
|
|
|
LIVE_ADDR = #{liveAddr,jdbcType=VARCHAR},
|
|
|
CURR_APPLY_BUSSINESS = #{currApplyBussiness,jdbcType=VARCHAR},
|
|
|
PROPOSER = #{proposer,jdbcType=VARCHAR},
|
|
|
PROPOSE_TIME = #{proposeTime,jdbcType=TIMESTAMP},
|
|
|
DR_CLASS_FLAG = #{drClassFlag,jdbcType=VARCHAR},
|
|
|
OPERATION_TYPE = #{operationType,jdbcType=VARCHAR},
|
|
|
DR_PIC = #{drPic,jdbcType=VARCHAR},
|
|
|
MEMO = #{memo,jdbcType=VARCHAR},
|
|
|
ROAD_DR_QUA_INFO = #{roadDrQuaInfo,jdbcType=VARCHAR},
|
|
|
QUA_ID = #{quaId,jdbcType=VARCHAR},
|
|
|
DR_QUA = #{drQua,jdbcType=VARCHAR},
|
|
|
APPR_NO = #{apprNo,jdbcType=VARCHAR},
|
|
|
OPERATION_TYPE_INFO = #{operationTypeInfo,jdbcType=VARCHAR},
|
|
|
NATIONALITY = #{nationality,jdbcType=VARCHAR},
|
|
|
APPR_PERIOD = #{apprPeriod,jdbcType=DATE},
|
|
|
CO_CODE = #{coCode,jdbcType=VARCHAR},
|
|
|
RETURNMESSAGE = #{returnmessage,jdbcType=VARCHAR},
|
|
|
CREATE_BY = #{createBy,jdbcType=VARCHAR},
|
|
|
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
|
|
|
UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
|
|
|
UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP}
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|