feat:部门交易记录

This commit is contained in:
dzc committed 2025-01-23 13:12:31 +08:00
1 parent ec5e245fb0
commit 7e1be7ef2f
17 files changed
+350 -32

No files matched your search

@@ -30,6 +30,12 @@ public enum HardOrderStatusEnum {
);
}
public static List<String> getPayErrorCodes() {
return List.of(
HardOrderStatusEnum.REFUND.type
);
}
public static HardOrderStatusEnum valueOfByType(Integer type) {
if (ObjectUtil.isEmpty(type)) return null;
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
@@ -0,0 +1,17 @@
package com.bsd.pjcloud.hard.api.dto.order;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
@Data
public class HardOrderSumAndCountDto {
private List<Long> deptIds;
private List<String> orderStatusCodes;
private LocalDateTime[] createTimeList;
}
@@ -0,0 +1,33 @@
package com.bsd.pjcloud.hard.api.vo.order;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class HardDeptTotalVo {
@Schema(description = "部门id")
private Long deptId;
@Schema(description = "部门名")
private String deptName;
@Schema(description = "充值金额")
private Long walletPrice = 0L;
@Schema(description = "充值次数")
private Long walletCount = 0L;
@Schema(description = "消费金额")
private Long orderPayPrice = 0L;
@Schema(description = "消费次数")
private Long orderPayCount = 0L;
@Schema(description = "退款金额")
private Long orderRefundPrice = 0L;
@Schema(description = "退款次数")
private Long orderRefundCont = 0L;
}
@@ -0,0 +1,18 @@
package com.bsd.pjcloud.hard.api.vo.order;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
public class HardOrderSumAndCountVo {
@Schema(description = "部门id")
private Long deptId;
@Schema(description = "部门操作金额")
private Long sum;
@Schema(description = "部门操作金额数量")
private Long count;
}