交班相关代码

This commit is contained in:
Tankaikai
2025-02-27 19:01:31 +08:00
parent 166634e3f0
commit 8cbfbe265f
22 changed files with 888 additions and 17 deletions

View File

@@ -0,0 +1,37 @@
package com.czg.controller.admin;
import com.czg.account.service.HandoverRecordService;
import com.czg.account.vo.HandoverTotalVo;
import com.czg.log.annotation.OperationLog;
import com.czg.resp.CzgResult;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 交班
*
* @author Tankaikai tankaikai@aliyun.com
* @since 1.0 2025-02-27
*/
@AllArgsConstructor
@RestController
@RequestMapping("/admin/handover-record")
public class HandoverRecordController {
private final HandoverRecordService handoverRecordService;
/**
* 收银机-交班数据统计
*/
@GetMapping("total")
@OperationLog("收银机-交班数据统计")
//@SaAdminCheckPermission("handoverRecord:total")
public CzgResult<HandoverTotalVo> total() {
HandoverTotalVo data = handoverRecordService.totalHandoverData();
return CzgResult.success(data);
}
}