lin
2024-03-20 f2f0eb7d4101f99d251d6dbff47b8265509f5a1e
租客管理查询
2 files modified
7 ■■■■■ changed files
src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml 4 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/house/vo/HouseholdVO.java 3 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml
@@ -238,6 +238,10 @@
                <!-- 等于18 就是租户 -->
            <if test="household.relationship!=null and household.relationship == 18">
                and jh.relationship = #{household.relationship}
                <if test="household.minors!=null and household.minors ==1">
                    and TIMESTAMPDIFF(year, substring(jh.id_card, 7, 8), now()) &lt; 18
                </if>
            </if>
            <!-- 不等于18 就是非租户 -->
            <if test="household.relationship!=null and household.relationship != 18">
src/main/java/org/springblade/modules/house/vo/HouseholdVO.java
@@ -174,6 +174,9 @@
     */
    private Integer limit;
    @ApiModelProperty(value = "未成年", example = "")
    private Integer minors;
    /**
     * 角色名称
     */