瀏覽代碼

bean is null

shiqian 4 年之前
父節點
當前提交
e1dd768d80
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      boman-web-core/src/main/java/com/boman/web/core/service/TableServiceCmdService.java

+ 2 - 1
boman-web-core/src/main/java/com/boman/web/core/service/TableServiceCmdService.java

@@ -92,7 +92,8 @@ public class TableServiceCmdService {
 
     private static final Logger LOGGER = LoggerFactory.getLogger(TableServiceCmdService.class);
 
-    public final AjaxResult objectSave(FormDataDto dto) {
+    @Transactional(isolation = Isolation.READ_COMMITTED, rollbackFor = Exception.class)
+    public AjaxResult objectSave(FormDataDto dto) {
         // 权限校验在此方法中
         TableContext context = tableContext.createContext(dto);
         // 拿到pkName和maxId