|
|
@@ -24,7 +24,7 @@ import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
|
/**
|
|
|
* 消费明细
|
|
|
- * 前端访问路由地址为:/consumption/xfConsumedetail
|
|
|
+ * 前端访问路由地址为:/consumption/xfConsumeDetail
|
|
|
*
|
|
|
* @author LionLi
|
|
|
* @date 2024-08-15
|
|
|
@@ -32,28 +32,28 @@ import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
@Validated
|
|
|
@RequiredArgsConstructor
|
|
|
@RestController
|
|
|
-@RequestMapping("/consumption/xfConsumedetail")
|
|
|
+@RequestMapping("/consumption/xfConsumeDetail")
|
|
|
public class XfConsumeDetailController extends BaseController {
|
|
|
|
|
|
- private final IXfConsumeDetailService xfConsumedetailService;
|
|
|
+ private final IXfConsumeDetailService xfConsumeDetailService;
|
|
|
|
|
|
/**
|
|
|
* 查询消费明细列表
|
|
|
*/
|
|
|
- @SaCheckPermission("consumption:xfConsumedetail:list")
|
|
|
+ @SaCheckPermission("consumption:xfConsumeDetail:list")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo<XfConsumeDetailVo> list(XfConsumeDetailBo bo, PageQuery pageQuery) {
|
|
|
- return xfConsumedetailService.queryPageList(bo, pageQuery);
|
|
|
+ return xfConsumeDetailService.queryPageList(bo, pageQuery);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 导出消费明细列表
|
|
|
*/
|
|
|
- @SaCheckPermission("consumption:xfConsumedetail:export")
|
|
|
+ @SaCheckPermission("consumption:xfConsumeDetail:export")
|
|
|
@Log(title = "消费明细", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
public void export(XfConsumeDetailBo bo, HttpServletResponse response) {
|
|
|
- List<XfConsumeDetailVo> list = xfConsumedetailService.queryList(bo);
|
|
|
+ List<XfConsumeDetailVo> list = xfConsumeDetailService.queryList(bo);
|
|
|
ExcelUtil.exportExcel(list, "消费明细", XfConsumeDetailVo.class, response);
|
|
|
}
|
|
|
|
|
|
@@ -62,33 +62,33 @@ public class XfConsumeDetailController extends BaseController {
|
|
|
*
|
|
|
* @param consumeId 主键
|
|
|
*/
|
|
|
- @SaCheckPermission("consumption:xfConsumedetail:query")
|
|
|
+ @SaCheckPermission("consumption:xfConsumeDetail:query")
|
|
|
@GetMapping("/{consumeId}")
|
|
|
public R<XfConsumeDetailVo> getInfo(@NotNull(message = "主键不能为空")
|
|
|
@PathVariable String consumeId) {
|
|
|
- return R.ok(xfConsumedetailService.queryById(consumeId));
|
|
|
+ return R.ok(xfConsumeDetailService.queryById(consumeId));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 新增消费明细
|
|
|
*/
|
|
|
- @SaCheckPermission("consumption:xfConsumedetail:add")
|
|
|
+ @SaCheckPermission("consumption:xfConsumeDetail:add")
|
|
|
@Log(title = "消费明细", businessType = BusinessType.INSERT)
|
|
|
@RepeatSubmit()
|
|
|
@PostMapping()
|
|
|
public R<Void> add(@Validated(AddGroup.class) @RequestBody XfConsumeDetailBo bo) {
|
|
|
- return toAjax(xfConsumedetailService.insertByBo(bo));
|
|
|
+ return toAjax(xfConsumeDetailService.insertByBo(bo));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 修改消费明细
|
|
|
*/
|
|
|
- @SaCheckPermission("consumption:xfConsumedetail:edit")
|
|
|
+ @SaCheckPermission("consumption:xfConsumeDetail:edit")
|
|
|
@Log(title = "消费明细", businessType = BusinessType.UPDATE)
|
|
|
@RepeatSubmit()
|
|
|
@PutMapping()
|
|
|
public R<Void> edit(@Validated(EditGroup.class) @RequestBody XfConsumeDetailBo bo) {
|
|
|
- return toAjax(xfConsumedetailService.updateByBo(bo));
|
|
|
+ return toAjax(xfConsumeDetailService.updateByBo(bo));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -96,11 +96,11 @@ public class XfConsumeDetailController extends BaseController {
|
|
|
*
|
|
|
* @param consumeIds 主键串
|
|
|
*/
|
|
|
- @SaCheckPermission("consumption:xfConsumedetail:remove")
|
|
|
+ @SaCheckPermission("consumption:xfConsumeDetail:remove")
|
|
|
@Log(title = "消费明细", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{consumeIds}")
|
|
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
|
|
@PathVariable String[] consumeIds) {
|
|
|
- return toAjax(xfConsumedetailService.deleteWithValidByIds(List.of(consumeIds), true));
|
|
|
+ return toAjax(xfConsumeDetailService.deleteWithValidByIds(List.of(consumeIds), true));
|
|
|
}
|
|
|
}
|