@Repository
public interface IReleaseHeaderDao extends CrudRepository<ReleaseHeader, Integer>{
}
在我的服务中:
private void updatePfm(PushModel pushModel) {
ReleaseHeader releaseHeader = this.releaseHeaderService.findById(162021);
releaseHeader.setUpc(pushModel.getUpc());
releaseHeaderService.save(releaseHeader);
}
当我在 SQL 服务器中更新时,我收到了这个结果