BdglThebusApplyMapper.xml 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.supervision.militaryvehicleManagement.mapper.BdglThebusApplyMapper">
  6. <resultMap type="BdglThebusApply" id="BdglThebusApplyResult">
  7. <result property="id" column="id" />
  8. <result property="model" column="model" />
  9. <result property="unitId" column="unit_id" />
  10. <result property="peopleId" column="people_id" />
  11. <result property="thebusId" column="thebus_id" />
  12. <result property="contact" column="contact" />
  13. <result property="cause" column="cause" />
  14. <result property="authStime" column="auth_stime" />
  15. <result property="authEtime" column="auth_etime" />
  16. <result property="thebusThemplateId" column="thebus_themplate_id" />
  17. <result property="peopleoneId" column="peopleone_id" />
  18. <result property="peopleoneState" column="peopleone_state" />
  19. <result property="peopleoneName" column="peopleone_name" />
  20. <result property="peopleoneRemark" column="peopleone_remark" />
  21. <result property="peopleoneAuthtime" column="peopleone_authtime" />
  22. <result property="peopletwoId" column="peopletwo_id" />
  23. <result property="peopletwoState" column="peopletwo_state" />
  24. <result property="status" column="status" />
  25. <result property="peopletwoRemark" column="peopletwo_remark" />
  26. <result property="peopletwoAuthtime" column="peopletwo_authtime" />
  27. <result property="outstatus" column="outstatus" />
  28. <result property="peopletwoName" column="peopletwo_name" />
  29. <result property="adminId" column="admin_id" />
  30. <result property="createtime" column="createtime" />
  31. <result property="peoplethreeId" column="peoplethree_id" />
  32. <result property="updatetime" column="updatetime" />
  33. <result property="peoplethreeState" column="peoplethree_state" />
  34. <result property="driver" column="driver" />
  35. <result property="peoplethreeRemark" column="peoplethree_remark" />
  36. <result property="driverContact" column="driver_contact" />
  37. <result property="peoplethreeAuthtime" column="peoplethree_authtime" />
  38. <result property="peoplethreeName" column="peoplethree_name" />
  39. <result property="peopleCount" column="people_count" />
  40. <result property="unitPeopleId" column="unit_people_id" />
  41. <result property="unitPeopleState" column="unit_people_state" />
  42. <result property="unitPeopleRemark" column="unit_people_remark" />
  43. <result property="chushenState" column="chushen_state" />
  44. <result property="chushenRemark" column="chushen_remark" />
  45. <result property="route" column="route" />
  46. <result property="outtime" column="outtime" />
  47. <result property="carNames" column="car_names" />
  48. <result property="carIds" column="car_ids" />
  49. <result property="unitPeopleName" column="unit_people_name" />
  50. <result property="shenpijiedian" column="shenpijiedian" />
  51. <result property="isTeShu" column="is_teshu" />
  52. <result property="yjtsYuanyin" column="yjts_yuanyin" />
  53. <result property="cstsYuanyin" column="csts_yuanyin" />
  54. <result property="ojtsYuanyin" column="ojts_yuanyin" />
  55. <result property="tjtsYuanyin" column="tjts_yuanyin" />
  56. <result property="sjtsYuanyin" column="sjts_yuanyin" />
  57. <result property="peopleName" column="people_name" />
  58. <result property="unitName" column="unit_name" />
  59. <result property="bdglDepartureYuanyin" column="bdgl_departure_yuanyin" />
  60. <result property="isTeshuYongChe" column="isTeshuYongChe" />
  61. <result property="placeState" column="place_state" />
  62. <result property="carUnitId" column="car_unit_id" />
  63. <result property="remarkInfo" column="remark_info" />
  64. <result property="pepelonamed" column="pepelonamed" />
  65. <result property="battaliontime" column="battaliontime" />
  66. </resultMap>
  67. <sql id="selectBdglThebusApplyVo">
  68. 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
  69. </sql>
  70. <select id="selectBdglThebusApplyList" parameterType="BdglThebusApply" resultMap="BdglThebusApplyResult">
  71. <include refid="selectBdglThebusApplyVo"/>
  72. <where>
  73. <if test="model != null and model != ''"> and model = #{model}</if>
  74. <if test="unitId != null "> and unit_id = #{unitId}</if>
  75. <if test="peopleId != null "> and people_id = #{peopleId}</if>
  76. <if test="thebusId != null "> and thebus_id = #{thebusId}</if>
  77. <if test="contact != null and contact != ''"> and contact = #{contact}</if>
  78. <if test="cause != null and cause != ''"> and cause = #{cause}</if>
  79. <if test="authStime != null "> and auth_stime = #{authStime}</if>
  80. <if test="authEtime != null "> and auth_etime = #{authEtime}</if>
  81. <if test="thebusThemplateId != null "> and thebus_themplate_id = #{thebusThemplateId}</if>
  82. <if test="peopleoneId != null "> and peopleone_id = #{peopleoneId}</if>
  83. <if test="peopleoneState != null "> and peopleone_state = #{peopleoneState}</if>
  84. <if test="peopleoneName != null and peopleoneName != ''"> and peopleone_name like concat('%', #{peopleoneName}, '%')</if>
  85. <if test="peopleoneRemark != null and peopleoneRemark != ''"> and peopleone_remark = #{peopleoneRemark}</if>
  86. <if test="peopleoneAuthtime != null "> and peopleone_authtime = #{peopleoneAuthtime}</if>
  87. <if test="peopletwoId != null "> and peopletwo_id = #{peopletwoId}</if>
  88. <if test="peopletwoState != null "> and peopletwo_state = #{peopletwoState}</if>
  89. <if test="status != null "> and status = #{status}</if>
  90. <if test="peopletwoRemark != null and peopletwoRemark != ''"> and peopletwo_remark = #{peopletwoRemark}</if>
  91. <if test="peopletwoAuthtime != null "> and peopletwo_authtime = #{peopletwoAuthtime}</if>
  92. <if test="outstatus != null "> and outstatus = #{outstatus}</if>
  93. <if test="peopletwoName != null and peopletwoName != ''"> and peopletwo_name like concat('%', #{peopletwoName}, '%')</if>
  94. <if test="adminId != null "> and admin_id = #{adminId}</if>
  95. <if test="createtime != null and createtime != ''"> and createtime = #{createtime}</if>
  96. <if test="peoplethreeId != null "> and peoplethree_id = #{peoplethreeId}</if>
  97. <if test="updatetime != null and updatetime != ''"> and updatetime = #{updatetime}</if>
  98. <if test="peoplethreeState != null "> and peoplethree_state = #{peoplethreeState}</if>
  99. <if test="driver != null and driver != ''"> and driver = #{driver}</if>
  100. <if test="peoplethreeRemark != null and peoplethreeRemark != ''"> and peoplethree_remark = #{peoplethreeRemark}</if>
  101. <if test="driverContact != null and driverContact != ''"> and driver_contact = #{driverContact}</if>
  102. <if test="peoplethreeAuthtime != null "> and peoplethree_authtime = #{peoplethreeAuthtime}</if>
  103. <if test="peoplethreeName != null and peoplethreeName != ''"> and peoplethree_name like concat('%', #{peoplethreeName}, '%')</if>
  104. <if test="peopleCount != null "> and people_count = #{peopleCount}</if>
  105. <if test="unitPeopleId != null "> and unit_people_id = #{unitPeopleId}</if>
  106. <if test="unitPeopleState != null "> and unit_people_state = #{unitPeopleState}</if>
  107. <if test="unitPeopleRemark != null and unitPeopleRemark != ''"> and unit_people_remark = #{unitPeopleRemark}</if>
  108. <if test="chushenState != null "> and chushen_state = #{chushenState}</if>
  109. <if test="chushenRemark != null and chushenRemark != ''"> and chushen_remark = #{chushenRemark}</if>
  110. <if test="route != null and route != ''"> and route = #{route}</if>
  111. <if test="outtime != null "> and outtime = #{outtime}</if>
  112. <if test="carNames != null and carNames != ''"> and car_names = #{carNames}</if>
  113. <if test="carIds != null and carIds != ''"> and car_ids = #{carIds}</if>
  114. <if test="unitPeopleName != null and unitPeopleName != ''"> and unit_people_name like concat('%', #{unitPeopleName}, '%')</if>
  115. <if test="shenpijiedian != null and shenpijiedian != ''"> and shenpijiedian = #{shenpijiedian}</if>
  116. <if test="isTeShu != null and isTeShu != ''"> and is_teShu = #{shenpijiedian}</if>
  117. <if test="yjtsYuanyin != null and yjtsYuanyin != ''"> and yjts_yuanyin = #{yjtsYuanyin}</if>
  118. <if test="cstsYuanyin != null and cstsYuanyin != ''"> and csts_yuanyin = #{cstsYuanyin}</if>
  119. <if test="ojtsYuanyin != null and ojtsYuanyin != ''"> and ojts_yuanyin = #{ojtsYuanyin}</if>
  120. <if test="tjtsYuanyin != null and tjtsYuanyin != ''"> and tjts_yuanyin = #{tjtsYuanyin}</if>
  121. <if test="sjtsYuanyin != null and sjtsYuanyin != ''"> and sjts_yuanyin = #{sjtsYuanyin}</if>
  122. <if test="peopleName != null and peopleName != ''"> and people_name = #{peopleName}</if>
  123. <if test="unitName != null and unitName != ''"> and unit_name = #{unitName}</if>
  124. <if test="bdglDepartureYuanyin != null and bdglDepartureYuanyin != ''"> and bdgl_departure_yuanyin = #{bdglDepartureYuanyin}</if>
  125. <if test="isTeshuYongChe != null and isTeshuYongChe != ''"> and isTeshuYongChe = #{isTeshuYongChe}</if>
  126. <if test="placeState != null and placeState != ''"> and place_state = #{placeState}</if>
  127. <if test="pepelonamed != null and pepelonamed != ''"> and pepelonamed = #{pepelonamed}</if>
  128. <if test="battaliontime != null and battaliontime != ''"> and battaliontime = #{battaliontime}</if>
  129. </where>
  130. order by auth_stime desc
  131. </select>
  132. <select id="selectBdglThebusApplyById" parameterType="Long" resultMap="BdglThebusApplyResult">
  133. <include refid="selectBdglThebusApplyVo"/>
  134. where id = #{id}
  135. </select>
  136. <select id="selectBdglThebusApplyLists" resultMap="BdglThebusApplyResult">
  137. <include refid="selectBdglThebusApplyVo"/>
  138. <where>
  139. <if test="model != null and model != ''"> and model = #{model}</if>
  140. <if test="unitId != null "> and unit_id = #{unitId}</if>
  141. <if test="peopleId != null "> and people_id = #{peopleId}</if>
  142. <if test="thebusId != null "> and thebus_id = #{thebusId}</if>
  143. <if test="contact != null and contact != ''"> and contact = #{contact}</if>
  144. <if test="cause != null and cause != ''"> and cause = #{cause}</if>
  145. <if test="authStime != null "> and auth_stime = #{authStime}</if>
  146. <if test="authEtime != null "> and auth_etime = #{authEtime}</if>
  147. <if test="thebusThemplateId != null "> and thebus_themplate_id = #{thebusThemplateId}</if>
  148. <if test="peopleoneId != null "> and peopleone_id = #{peopleoneId}</if>
  149. <if test="peopleoneState != null "> and peopleone_state = #{peopleoneState}</if>
  150. <if test="peopleoneName != null and peopleoneName != ''"> and peopleone_name like concat('%', #{peopleoneName}, '%')</if>
  151. <if test="peopleoneRemark != null and peopleoneRemark != ''"> and peopleone_remark = #{peopleoneRemark}</if>
  152. <if test="peopleoneAuthtime != null "> and peopleone_authtime = #{peopleoneAuthtime}</if>
  153. <if test="peopletwoId != null "> and peopletwo_id = #{peopletwoId}</if>
  154. <if test="peopletwoState != null "> and peopletwo_state = #{peopletwoState}</if>
  155. <if test="status != null "> and status = #{status}</if>
  156. <if test="peopletwoRemark != null and peopletwoRemark != ''"> and peopletwo_remark = #{peopletwoRemark}</if>
  157. <if test="peopletwoAuthtime != null "> and peopletwo_authtime = #{peopletwoAuthtime}</if>
  158. <if test="outstatus != null "> and outstatus = #{outstatus}</if>
  159. <if test="peopletwoName != null and peopletwoName != ''"> and peopletwo_name like concat('%', #{peopletwoName}, '%')</if>
  160. <if test="adminId != null "> and admin_id = #{adminId}</if>
  161. <if test="createtime != null and createtime != ''"> and createtime = #{createtime}</if>
  162. <if test="peoplethreeId != null "> and peoplethree_id = #{peoplethreeId}</if>
  163. <if test="updatetime != null and updatetime != ''"> and updatetime = #{updatetime}</if>
  164. <if test="peoplethreeState != null "> and peoplethree_state = #{peoplethreeState}</if>
  165. <if test="driver != null and driver != ''"> and driver = #{driver}</if>
  166. <if test="peoplethreeRemark != null and peoplethreeRemark != ''"> and peoplethree_remark = #{peoplethreeRemark}</if>
  167. <if test="driverContact != null and driverContact != ''"> and driver_contact = #{driverContact}</if>
  168. <if test="peoplethreeAuthtime != null "> and peoplethree_authtime = #{peoplethreeAuthtime}</if>
  169. <if test="peoplethreeName != null and peoplethreeName != ''"> and peoplethree_name like concat('%', #{peoplethreeName}, '%')</if>
  170. <if test="peopleCount != null "> and people_count = #{peopleCount}</if>
  171. <if test="unitPeopleId != null "> and unit_people_id = #{unitPeopleId}</if>
  172. <if test="unitPeopleState != null "> and unit_people_state = #{unitPeopleState}</if>
  173. <if test="unitPeopleRemark != null and unitPeopleRemark != ''"> and unit_people_remark = #{unitPeopleRemark}</if>
  174. <if test="chushenState != null "> and chushen_state = #{chushenState}</if>
  175. <if test="chushenRemark != null and chushenRemark != ''"> and chushen_remark = #{chushenRemark}</if>
  176. <if test="route != null and route != ''"> and route = #{route}</if>
  177. <if test="outtime != null"> and DATE_FORMAT(outtime,'%Y-%m-%d') = DATE_FORMAT(#{outtime,jdbcType=TIMESTAMP},'%Y-%m-%d')</if>
  178. <if test="carNames != null and carNames != ''"> and car_names = #{carNames}</if>
  179. <if test="carIds != null and carIds != ''"> and car_ids = #{carIds}</if>
  180. <if test="unitPeopleName != null and unitPeopleName != ''"> and unit_people_name like concat('%', #{unitPeopleName}, '%')</if>
  181. <if test="shenpijiedian != null and shenpijiedian != ''"> and shenpijiedian = #{shenpijiedian}</if>
  182. <if test="isTeShu != null and isTeShu != ''"> and is_teShu = #{shenpijiedian}</if>
  183. <if test="yjtsYuanyin != null and yjtsYuanyin != ''"> and yjts_yuanyin = #{yjtsYuanyin}</if>
  184. <if test="cstsYuanyin != null and cstsYuanyin != ''"> and csts_yuanyin = #{cstsYuanyin}</if>
  185. <if test="ojtsYuanyin != null and ojtsYuanyin != ''"> and ojts_yuanyin = #{ojtsYuanyin}</if>
  186. <if test="tjtsYuanyin != null and tjtsYuanyin != ''"> and tjts_yuanyin = #{tjtsYuanyin}</if>
  187. <if test="sjtsYuanyin != null and sjtsYuanyin != ''"> and sjts_yuanyin = #{sjtsYuanyin}</if>
  188. <if test="peopleName != null and peopleName != ''"> and people_name = #{peopleName}</if>
  189. <if test="unitName != null and unitName != ''"> and unit_name = #{unitName}</if>
  190. <if test="bdglDepartureYuanyin != null and bdglDepartureYuanyin != ''"> and bdgl_departure_yuanyin = #{bdglDepartureYuanyin}</if>
  191. <if test="isTeshuYongChe != null and isTeshuYongChe != ''"> and isTeshuYongChe = #{isTeshuYongChe}</if>
  192. <if test="placeState != null and placeState != ''"> and place_state = #{placeState}</if>
  193. <if test="pepelonamed != null and pepelonamed != ''"> and pepelonamed = #{pepelonamed}</if>
  194. <if test="battaliontime != null and battaliontime != ''"> and battaliontime = #{battaliontime}</if>
  195. </where>
  196. order by id desc
  197. </select>
  198. <insert id="insertBdglThebusApply" parameterType="BdglThebusApply" useGeneratedKeys="true" keyProperty="id">
  199. insert into bdgl_thebus_apply
  200. <trim prefix="(" suffix=")" suffixOverrides=",">
  201. <if test="model != null">model,</if>
  202. <if test="unitId != null">unit_id,</if>
  203. <if test="peopleId != null">people_id,</if>
  204. <if test="thebusId != null">thebus_id,</if>
  205. <if test="contact != null">contact,</if>
  206. <if test="cause != null">cause,</if>
  207. <if test="authStime != null">auth_stime,</if>
  208. <if test="authEtime != null">auth_etime,</if>
  209. <if test="thebusThemplateId != null">thebus_themplate_id,</if>
  210. <if test="peopleoneId != null">peopleone_id,</if>
  211. <if test="peopleoneState != null">peopleone_state,</if>
  212. <if test="peopleoneName != null">peopleone_name,</if>
  213. <if test="peopleoneRemark != null">peopleone_remark,</if>
  214. <if test="peopleoneAuthtime != null">peopleone_authtime,</if>
  215. <if test="peopletwoId != null">peopletwo_id,</if>
  216. <if test="peopletwoState != null">peopletwo_state,</if>
  217. <if test="status != null">status,</if>
  218. <if test="peopletwoRemark != null">peopletwo_remark,</if>
  219. <if test="peopletwoAuthtime != null">peopletwo_authtime,</if>
  220. <if test="outstatus != null">outstatus,</if>
  221. <if test="peopletwoName != null">peopletwo_name,</if>
  222. <if test="adminId != null">admin_id,</if>
  223. <if test="createtime != null">createtime,</if>
  224. <if test="peoplethreeId != null">peoplethree_id,</if>
  225. <if test="updatetime != null">updatetime,</if>
  226. <if test="peoplethreeState != null">peoplethree_state,</if>
  227. <if test="driver != null">driver,</if>
  228. <if test="peoplethreeRemark != null">peoplethree_remark,</if>
  229. <if test="driverContact != null">driver_contact,</if>
  230. <if test="peoplethreeAuthtime != null">peoplethree_authtime,</if>
  231. <if test="peoplethreeName != null">peoplethree_name,</if>
  232. <if test="peopleCount != null">people_count,</if>
  233. <if test="unitPeopleId != null">unit_people_id,</if>
  234. <if test="unitPeopleState != null">unit_people_state,</if>
  235. <if test="unitPeopleRemark != null">unit_people_remark,</if>
  236. <if test="chushenState != null">chushen_state,</if>
  237. <if test="chushenRemark != null">chushen_remark,</if>
  238. <if test="route != null">route,</if>
  239. <if test="outtime != null">outtime,</if>
  240. <if test="carNames != null">car_names,</if>
  241. <if test="carIds != null">car_ids,</if>
  242. <if test="unitPeopleName != null">unit_people_name,</if>
  243. <if test="shenpijiedian != null "> shenpijiedian ,</if>
  244. <if test="isTeShu != null "> is_teShu ,</if>
  245. <if test="yjtsYuanyin != null "> yjts_yuanyin ,</if>
  246. <if test="cstsYuanyin != null "> csts_yuanyin ,</if>
  247. <if test="ojtsYuanyin != null "> ojts_yuanyin,</if>
  248. <if test="tjtsYuanyin != null "> tjts_yuanyin ,</if>
  249. <if test="sjtsYuanyin != null "> sjts_yuanyin ,</if>
  250. <if test="peopleName != null "> people_name ,</if>
  251. <if test="unitName != null "> unit_name ,</if>
  252. <if test="bdglDepartureYuanyin != null "> bdgl_departure_yuanyin ,</if>
  253. <if test="isTeshuYongChe != null "> isTeshuYongChe ,</if>
  254. <if test="placeState != null "> place_state ,</if>
  255. <if test="pepelonamed != null "> pepelonamed ,</if>
  256. <if test="battaliontime != null "> battaliontime ,</if>
  257. </trim>
  258. <trim prefix="values (" suffix=")" suffixOverrides=",">
  259. <if test="model != null">#{model},</if>
  260. <if test="unitId != null">#{unitId},</if>
  261. <if test="peopleId != null">#{peopleId},</if>
  262. <if test="thebusId != null">#{thebusId},</if>
  263. <if test="contact != null">#{contact},</if>
  264. <if test="cause != null">#{cause},</if>
  265. <if test="authStime != null">#{authStime},</if>
  266. <if test="authEtime != null">#{authEtime},</if>
  267. <if test="thebusThemplateId != null">#{thebusThemplateId},</if>
  268. <if test="peopleoneId != null">#{peopleoneId},</if>
  269. <if test="peopleoneState != null">#{peopleoneState},</if>
  270. <if test="peopleoneName != null">#{peopleoneName},</if>
  271. <if test="peopleoneRemark != null">#{peopleoneRemark},</if>
  272. <if test="peopleoneAuthtime != null">#{peopleoneAuthtime},</if>
  273. <if test="peopletwoId != null">#{peopletwoId},</if>
  274. <if test="peopletwoState != null">#{peopletwoState},</if>
  275. <if test="status != null">#{status},</if>
  276. <if test="peopletwoRemark != null">#{peopletwoRemark},</if>
  277. <if test="peopletwoAuthtime != null">#{peopletwoAuthtime},</if>
  278. <if test="outstatus != null">#{outstatus},</if>
  279. <if test="peopletwoName != null">#{peopletwoName},</if>
  280. <if test="adminId != null">#{adminId},</if>
  281. <if test="createtime != null">#{createtime},</if>
  282. <if test="peoplethreeId != null">#{peoplethreeId},</if>
  283. <if test="updatetime != null">#{updatetime},</if>
  284. <if test="peoplethreeState != null">#{peoplethreeState},</if>
  285. <if test="driver != null">#{driver},</if>
  286. <if test="peoplethreeRemark != null">#{peoplethreeRemark},</if>
  287. <if test="driverContact != null">#{driverContact},</if>
  288. <if test="peoplethreeAuthtime != null">#{peoplethreeAuthtime},</if>
  289. <if test="peoplethreeName != null">#{peoplethreeName},</if>
  290. <if test="peopleCount != null">#{peopleCount},</if>
  291. <if test="unitPeopleId != null">#{unitPeopleId},</if>
  292. <if test="unitPeopleState != null">#{unitPeopleState},</if>
  293. <if test="unitPeopleRemark != null">#{unitPeopleRemark},</if>
  294. <if test="chushenState != null">#{chushenState},</if>
  295. <if test="chushenRemark != null">#{chushenRemark},</if>
  296. <if test="route != null">#{route},</if>
  297. <if test="outtime != null">#{outtime},</if>
  298. <if test="carNames != null">#{carNames},</if>
  299. <if test="carIds != null">#{carIds},</if>
  300. <if test="unitPeopleName != null">#{unitPeopleName},</if>
  301. <if test="shenpijiedian != null "> #{shenpijiedian},</if>
  302. <if test="isTeShu != null "> #{shenpijiedian},</if>
  303. <if test="yjtsYuanyin != null "> #{yjtsYuanyin},</if>
  304. <if test="cstsYuanyin != null "> #{cstsYuanyin},</if>
  305. <if test="ojtsYuanyin != null "> #{ojtsYuanyin},</if>
  306. <if test="tjtsYuanyin != null "> #{tjtsYuanyin},</if>
  307. <if test="sjtsYuanyin != null "> #{sjtsYuanyin},</if>
  308. <if test="peopleName != null "> #{peopleName},</if>
  309. <if test="unitName != null "> #{unitName},</if>
  310. <if test="bdglDepartureYuanyin != null "> #{bdglDepartureYuanyin},</if>
  311. <if test="isTeshuYongChe != null"> #{isTeshuYongChe},</if>
  312. <if test="placeState != null"> #{placeState},</if>
  313. <if test="pepelonamed != null"> #{pepelonamed},</if>
  314. <if test="battaliontime != null"> #{battaliontime},</if>
  315. </trim>
  316. </insert>
  317. <update id="updateBdglThebusApply" parameterType="BdglThebusApply">
  318. update bdgl_thebus_apply
  319. <trim prefix="SET" suffixOverrides=",">
  320. <if test="model != null">model = #{model},</if>
  321. <if test="unitId != null">unit_id = #{unitId},</if>
  322. <if test="peopleId != null">people_id = #{peopleId},</if>
  323. <if test="thebusId != null">thebus_id = #{thebusId},</if>
  324. <if test="contact != null">contact = #{contact},</if>
  325. <if test="cause != null">cause = #{cause},</if>
  326. <if test="authStime != null">auth_stime = #{authStime},</if>
  327. <if test="authEtime != null">auth_etime = #{authEtime},</if>
  328. <if test="thebusThemplateId != null">thebus_themplate_id = #{thebusThemplateId},</if>
  329. <if test="peopleoneId != null">peopleone_id = #{peopleoneId},</if>
  330. <if test="peopleoneState != null">peopleone_state = #{peopleoneState},</if>
  331. <if test="peopleoneName != null">peopleone_name = #{peopleoneName},</if>
  332. <if test="peopleoneRemark != null">peopleone_remark = #{peopleoneRemark},</if>
  333. <if test="peopleoneAuthtime != null">peopleone_authtime = #{peopleoneAuthtime},</if>
  334. <if test="peopletwoId != null">peopletwo_id = #{peopletwoId},</if>
  335. <if test="peopletwoState != null">peopletwo_state = #{peopletwoState},</if>
  336. <if test="status != null">status = #{status},</if>
  337. <if test="peopletwoRemark != null">peopletwo_remark = #{peopletwoRemark},</if>
  338. <if test="peopletwoAuthtime != null">peopletwo_authtime = #{peopletwoAuthtime},</if>
  339. <if test="outstatus != null">outstatus = #{outstatus},</if>
  340. <if test="peopletwoName != null">peopletwo_name = #{peopletwoName},</if>
  341. <if test="adminId != null">admin_id = #{adminId},</if>
  342. <if test="createtime != null">createtime = #{createtime},</if>
  343. <if test="peoplethreeId != null">peoplethree_id = #{peoplethreeId},</if>
  344. <if test="updatetime != null">updatetime = #{updatetime},</if>
  345. <if test="peoplethreeState != null">peoplethree_state = #{peoplethreeState},</if>
  346. <if test="driver != null">driver = #{driver},</if>
  347. <if test="peoplethreeRemark != null">peoplethree_remark = #{peoplethreeRemark},</if>
  348. <if test="driverContact != null">driver_contact = #{driverContact},</if>
  349. <if test="peoplethreeAuthtime != null">peoplethree_authtime = #{peoplethreeAuthtime},</if>
  350. <if test="peoplethreeName != null">peoplethree_name = #{peoplethreeName},</if>
  351. <if test="peopleCount != null">people_count = #{peopleCount},</if>
  352. <if test="unitPeopleId != null">unit_people_id = #{unitPeopleId},</if>
  353. <if test="unitPeopleState != null">unit_people_state = #{unitPeopleState},</if>
  354. <if test="unitPeopleRemark != null">unit_people_remark = #{unitPeopleRemark},</if>
  355. <if test="chushenState != null">chushen_state = #{chushenState},</if>
  356. <if test="chushenRemark != null">chushen_remark = #{chushenRemark},</if>
  357. <if test="route != null">route = #{route},</if>
  358. <if test="outtime != null">outtime = #{outtime},</if>
  359. <if test="carNames != null">car_names = #{carNames},</if>
  360. <if test="carIds != null">car_ids = #{carIds},</if>
  361. <if test="unitPeopleName != null">unit_people_name = #{unitPeopleName},</if>
  362. <if test="shenpijiedian != null "> shenpijiedian = #{shenpijiedian},</if>
  363. <if test="isTeShu != null and isTeShu != ''"> is_teShu = #{shenpijiedian},</if>
  364. <if test="yjtsYuanyin != null and yjtsYuanyin != ''"> yjts_yuanyin = #{yjtsYuanyin},</if>
  365. <if test="cstsYuanyin != null and cstsYuanyin != ''"> csts_yuanyin = #{cstsYuanyin},</if>
  366. <if test="ojtsYuanyin != null and ojtsYuanyin != ''"> ojts_yuanyin = #{ojtsYuanyin},</if>
  367. <if test="tjtsYuanyin != null and tjtsYuanyin != ''"> tjts_yuanyin = #{tjtsYuanyin},</if>
  368. <if test="sjtsYuanyin != null and sjtsYuanyin != ''"> sjts_yuanyin = #{sjtsYuanyin},</if>
  369. <if test="peopleName != null and peopleName != ''"> people_name = #{peopleName},</if>
  370. <if test="unitName != null and unitName != ''"> unit_name = #{unitName},</if>
  371. <if test="bdglDepartureYuanyin != null and bdglDepartureYuanyin != ''"> bdgl_departure_yuanyin = #{bdglDepartureYuanyin},</if>
  372. <if test="isTeshuYongChe != null and isTeshuYongChe != ''"> isTeshuYongChe = #{isTeshuYongChe},</if>
  373. <if test="placeState != null and placeState != ''"> place_state = #{placeState},</if>
  374. <if test="carUnitId != null and carUnitId != ''"> car_unit_id = #{carUnitId},</if>
  375. <if test="remarkInfo != null and remarkInfo != ''"> remark_info = #{remarkInfo},</if>
  376. <if test="pepelonamed != null and pepelonamed != ''"> pepelonamed = #{pepelonamed},</if>
  377. <if test="battaliontime != null and battaliontime != ''"> battaliontime = #{battaliontime}</if>
  378. </trim>
  379. where id = #{id}
  380. </update>
  381. <delete id="deleteBdglThebusApplyById" parameterType="Long">
  382. delete from bdgl_thebus_apply where id = #{id}
  383. </delete>
  384. <delete id="deleteBdglThebusApplyByIds" parameterType="String">
  385. delete from bdgl_thebus_apply where id in
  386. <foreach item="id" collection="array" open="(" separator="," close=")">
  387. #{id}
  388. </foreach>
  389. </delete>
  390. </mapper>