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;
}