|
@@ -52,11 +52,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectAreaAttrVo"/>
|
|
<include refid="selectAreaAttrVo"/>
|
|
|
where area_code = #{areaCode}
|
|
where area_code = #{areaCode}
|
|
|
</select>
|
|
</select>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<insert id="insertAreaAttr" parameterType="com.ruoyi.ems.domain.AreaAttr" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertAreaAttr" parameterType="com.ruoyi.ems.domain.AreaAttr" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into adm_area_attr
|
|
insert into adm_area_attr
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="areaCode != null and areaCode != ''">area_code,</if>
|
|
|
|
|
|
|
+ area_code,
|
|
|
|
|
+
|
|
|
<if test="attrOrg != null">attr_org,</if>
|
|
<if test="attrOrg != null">attr_org,</if>
|
|
|
<if test="mgrOrg != null">mgr_org,</if>
|
|
<if test="mgrOrg != null">mgr_org,</if>
|
|
|
<if test="leader != null">leader,</if>
|
|
<if test="leader != null">leader,</if>
|
|
@@ -67,9 +68,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="floor != null">floor,</if>
|
|
<if test="floor != null">floor,</if>
|
|
|
<if test="longitude != null">longitude,</if>
|
|
<if test="longitude != null">longitude,</if>
|
|
|
<if test="latitude != null">latitude,</if>
|
|
<if test="latitude != null">latitude,</if>
|
|
|
- </trim>
|
|
|
|
|
|
|
+ </trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="areaCode != null and areaCode != ''">#{areaCode},</if>
|
|
|
|
|
|
|
+ #{areaCode},
|
|
|
|
|
+
|
|
|
<if test="attrOrg != null">#{attrOrg},</if>
|
|
<if test="attrOrg != null">#{attrOrg},</if>
|
|
|
<if test="mgrOrg != null">#{mgrOrg},</if>
|
|
<if test="mgrOrg != null">#{mgrOrg},</if>
|
|
|
<if test="leader != null">#{leader},</if>
|
|
<if test="leader != null">#{leader},</if>
|
|
@@ -80,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="floor != null">#{floor},</if>
|
|
<if test="floor != null">#{floor},</if>
|
|
|
<if test="longitude != null">#{longitude},</if>
|
|
<if test="longitude != null">#{longitude},</if>
|
|
|
<if test="latitude != null">#{latitude},</if>
|
|
<if test="latitude != null">#{latitude},</if>
|
|
|
- </trim>
|
|
|
|
|
|
|
+ </trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
<update id="updateAreaAttr" parameterType="com.ruoyi.ems.domain.AreaAttr">
|
|
<update id="updateAreaAttr" parameterType="com.ruoyi.ems.domain.AreaAttr">
|