| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422 | 
							- <?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.supervision.militaryvehicleManagement.mapper.BdglThebusApplyMapper">
 
-     <resultMap type="BdglThebusApply" id="BdglThebusApplyResult">
 
-         <result property="id"    column="id"    />
 
-         <result property="model"    column="model"    />
 
-         <result property="unitId"    column="unit_id"    />
 
-         <result property="peopleId"    column="people_id"    />
 
-         <result property="thebusId"    column="thebus_id"    />
 
-         <result property="contact"    column="contact"    />
 
-         <result property="cause"    column="cause"    />
 
-         <result property="authStime"    column="auth_stime"    />
 
-         <result property="authEtime"    column="auth_etime"    />
 
-         <result property="thebusThemplateId"    column="thebus_themplate_id"    />
 
-         <result property="peopleoneId"    column="peopleone_id"    />
 
-         <result property="peopleoneState"    column="peopleone_state"    />
 
-         <result property="peopleoneName"    column="peopleone_name"    />
 
-         <result property="peopleoneRemark"    column="peopleone_remark"    />
 
-         <result property="peopleoneAuthtime"    column="peopleone_authtime"    />
 
-         <result property="peopletwoId"    column="peopletwo_id"    />
 
-         <result property="peopletwoState"    column="peopletwo_state"    />
 
-         <result property="status"    column="status"    />
 
-         <result property="peopletwoRemark"    column="peopletwo_remark"    />
 
-         <result property="peopletwoAuthtime"    column="peopletwo_authtime"    />
 
-         <result property="outstatus"    column="outstatus"    />
 
-         <result property="peopletwoName"    column="peopletwo_name"    />
 
-         <result property="adminId"    column="admin_id"    />
 
-         <result property="createtime"    column="createtime"    />
 
-         <result property="peoplethreeId"    column="peoplethree_id"    />
 
-         <result property="updatetime"    column="updatetime"    />
 
-         <result property="peoplethreeState"    column="peoplethree_state"    />
 
-         <result property="driver"    column="driver"    />
 
-         <result property="peoplethreeRemark"    column="peoplethree_remark"    />
 
-         <result property="driverContact"    column="driver_contact"    />
 
-         <result property="peoplethreeAuthtime"    column="peoplethree_authtime"    />
 
-         <result property="peoplethreeName"    column="peoplethree_name"    />
 
-         <result property="peopleCount"    column="people_count"    />
 
-         <result property="unitPeopleId"    column="unit_people_id"    />
 
-         <result property="unitPeopleState"    column="unit_people_state"    />
 
-         <result property="unitPeopleRemark"    column="unit_people_remark"    />
 
-         <result property="chushenState"    column="chushen_state"    />
 
-         <result property="chushenRemark"    column="chushen_remark"    />
 
-         <result property="route"    column="route"    />
 
-         <result property="outtime"    column="outtime" />
 
-         <result property="carNames"    column="car_names"    />
 
-         <result property="carIds"    column="car_ids"    />
 
-         <result property="unitPeopleName"    column="unit_people_name"    />
 
-         <result property="shenpijiedian"    column="shenpijiedian"    />
 
-         <result property="isTeShu"    column="is_teshu"    />
 
-         <result property="yjtsYuanyin"    column="yjts_yuanyin"    />
 
-         <result property="cstsYuanyin"    column="csts_yuanyin"    />
 
-         <result property="ojtsYuanyin"    column="ojts_yuanyin"    />
 
-         <result property="tjtsYuanyin"    column="tjts_yuanyin"    />
 
-         <result property="sjtsYuanyin"    column="sjts_yuanyin"    />
 
-         <result property="peopleName"    column="people_name"    />
 
-         <result property="unitName"    column="unit_name"    />
 
-         <result property="bdglDepartureYuanyin"    column="bdgl_departure_yuanyin"    />
 
-         <result property="isTeshuYongChe"    column="isTeshuYongChe"    />
 
-         <result property="placeState"    column="place_state"    />
 
-         <result property="carUnitId"    column="car_unit_id"    />
 
-         <result property="remarkInfo"    column="remark_info"    />
 
-         <result property="pepelonamed"    column="pepelonamed"    />
 
-         <result property="battaliontime"    column="battaliontime" />
 
-     </resultMap>
 
