|
@@ -1,8 +1,6 @@
|
|
|
package com.boman.web.core.controller;
|
|
|
|
|
|
-import com.boman.domain.dto.AjaxResult;
|
|
|
-import com.boman.domain.dto.FormDataDto;
|
|
|
-import com.boman.domain.dto.PrimaryTableDto;
|
|
|
+import com.boman.domain.dto.*;
|
|
|
import com.boman.web.core.service.TableServiceCmdService;
|
|
|
import com.boman.web.core.service.common.ICommonService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -338,4 +336,26 @@ public class ObjController {
|
|
|
return AjaxResult.success(commonService.getOneByMap(dto.getTable(), dto.getFixedData()));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 功能描述: 根据表名更改commitData, 条件condition
|
|
|
+ *
|
|
|
+ * @param dto dto tableName commitData condition
|
|
|
+ * @return com.boman.domain.dto.AjaxResult
|
|
|
+ */
|
|
|
+ @PostMapping("/update")
|
|
|
+ public AjaxResult update(@RequestBody UpdateDto dto) {
|
|
|
+ return AjaxResult.success(commonService.update(dto));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 功能描述: 真的删除, 条件condition
|
|
|
+ *
|
|
|
+ * @param dto tableName condition
|
|
|
+ * @return com.boman.domain.dto.AjaxResult
|
|
|
+ */
|
|
|
+ @PostMapping("/delete")
|
|
|
+ public AjaxResult delete(@RequestBody DeleteDto dto) {
|
|
|
+ return AjaxResult.success(commonService.delete(dto));
|
|
|
+ }
|
|
|
+
|
|
|
}
|