zjh
2024-12-13 dba27f21bc05c999ace46fe15be6e4c824ed9104
ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjRulesController.java
@@ -15,7 +15,6 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.checkerframework.checker.units.qual.A;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -223,6 +222,9 @@
            return AjaxResult.success(res);
        }
        TjCustomer byId = customerService.getById(cusId);
        if(byId==null){
            return AjaxResult.success(res);
        }
        LambdaQueryWrapper<TjRules> wq = new LambdaQueryWrapper<>();
        wq.eq(TjRules::getProId, proId);
        wq.lt(TjRules::getAgeLt, MatchUtils.getAgeByIdCard(byId.getCusIdcard()));