| | |
| | | <resultMap type="ArdDispatchPolice" id="ArdDispatchPoliceResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="name" column="name"/> |
| | | <result property="text" column="text"/> |
| | | <result property="longitude" column="longitude"/> |
| | | <result property="latitude" column="latitude"/> |
| | | <result property="deptId" column="dept_id"/> |
| | |
| | | <sql id="selectArdDispatchPoliceVo"> |
| | | SELECT ID, |
| | | NAME, |
| | | text, |
| | | longitude, |
| | | latitude, |
| | | dept_id, |
| | |
| | | resultMap="ArdDispatchPoliceArdDispatchPoliceUserResult"> |
| | | select a.id, |
| | | a.name, |
| | | a.text, |
| | | a.longitude, |
| | | a.latitude, |
| | | a.dept_id, |
| | |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="name != null">name,</if> |
| | | <if test="text != null">text,</if> |
| | | <if test="longitude != null">longitude,</if> |
| | | <if test="latitude != null">latitude,</if> |
| | | <if test="deptId != null">dept_id,</if> |
| | |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="name != null">#{name},</if> |
| | | <if test="text != null">#{text},</if> |
| | | <if test="longitude != null">#{longitude},</if> |
| | | <if test="latitude != null">#{latitude},</if> |
| | | <if test="deptId != null">#{deptId},</if> |
| | |
| | | update ard_dispatch_police |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="name != null">name = #{name},</if> |
| | | <if test="text != null">text = #{text},</if> |
| | | <if test="longitude != null">longitude = #{longitude},</if> |
| | | <if test="latitude != null">latitude = #{latitude},</if> |
| | | <if test="deptId != null">dept_id = #{deptId},</if> |