| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891 |
- <?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.izouma.awesomeadmin.dao.AimPlaceContentMapper">
- <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AimPlaceContent">
- <id column="id" property="id" jdbcType="INTEGER"/>
- <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
- <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
- <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
- <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
- <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
- <result column="name" property="name" jdbcType="VARCHAR"/>
- <result column="type" property="type" jdbcType="VARCHAR"/>
- <result column="owned_land_mark_id" property="ownedLandMarkId" jdbcType="VARCHAR"/>
- <result column="ar_content_group_id" property="arContentGroupId" jdbcType="VARCHAR"/>
- <result column="ar_kit_pos_x" property="arKitPosX" jdbcType="VARCHAR"/>
- <result column="ar_kit_pos_y" property="arKitPosY" jdbcType="VARCHAR"/>
- <result column="ar_kit_pos_z" property="arKitPosZ" jdbcType="VARCHAR"/>
- <result column="ar_kit_scale" property="arKitScale" jdbcType="VARCHAR"/>
- <result column="ar_kit_angle" property="arKitAngle" jdbcType="VARCHAR"/>
- <result column="ar_kit_show_lenth" property="arKitShowLenth" jdbcType="VARCHAR"/>
- <result column="gyro_pos_x" property="gyroPosX" jdbcType="VARCHAR"/>
- <result column="gyro_pos_y" property="gyroPosY" jdbcType="VARCHAR"/>
- <result column="gyro_pos_z" property="gyroPosZ" jdbcType="VARCHAR"/>
- <result column="gyro_pos_scale" property="gyroPosScale" jdbcType="VARCHAR"/>
- <result column="gyro_pos_angle" property="gyroPosAngle" jdbcType="VARCHAR"/>
- <result column="gyro_pos_show_lenth" property="gyroPosShowLenth" jdbcType="VARCHAR"/>
- <result column="vuforia_image_info_area_marking" property="vuforiaImageInfoAreaMarking" jdbcType="VARCHAR"/>
- <result column="remark1" property="remark1" jdbcType="VARCHAR"/>
- <result column="remark2" property="remark2" jdbcType="VARCHAR"/>
- <result column="remark3" property="remark3" jdbcType="VARCHAR"/>
- <result column="remark4" property="remark4" jdbcType="VARCHAR"/>
- <result column="remark5" property="remark5" jdbcType="VARCHAR"/>
- <result column="remark6" property="remark6" jdbcType="VARCHAR"/>
- <result column="map_index" property="mapIndex" jdbcType="INTEGER"/>
- </resultMap>
- <sql id="Base_Column_List">
- <trim suffixOverrides=",">
- id,
- del_flag,
- update_time,
- update_user,
- create_time,
- create_user,
- name,
- type,
- owned_land_mark_id,
- ar_content_group_id,
- ar_kit_pos_x,
- ar_kit_pos_y,
- ar_kit_pos_z,
- ar_kit_scale,
- ar_kit_angle,
- ar_kit_show_lenth,
- gyro_pos_x,
- gyro_pos_y,
- gyro_pos_z,
- gyro_pos_scale,
- gyro_pos_angle,
- gyro_pos_show_lenth,
- vuforia_image_info_area_marking,
- remark1,
- remark2,
- remark3,
- remark4,
- remark5,
- remark6,
- map_index,
- </trim>
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
- select
- <include refid="Base_Column_List"/>
- from aim_place_content
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- delete from aim_place_content
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AimPlaceContent" useGeneratedKeys="true"
- keyProperty="id">
- insert into aim_place_content
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id!= null">
- id,
- </if>
- <if test="delFlag!= null">
- del_flag,
- </if>
- <if test="updateTime!= null">
- update_time,
- </if>
- <if test="updateUser!= null">
- update_user,
- </if>
- <if test="createTime!= null">
- create_time,
- </if>
- <if test="createUser!= null">
- create_user,
- </if>
- <if test="name!= null">
- name,
- </if>
- <if test="type!= null">
- type,
- </if>
- <if test="ownedLandMarkId!= null">
- owned_land_mark_id,
- </if>
- <if test="arContentGroupId!= null">
- ar_content_group_id,
- </if>
- <if test="arKitPosX!= null">
- ar_kit_pos_x,
- </if>
- <if test="arKitPosY!= null">
- ar_kit_pos_y,
- </if>
- <if test="arKitPosZ!= null">
- ar_kit_pos_z,
- </if>
- <if test="arKitScale!= null">
- ar_kit_scale,
- </if>
- <if test="arKitAngle!= null">
- ar_kit_angle,
- </if>
- <if test="arKitShowLenth!= null">
- ar_kit_show_lenth,
- </if>
- <if test="gyroPosX!= null">
- gyro_pos_x,
- </if>
- <if test="gyroPosY!= null">
- gyro_pos_y,
- </if>
- <if test="gyroPosZ!= null">
- gyro_pos_z,
- </if>
- <if test="gyroPosScale!= null">
- gyro_pos_scale,
- </if>
- <if test="gyroPosAngle!= null">
- gyro_pos_angle,
- </if>
- <if test="gyroPosShowLenth!= null">
- gyro_pos_show_lenth,
- </if>
- <if test="vuforiaImageInfoAreaMarking!= null">
- vuforia_image_info_area_marking,
- </if>
- <if test="remark1!= null">
- remark1,
- </if>
- <if test="remark2!= null">
- remark2,
- </if>
- <if test="remark3!= null">
- remark3,
- </if>
- <if test="remark4!= null">
- remark4,
- </if>
- <if test="remark5!= null">
- remark5,
- </if>
- <if test="remark6!= null">
- remark6,
- </if>
- <if test="mapIndex!= null">
- map_index,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=INTEGER},
- </if>
- <if test="delFlag != null">
- #{delFlag,jdbcType=CHAR},
- </if>
- <if test="updateTime != null">
- #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateUser != null">
- #{updateUser,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="createUser != null">
- #{createUser,jdbcType=VARCHAR},
- </if>
- <if test="name != null">
- #{name,jdbcType=VARCHAR},
- </if>
- <if test="type != null">
- #{type,jdbcType=VARCHAR},
- </if>
- <if test="ownedLandMarkId != null">
- #{ownedLandMarkId,jdbcType=VARCHAR},
- </if>
- <if test="arContentGroupId != null">
- #{arContentGroupId,jdbcType=VARCHAR},
- </if>
- <if test="arKitPosX != null">
- #{arKitPosX,jdbcType=VARCHAR},
- </if>
- <if test="arKitPosY != null">
- #{arKitPosY,jdbcType=VARCHAR},
- </if>
- <if test="arKitPosZ != null">
- #{arKitPosZ,jdbcType=VARCHAR},
- </if>
- <if test="arKitScale != null">
- #{arKitScale,jdbcType=VARCHAR},
- </if>
- <if test="arKitAngle != null">
- #{arKitAngle,jdbcType=VARCHAR},
- </if>
- <if test="arKitShowLenth != null">
- #{arKitShowLenth,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosX != null">
- #{gyroPosX,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosY != null">
- #{gyroPosY,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosZ != null">
- #{gyroPosZ,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosScale != null">
- #{gyroPosScale,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosAngle != null">
- #{gyroPosAngle,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosShowLenth != null">
- #{gyroPosShowLenth,jdbcType=VARCHAR},
- </if>
- <if test="vuforiaImageInfoAreaMarking != null">
- #{vuforiaImageInfoAreaMarking,jdbcType=VARCHAR},
- </if>
- <if test="remark1 != null">
- #{remark1,jdbcType=VARCHAR},
- </if>
- <if test="remark2 != null">
- #{remark2,jdbcType=VARCHAR},
- </if>
- <if test="remark3 != null">
- #{remark3,jdbcType=VARCHAR},
- </if>
- <if test="remark4 != null">
- #{remark4,jdbcType=VARCHAR},
- </if>
- <if test="remark5 != null">
- #{remark5,jdbcType=VARCHAR},
- </if>
- <if test="remark6 != null">
- #{remark6,jdbcType=VARCHAR},
- </if>
- <if test="mapIndex != null">
- #{mapIndex},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AimPlaceContent">
- update aim_place_content
- <set>
- <if test="id != null">
- id= #{id,jdbcType=INTEGER},
- </if>
- <if test="delFlag != null">
- del_flag= #{delFlag,jdbcType=CHAR},
- </if>
- <if test="updateTime != null">
- update_time= #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateUser != null">
- update_user= #{updateUser,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- create_time= #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="createUser != null">
- create_user= #{createUser,jdbcType=VARCHAR},
- </if>
- <if test="name != null">
- name= #{name,jdbcType=VARCHAR},
- </if>
- <if test="type != null">
- type= #{type,jdbcType=VARCHAR},
- </if>
- <if test="ownedLandMarkId != null">
- owned_land_mark_id= #{ownedLandMarkId,jdbcType=VARCHAR},
- </if>
- <if test="arContentGroupId != null">
- ar_content_group_id= #{arContentGroupId,jdbcType=VARCHAR},
- </if>
- <if test="arKitPosX != null">
- ar_kit_pos_x= #{arKitPosX,jdbcType=VARCHAR},
- </if>
- <if test="arKitPosY != null">
- ar_kit_pos_y= #{arKitPosY,jdbcType=VARCHAR},
- </if>
- <if test="arKitPosZ != null">
- ar_kit_pos_z= #{arKitPosZ,jdbcType=VARCHAR},
- </if>
- <if test="arKitScale != null">
- ar_kit_scale= #{arKitScale,jdbcType=VARCHAR},
- </if>
- <if test="arKitAngle != null">
- ar_kit_angle= #{arKitAngle,jdbcType=VARCHAR},
- </if>
- <if test="arKitShowLenth != null">
- ar_kit_show_lenth= #{arKitShowLenth,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosX != null">
- gyro_pos_x= #{gyroPosX,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosY != null">
- gyro_pos_y= #{gyroPosY,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosZ != null">
- gyro_pos_z= #{gyroPosZ,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosScale != null">
- gyro_pos_scale= #{gyroPosScale,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosAngle != null">
- gyro_pos_angle= #{gyroPosAngle,jdbcType=VARCHAR},
- </if>
- <if test="gyroPosShowLenth != null">
- gyro_pos_show_lenth= #{gyroPosShowLenth,jdbcType=VARCHAR},
- </if>
- <if test="vuforiaImageInfoAreaMarking != null">
- vuforia_image_info_area_marking= #{vuforiaImageInfoAreaMarking,jdbcType=VARCHAR},
- </if>
- <if test="remark1 != null">
- remark1= #{remark1,jdbcType=VARCHAR},
- </if>
- <if test="remark2 != null">
- remark2= #{remark2,jdbcType=VARCHAR},
- </if>
- <if test="remark3 != null">
- remark3= #{remark3,jdbcType=VARCHAR},
- </if>
- <if test="remark4 != null">
- remark4= #{remark4,jdbcType=VARCHAR},
- </if>
- <if test="remark5 != null">
- remark5= #{remark5,jdbcType=VARCHAR},
- </if>
- <if test="remark6 != null">
- remark6= #{remark6,jdbcType=VARCHAR},
- </if>
- <if test="mapIndex != null">
- map_index= #{mapIndex},
- </if>
- </set>
- where
- <if test="id != null and !"".equals(id)">
- id = #{id,jdbcType=INTEGER}
- </if>
- <if test="idStr != null and !"".equals(idStr)">
- id in (${idStr})
- </if>
- </update>
- <select id="queryAimPlaceContentByPage" parameterType="java.util.Map" resultMap="ChildResultMap">
- select
- <include refid="Base_Column_List"/>
- from aim_place_content
- <where>
- and del_flag = 'N'
- <if test="record.idStr != null and !"".equals(record.idStr)">
- and id in (${record.idStr})
- </if>
- <if test="record.id != null and !"".equals(record.id)">
- and id = #{record.id}
- </if>
- <if test="record.delFlag != null and !"".equals(record.delFlag)">
- and del_flag = #{record.delFlag}
- </if>
- <if test="record.updateTime != null and !"".equals(record.updateTime)">
- and update_time = #{record.updateTime}
- </if>
- <if test="record.updateUser != null and !"".equals(record.updateUser)">
- and update_user = #{record.updateUser}
- </if>
- <if test="record.createTime != null and !"".equals(record.createTime)">
- and create_time = #{record.createTime}
- </if>
- <if test="record.createUser != null and !"".equals(record.createUser)">
- and create_user = #{record.createUser}
- </if>
- <if test="record.name != null and !"".equals(record.name)">
- and name = #{record.name}
- </if>
- <if test="record.type != null and !"".equals(record.type)">
- and type = #{record.type}
- </if>
- <if test="record.ownedLandMarkId != null and !"".equals(record.ownedLandMarkId)">
- and owned_land_mark_id = #{record.ownedLandMarkId}
- </if>
- <if test="record.arContentGroupId != null and !"".equals(record.arContentGroupId)">
- and ar_content_group_id = #{record.arContentGroupId}
- </if>
- <if test="record.arKitPosX != null and !"".equals(record.arKitPosX)">
- and ar_kit_pos_x = #{record.arKitPosX}
- </if>
- <if test="record.arKitPosY != null and !"".equals(record.arKitPosY)">
- and ar_kit_pos_y = #{record.arKitPosY}
- </if>
- <if test="record.arKitPosZ != null and !"".equals(record.arKitPosZ)">
- and ar_kit_pos_z = #{record.arKitPosZ}
- </if>
- <if test="record.arKitScale != null and !"".equals(record.arKitScale)">
- and ar_kit_scale = #{record.arKitScale}
- </if>
- <if test="record.arKitAngle != null and !"".equals(record.arKitAngle)">
- and ar_kit_angle = #{record.arKitAngle}
- </if>
- <if test="record.arKitShowLenth != null and !"".equals(record.arKitShowLenth)">
- and ar_kit_show_lenth = #{record.arKitShowLenth}
- </if>
- <if test="record.gyroPosX != null and !"".equals(record.gyroPosX)">
- and gyro_pos_x = #{record.gyroPosX}
- </if>
- <if test="record.gyroPosY != null and !"".equals(record.gyroPosY)">
- and gyro_pos_y = #{record.gyroPosY}
- </if>
- <if test="record.gyroPosZ != null and !"".equals(record.gyroPosZ)">
- and gyro_pos_z = #{record.gyroPosZ}
- </if>
- <if test="record.gyroPosScale != null and !"".equals(record.gyroPosScale)">
- and gyro_pos_scale = #{record.gyroPosScale}
- </if>
- <if test="record.gyroPosAngle != null and !"".equals(record.gyroPosAngle)">
- and gyro_pos_angle = #{record.gyroPosAngle}
- </if>
- <if test="record.gyroPosShowLenth != null and !"".equals(record.gyroPosShowLenth)">
- and gyro_pos_show_lenth = #{record.gyroPosShowLenth}
- </if>
- <if test="record.vuforiaImageInfoAreaMarking != null and !"".equals(record.vuforiaImageInfoAreaMarking)">
- and vuforia_image_info_area_marking = #{record.vuforiaImageInfoAreaMarking}
- </if>
- <if test="record.remark1 != null and !"".equals(record.remark1)">
- and remark1 = #{record.remark1}
- </if>
- <if test="record.remark2 != null and !"".equals(record.remark2)">
- and remark2 = #{record.remark2}
- </if>
- <if test="record.remark3 != null and !"".equals(record.remark3)">
- and remark3 = #{record.remark3}
- </if>
- <if test="record.remark4 != null and !"".equals(record.remark4)">
- and remark4 = #{record.remark4}
- </if>
- <if test="record.remark5 != null and !"".equals(record.remark5)">
- and remark5 = #{record.remark5}
- </if>
- <if test="record.remark6 != null and !"".equals(record.remark6)">
- and remark6 = #{record.remark6}
- </if>
- <if test="record.mapIndex != null and !"".equals(record.mapIndex)">
- and map_index = #{record.mapIndex}
- </if>
- <if test="record.searchKey != null and !"".equals(record.searchKey)">
- <trim prefix="and (" suffix=")" prefixOverrides="OR">
- OR name LIKE concat('%',#{record.searchKey},'%')
- OR type LIKE concat('%',#{record.searchKey},'%')
- OR owned_land_mark_id LIKE concat('%',#{record.searchKey},'%')
- OR ar_content_group_id LIKE concat('%',#{record.searchKey},'%')
- OR ar_kit_pos_x LIKE concat('%',#{record.searchKey},'%')
- OR ar_kit_pos_y LIKE concat('%',#{record.searchKey},'%')
- OR ar_kit_pos_z LIKE concat('%',#{record.searchKey},'%')
- OR ar_kit_scale LIKE concat('%',#{record.searchKey},'%')
- OR ar_kit_angle LIKE concat('%',#{record.searchKey},'%')
- OR ar_kit_show_lenth LIKE concat('%',#{record.searchKey},'%')
- OR gyro_pos_x LIKE concat('%',#{record.searchKey},'%')
- OR gyro_pos_y LIKE concat('%',#{record.searchKey},'%')
- OR gyro_pos_z LIKE concat('%',#{record.searchKey},'%')
- OR gyro_pos_scale LIKE concat('%',#{record.searchKey},'%')
- OR gyro_pos_angle LIKE concat('%',#{record.searchKey},'%')
- OR gyro_pos_show_lenth LIKE concat('%',#{record.searchKey},'%')
- OR vuforia_image_info_area_marking LIKE concat('%',#{record.searchKey},'%')
- OR remark1 LIKE concat('%',#{record.searchKey},'%')
- OR remark2 LIKE concat('%',#{record.searchKey},'%')
- OR remark3 LIKE concat('%',#{record.searchKey},'%')
- OR remark4 LIKE concat('%',#{record.searchKey},'%')
- OR remark5 LIKE concat('%',#{record.searchKey},'%')
- OR remark6 LIKE concat('%',#{record.searchKey},'%')
- </trim>
- </if>
- <if test="record.advancedQuery != null and !"".equals(record.advancedQuery)">
- <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
- <choose>
- <when test="item.indexOf('like') != -1">
- <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
- <if test="detailIndex == 3">
- concat('%',#{itemDetail},'%')
- </if>
- <if test="detailIndex < 3">
- ${itemDetail}
- </if>
- </foreach>
- </when>
- <otherwise>
- <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
- <if test="detailIndex == 3">
- #{itemDetail}
- </if>
- <if test="detailIndex < 3">
- ${itemDetail}
- </if>
- </foreach>
- </otherwise>
- </choose>
- </foreach>
- </if>
- </where>
- order by
- <if test="record.orderByStr != null and !"".equals(record.orderByStr)">
- <trim suffixOverrides=",">
- <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
- <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
- ${itemDetail}
- </foreach>
- </foreach>
- </trim>
- ,
- </if>
- id desc
- </select>
- <select id="queryAllAimPlaceContent" parameterType="java.util.Map" resultMap="ChildResultMap">
- select
- <include refid="Base_Column_List"/>
- from aim_place_content
- <where>
- and del_flag = 'N'
- <if test="idStr != null and !"".equals(idStr)">
- and id in (${idStr})
- </if>
- <if test="id != null and !"".equals(id)">
- and id = #{id}
- </if>
- <if test="delFlag != null and !"".equals(delFlag)">
- and del_flag = #{delFlag}
- </if>
- <if test="updateTime != null and !"".equals(updateTime)">
- and update_time = #{updateTime}
- </if>
- <if test="updateUser != null and !"".equals(updateUser)">
- and update_user = #{updateUser}
- </if>
- <if test="createTime != null and !"".equals(createTime)">
- and create_time = #{createTime}
- </if>
- <if test="createUser != null and !"".equals(createUser)">
- and create_user = #{createUser}
- </if>
- <if test="name != null and !"".equals(name)">
- and name = #{name}
- </if>
- <if test="type != null and !"".equals(type)">
- and type = #{type}
- </if>
- <if test="ownedLandMarkId != null and !"".equals(ownedLandMarkId)">
- and owned_land_mark_id = #{ownedLandMarkId}
- </if>
- <if test="arContentGroupId != null and !"".equals(arContentGroupId)">
- and ar_content_group_id = #{arContentGroupId}
- </if>
- <if test="arKitPosX != null and !"".equals(arKitPosX)">
- and ar_kit_pos_x = #{arKitPosX}
- </if>
- <if test="arKitPosY != null and !"".equals(arKitPosY)">
- and ar_kit_pos_y = #{arKitPosY}
- </if>
- <if test="arKitPosZ != null and !"".equals(arKitPosZ)">
- and ar_kit_pos_z = #{arKitPosZ}
- </if>
- <if test="arKitScale != null and !"".equals(arKitScale)">
- and ar_kit_scale = #{arKitScale}
- </if>
- <if test="arKitAngle != null and !"".equals(arKitAngle)">
- and ar_kit_angle = #{arKitAngle}
- </if>
- <if test="arKitShowLenth != null and !"".equals(arKitShowLenth)">
- and ar_kit_show_lenth = #{arKitShowLenth}
- </if>
- <if test="gyroPosX != null and !"".equals(gyroPosX)">
- and gyro_pos_x = #{gyroPosX}
- </if>
- <if test="gyroPosY != null and !"".equals(gyroPosY)">
- and gyro_pos_y = #{gyroPosY}
- </if>
- <if test="gyroPosZ != null and !"".equals(gyroPosZ)">
- and gyro_pos_z = #{gyroPosZ}
- </if>
- <if test="gyroPosScale != null and !"".equals(gyroPosScale)">
- and gyro_pos_scale = #{gyroPosScale}
- </if>
- <if test="gyroPosAngle != null and !"".equals(gyroPosAngle)">
- and gyro_pos_angle = #{gyroPosAngle}
- </if>
- <if test="gyroPosShowLenth != null and !"".equals(gyroPosShowLenth)">
- and gyro_pos_show_lenth = #{gyroPosShowLenth}
- </if>
- <if test="vuforiaImageInfoAreaMarking != null and !"".equals(vuforiaImageInfoAreaMarking)">
- and vuforia_image_info_area_marking = #{vuforiaImageInfoAreaMarking}
- </if>
- <if test="remark1 != null and !"".equals(remark1)">
- and remark1 = #{remark1}
- </if>
- <if test="remark2 != null and !"".equals(remark2)">
- and remark2 = #{remark2}
- </if>
- <if test="remark3 != null and !"".equals(remark3)">
- and remark3 = #{remark3}
- </if>
- <if test="remark4 != null and !"".equals(remark4)">
- and remark4 = #{remark4}
- </if>
- <if test="remark5 != null and !"".equals(remark5)">
- and remark5 = #{remark5}
- </if>
- <if test="remark6 != null and !"".equals(remark6)">
- and remark6 = #{remark6}
- </if>
- <if test="mapIndex != null and !"".equals(mapIndex)">
- and map_index = #{mapIndex}
- </if>
- <if test="searchKey != null and !"".equals(searchKey)">
- <trim prefix="and (" suffix=")" prefixOverrides="OR">
- OR name LIKE concat('%',#{searchKey},'%')
- OR type LIKE concat('%',#{searchKey},'%')
- OR owned_land_mark_id LIKE concat('%',#{searchKey},'%')
- OR ar_content_group_id LIKE concat('%',#{searchKey},'%')
- OR ar_kit_pos_x LIKE concat('%',#{searchKey},'%')
- OR ar_kit_pos_y LIKE concat('%',#{searchKey},'%')
- OR ar_kit_pos_z LIKE concat('%',#{searchKey},'%')
- OR ar_kit_scale LIKE concat('%',#{searchKey},'%')
- OR ar_kit_angle LIKE concat('%',#{searchKey},'%')
- OR ar_kit_show_lenth LIKE concat('%',#{searchKey},'%')
- OR gyro_pos_x LIKE concat('%',#{searchKey},'%')
- OR gyro_pos_y LIKE concat('%',#{searchKey},'%')
- OR gyro_pos_z LIKE concat('%',#{searchKey},'%')
- OR gyro_pos_scale LIKE concat('%',#{searchKey},'%')
- OR gyro_pos_angle LIKE concat('%',#{searchKey},'%')
- OR gyro_pos_show_lenth LIKE concat('%',#{searchKey},'%')
- OR vuforia_image_info_area_marking LIKE concat('%',#{searchKey},'%')
- OR remark1 LIKE concat('%',#{searchKey},'%')
- OR remark2 LIKE concat('%',#{searchKey},'%')
- OR remark3 LIKE concat('%',#{searchKey},'%')
- OR remark4 LIKE concat('%',#{searchKey},'%')
- OR remark5 LIKE concat('%',#{searchKey},'%')
- OR remark6 LIKE concat('%',#{searchKey},'%')
- </trim>
- </if>
- <if test="advancedQuery != null and !"".equals(advancedQuery)">
- <foreach item="item" index="index" collection="advancedQuery.split('_;')">
- <choose>
- <when test="item.indexOf('like') != -1">
- <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
- <if test="detailIndex == 3">
- concat('%',#{itemDetail},'%')
- </if>
- <if test="detailIndex < 3">
- ${itemDetail}
- </if>
- </foreach>
- </when>
- <otherwise>
- <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
- <if test="detailIndex == 3">
- #{itemDetail}
- </if>
- <if test="detailIndex < 3">
- ${itemDetail}
- </if>
- </foreach>
- </otherwise>
- </choose>
- </foreach>
- </if>
- </where>
- order by
- <if test="orderByStr != null and !"".equals(orderByStr)">
- <trim suffixOverrides=",">
- <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
- <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
- ${itemDetail}
- </foreach>
- </foreach>
- </trim>
- ,
- </if>
- id desc
- </select>
- <select id="queryAimPlaceContent" parameterType="java.util.Map"
- resultType="com.izouma.awesomeadmin.model.AimPlaceContent">
- select
- <include refid="Base_Column_List"/>
- from aim_place_content
- <where>
- and del_flag = 'N'
- <if test="id != null and !"".equals(id)">
- and id = #{id}
- </if>
- <if test="delFlag != null and !"".equals(delFlag)">
- and del_flag = #{delFlag}
- </if>
- <if test="updateTime != null and !"".equals(updateTime)">
- and update_time = #{updateTime}
- </if>
- <if test="updateUser != null and !"".equals(updateUser)">
- and update_user = #{updateUser}
- </if>
- <if test="createTime != null and !"".equals(createTime)">
- and create_time = #{createTime}
- </if>
- <if test="createUser != null and !"".equals(createUser)">
- and create_user = #{createUser}
- </if>
- <if test="name != null and !"".equals(name)">
- and name = #{name}
- </if>
- <if test="type != null and !"".equals(type)">
- and type = #{type}
- </if>
- <if test="ownedLandMarkId != null and !"".equals(ownedLandMarkId)">
- and owned_land_mark_id = #{ownedLandMarkId}
- </if>
- <if test="arContentGroupId != null and !"".equals(arContentGroupId)">
- and ar_content_group_id = #{arContentGroupId}
- </if>
- <if test="arKitPosX != null and !"".equals(arKitPosX)">
- and ar_kit_pos_x = #{arKitPosX}
- </if>
- <if test="arKitPosY != null and !"".equals(arKitPosY)">
- and ar_kit_pos_y = #{arKitPosY}
- </if>
- <if test="arKitPosZ != null and !"".equals(arKitPosZ)">
- and ar_kit_pos_z = #{arKitPosZ}
- </if>
- <if test="arKitScale != null and !"".equals(arKitScale)">
- and ar_kit_scale = #{arKitScale}
- </if>
- <if test="arKitAngle != null and !"".equals(arKitAngle)">
- and ar_kit_angle = #{arKitAngle}
- </if>
- <if test="arKitShowLenth != null and !"".equals(arKitShowLenth)">
- and ar_kit_show_lenth = #{arKitShowLenth}
- </if>
- <if test="gyroPosX != null and !"".equals(gyroPosX)">
- and gyro_pos_x = #{gyroPosX}
- </if>
- <if test="gyroPosY != null and !"".equals(gyroPosY)">
- and gyro_pos_y = #{gyroPosY}
- </if>
- <if test="gyroPosZ != null and !"".equals(gyroPosZ)">
- and gyro_pos_z = #{gyroPosZ}
- </if>
- <if test="gyroPosScale != null and !"".equals(gyroPosScale)">
- and gyro_pos_scale = #{gyroPosScale}
- </if>
- <if test="gyroPosAngle != null and !"".equals(gyroPosAngle)">
- and gyro_pos_angle = #{gyroPosAngle}
- </if>
- <if test="gyroPosShowLenth != null and !"".equals(gyroPosShowLenth)">
- and gyro_pos_show_lenth = #{gyroPosShowLenth}
- </if>
- <if test="vuforiaImageInfoAreaMarking != null and !"".equals(vuforiaImageInfoAreaMarking)">
- and vuforia_image_info_area_marking = #{vuforiaImageInfoAreaMarking}
- </if>
- <if test="remark1 != null and !"".equals(remark1)">
- and remark1 = #{remark1}
- </if>
- <if test="remark2 != null and !"".equals(remark2)">
- and remark2 = #{remark2}
- </if>
- <if test="remark3 != null and !"".equals(remark3)">
- and remark3 = #{remark3}
- </if>
- <if test="remark4 != null and !"".equals(remark4)">
- and remark4 = #{remark4}
- </if>
- <if test="remark5 != null and !"".equals(remark5)">
- and remark5 = #{remark5}
- </if>
- <if test="remark6 != null and !"".equals(remark6)">
- and remark6 = #{remark6}
- </if>
- <if test="mapIndex != null and !"".equals(mapIndex)">
- and map_index = #{mapIndex}
- </if>
- </where>
- LIMIT 1
- </select>
- <update id="delete">
- UPDATE aim_place_content SET del_flag = 'Y'
- where
- <if test="id != null and !"".equals(id)">
- id = #{id,jdbcType=INTEGER}
- </if>
- <if test="idStr != null and !"".equals(idStr)">
- id in (${idStr})
- </if>
- </update>
- <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlaceContent">
- select
- <include refid="Base_Column_List"/>
- from aim_place_content
- <where>
- and del_flag = 'N'
- </where>
- order by id desc
- </select>
- <resultMap id="ChildResultMap" type="com.izouma.awesomeadmin.model.AimPlaceContent" extends="BaseResultMap">
- <collection property="aimPlaceContentChildList" ofType="com.izouma.awesomeadmin.model.AimPlaceContentChild"
- select="com.izouma.awesomeadmin.dao.AimPlaceContentChildMapper.queryAllAimPlaceContentChild"
- column="{aimPlaceContentId = id}">
- </collection>
- </resultMap>
- </mapper>
|