chengf
2025-07-16 cc717a7a9817179d6c18a0f085271992f5635ddf
java110-db/src/main/resources/mapper/community/UnitServiceDaoImplMapper.xml
@@ -33,6 +33,9 @@
        <if test="unitNum !=null and unitNum != ''">
            and t.unit_num= #{unitNum}
        </if>
        <if test="unitName !=null and unitName != ''">
            and t.unit_name= #{unitName}
        </if>
        <if test="lift !=null and lift != ''">
            and t.lift= #{lift}
        </if>
@@ -51,7 +54,7 @@
    <!-- 保存小区单元信息至 instance表中 add by wuxw 2018-07-03 -->
    <insert id="saveUnitInfoInstance" parameterType="Map">
        insert into building_unit(
        floor_id,layer_count,unit_id,unit_num,lift,status_cd,remark,b_id,user_id,unit_area
        floor_id,layer_count,unit_id,unit_num,unit_name,lift,status_cd,remark,b_id,user_id,unit_area
        ) select t.floor_id,t.layer_count,t.unit_id,t.unit_num,t.lift,'0',t.remark,t.b_id,t.user_id,t.unit_area
        from
        business_building_unit t where 1=1
@@ -67,6 +70,9 @@
        </if>
        <if test="unitNum !=null and unitNum != ''">
            and t.unit_num= #{unitNum}
        </if>
        <if test="unitName !=null and unitName != ''">
            and t.unit_name= #{unitName}
        </if>
        <if test="lift !=null and lift != ''">
            and t.lift= #{lift}
@@ -111,6 +117,9 @@
        <if test="unitNum !=null and unitNum != ''">
            and t.unit_num= #{unitNum}
        </if>
        <if test="unitName !=null and unitName != ''">
            and t.unit_name= #{unitName}
        </if>
        <if test="lift !=null and lift != ''">
            and t.lift= #{lift}
        </if>
@@ -146,6 +155,9 @@
        </if>
        <if test="unitNum !=null and unitNum != ''">
            , t.unit_num= #{unitNum}
        </if>
        <if test="unitName!=null and unitName != ''">
            , t.unit_name= #{unitName}
        </if>
        <if test="lift !=null and lift != ''">
            , t.lift= #{lift}
@@ -185,6 +197,9 @@
        <if test="unitNum !=null and unitNum != ''">
            and t.unit_num= #{unitNum}
        </if>
        <if test="unitName !=null and unitName != ''">
            and t.unit_name= #{unitName}
        </if>
        <if test="lift !=null and lift != ''">
            and t.lift= #{lift}
        </if>