mybaties controller中总会优先执行方法

@ModelAttribute
    public CheckLoanContract get(@RequestParam(required=false) String id) {
        CheckLoanContract entity = null;
        if (StringUtils.isNotBlank(id)){
            entity = checkLoanContractService.get(id);
        }
        if (entity == null){
            entity = new CheckLoanContract();
        }
        return entity;
    }

posted on 2016-09-16 18:39  静以修身!  阅读(281)  评论(0编辑  收藏  举报

导航