-     <sql id="selectBdglThebusApplyVo">
 
-         select id, model, unit_id, people_id, thebus_id, contact, cause, auth_stime, auth_etime, thebus_themplate_id, peopleone_id, peopleone_state, peopleone_name, peopleone_remark, peopleone_authtime, peopletwo_id, peopletwo_state, status, peopletwo_remark, peopletwo_authtime, outstatus, peopletwo_name, admin_id, createtime, peoplethree_id, updatetime, peoplethree_state, driver, peoplethree_remark, driver_contact, peoplethree_authtime, peoplethree_name, people_count, unit_people_id, unit_people_state, unit_people_remark, chushen_state, chushen_remark, route, outtime, car_names, car_ids, unit_people_name,shenpijiedian,is_teshu,yjts_yuanyin,csts_yuanyin,ojts_yuanyin,tjts_yuanyin,sjts_yuanyin,people_name,unit_name,bdgl_departure_yuanyin,isTeshuYongChe,place_state,car_unit_id,remark_info,pepelonamed,battaliontime  from bdgl_thebus_apply
 
-     </sql>
 
-     <select id="selectBdglThebusApplyList" parameterType="BdglThebusApply" resultMap="BdglThebusApplyResult">
 
-         <include refid="selectBdglThebusApplyVo"/>
 
-         <where>
 
-             <if test="model != null  and model != ''"> and model = #{model}</if>
 
-             <if test="unitId != null "> and unit_id = #{unitId}</if>
 
-             <if test="peopleId != null "> and people_id = #{peopleId}</if>
 
-             <if test="thebusId != null "> and thebus_id = #{thebusId}</if>
 
-             <if test="contact != null  and contact != ''"> and contact = #{contact}</if>
 
-             <if test="cause != null  and cause != ''"> and cause = #{cause}</if>
 
-             <if test="authStime != null "> and auth_stime = #{authStime}</if>
 
-             <if test="authEtime != null "> and auth_etime = #{authEtime}</if>
 
-             <if test="thebusThemplateId != null "> and thebus_themplate_id = #{thebusThemplateId}</if>
 
-             <if test="peopleoneId != null "> and peopleone_id = #{peopleoneId}</if>
 
-             <if test="peopleoneState != null "> and peopleone_state = #{peopleoneState}</if>
 
