|
@@ -15,6 +15,13 @@
|
|
|
<result property="longitude" column="longitude"/>
|
|
|
<result property="coverRadius" column="cover_radius"/>
|
|
|
<result property="remark" column="remark"/>
|
|
|
+ <result column="merch_sn" property="merchSn" jdbcType="VARCHAR" />
|
|
|
+ <result column="merch_name" property="merchName" jdbcType="VARCHAR" />
|
|
|
+ <result column="creater_sn" property="createrSn" jdbcType="VARCHAR" />
|
|
|
+ <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="moder_sn" property="moderSn" jdbcType="VARCHAR" />
|
|
|
+ <result column="mod_time" property="modTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="tstm" property="tstm" jdbcType="TIMESTAMP" />
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="queryObject" resultType="com.kmall.admin.entity.StoreEntity">
|
|
@@ -29,7 +36,8 @@
|
|
|
`latitude`,
|
|
|
`longitude`,
|
|
|
`cover_radius`,
|
|
|
- `remark`
|
|
|
+ `remark`,merch_sn, merch_name, creater_sn, create_time,
|
|
|
+ moder_sn, mod_time, tstm
|
|
|
from mall_store
|
|
|
where id = #{id}
|
|
|
</select>
|
|
@@ -46,7 +54,8 @@
|
|
|
`latitude`,
|
|
|
`longitude`,
|
|
|
`cover_radius`,
|
|
|
- `remark`
|
|
|
+ `remark`,merch_sn, merch_name, creater_sn, create_time,
|
|
|
+ moder_sn, mod_time, tstm
|
|
|
from mall_store
|
|
|
where store_name = #{storeName}
|
|
|
</select>
|
|
@@ -63,7 +72,8 @@
|
|
|
`latitude`,
|
|
|
`longitude`,
|
|
|
`cover_radius`,
|
|
|
- `remark`
|
|
|
+ `remark`,merch_sn, merch_name, creater_sn, create_time,
|
|
|
+ moder_sn, mod_time, tstm
|
|
|
from mall_store
|
|
|
WHERE 1=1
|
|
|
<if test="storeName != null and storeName.trim() != ''">
|
|
@@ -107,7 +117,26 @@
|
|
|
`latitude`,
|
|
|
`longitude`,
|
|
|
`cover_radius`,
|
|
|
- `remark`)
|
|
|
+ `remark`,
|
|
|
+ <if test="merchSn != null" >
|
|
|
+ merch_sn,
|
|
|
+ </if>
|
|
|
+ <if test="merchName != null" >
|
|
|
+ merch_name,
|
|
|
+ </if>
|
|
|
+ <if test="createrSn != null" >
|
|
|
+ creater_sn,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test="moderSn != null" >
|
|
|
+ moder_sn,
|
|
|
+ </if>
|
|
|
+ <if test="modTime != null" >
|
|
|
+ mod_time
|
|
|
+ </if>
|
|
|
+ )
|
|
|
values(
|
|
|
#{storeName},
|
|
|
#{storeNumber},
|
|
@@ -118,7 +147,27 @@
|
|
|
#{latitude},
|
|
|
#{longitude},
|
|
|
#{coverRadius},
|
|
|
- #{remark})
|
|
|
+ #{remark},
|
|
|
+
|
|
|
+ <if test="merchSn != null" >
|
|
|
+ #{merchSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="merchName != null" >
|
|
|
+ #{merchName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createrSn != null" >
|
|
|
+ #{createrSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="moderSn != null" >
|
|
|
+ #{moderSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modTime != null" >
|
|
|
+ #{modTime,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ )
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.kmall.admin.entity.StoreEntity">
|
|
@@ -133,7 +182,29 @@
|
|
|
<if test="latitude != null">`latitude` = #{latitude}, </if>
|
|
|
<if test="longitude != null">`longitude` = #{longitude}, </if>
|
|
|
<if test="coverRadius != null">`cover_radius` = #{coverRadius}, </if>
|
|
|
- <if test="remark != null">`remark` = #{remark}</if>
|
|
|
+ <if test="remark != null">`remark` = #{remark},</if>
|
|
|
+
|
|
|
+ <if test="merchSn != null" >
|
|
|
+ merch_sn = #{merchSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="merchName != null" >
|
|
|
+ merch_name = #{merchName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createrSn != null" >
|
|
|
+ creater_sn = #{createrSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="moderSn != null" >
|
|
|
+ moder_sn = #{moderSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modTime != null" >
|
|
|
+ mod_time = #{modTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="tstm != null" >
|
|
|
+ tstm = #{tstm,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id}
|
|
|
</update>
|