|
@@ -186,6 +186,27 @@ public class CostModelListController extends JeecgController<CostModelList, ICos
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 通过id删除
|
|
|
+ *
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @AutoLog(value = "成本模型-通过id删除")
|
|
|
+ @ApiOperation(value="成本模型-通过id删除", notes="成本模型-通过id删除")
|
|
|
+ //@RequiresPermissions("org.jeecg.modules:kzks_cost_model:delete")
|
|
|
+ @DeleteMapping(value = "/delete")
|
|
|
+ public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
|
+ Map<String, Object> columnMap = new HashMap<>();
|
|
|
+ columnMap.put("xiangmu_id",id);
|
|
|
+ clService.removeByMap(columnMap);
|
|
|
+ Map<String, Object> columnMap1 = new HashMap<>();
|
|
|
+ columnMap1.put("xiangmu_id",id);
|
|
|
+ wxService.removeByMap(columnMap1);
|
|
|
+ costModelListService.removeById(id);
|
|
|
+ return Result.OK("删除成功!");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 分页列表查询
|
|
|
*
|
|
|
* @param costModelList
|
|
@@ -253,20 +274,20 @@ public class CostModelListController extends JeecgController<CostModelList, ICos
|
|
|
return Result.OK("知会成功!");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 通过id删除
|
|
|
- *
|
|
|
- * @param id
|
|
|
- * @return
|
|
|
- */
|
|
|
- @AutoLog(value = "成本模型-通过id删除")
|
|
|
- @ApiOperation(value="成本模型-通过id删除", notes="成本模型-通过id删除")
|
|
|
- //@RequiresPermissions("org.jeecg.modules:kzks_cost_model:delete")
|
|
|
- @DeleteMapping(value = "/delete")
|
|
|
- public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
|
- costModelListService.removeById(id);
|
|
|
- return Result.OK("删除成功!");
|
|
|
- }
|
|
|
+// /**
|
|
|
+// * 通过id删除
|
|
|
+// *
|
|
|
+// * @param id
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @AutoLog(value = "成本模型-通过id删除")
|
|
|
+// @ApiOperation(value="成本模型-通过id删除", notes="成本模型-通过id删除")
|
|
|
+// //@RequiresPermissions("org.jeecg.modules:kzks_cost_model:delete")
|
|
|
+// @DeleteMapping(value = "/delete")
|
|
|
+// public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
|
+// costModelListService.removeById(id);
|
|
|
+// return Result.OK("删除成功!");
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 批量删除
|