南昌市物联网技防平台-后台
zengh
2021-05-20 b0738617fd446115e7318c18eee4fb1eceb5ed3c
解决客户管理无法更新附属字段的问题
1 files modified
27 ■■■■ changed files
blade-service/blade-system/src/main/java/org/springblade/system/mapper/TenantMapper.xml 27 ●●●● patch | view | raw | blame | history
blade-service/blade-system/src/main/java/org/springblade/system/mapper/TenantMapper.xml
@@ -38,6 +38,7 @@
        bt.tenant_name=bd.dept_name
        where bt.is_deleted = 0
        AND bt.tenant_id != 000000
        <if test="tenant.tenantName!=null and tenant.tenantName!=''">
            and tenant_name=#{tenant.tenantName}
        </if>
@@ -57,54 +58,54 @@
    <!--医院信息新增-->
    <insert id="inserts">
        insert into jfpt.sys_hospital(dj,had,ht,ctime,content,hn) values(#{dj},#{had},#{ht},#{ctime},#{content},#{hn})
        insert into jfpt0.sys_hospital(dj,had,ht,ctime,content,hn) values(#{dj},#{had},#{ht},#{ctime},#{content},#{hn})
    </insert>
    <!--医院信息修改-->
    <update id="updateInfoy" >
        UPDATE  jfpt.sys_hospital SET dj=#{dj},had=#{had},ctime=#{ctime},content=#{content},ht=#{ht} WHERE hn=#{hn}
        UPDATE  jfpt0.sys_hospital SET dj=#{dj},had=#{had},ctime=#{ctime},content=#{content},ht=#{ht} WHERE hn=#{hn}
    </update>
    <select id="selectTy" resultType="java.util.HashMap">
        select * from jfpt.sys_hospital where hn=#{hn}
        select * from jfpt0.sys_hospital where hn=#{hn}
    </select>
    <!--学校信息新增-->
    <insert id="insertss">
        insert into jfpt.sys_school(nature,had,motto,ctime,content,hn) values(#{dj},#{had},#{motto},#{ctime},#{content},#{hn})
        insert into jfpt0.sys_school(nature,had,motto,ctime,content,hn) values(#{nature},#{had},#{motto},#{ctime},#{content},#{hn})
    </insert>
    <!--学校信息修改-->
    <update id="updateInfos" >
        UPDATE  jfpt.sys_school SET nature=#{nature},had=#{had},ctime=#{ctime},content=#{content},motto=#{motto} WHERE hn=#{hn}
        UPDATE  jfpt0.sys_school SET nature=#{nature},had=#{had},ctime=#{ctime},content=#{content},motto=#{motto} WHERE hn=#{hn}
    </update>
    <select id="selectTs" resultType="java.util.HashMap">
        select * from jfpt.sys_school where hn=#{hn}
        select * from jfpt0.sys_school where hn=#{hn}
    </select>
    <!--小区信息新增-->
    <insert id="insertsr">
        insert into jfpt.sys_residential(category,attributes,developers,had,housetype,content,hn) values(#{category},#{attributes},#{developers},#{had},#{housetype},#{content},#{hn})
        insert into jfpt0.sys_residential(category,attributes,developers,housetype,content,hn) values(#{category},#{attributes},#{developers},#{housetype},#{content},#{hn})
    </insert>
    <!--小区信息修改-->
    <update id="updateInfor" >
        UPDATE  jfpt.sys_residential SET category=#{category},attributes=#{attributes},developers=#{developers},had=#{had},housetype=#{housetype},content=#{content} WHERE hn=#{hn}
        UPDATE  jfpt0.sys_residential SET category=#{category},attributes=#{attributes},developers=#{developers},had=#{had},housetype=#{housetype},content=#{content} WHERE hn=#{hn}
    </update>
    <select id="selectTr" resultType="java.util.HashMap">
        select * from jfpt.sys_residential where hn=#{hn}
        select * from jfpt0.sys_residential where hn=#{hn}
    </select>
    <delete id="deletey">select
        delete from jfpt.sys_hospital where hn = #{hn}
    <delete id="deletey">
        delete from jfpt0.sys_hospital where hn = #{hn}
    </delete>
    <delete id="deletes">
        delete from jfpt.sys_school where hn = #{hn}
        delete from jfpt0.sys_school where hn = #{hn}
    </delete>
    <delete id="deleter">
        delete from jfpt.sys_residential where hn = #{hn}
        delete from jfpt0.sys_residential where hn = #{hn}
    </delete>