This commit is contained in:
dute7liang
2024-01-19 21:07:46 +08:00
parent 890304a88e
commit e280d631d6
6 changed files with 62 additions and 9 deletions

View File

@@ -57,8 +57,7 @@ public class AccountChangeLogController extends BaseController {
@SaCheckPermission("cai:accountChangeLog:list")
@GetMapping("/list")
public TableDataInfo<AccountChangeLog> list(AccountChangeLog bo, PageQuery pageQuery) {
Page<AccountChangeLog> page = accountChangeLogService.page(pageQuery.build(),
Wrappers.lambdaQuery(bo).orderByDesc(AccountChangeLog::getCreateTime));
Page<AccountChangeLog> page = accountChangeLogService.pageAdmin(pageQuery, bo);
return TableDataInfo.build(page);
}

View File

@@ -83,9 +83,10 @@ public class ConsumeLogController extends BaseController {
@SaCheckPermission("cai:consumeLog:edit")
@Log(title = "消费记录", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
public R<Void> edit(@Validated(EditGroup.class) @RequestBody ConsumeLog bo) {
return toAjax(consumeLogService.updateById(bo));
@GetMapping("/consumer")
public R<Void> consumer(Long id) {
consumeLogService.dealFenxiao(id,false);
return R.ok();
}
/**