AimPlaceContentMapper.xml 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.izouma.awesomeadmin.dao.AimPlaceContentMapper">
  4. <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AimPlaceContent">
  5. <id column="id" property="id" jdbcType="INTEGER"/>
  6. <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
  7. <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
  8. <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
  9. <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
  10. <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
  11. <result column="name" property="name" jdbcType="VARCHAR"/>
  12. <result column="type" property="type" jdbcType="VARCHAR"/>
  13. <result column="owned_land_mark_id" property="ownedLandMarkId" jdbcType="VARCHAR"/>
  14. <result column="ar_content_group_id" property="arContentGroupId" jdbcType="VARCHAR"/>
  15. <result column="ar_kit_pos_x" property="arKitPosX" jdbcType="VARCHAR"/>
  16. <result column="ar_kit_pos_y" property="arKitPosY" jdbcType="VARCHAR"/>
  17. <result column="ar_kit_pos_z" property="arKitPosZ" jdbcType="VARCHAR"/>
  18. <result column="ar_kit_scale" property="arKitScale" jdbcType="VARCHAR"/>
  19. <result column="ar_kit_angle" property="arKitAngle" jdbcType="VARCHAR"/>
  20. <result column="ar_kit_show_lenth" property="arKitShowLenth" jdbcType="VARCHAR"/>
  21. <result column="gyro_pos_x" property="gyroPosX" jdbcType="VARCHAR"/>
  22. <result column="gyro_pos_y" property="gyroPosY" jdbcType="VARCHAR"/>
  23. <result column="gyro_pos_z" property="gyroPosZ" jdbcType="VARCHAR"/>
  24. <result column="gyro_pos_scale" property="gyroPosScale" jdbcType="VARCHAR"/>
  25. <result column="gyro_pos_angle" property="gyroPosAngle" jdbcType="VARCHAR"/>
  26. <result column="gyro_pos_show_lenth" property="gyroPosShowLenth" jdbcType="VARCHAR"/>
  27. <result column="vuforia_image_info_area_marking" property="vuforiaImageInfoAreaMarking" jdbcType="VARCHAR"/>
  28. <result column="remark1" property="remark1" jdbcType="VARCHAR"/>
  29. <result column="remark2" property="remark2" jdbcType="VARCHAR"/>
  30. <result column="remark3" property="remark3" jdbcType="VARCHAR"/>
  31. <result column="remark4" property="remark4" jdbcType="VARCHAR"/>
  32. <result column="remark5" property="remark5" jdbcType="VARCHAR"/>
  33. <result column="remark6" property="remark6" jdbcType="VARCHAR"/>
  34. <result column="map_index" property="mapIndex" jdbcType="INTEGER"/>
  35. </resultMap>
  36. <sql id="Base_Column_List">
  37. <trim suffixOverrides=",">
  38. id,
  39. del_flag,
  40. update_time,
  41. update_user,
  42. create_time,
  43. create_user,
  44. name,
  45. type,
  46. owned_land_mark_id,
  47. ar_content_group_id,
  48. ar_kit_pos_x,
  49. ar_kit_pos_y,
  50. ar_kit_pos_z,
  51. ar_kit_scale,
  52. ar_kit_angle,
  53. ar_kit_show_lenth,
  54. gyro_pos_x,
  55. gyro_pos_y,
  56. gyro_pos_z,
  57. gyro_pos_scale,
  58. gyro_pos_angle,
  59. gyro_pos_show_lenth,
  60. vuforia_image_info_area_marking,
  61. remark1,
  62. remark2,
  63. remark3,
  64. remark4,
  65. remark5,
  66. remark6,
  67. map_index,
  68. </trim>
  69. </sql>
  70. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
  71. select
  72. <include refid="Base_Column_List"/>
  73. from aim_place_content
  74. where id = #{id,jdbcType=INTEGER}
  75. </select>
  76. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  77. delete from aim_place_content
  78. where id = #{id,jdbcType=INTEGER}
  79. </delete>
  80. <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AimPlaceContent" useGeneratedKeys="true"
  81. keyProperty="id">
  82. insert into aim_place_content
  83. <trim prefix="(" suffix=")" suffixOverrides=",">
  84. <if test="id!= null">
  85. id,
  86. </if>
  87. <if test="delFlag!= null">
  88. del_flag,
  89. </if>
  90. <if test="updateTime!= null">
  91. update_time,
  92. </if>
  93. <if test="updateUser!= null">
  94. update_user,
  95. </if>
  96. <if test="createTime!= null">
  97. create_time,
  98. </if>
  99. <if test="createUser!= null">
  100. create_user,
  101. </if>
  102. <if test="name!= null">
  103. name,
  104. </if>
  105. <if test="type!= null">
  106. type,
  107. </if>
  108. <if test="ownedLandMarkId!= null">
  109. owned_land_mark_id,
  110. </if>
  111. <if test="arContentGroupId!= null">
  112. ar_content_group_id,
  113. </if>
  114. <if test="arKitPosX!= null">
  115. ar_kit_pos_x,
  116. </if>
  117. <if test="arKitPosY!= null">
  118. ar_kit_pos_y,
  119. </if>
  120. <if test="arKitPosZ!= null">
  121. ar_kit_pos_z,
  122. </if>
  123. <if test="arKitScale!= null">
  124. ar_kit_scale,
  125. </if>
  126. <if test="arKitAngle!= null">
  127. ar_kit_angle,
  128. </if>
  129. <if test="arKitShowLenth!= null">
  130. ar_kit_show_lenth,
  131. </if>
  132. <if test="gyroPosX!= null">
  133. gyro_pos_x,
  134. </if>
  135. <if test="gyroPosY!= null">
  136. gyro_pos_y,
  137. </if>
  138. <if test="gyroPosZ!= null">
  139. gyro_pos_z,
  140. </if>
  141. <if test="gyroPosScale!= null">
  142. gyro_pos_scale,
  143. </if>
  144. <if test="gyroPosAngle!= null">
  145. gyro_pos_angle,
  146. </if>
  147. <if test="gyroPosShowLenth!= null">
  148. gyro_pos_show_lenth,
  149. </if>
  150. <if test="vuforiaImageInfoAreaMarking!= null">
  151. vuforia_image_info_area_marking,
  152. </if>
  153. <if test="remark1!= null">
  154. remark1,
  155. </if>
  156. <if test="remark2!= null">
  157. remark2,
  158. </if>
  159. <if test="remark3!= null">
  160. remark3,
  161. </if>
  162. <if test="remark4!= null">
  163. remark4,
  164. </if>
  165. <if test="remark5!= null">
  166. remark5,
  167. </if>
  168. <if test="remark6!= null">
  169. remark6,
  170. </if>
  171. <if test="mapIndex!= null">
  172. map_index,
  173. </if>
  174. </trim>
  175. <trim prefix="values (" suffix=")" suffixOverrides=",">
  176. <if test="id != null">
  177. #{id,jdbcType=INTEGER},
  178. </if>
  179. <if test="delFlag != null">
  180. #{delFlag,jdbcType=CHAR},
  181. </if>
  182. <if test="updateTime != null">
  183. #{updateTime,jdbcType=TIMESTAMP},
  184. </if>
  185. <if test="updateUser != null">
  186. #{updateUser,jdbcType=VARCHAR},
  187. </if>
  188. <if test="createTime != null">
  189. #{createTime,jdbcType=TIMESTAMP},
  190. </if>
  191. <if test="createUser != null">
  192. #{createUser,jdbcType=VARCHAR},
  193. </if>
  194. <if test="name != null">
  195. #{name,jdbcType=VARCHAR},
  196. </if>
  197. <if test="type != null">
  198. #{type,jdbcType=VARCHAR},
  199. </if>
  200. <if test="ownedLandMarkId != null">
  201. #{ownedLandMarkId,jdbcType=VARCHAR},
  202. </if>
  203. <if test="arContentGroupId != null">
  204. #{arContentGroupId,jdbcType=VARCHAR},
  205. </if>
  206. <if test="arKitPosX != null">
  207. #{arKitPosX,jdbcType=VARCHAR},
  208. </if>
  209. <if test="arKitPosY != null">
  210. #{arKitPosY,jdbcType=VARCHAR},
  211. </if>
  212. <if test="arKitPosZ != null">
  213. #{arKitPosZ,jdbcType=VARCHAR},
  214. </if>
  215. <if test="arKitScale != null">
  216. #{arKitScale,jdbcType=VARCHAR},
  217. </if>
  218. <if test="arKitAngle != null">
  219. #{arKitAngle,jdbcType=VARCHAR},
  220. </if>
  221. <if test="arKitShowLenth != null">
  222. #{arKitShowLenth,jdbcType=VARCHAR},
  223. </if>
  224. <if test="gyroPosX != null">
  225. #{gyroPosX,jdbcType=VARCHAR},
  226. </if>
  227. <if test="gyroPosY != null">
  228. #{gyroPosY,jdbcType=VARCHAR},
  229. </if>
  230. <if test="gyroPosZ != null">
  231. #{gyroPosZ,jdbcType=VARCHAR},
  232. </if>
  233. <if test="gyroPosScale != null">
  234. #{gyroPosScale,jdbcType=VARCHAR},
  235. </if>
  236. <if test="gyroPosAngle != null">
  237. #{gyroPosAngle,jdbcType=VARCHAR},
  238. </if>
  239. <if test="gyroPosShowLenth != null">
  240. #{gyroPosShowLenth,jdbcType=VARCHAR},
  241. </if>
  242. <if test="vuforiaImageInfoAreaMarking != null">
  243. #{vuforiaImageInfoAreaMarking,jdbcType=VARCHAR},
  244. </if>
  245. <if test="remark1 != null">
  246. #{remark1,jdbcType=VARCHAR},
  247. </if>
  248. <if test="remark2 != null">
  249. #{remark2,jdbcType=VARCHAR},
  250. </if>
  251. <if test="remark3 != null">
  252. #{remark3,jdbcType=VARCHAR},
  253. </if>
  254. <if test="remark4 != null">
  255. #{remark4,jdbcType=VARCHAR},
  256. </if>
  257. <if test="remark5 != null">
  258. #{remark5,jdbcType=VARCHAR},
  259. </if>
  260. <if test="remark6 != null">
  261. #{remark6,jdbcType=VARCHAR},
  262. </if>
  263. <if test="mapIndex != null">
  264. #{mapIndex},
  265. </if>
  266. </trim>
  267. </insert>
  268. <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AimPlaceContent">
  269. update aim_place_content
  270. <set>
  271. <if test="id != null">
  272. id= #{id,jdbcType=INTEGER},
  273. </if>
  274. <if test="delFlag != null">
  275. del_flag= #{delFlag,jdbcType=CHAR},
  276. </if>
  277. <if test="updateTime != null">
  278. update_time= #{updateTime,jdbcType=TIMESTAMP},
  279. </if>
  280. <if test="updateUser != null">
  281. update_user= #{updateUser,jdbcType=VARCHAR},
  282. </if>
  283. <if test="createTime != null">
  284. create_time= #{createTime,jdbcType=TIMESTAMP},
  285. </if>
  286. <if test="createUser != null">
  287. create_user= #{createUser,jdbcType=VARCHAR},
  288. </if>
  289. <if test="name != null">
  290. name= #{name,jdbcType=VARCHAR},
  291. </if>
  292. <if test="type != null">
  293. type= #{type,jdbcType=VARCHAR},
  294. </if>
  295. <if test="ownedLandMarkId != null">
  296. owned_land_mark_id= #{ownedLandMarkId,jdbcType=VARCHAR},
  297. </if>
  298. <if test="arContentGroupId != null">
  299. ar_content_group_id= #{arContentGroupId,jdbcType=VARCHAR},
  300. </if>
  301. <if test="arKitPosX != null">
  302. ar_kit_pos_x= #{arKitPosX,jdbcType=VARCHAR},
  303. </if>
  304. <if test="arKitPosY != null">
  305. ar_kit_pos_y= #{arKitPosY,jdbcType=VARCHAR},
  306. </if>
  307. <if test="arKitPosZ != null">
  308. ar_kit_pos_z= #{arKitPosZ,jdbcType=VARCHAR},
  309. </if>
  310. <if test="arKitScale != null">
  311. ar_kit_scale= #{arKitScale,jdbcType=VARCHAR},
  312. </if>
  313. <if test="arKitAngle != null">
  314. ar_kit_angle= #{arKitAngle,jdbcType=VARCHAR},
  315. </if>
  316. <if test="arKitShowLenth != null">
  317. ar_kit_show_lenth= #{arKitShowLenth,jdbcType=VARCHAR},
  318. </if>
  319. <if test="gyroPosX != null">
  320. gyro_pos_x= #{gyroPosX,jdbcType=VARCHAR},
  321. </if>
  322. <if test="gyroPosY != null">
  323. gyro_pos_y= #{gyroPosY,jdbcType=VARCHAR},
  324. </if>
  325. <if test="gyroPosZ != null">
  326. gyro_pos_z= #{gyroPosZ,jdbcType=VARCHAR},
  327. </if>
  328. <if test="gyroPosScale != null">
  329. gyro_pos_scale= #{gyroPosScale,jdbcType=VARCHAR},
  330. </if>
  331. <if test="gyroPosAngle != null">
  332. gyro_pos_angle= #{gyroPosAngle,jdbcType=VARCHAR},
  333. </if>
  334. <if test="gyroPosShowLenth != null">
  335. gyro_pos_show_lenth= #{gyroPosShowLenth,jdbcType=VARCHAR},
  336. </if>
  337. <if test="vuforiaImageInfoAreaMarking != null">
  338. vuforia_image_info_area_marking= #{vuforiaImageInfoAreaMarking,jdbcType=VARCHAR},
  339. </if>
  340. <if test="remark1 != null">
  341. remark1= #{remark1,jdbcType=VARCHAR},
  342. </if>
  343. <if test="remark2 != null">
  344. remark2= #{remark2,jdbcType=VARCHAR},
  345. </if>
  346. <if test="remark3 != null">
  347. remark3= #{remark3,jdbcType=VARCHAR},
  348. </if>
  349. <if test="remark4 != null">
  350. remark4= #{remark4,jdbcType=VARCHAR},
  351. </if>
  352. <if test="remark5 != null">
  353. remark5= #{remark5,jdbcType=VARCHAR},
  354. </if>
  355. <if test="remark6 != null">
  356. remark6= #{remark6,jdbcType=VARCHAR},
  357. </if>
  358. <if test="mapIndex != null">
  359. map_index= #{mapIndex},
  360. </if>
  361. </set>
  362. where
  363. <if test="id != null and !&quot;&quot;.equals(id)">
  364. id = #{id,jdbcType=INTEGER}
  365. </if>
  366. <if test="idStr != null and !&quot;&quot;.equals(idStr)">
  367. id in (${idStr})
  368. </if>
  369. </update>
  370. <select id="queryAimPlaceContentByPage" parameterType="java.util.Map" resultMap="ChildResultMap">
  371. select
  372. <include refid="Base_Column_List"/>
  373. from aim_place_content
  374. <where>
  375. and del_flag = 'N'
  376. <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
  377. and id in (${record.idStr})
  378. </if>
  379. <if test="record.id != null and !&quot;&quot;.equals(record.id)">
  380. and id = #{record.id}
  381. </if>
  382. <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
  383. and del_flag = #{record.delFlag}
  384. </if>
  385. <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
  386. and update_time = #{record.updateTime}
  387. </if>
  388. <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
  389. and update_user = #{record.updateUser}
  390. </if>
  391. <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
  392. and create_time = #{record.createTime}
  393. </if>
  394. <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
  395. and create_user = #{record.createUser}
  396. </if>
  397. <if test="record.name != null and !&quot;&quot;.equals(record.name)">
  398. and name = #{record.name}
  399. </if>
  400. <if test="record.type != null and !&quot;&quot;.equals(record.type)">
  401. and type = #{record.type}
  402. </if>
  403. <if test="record.ownedLandMarkId != null and !&quot;&quot;.equals(record.ownedLandMarkId)">
  404. and owned_land_mark_id = #{record.ownedLandMarkId}
  405. </if>
  406. <if test="record.arContentGroupId != null and !&quot;&quot;.equals(record.arContentGroupId)">
  407. and ar_content_group_id = #{record.arContentGroupId}
  408. </if>
  409. <if test="record.arKitPosX != null and !&quot;&quot;.equals(record.arKitPosX)">
  410. and ar_kit_pos_x = #{record.arKitPosX}
  411. </if>
  412. <if test="record.arKitPosY != null and !&quot;&quot;.equals(record.arKitPosY)">
  413. and ar_kit_pos_y = #{record.arKitPosY}
  414. </if>
  415. <if test="record.arKitPosZ != null and !&quot;&quot;.equals(record.arKitPosZ)">
  416. and ar_kit_pos_z = #{record.arKitPosZ}
  417. </if>
  418. <if test="record.arKitScale != null and !&quot;&quot;.equals(record.arKitScale)">
  419. and ar_kit_scale = #{record.arKitScale}
  420. </if>
  421. <if test="record.arKitAngle != null and !&quot;&quot;.equals(record.arKitAngle)">
  422. and ar_kit_angle = #{record.arKitAngle}
  423. </if>
  424. <if test="record.arKitShowLenth != null and !&quot;&quot;.equals(record.arKitShowLenth)">
  425. and ar_kit_show_lenth = #{record.arKitShowLenth}
  426. </if>
  427. <if test="record.gyroPosX != null and !&quot;&quot;.equals(record.gyroPosX)">
  428. and gyro_pos_x = #{record.gyroPosX}
  429. </if>
  430. <if test="record.gyroPosY != null and !&quot;&quot;.equals(record.gyroPosY)">
  431. and gyro_pos_y = #{record.gyroPosY}
  432. </if>
  433. <if test="record.gyroPosZ != null and !&quot;&quot;.equals(record.gyroPosZ)">
  434. and gyro_pos_z = #{record.gyroPosZ}
  435. </if>
  436. <if test="record.gyroPosScale != null and !&quot;&quot;.equals(record.gyroPosScale)">
  437. and gyro_pos_scale = #{record.gyroPosScale}
  438. </if>
  439. <if test="record.gyroPosAngle != null and !&quot;&quot;.equals(record.gyroPosAngle)">
  440. and gyro_pos_angle = #{record.gyroPosAngle}
  441. </if>
  442. <if test="record.gyroPosShowLenth != null and !&quot;&quot;.equals(record.gyroPosShowLenth)">
  443. and gyro_pos_show_lenth = #{record.gyroPosShowLenth}
  444. </if>
  445. <if test="record.vuforiaImageInfoAreaMarking != null and !&quot;&quot;.equals(record.vuforiaImageInfoAreaMarking)">
  446. and vuforia_image_info_area_marking = #{record.vuforiaImageInfoAreaMarking}
  447. </if>
  448. <if test="record.remark1 != null and !&quot;&quot;.equals(record.remark1)">
  449. and remark1 = #{record.remark1}
  450. </if>
  451. <if test="record.remark2 != null and !&quot;&quot;.equals(record.remark2)">
  452. and remark2 = #{record.remark2}
  453. </if>
  454. <if test="record.remark3 != null and !&quot;&quot;.equals(record.remark3)">
  455. and remark3 = #{record.remark3}
  456. </if>
  457. <if test="record.remark4 != null and !&quot;&quot;.equals(record.remark4)">
  458. and remark4 = #{record.remark4}
  459. </if>
  460. <if test="record.remark5 != null and !&quot;&quot;.equals(record.remark5)">
  461. and remark5 = #{record.remark5}
  462. </if>
  463. <if test="record.remark6 != null and !&quot;&quot;.equals(record.remark6)">
  464. and remark6 = #{record.remark6}
  465. </if>
  466. <if test="record.mapIndex != null and !&quot;&quot;.equals(record.mapIndex)">
  467. and map_index = #{record.mapIndex}
  468. </if>
  469. <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
  470. <trim prefix="and (" suffix=")" prefixOverrides="OR">
  471. OR name LIKE concat('%',#{record.searchKey},'%')
  472. OR type LIKE concat('%',#{record.searchKey},'%')
  473. OR owned_land_mark_id LIKE concat('%',#{record.searchKey},'%')
  474. OR ar_content_group_id LIKE concat('%',#{record.searchKey},'%')
  475. OR ar_kit_pos_x LIKE concat('%',#{record.searchKey},'%')
  476. OR ar_kit_pos_y LIKE concat('%',#{record.searchKey},'%')
  477. OR ar_kit_pos_z LIKE concat('%',#{record.searchKey},'%')
  478. OR ar_kit_scale LIKE concat('%',#{record.searchKey},'%')
  479. OR ar_kit_angle LIKE concat('%',#{record.searchKey},'%')
  480. OR ar_kit_show_lenth LIKE concat('%',#{record.searchKey},'%')
  481. OR gyro_pos_x LIKE concat('%',#{record.searchKey},'%')
  482. OR gyro_pos_y LIKE concat('%',#{record.searchKey},'%')
  483. OR gyro_pos_z LIKE concat('%',#{record.searchKey},'%')
  484. OR gyro_pos_scale LIKE concat('%',#{record.searchKey},'%')
  485. OR gyro_pos_angle LIKE concat('%',#{record.searchKey},'%')
  486. OR gyro_pos_show_lenth LIKE concat('%',#{record.searchKey},'%')
  487. OR vuforia_image_info_area_marking LIKE concat('%',#{record.searchKey},'%')
  488. OR remark1 LIKE concat('%',#{record.searchKey},'%')
  489. OR remark2 LIKE concat('%',#{record.searchKey},'%')
  490. OR remark3 LIKE concat('%',#{record.searchKey},'%')
  491. OR remark4 LIKE concat('%',#{record.searchKey},'%')
  492. OR remark5 LIKE concat('%',#{record.searchKey},'%')
  493. OR remark6 LIKE concat('%',#{record.searchKey},'%')
  494. </trim>
  495. </if>
  496. <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
  497. <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
  498. <choose>
  499. <when test="item.indexOf('like') != -1">
  500. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  501. <if test="detailIndex == 3">
  502. concat('%',#{itemDetail},'%')
  503. </if>
  504. <if test="detailIndex &lt; 3">
  505. ${itemDetail}
  506. </if>
  507. </foreach>
  508. </when>
  509. <otherwise>
  510. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  511. <if test="detailIndex == 3">
  512. #{itemDetail}
  513. </if>
  514. <if test="detailIndex &lt; 3">
  515. ${itemDetail}
  516. </if>
  517. </foreach>
  518. </otherwise>
  519. </choose>
  520. </foreach>
  521. </if>
  522. </where>
  523. order by
  524. <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
  525. <trim suffixOverrides=",">
  526. <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
  527. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  528. ${itemDetail}
  529. </foreach>
  530. </foreach>
  531. </trim>
  532. ,
  533. </if>
  534. id desc
  535. </select>
  536. <select id="queryAllAimPlaceContent" parameterType="java.util.Map" resultMap="ChildResultMap">
  537. select
  538. <include refid="Base_Column_List"/>
  539. from aim_place_content
  540. <where>
  541. and del_flag = 'N'
  542. <if test="idStr != null and !&quot;&quot;.equals(idStr)">
  543. and id in (${idStr})
  544. </if>
  545. <if test="id != null and !&quot;&quot;.equals(id)">
  546. and id = #{id}
  547. </if>
  548. <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
  549. and del_flag = #{delFlag}
  550. </if>
  551. <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
  552. and update_time = #{updateTime}
  553. </if>
  554. <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
  555. and update_user = #{updateUser}
  556. </if>
  557. <if test="createTime != null and !&quot;&quot;.equals(createTime)">
  558. and create_time = #{createTime}
  559. </if>
  560. <if test="createUser != null and !&quot;&quot;.equals(createUser)">
  561. and create_user = #{createUser}
  562. </if>
  563. <if test="name != null and !&quot;&quot;.equals(name)">
  564. and name = #{name}
  565. </if>
  566. <if test="type != null and !&quot;&quot;.equals(type)">
  567. and type = #{type}
  568. </if>
  569. <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
  570. and owned_land_mark_id = #{ownedLandMarkId}
  571. </if>
  572. <if test="arContentGroupId != null and !&quot;&quot;.equals(arContentGroupId)">
  573. and ar_content_group_id = #{arContentGroupId}
  574. </if>
  575. <if test="arKitPosX != null and !&quot;&quot;.equals(arKitPosX)">
  576. and ar_kit_pos_x = #{arKitPosX}
  577. </if>
  578. <if test="arKitPosY != null and !&quot;&quot;.equals(arKitPosY)">
  579. and ar_kit_pos_y = #{arKitPosY}
  580. </if>
  581. <if test="arKitPosZ != null and !&quot;&quot;.equals(arKitPosZ)">
  582. and ar_kit_pos_z = #{arKitPosZ}
  583. </if>
  584. <if test="arKitScale != null and !&quot;&quot;.equals(arKitScale)">
  585. and ar_kit_scale = #{arKitScale}
  586. </if>
  587. <if test="arKitAngle != null and !&quot;&quot;.equals(arKitAngle)">
  588. and ar_kit_angle = #{arKitAngle}
  589. </if>
  590. <if test="arKitShowLenth != null and !&quot;&quot;.equals(arKitShowLenth)">
  591. and ar_kit_show_lenth = #{arKitShowLenth}
  592. </if>
  593. <if test="gyroPosX != null and !&quot;&quot;.equals(gyroPosX)">
  594. and gyro_pos_x = #{gyroPosX}
  595. </if>
  596. <if test="gyroPosY != null and !&quot;&quot;.equals(gyroPosY)">
  597. and gyro_pos_y = #{gyroPosY}
  598. </if>
  599. <if test="gyroPosZ != null and !&quot;&quot;.equals(gyroPosZ)">
  600. and gyro_pos_z = #{gyroPosZ}
  601. </if>
  602. <if test="gyroPosScale != null and !&quot;&quot;.equals(gyroPosScale)">
  603. and gyro_pos_scale = #{gyroPosScale}
  604. </if>
  605. <if test="gyroPosAngle != null and !&quot;&quot;.equals(gyroPosAngle)">
  606. and gyro_pos_angle = #{gyroPosAngle}
  607. </if>
  608. <if test="gyroPosShowLenth != null and !&quot;&quot;.equals(gyroPosShowLenth)">
  609. and gyro_pos_show_lenth = #{gyroPosShowLenth}
  610. </if>
  611. <if test="vuforiaImageInfoAreaMarking != null and !&quot;&quot;.equals(vuforiaImageInfoAreaMarking)">
  612. and vuforia_image_info_area_marking = #{vuforiaImageInfoAreaMarking}
  613. </if>
  614. <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
  615. and remark1 = #{remark1}
  616. </if>
  617. <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
  618. and remark2 = #{remark2}
  619. </if>
  620. <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
  621. and remark3 = #{remark3}
  622. </if>
  623. <if test="remark4 != null and !&quot;&quot;.equals(remark4)">
  624. and remark4 = #{remark4}
  625. </if>
  626. <if test="remark5 != null and !&quot;&quot;.equals(remark5)">
  627. and remark5 = #{remark5}
  628. </if>
  629. <if test="remark6 != null and !&quot;&quot;.equals(remark6)">
  630. and remark6 = #{remark6}
  631. </if>
  632. <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
  633. and map_index = #{mapIndex}
  634. </if>
  635. <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
  636. <trim prefix="and (" suffix=")" prefixOverrides="OR">
  637. OR name LIKE concat('%',#{searchKey},'%')
  638. OR type LIKE concat('%',#{searchKey},'%')
  639. OR owned_land_mark_id LIKE concat('%',#{searchKey},'%')
  640. OR ar_content_group_id LIKE concat('%',#{searchKey},'%')
  641. OR ar_kit_pos_x LIKE concat('%',#{searchKey},'%')
  642. OR ar_kit_pos_y LIKE concat('%',#{searchKey},'%')
  643. OR ar_kit_pos_z LIKE concat('%',#{searchKey},'%')
  644. OR ar_kit_scale LIKE concat('%',#{searchKey},'%')
  645. OR ar_kit_angle LIKE concat('%',#{searchKey},'%')
  646. OR ar_kit_show_lenth LIKE concat('%',#{searchKey},'%')
  647. OR gyro_pos_x LIKE concat('%',#{searchKey},'%')
  648. OR gyro_pos_y LIKE concat('%',#{searchKey},'%')
  649. OR gyro_pos_z LIKE concat('%',#{searchKey},'%')
  650. OR gyro_pos_scale LIKE concat('%',#{searchKey},'%')
  651. OR gyro_pos_angle LIKE concat('%',#{searchKey},'%')
  652. OR gyro_pos_show_lenth LIKE concat('%',#{searchKey},'%')
  653. OR vuforia_image_info_area_marking LIKE concat('%',#{searchKey},'%')
  654. OR remark1 LIKE concat('%',#{searchKey},'%')
  655. OR remark2 LIKE concat('%',#{searchKey},'%')
  656. OR remark3 LIKE concat('%',#{searchKey},'%')
  657. OR remark4 LIKE concat('%',#{searchKey},'%')
  658. OR remark5 LIKE concat('%',#{searchKey},'%')
  659. OR remark6 LIKE concat('%',#{searchKey},'%')
  660. </trim>
  661. </if>
  662. <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
  663. <foreach item="item" index="index" collection="advancedQuery.split('_;')">
  664. <choose>
  665. <when test="item.indexOf('like') != -1">
  666. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  667. <if test="detailIndex == 3">
  668. concat('%',#{itemDetail},'%')
  669. </if>
  670. <if test="detailIndex &lt; 3">
  671. ${itemDetail}
  672. </if>
  673. </foreach>
  674. </when>
  675. <otherwise>
  676. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  677. <if test="detailIndex == 3">
  678. #{itemDetail}
  679. </if>
  680. <if test="detailIndex &lt; 3">
  681. ${itemDetail}
  682. </if>
  683. </foreach>
  684. </otherwise>
  685. </choose>
  686. </foreach>
  687. </if>
  688. </where>
  689. order by
  690. <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
  691. <trim suffixOverrides=",">
  692. <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
  693. <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
  694. ${itemDetail}
  695. </foreach>
  696. </foreach>
  697. </trim>
  698. ,
  699. </if>
  700. id desc
  701. </select>
  702. <select id="queryAimPlaceContent" parameterType="java.util.Map"
  703. resultType="com.izouma.awesomeadmin.model.AimPlaceContent">
  704. select
  705. <include refid="Base_Column_List"/>
  706. from aim_place_content
  707. <where>
  708. and del_flag = 'N'
  709. <if test="id != null and !&quot;&quot;.equals(id)">
  710. and id = #{id}
  711. </if>
  712. <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
  713. and del_flag = #{delFlag}
  714. </if>
  715. <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
  716. and update_time = #{updateTime}
  717. </if>
  718. <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
  719. and update_user = #{updateUser}
  720. </if>
  721. <if test="createTime != null and !&quot;&quot;.equals(createTime)">
  722. and create_time = #{createTime}
  723. </if>
  724. <if test="createUser != null and !&quot;&quot;.equals(createUser)">
  725. and create_user = #{createUser}
  726. </if>
  727. <if test="name != null and !&quot;&quot;.equals(name)">
  728. and name = #{name}
  729. </if>
  730. <if test="type != null and !&quot;&quot;.equals(type)">
  731. and type = #{type}
  732. </if>
  733. <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
  734. and owned_land_mark_id = #{ownedLandMarkId}
  735. </if>
  736. <if test="arContentGroupId != null and !&quot;&quot;.equals(arContentGroupId)">
  737. and ar_content_group_id = #{arContentGroupId}
  738. </if>
  739. <if test="arKitPosX != null and !&quot;&quot;.equals(arKitPosX)">
  740. and ar_kit_pos_x = #{arKitPosX}
  741. </if>
  742. <if test="arKitPosY != null and !&quot;&quot;.equals(arKitPosY)">
  743. and ar_kit_pos_y = #{arKitPosY}
  744. </if>
  745. <if test="arKitPosZ != null and !&quot;&quot;.equals(arKitPosZ)">
  746. and ar_kit_pos_z = #{arKitPosZ}
  747. </if>
  748. <if test="arKitScale != null and !&quot;&quot;.equals(arKitScale)">
  749. and ar_kit_scale = #{arKitScale}
  750. </if>
  751. <if test="arKitAngle != null and !&quot;&quot;.equals(arKitAngle)">
  752. and ar_kit_angle = #{arKitAngle}
  753. </if>
  754. <if test="arKitShowLenth != null and !&quot;&quot;.equals(arKitShowLenth)">
  755. and ar_kit_show_lenth = #{arKitShowLenth}
  756. </if>
  757. <if test="gyroPosX != null and !&quot;&quot;.equals(gyroPosX)">
  758. and gyro_pos_x = #{gyroPosX}
  759. </if>
  760. <if test="gyroPosY != null and !&quot;&quot;.equals(gyroPosY)">
  761. and gyro_pos_y = #{gyroPosY}
  762. </if>
  763. <if test="gyroPosZ != null and !&quot;&quot;.equals(gyroPosZ)">
  764. and gyro_pos_z = #{gyroPosZ}
  765. </if>
  766. <if test="gyroPosScale != null and !&quot;&quot;.equals(gyroPosScale)">
  767. and gyro_pos_scale = #{gyroPosScale}
  768. </if>
  769. <if test="gyroPosAngle != null and !&quot;&quot;.equals(gyroPosAngle)">
  770. and gyro_pos_angle = #{gyroPosAngle}
  771. </if>
  772. <if test="gyroPosShowLenth != null and !&quot;&quot;.equals(gyroPosShowLenth)">
  773. and gyro_pos_show_lenth = #{gyroPosShowLenth}
  774. </if>
  775. <if test="vuforiaImageInfoAreaMarking != null and !&quot;&quot;.equals(vuforiaImageInfoAreaMarking)">
  776. and vuforia_image_info_area_marking = #{vuforiaImageInfoAreaMarking}
  777. </if>
  778. <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
  779. and remark1 = #{remark1}
  780. </if>
  781. <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
  782. and remark2 = #{remark2}
  783. </if>
  784. <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
  785. and remark3 = #{remark3}
  786. </if>
  787. <if test="remark4 != null and !&quot;&quot;.equals(remark4)">
  788. and remark4 = #{remark4}
  789. </if>
  790. <if test="remark5 != null and !&quot;&quot;.equals(remark5)">
  791. and remark5 = #{remark5}
  792. </if>
  793. <if test="remark6 != null and !&quot;&quot;.equals(remark6)">
  794. and remark6 = #{remark6}
  795. </if>
  796. <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
  797. and map_index = #{mapIndex}
  798. </if>
  799. </where>
  800. LIMIT 1
  801. </select>
  802. <update id="delete">
  803. UPDATE aim_place_content SET del_flag = 'Y'
  804. where
  805. <if test="id != null and !&quot;&quot;.equals(id)">
  806. id = #{id,jdbcType=INTEGER}
  807. </if>
  808. <if test="idStr != null and !&quot;&quot;.equals(idStr)">
  809. id in (${idStr})
  810. </if>
  811. </update>
  812. <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlaceContent">
  813. select
  814. <include refid="Base_Column_List"/>
  815. from aim_place_content
  816. <where>
  817. and del_flag = 'N'
  818. </where>
  819. order by id desc
  820. </select>
  821. <resultMap id="ChildResultMap" type="com.izouma.awesomeadmin.model.AimPlaceContent" extends="BaseResultMap">
  822. <collection property="aimPlaceContentChildList" ofType="com.izouma.awesomeadmin.model.AimPlaceContentChild"
  823. select="com.izouma.awesomeadmin.dao.AimPlaceContentChildMapper.queryAllAimPlaceContentChild"
  824. column="{aimPlaceContentId = id}">
  825. </collection>
  826. </resultMap>
  827. </mapper>