-             <if test="peopleoneName != null  and peopleoneName != ''"> and peopleone_name like concat('%', #{peopleoneName}, '%')</if>
 
-             <if test="peopleoneRemark != null  and peopleoneRemark != ''"> and peopleone_remark = #{peopleoneRemark}</if>
 
-             <if test="peopleoneAuthtime != null "> and peopleone_authtime = #{peopleoneAuthtime}</if>
 
-             <if test="peopletwoId != null "> and peopletwo_id = #{peopletwoId}</if>
 
-             <if test="peopletwoState != null "> and peopletwo_state = #{peopletwoState}</if>
 
-             <if test="status != null "> and status = #{status}</if>
 
-             <if test="peopletwoRemark != null  and peopletwoRemark != ''"> and peopletwo_remark = #{peopletwoRemark}</if>
 
-             <if test="peopletwoAuthtime != null "> and peopletwo_authtime = #{peopletwoAuthtime}</if>
 
-             <if test="outstatus != null "> and outstatus = #{outstatus}</if>
 
-             <if test="peopletwoName != null  and peopletwoName != ''"> and peopletwo_name like concat('%', #{peopletwoName}, '%')</if>
 
-             <if test="adminId != null "> and admin_id = #{adminId}</if>
 
-             <if test="createtime != null  and createtime != ''"> and createtime = #{createtime}</if>
 
-             <if test="peoplethreeId != null "> and peoplethree_id = #{peoplethreeId}</if>
 
-             <if test="updatetime != null  and updatetime != ''"> and updatetime = #{updatetime}</if>
 
-             <if test="peoplethreeState != null "> and peoplethree_state = #{peoplethreeState}</if>
 
-             <if test="driver != null  and driver != ''"> and driver = #{driver}</if>
 
-             <if test="peoplethreeRemark != null  and peoplethreeRemark != ''"> and peoplethree_remark = #{peoplethreeRemark}</if>
 
-             <if test="driverContact != null  and driverContact != ''"> and driver_contact = #{driverContact}</if>
 
-             <if test="peoplethreeAuthtime != null "> and peoplethree_authtime = #{peoplethreeAuthtime}</if>
 
-             <if test="peoplethreeName != null  and peoplethreeName != ''"> and peoplethree_name like concat('%', #{peoplethreeName}, '%')</if>
 
-             <if test="peopleCount != null "> and people_count = #{peopleCount}</if>
 
-             <if test="unitPeopleId != null "> and unit_people_id = #{unitPeopleId}</if>
 
-             <if test="unitPeopleState != null "> and unit_people_state = #{unitPeopleState}</if>
 
-             <if test="unitPeopleRemark != null  and unitPeopleRemark != ''"> and unit_people_remark = #{unitPeopleRemark}</if>
 
-             <if test="chushenState != null "> and chushen_state = #{chushenState}</if>
 
-             <if test="chushenRemark != null  and chushenRemark != ''"> and chushen_remark = #{chushenRemark}</if>
 
-             <if test="route != null  and route != ''"> and route = #{route}</if>
 
-             <if test="outtime != null "> and outtime = #{outtime}</if>
 
-             <if test="carNames != null  and carNames != ''"> and car_names = #{carNames}</if>
 
-             <if test="carIds != null  and carIds != ''"> and car_ids = #{carIds}</if>
 
-             <if test="unitPeopleName != null  and unitPeopleName != ''"> and unit_people_name like concat('%', #{unitPeopleName}, '%')</if>
 
-             <if test="shenpijiedian != null  and shenpijiedian != ''"> and shenpijiedian = #{shenpijiedian}</if>
 
-             <if test="isTeShu != null  and isTeShu != ''"> and is_teShu = #{shenpijiedian}</if>
 
-             <if test="yjtsYuanyin != null  and yjtsYuanyin != ''"> and yjts_yuanyin = #{yjtsYuanyin}</if>
 
-             <if test="cstsYuanyin != null  and cstsYuanyin != ''"> and csts_yuanyin = #{cstsYuanyin}</if>
 
-             <if test="ojtsYuanyin != null  and ojtsYuanyin != ''"> and ojts_yuanyin = #{ojtsYuanyin}</if>
 
-             <if test="tjtsYuanyin != null  and tjtsYuanyin != ''"> and tjts_yuanyin = #{tjtsYuanyin}</if>
 
-             <if test="sjtsYuanyin != null  and sjtsYuanyin != ''"> and sjts_yuanyin = #{sjtsYuanyin}</if>
 
-             <if test="peopleName != null  and peopleName != ''"> and people_name = #{peopleName}</if>
 
-             <if test="unitName != null  and unitName != ''"> and unit_name = #{unitName}</if>
 
-             <if test="bdglDepartureYuanyin != null  and bdglDepartureYuanyin != ''"> and bdgl_departure_yuanyin = #{bdglDepartureYuanyin}</if>
 
-             <if test="isTeshuYongChe  != null  and isTeshuYongChe  != ''"> and isTeshuYongChe  = #{isTeshuYongChe}</if>
 
-             <if test="placeState  != null  and placeState  != ''"> and place_state  = #{placeState}</if>
 
-             <if test="pepelonamed  != null  and pepelonamed  != ''"> and pepelonamed  = #{pepelonamed}</if>
 
-             <if test="battaliontime  != null  and battaliontime  != ''"> and battaliontime  = #{battaliontime}</if>
 
-         </where>
 
-         order by auth_stime desc
 
-     </select>
 
-     <select id="selectBdglThebusApplyById" parameterType="Long" resultMap="BdglThebusApplyResult">
 
-         <include refid="selectBdglThebusApplyVo"/>
 
-         where id = #{id}
 
-     </select>
 
-     <select id="selectBdglThebusApplyLists" resultMap="BdglThebusApplyResult">
 
-         <include refid="selectBdglThebusApplyVo"/>
 
-         <where>
 
-             <if test="model != null  and model != ''"> and model = #{model}</if>
 
-             <if test="unitId != null "> and unit_id = #{unitId}</if>
 
-             <if test="peopleId != null "> and people_id = #{peopleId}</if>
 
-             <if test="thebusId != null "> and thebus_id = #{thebusId}</if>
 
-             <if test="contact != null  and contact != ''"> and contact = #{contact}</if>
 
-             <if test="cause != null  and cause != ''"> and cause = #{cause}</if>
 
-             <if test="authStime != null "> and auth_stime = #{authStime}</if>
 
-             <if test="authEtime != null "> and auth_etime = #{authEtime}</if>
 
-             <if test="thebusThemplateId != null "> and thebus_themplate_id = #{thebusThemplateId}</if>
 
-             <if test="peopleoneId != null "> and peopleone_id = #{peopleoneId}</if>
 
-             <if test="peopleoneState != null "> and peopleone_state = #{peopleoneState}</if>
 
-             <if test="peopleoneName != null  and peopleoneName != ''"> and peopleone_name like concat('%', #{peopleoneName}, '%')</if>
 
-             <if test="peopleoneRemark != null  and peopleoneRemark != ''"> and peopleone_remark = #{peopleoneRemark}</if>
 
-             <if test="peopleoneAuthtime != null "> and peopleone_authtime = #{peopleoneAuthtime}</if>
 
-             <if test="peopletwoId != null "> and peopletwo_id = #{peopletwoId}</if>
 
-             <if test="peopletwoState != null "> and peopletwo_state = #{peopletwoState}</if>
 
-             <if test="status != null "> and status = #{status}</if>
 
-             <if test="peopletwoRemark != null  and peopletwoRemark != ''"> and peopletwo_remark = #{peopletwoRemark}</if>
 
-             <if test="peopletwoAuthtime != null "> and peopletwo_authtime = #{peopletwoAuthtime}</if>
 
-             <if test="outstatus != null "> and outstatus = #{outstatus}</if>
 
-             <if test="peopletwoName != null  and peopletwoName != ''"> and peopletwo_name like concat('%', #{peopletwoName}, '%')</if>
 
-             <if test="adminId != null "> and admin_id = #{adminId}</if>
 
-             <if test="createtime != null  and createtime != ''"> and createtime = #{createtime}</if>
 
-             <if test="peoplethreeId != null "> and peoplethree_id = #{peoplethreeId}</if>
 
-             <if test="updatetime != null  and updatetime != ''"> and updatetime = #{updatetime}</if>
 
-             <if test="peoplethreeState != null "> and peoplethree_state = #{peoplethreeState}</if>
 
-             <if test="driver != null  and driver != ''"> and driver = #{driver}</if>
 
-             <if test="peoplethreeRemark != null  and peoplethreeRemark != ''"> and peoplethree_remark = #{peoplethreeRemark}</if>
 
-             <if test="driverContact != null  and driverContact != ''"> and driver_contact = #{driverContact}</if>
 
-             <if test="peoplethreeAuthtime != null "> and peoplethree_authtime = #{peoplethreeAuthtime}</if>
 
-             <if test="peoplethreeName != null  and peoplethreeName != ''"> and peoplethree_name like concat('%', #{peoplethreeName}, '%')</if>
 
-             <if test="peopleCount != null "> and people_count = #{peopleCount}</if>
 
-             <if test="unitPeopleId != null "> and unit_people_id = #{unitPeopleId}</if>
 
-             <if test="unitPeopleState != null "> and unit_people_state = #{unitPeopleState}</if>
 
-             <if test="unitPeopleRemark != null  and unitPeopleRemark != ''"> and unit_people_remark = #{unitPeopleRemark}</if>
 
-             <if test="chushenState != null "> and chushen_state = #{chushenState}</if>
 
-             <if test="chushenRemark != null  and chushenRemark != ''"> and chushen_remark = #{chushenRemark}</if>
 
-             <if test="route != null  and route != ''"> and route = #{route}</if>
 
-             <if test="outtime != null"> and DATE_FORMAT(outtime,'%Y-%m-%d') = DATE_FORMAT(#{outtime,jdbcType=TIMESTAMP},'%Y-%m-%d')</if>
 
-             <if test="carNames != null  and carNames != ''"> and car_names = #{carNames}</if>
 
-             <if test="carIds != null  and carIds != ''"> and car_ids = #{carIds}</if>
 
-             <if test="unitPeopleName != null  and unitPeopleName != ''"> and unit_people_name like concat('%', #{unitPeopleName}, '%')</if>
 
-             <if test="shenpijiedian != null  and shenpijiedian != ''"> and shenpijiedian = #{shenpijiedian}</if>
 
-             <if test="isTeShu != null  and isTeShu != ''"> and is_teShu = #{shenpijiedian}</if>
 
-             <if test="yjtsYuanyin != null  and yjtsYuanyin != ''"> and yjts_yuanyin = #{yjtsYuanyin}</if>
 
-             <if test="cstsYuanyin != null  and cstsYuanyin != ''"> and csts_yuanyin = #{cstsYuanyin}</if>
 
-             <if test="ojtsYuanyin != null  and ojtsYuanyin != ''"> and ojts_yuanyin = #{ojtsYuanyin}</if>
 
-             <if test="tjtsYuanyin != null  and tjtsYuanyin != ''"> and tjts_yuanyin = #{tjtsYuanyin}</if>
 
-             <if test="sjtsYuanyin != null  and sjtsYuanyin != ''"> and sjts_yuanyin = #{sjtsYuanyin}</if>
 
-             <if test="peopleName != null  and peopleName != ''"> and people_name = #{peopleName}</if>
 
-             <if test="unitName != null  and unitName != ''"> and unit_name = #{unitName}</if>
 
-             <if test="bdglDepartureYuanyin != null  and bdglDepartureYuanyin != ''"> and bdgl_departure_yuanyin = #{bdglDepartureYuanyin}</if>
 
-             <if test="isTeshuYongChe  != null  and isTeshuYongChe  != ''"> and isTeshuYongChe  = #{isTeshuYongChe}</if>
 
-             <if test="placeState  != null  and placeState  != ''"> and place_state  = #{placeState}</if>
 
-             <if test="pepelonamed  != null  and pepelonamed  != ''"> and pepelonamed  = #{pepelonamed}</if>
 
-             <if test="battaliontime  != null  and battaliontime  != ''"> and battaliontime  = #{battaliontime}</if>
 
-         </where>
 
-         order by id desc
 
-     </select>
 
-     <insert id="insertBdglThebusApply" parameterType="BdglThebusApply" useGeneratedKeys="true" keyProperty="id">
 
-         insert into bdgl_thebus_apply
 
-         <trim prefix="(" suffix=")" suffixOverrides=",">
 
-             <if test="model != null">model,</if>
 
-             <if test="unitId != null">unit_id,</if>
 
-             <if test="peopleId != null">people_id,</if>
 
-             <if test="thebusId != null">thebus_id,</if>
 
-             <if test="contact != null">contact,</if>
 
-             <if test="cause != null">cause,</if>
 
-             <if test="authStime != null">auth_stime,</if>
 
-             <if test="authEtime != null">auth_etime,</if>
 
-             <if test="thebusThemplateId != null">thebus_themplate_id,</if>
 
-             <if test="peopleoneId != null">peopleone_id,</if>
 
-             <if test="peopleoneState != null">peopleone_state,</if>
 
-             <if test="peopleoneName != null">peopleone_name,</if>
 
-             <if test="peopleoneRemark != null">peopleone_remark,</if>
 
-             <if test="peopleoneAuthtime != null">peopleone_authtime,</if>
 
-             <if test="peopletwoId != null">peopletwo_id,</if>
 
-             <if test="peopletwoState != null">peopletwo_state,</if>
 
-             <if test="status != null">status,</if>
 
-             <if test="peopletwoRemark != null">peopletwo_remark,</if>
 
-             <if test="peopletwoAuthtime != null">peopletwo_authtime,</if>
 
-             <if test="outstatus != null">outstatus,</if>
 
-             <if test="peopletwoName != null">peopletwo_name,</if>
 
-             <if test="adminId != null">admin_id,</if>
 
-             <if test="createtime != null">createtime,</if>
 
-             <if test="peoplethreeId != null">peoplethree_id,</if>
 
-             <if test="updatetime != null">updatetime,</if>
 
-             <if test="peoplethreeState != null">peoplethree_state,</if>
 
-             <if test="driver != null">driver,</if>
 
-             <if test="peoplethreeRemark != null">peoplethree_remark,</if>
 
-             <if test="driverContact != null">driver_contact,</if>
 
-             <if test="peoplethreeAuthtime != null">peoplethree_authtime,</if>
 
-             <if test="peoplethreeName != null">peoplethree_name,</if>
 
-             <if test="peopleCount != null">people_count,</if>
 
-             <if test="unitPeopleId != null">unit_people_id,</if>
 
-             <if test="unitPeopleState != null">unit_people_state,</if>
 
-             <if test="unitPeopleRemark != null">unit_people_remark,</if>
 
-             <if test="chushenState != null">chushen_state,</if>
 
-             <if test="chushenRemark != null">chushen_remark,</if>
 
-             <if test="route != null">route,</if>
 
-             <if test="outtime != null">outtime,</if>
 
-             <if test="carNames != null">car_names,</if>
 
-             <if test="carIds != null">car_ids,</if>
 
-             <if test="unitPeopleName != null">unit_people_name,</if>
 
-             <if test="shenpijiedian != null ">  shenpijiedian ,</if>
 
-             <if test="isTeShu != null ">  is_teShu ,</if>
 
-             <if test="yjtsYuanyin != null ">  yjts_yuanyin ,</if>
 
-             <if test="cstsYuanyin != null  ">  csts_yuanyin ,</if>
 
-             <if test="ojtsYuanyin != null  ">  ojts_yuanyin,</if>
 
-             <if test="tjtsYuanyin != null  ">  tjts_yuanyin ,</if>
 
-             <if test="sjtsYuanyin != null ">  sjts_yuanyin ,</if>
 
-             <if test="peopleName != null  ">  people_name ,</if>
 
-             <if test="unitName != null ">  unit_name ,</if>
 
-             <if test="bdglDepartureYuanyin != null  ">  bdgl_departure_yuanyin ,</if>
 
-             <if test="isTeshuYongChe  != null  ">  isTeshuYongChe ,</if>
 
-             <if test="placeState  != null  ">  place_state ,</if>
 
-             <if test="pepelonamed  != null  ">  pepelonamed ,</if>
 
-             <if test="battaliontime  != null  ">  battaliontime ,</if>
 
-         </trim>
 
-         <trim prefix="values (" suffix=")" suffixOverrides=",">
 
-             <if test="model != null">#{model},</if>
 
-             <if test="unitId != null">#{unitId},</if>
 
-             <if test="peopleId != null">#{peopleId},</if>
 
-             <if test="thebusId != null">#{thebusId},</if>
 
-             <if test="contact != null">#{contact},</if>
 
-             <if test="cause != null">#{cause},</if>
 
-             <if test="authStime != null">#{authStime},</if>
 
-             <if test="authEtime != null">#{authEtime},</if>
 
-             <if test="thebusThemplateId != null">#{thebusThemplateId},</if>
 
-             <if test="peopleoneId != null">#{peopleoneId},</if>
 
-             <if test="peopleoneState != null">#{peopleoneState},</if>
 
-             <if test="peopleoneName != null">#{peopleoneName},</if>
 
-             <if test="peopleoneRemark != null">#{peopleoneRemark},</if>
 
-             <if test="peopleoneAuthtime != null">#{peopleoneAuthtime},</if>
 
-             <if test="peopletwoId != null">#{peopletwoId},</if>
 
-             <if test="peopletwoState != null">#{peopletwoState},</if>
 
-             <if test="status != null">#{status},</if>
 
-             <if test="peopletwoRemark != null">#{peopletwoRemark},</if>
 
-             <if test="peopletwoAuthtime != null">#{peopletwoAuthtime},</if>
 
-             <if test="outstatus != null">#{outstatus},</if>
 
-             <if test="peopletwoName != null">#{peopletwoName},</if>
 
-             <if test="adminId != null">#{adminId},</if>
 
-             <if test="createtime != null">#{createtime},</if>
 
-             <if test="peoplethreeId != null">#{peoplethreeId},</if>
 
-             <if test="updatetime != null">#{updatetime},</if>
 
-             <if test="peoplethreeState != null">#{peoplethreeState},</if>
 
-             <if test="driver != null">#{driver},</if>
 
-             <if test="peoplethreeRemark != null">#{peoplethreeRemark},</if>
 
-             <if test="driverContact != null">#{driverContact},</if>
 
-             <if test="peoplethreeAuthtime != null">#{peoplethreeAuthtime},</if>
 
-             <if test="peoplethreeName != null">#{peoplethreeName},</if>
 
-             <if test="peopleCount != null">#{peopleCount},</if>
 
-             <if test="unitPeopleId != null">#{unitPeopleId},</if>
 
-             <if test="unitPeopleState != null">#{unitPeopleState},</if>
 
-             <if test="unitPeopleRemark != null">#{unitPeopleRemark},</if>
 
-             <if test="chushenState != null">#{chushenState},</if>
 
-             <if test="chushenRemark != null">#{chushenRemark},</if>
 
-             <if test="route != null">#{route},</if>
 
-             <if test="outtime != null">#{outtime},</if>
 
-             <if test="carNames != null">#{carNames},</if>
 
-             <if test="carIds != null">#{carIds},</if>
 
-             <if test="unitPeopleName != null">#{unitPeopleName},</if>
 
-             <if test="shenpijiedian != null ">  #{shenpijiedian},</if>
 
-             <if test="isTeShu != null  "> #{shenpijiedian},</if>
 
-             <if test="yjtsYuanyin != null ">    #{yjtsYuanyin},</if>
 
-             <if test="cstsYuanyin != null ">    #{cstsYuanyin},</if>
 
-             <if test="ojtsYuanyin != null  ">    #{ojtsYuanyin},</if>
 
-             <if test="tjtsYuanyin != null  ">  #{tjtsYuanyin},</if>
 
-             <if test="sjtsYuanyin != null  ">  #{sjtsYuanyin},</if>
 
-             <if test="peopleName != null  "> #{peopleName},</if>
 
-             <if test="unitName != null  ">  #{unitName},</if>
 
-             <if test="bdglDepartureYuanyin != null ">  #{bdglDepartureYuanyin},</if>
 
-             <if test="isTeshuYongChe  != null"> #{isTeshuYongChe},</if>
 
-             <if test="placeState  != null"> #{placeState},</if>
 
-             <if test="pepelonamed  != null"> #{pepelonamed},</if>
 
-             <if test="battaliontime  != null"> #{battaliontime},</if>
 
-         </trim>
 
-     </insert>
 
-     <update id="updateBdglThebusApply" parameterType="BdglThebusApply">
 
-         update bdgl_thebus_apply
 
-         <trim prefix="SET" suffixOverrides=",">
 
-             <if test="model != null">model = #{model},</if>
 
-             <if test="unitId != null">unit_id = #{unitId},</if>
 
-             <if test="peopleId != null">people_id = #{peopleId},</if>
 
-             <if test="thebusId != null">thebus_id = #{thebusId},</if>
 
-             <if test="contact != null">contact = #{contact},</if>
 
-             <if test="cause != null">cause = #{cause},</if>
 
-             <if test="authStime != null">auth_stime = #{authStime},</if>
 
-             <if test="authEtime != null">auth_etime = #{authEtime},</if>
 
-             <if test="thebusThemplateId != null">thebus_themplate_id = #{thebusThemplateId},</if>
 
-             <if test="peopleoneId != null">peopleone_id = #{peopleoneId},</if>
 
-             <if test="peopleoneState != null">peopleone_state = #{peopleoneState},</if>
 
-             <if test="peopleoneName != null">peopleone_name = #{peopleoneName},</if>
 
-             <if test="peopleoneRemark != null">peopleone_remark = #{peopleoneRemark},</if>
 
-             <if test="peopleoneAuthtime != null">peopleone_authtime = #{peopleoneAuthtime},</if>
 
-             <if test="peopletwoId != null">peopletwo_id = #{peopletwoId},</if>
 
-             <if test="peopletwoState != null">peopletwo_state = #{peopletwoState},</if>
 
-             <if test="status != null">status = #{status},</if>
 
-             <if test="peopletwoRemark != null">peopletwo_remark = #{peopletwoRemark},</if>
 
-             <if test="peopletwoAuthtime != null">peopletwo_authtime = #{peopletwoAuthtime},</if>
 
-             <if test="outstatus != null">outstatus = #{outstatus},</if>
 
-             <if test="peopletwoName != null">peopletwo_name = #{peopletwoName},</if>
 
-             <if test="adminId != null">admin_id = #{adminId},</if>
 
-             <if test="createtime != null">createtime = #{createtime},</if>
 
-             <if test="peoplethreeId != null">peoplethree_id = #{peoplethreeId},</if>
 
-             <if test="updatetime != null">updatetime = #{updatetime},</if>
 
-             <if test="peoplethreeState != null">peoplethree_state = #{peoplethreeState},</if>
 
-             <if test="driver != null">driver = #{driver},</if>
 
-             <if test="peoplethreeRemark != null">peoplethree_remark = #{peoplethreeRemark},</if>
 
-             <if test="driverContact != null">driver_contact = #{driverContact},</if>
 
-             <if test="peoplethreeAuthtime != null">peoplethree_authtime = #{peoplethreeAuthtime},</if>
 
-             <if test="peoplethreeName != null">peoplethree_name = #{peoplethreeName},</if>
 
-             <if test="peopleCount != null">people_count = #{peopleCount},</if>
 
-             <if test="unitPeopleId != null">unit_people_id = #{unitPeopleId},</if>
 
-             <if test="unitPeopleState != null">unit_people_state = #{unitPeopleState},</if>
 
-             <if test="unitPeopleRemark != null">unit_people_remark = #{unitPeopleRemark},</if>
 
-             <if test="chushenState != null">chushen_state = #{chushenState},</if>
 
-             <if test="chushenRemark != null">chushen_remark = #{chushenRemark},</if>
 
-             <if test="route != null">route = #{route},</if>
 
-             <if test="outtime != null">outtime = #{outtime},</if>
 
-             <if test="carNames != null">car_names = #{carNames},</if>
 
-             <if test="carIds != null">car_ids = #{carIds},</if>
 
-             <if test="unitPeopleName != null">unit_people_name = #{unitPeopleName},</if>
 
-             <if test="shenpijiedian != null  ">  shenpijiedian = #{shenpijiedian},</if>
 
-             <if test="isTeShu != null  and isTeShu != ''">   is_teShu =  #{shenpijiedian},</if>
 
-             <if test="yjtsYuanyin != null  and yjtsYuanyin != ''">  yjts_yuanyin = #{yjtsYuanyin},</if>
 
-             <if test="cstsYuanyin != null  and cstsYuanyin != ''">  csts_yuanyin = #{cstsYuanyin},</if>
 
-             <if test="ojtsYuanyin != null  and ojtsYuanyin != ''">  ojts_yuanyin = #{ojtsYuanyin},</if>
 
-             <if test="tjtsYuanyin != null  and tjtsYuanyin != ''">  tjts_yuanyin = #{tjtsYuanyin},</if>
 
-             <if test="sjtsYuanyin != null  and sjtsYuanyin != ''">  sjts_yuanyin = #{sjtsYuanyin},</if>
 
-             <if test="peopleName != null  and peopleName != ''">  people_name = #{peopleName},</if>
 
-             <if test="unitName != null  and unitName != ''">  unit_name = #{unitName},</if>
 
-             <if test="bdglDepartureYuanyin != null  and bdglDepartureYuanyin != ''">  bdgl_departure_yuanyin = #{bdglDepartureYuanyin},</if>
 
-             <if test="isTeshuYongChe  != null  and isTeshuYongChe  != ''">  isTeshuYongChe  = #{isTeshuYongChe},</if>
 
-             <if test="placeState  != null  and placeState  != ''">  place_state  = #{placeState},</if>
 
-             <if test="carUnitId  != null  and carUnitId  != ''">  car_unit_id  = #{carUnitId},</if>
 
-             <if test="remarkInfo  != null  and remarkInfo  != ''">  remark_info  = #{remarkInfo},</if>
 
-             <if test="pepelonamed  != null  and pepelonamed  != ''">  pepelonamed  = #{pepelonamed},</if>
 
-             <if test="battaliontime  != null  and battaliontime  != ''">  battaliontime  = #{battaliontime}</if>
 
-         </trim>
 
-         where id = #{id}
 
-     </update>
 
-     <delete id="deleteBdglThebusApplyById" parameterType="Long">
 
-         delete from bdgl_thebus_apply where id = #{id}
 
-     </delete>
 
-     <delete id="deleteBdglThebusApplyByIds" parameterType="String">
 
-         delete from bdgl_thebus_apply where id in
 
-         <foreach item="id" collection="array" open="(" separator="," close=")">
 
-             #{id}
 
-         </foreach>
 
-     </delete>
 
- </mapper>
 
 
  |