linwe
2024-08-13 590d573bf646f44f0608adcb89f04c576ec90e39
src/main/java/org/springblade/modules/grid/mapper/GridWorkLogMapper.xml
@@ -11,6 +11,8 @@
        br.town_name AS townName,
        br.name AS neiName,
        jg.grid_name,
        juhl.label_name,
        juhl.color,
        bu.real_name as createUserName
        from jczz_grid_work_log jgwl
        left join jczz_household jh on jgwl.household_id = jh.id and jh.is_deleted = 0
@@ -19,6 +21,7 @@
        LEFT JOIN blade_user bu on bu.id = jgwl.create_user and bu.is_deleted = 0
        LEFT JOIN jczz_police_affairs_grid jpag on jhs.jw_grid_code= jpag.jw_grid_code and jpag.is_deleted = 0
        left join blade_region br on br.code = jpag.community_code
        LEFT JOIN jczz_user_house_label juhl on juhl.label_id = jgwl.person_type
        where jgwl.is_deleted = 0
        <if test="gridWorkLog.type !=null">
            and jgwl.type = #{gridWorkLog.type}