| | |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="selected" column="selected"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdTiles3dVo"> |
| | |
| | | c.create_by, |
| | | c.create_time, |
| | | c.update_by, |
| | | c.update_time, |
| | | c.selected |
| | | c.update_time |
| | | from ard_tiles3d c |
| | | left join sys_dept d on d.dept_id = c.dept_id |
| | | left join sys_user u on u.user_id = c.user_id |
| | |
| | | <select id="selectArdTiles3dList" parameterType="ArdTiles3d" resultMap="ArdTiles3dResult"> |
| | | <include refid="selectArdTiles3dVo"/> |
| | | <where> |
| | | <if test="selected != null and selected != ''">and c.selected = #{selected}</if> |
| | | <if test="tilesId != null and tilesId != ''">and c.tiles_id = #{tilesId}</if> |
| | | <if test="tilesName != null and tilesName != ''">and c.tiles_name like '%'||#{tilesName}||'%'</if> |
| | | <if test="tilesUrl != null and tilesUrl != ''">and c.tiles_url = #{tilesUrl}</if> |
| | |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="selected != null">selected,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="tilesId != null">#{tilesId},</if> |
| | |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="selected != null">#{selected},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="selected != null">selected = #{selected},</if> |
| | | </trim> |
| | | where tiles_id = #{tilesId} |
| | | </update> |