mybatis+plus update EntityWrapper 根据某条件

Code code=new Code();
        code.setCodeName(new DateUtil().getDayTimeFormat());
        Code updCode=new Code();
        updCode.setId(1);
        codeService.update(code,new EntityWrapper<>(updCode));
UPDATE code SET code_name=? WHERE id=? 

 

你可能感兴趣的:(mybatis+plus update EntityWrapper 根据某条件)