|
@@ -49,7 +49,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
public class CmmsSpotcheckContentItemController extends JeecgController<CmmsSpotcheckContentItem, ICmmsSpotcheckContentItemService> {
|
|
|
@Autowired
|
|
|
private ICmmsSpotcheckContentItemService cmmsSpotcheckContentItemService;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
*
|
|
@@ -71,7 +71,7 @@ public class CmmsSpotcheckContentItemController extends JeecgController<CmmsSpot
|
|
|
IPage<CmmsSpotcheckContentItem> pageList = cmmsSpotcheckContentItemService.page(page, queryWrapper);
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 添加
|
|
|
*
|
|
@@ -80,13 +80,13 @@ public class CmmsSpotcheckContentItemController extends JeecgController<CmmsSpot
|
|
|
*/
|
|
|
@AutoLog(value = "点检内容-点检项-添加")
|
|
|
@ApiOperation(value="点检内容-点检项-添加", notes="点检内容-点检项-添加")
|
|
|
- //@RequiresPermissions("org.jeecg.modules:ems_cmms_spotcheck_content_item:add")
|
|
|
+ //@RequiresPermissions("org.jeecg.modules:cmms_spotcheck_content_item:add")
|
|
|
@PostMapping(value = "/add")
|
|
|
public Result<String> add(@RequestBody CmmsSpotcheckContentItem cmmsSpotcheckContentItem) {
|
|
|
cmmsSpotcheckContentItemService.save(cmmsSpotcheckContentItem);
|
|
|
return Result.OK("添加成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 编辑
|
|
|
*
|
|
@@ -95,13 +95,13 @@ public class CmmsSpotcheckContentItemController extends JeecgController<CmmsSpot
|
|
|
*/
|
|
|
@AutoLog(value = "点检内容-点检项-编辑")
|
|
|
@ApiOperation(value="点检内容-点检项-编辑", notes="点检内容-点检项-编辑")
|
|
|
- //@RequiresPermissions("org.jeecg.modules:ems_cmms_spotcheck_content_item:edit")
|
|
|
+ //@RequiresPermissions("org.jeecg.modules:cmms_spotcheck_content_item:edit")
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
|
|
public Result<String> edit(@RequestBody CmmsSpotcheckContentItem cmmsSpotcheckContentItem) {
|
|
|
cmmsSpotcheckContentItemService.updateById(cmmsSpotcheckContentItem);
|
|
|
return Result.OK("编辑成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id删除
|
|
|
*
|
|
@@ -110,13 +110,13 @@ public class CmmsSpotcheckContentItemController extends JeecgController<CmmsSpot
|
|
|
*/
|
|
|
@AutoLog(value = "点检内容-点检项-通过id删除")
|
|
|
@ApiOperation(value="点检内容-点检项-通过id删除", notes="点检内容-点检项-通过id删除")
|
|
|
- //@RequiresPermissions("org.jeecg.modules:ems_cmms_spotcheck_content_item:delete")
|
|
|
+ //@RequiresPermissions("org.jeecg.modules:cmms_spotcheck_content_item:delete")
|
|
|
@DeleteMapping(value = "/delete")
|
|
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
|
cmmsSpotcheckContentItemService.removeById(id);
|
|
|
return Result.OK("删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 批量删除
|
|
|
*
|
|
@@ -125,13 +125,13 @@ public class CmmsSpotcheckContentItemController extends JeecgController<CmmsSpot
|
|
|
*/
|
|
|
@AutoLog(value = "点检内容-点检项-批量删除")
|
|
|
@ApiOperation(value="点检内容-点检项-批量删除", notes="点检内容-点检项-批量删除")
|
|
|
- //@RequiresPermissions("org.jeecg.modules:ems_cmms_spotcheck_content_item:deleteBatch")
|
|
|
+ //@RequiresPermissions("org.jeecg.modules:cmms_spotcheck_content_item:deleteBatch")
|
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
|
this.cmmsSpotcheckContentItemService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
return Result.OK("批量删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id查询
|
|
|
*
|
|
@@ -155,7 +155,7 @@ public class CmmsSpotcheckContentItemController extends JeecgController<CmmsSpot
|
|
|
* @param request
|
|
|
* @param cmmsSpotcheckContentItem
|
|
|
*/
|
|
|
- //@RequiresPermissions("org.jeecg.modules:ems_cmms_spotcheck_content_item:exportXls")
|
|
|
+ //@RequiresPermissions("org.jeecg.modules:cmms_spotcheck_content_item:exportXls")
|
|
|
@RequestMapping(value = "/exportXls")
|
|
|
public ModelAndView exportXls(HttpServletRequest request, CmmsSpotcheckContentItem cmmsSpotcheckContentItem) {
|
|
|
return super.exportXls(request, cmmsSpotcheckContentItem, CmmsSpotcheckContentItem.class, "点检内容-点检项");
|
|
@@ -168,7 +168,7 @@ public class CmmsSpotcheckContentItemController extends JeecgController<CmmsSpot
|
|
|
* @param response
|
|
|
* @return
|
|
|
*/
|
|
|
- //@RequiresPermissions("ems_cmms_spotcheck_content_item:importExcel")
|
|
|
+ //@RequiresPermissions("cmms_spotcheck_content_item:importExcel")
|
|
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
|
return super.importExcel(request, response, CmmsSpotcheckContentItem.class);
|