irving
6153e6e4f1
fix: 创建提现时不再校验收款码确认时效
Build and Push Backend / docker (push) Failing after 4s
2025-10-18 21:05:22 -04:00
irving
d681635394
adjust logic, avoide race condition
2025-10-18 21:05:22 -04:00
irving
b9779e7436
feat: 店员收益明细支持条件筛选并返回订单信息
2025-10-18 21:05:22 -04:00
huchuansai
07a86fbe66
fix: 用æ店员头像bug
2025-10-16 16:56:44 +08:00
irving
0725c94bbe
修复:防止提现创建中的竞态条件和重复收益
...
Build and Push Backend / docker (push) Failing after 6s
- 在 earnings_line 表添加唯一约束 (tenant_id, order_id, clerk_id, earning_type, deleted)
- 重排提现创建流程:先预留收益行,成功后才创建提现请求
- 在收益行预留时添加状态验证,检测并发修改
- 使用临时提现ID进行预留,创建请求后替换为真实ID
- 添加唯一约束前先清理重复的收益记录(V10 迁移)
此修复解决了关键的竞态条件问题:并发提现可能创建没有资金支持的孤儿请求记录。
修复后确保快速失败行为 - 如果收益行已被占用,提现请求永远不会被创建。
2025-10-13 22:45:53 -04:00
irving
5438a8e1f0
功能:新增收款码档案和收益补算功能
...
- 新增店员收款码档案管理(上传二维码和确认收款码)
- 提现请求新增收款码快照用于审计追踪
- 新增收益补算服务用于历史订单数据补录
- 新增收益补算日志表用于审计追踪
- 优化收益创建逻辑,根据解冻时间设置正确的初始状态
- 更新提现流程,要求店员确认收款码后才能提现
- 新增数据库迁移脚本 V7-V9
2025-10-13 22:13:51 -04:00
irving
8faa23e9c3
refactor(salary): completely refactor the salary logi
...
Build and Push Backend / docker (push) Failing after 6s
fix: ignore empty clerk performance filters
fix: generate earnings for completed orders
fix: ensure reward orders create earnings
fix: add reward earnings to new order flow
2025-10-11 13:28:30 -04:00
huchuansai
4dbb637fdc
合并代码
2025-10-09 09:39:56 +08:00
huchuansai
51a1ac8070
fix
2025-10-09 09:39:40 +08:00
irving
08c0e2f7b1
test: format CouponWhitelistTest imports to satisfy Spotless
Build and Push Backend / docker (push) Failing after 5s
2025-10-07 00:04:47 -04:00
irving
4591538303
Revert "chore: apply Spotless formatting"
...
This reverts commit 6e829070e7 .
2025-10-07 00:04:27 -04:00
irving
044280bc89
feat(coupon): hide whitelist-only coupons from non-whitelisted users in wx queryAll
2025-10-07 00:00:11 -04:00
irving
6e829070e7
chore: apply Spotless formatting
2025-10-06 23:55:08 -04:00
irving
e6106ecb88
feat(coupon): add enum ClaimConditionType and whitelist support\n\n- Add CouponClaimConditionType enum (ALL/FILTER/WHITELIST)\n- Schema: add custom_whitelist JSON column (Flyway V2)\n- Entity/VO: add customWhitelist; claimConditionType now 0/1/2\n- Service: enforce whitelist when claimConditionType=2\n- Controller: validate whitelist when creating coupon\n- Fix imports per formatting
2025-10-06 23:52:20 -04:00
huchuansai
f64964a39a
fix
Build and Push Backend / docker (push) Failing after 8s
2025-10-05 22:03:32 +08:00
huchuansai
4ee24aabea
fix: 修复bug
2025-10-04 23:59:17 +08:00
irving
e9ab50ea0a
keep fixing CI 5
2025-10-04 00:35:49 -04:00
irving
d64b27e42b
keep fixing CI 4
2025-10-04 00:33:39 -04:00
irving
da8ebfca61
keep fixing CI 3
2025-10-04 00:32:40 -04:00
irving
7e07dfa816
keep fixing CI 2
2025-10-04 00:31:32 -04:00
irving
29aa005b87
keep fixing gitea
2025-10-04 00:28:32 -04:00
irving
a438d62fd9
CI
2025-10-04 00:04:39 -04:00
irving
c034651047
ci: run jon in container with Node + Docker cli
2025-10-04 00:03:01 -04:00
irving
6d19ffc9e8
retry workflow
2025-10-04 00:01:09 -04:00
irving
82ed75a95c
workflow first try...
2025-10-03 23:55:14 -04:00
irving
043483a076
docker push不上去,尝试加入github action在服务器构建
2025-10-03 23:25:48 -04:00
huchuansai
29da6b906b
fix
2025-09-29 17:58:07 +08:00
huchuansai
e6b71cd897
fix
2025-09-28 09:59:47 +08:00
huchuansai
190f77529a
fix
2025-09-27 17:09:26 +08:00
huchuansai
b803e836eb
fix: 去æå已经取消的订单隐藏微信号功能
2025-09-24 11:03:12 +08:00
huchuansai
e777adf6b0
feat: 订单催促
2025-09-24 10:49:50 +08:00
huchuansai
e391058b30
fix: code style
2025-09-18 10:06:21 +08:00
huchuansai
099546b0a7
fix: 解决订单状态问题
2025-09-18 10:05:24 +08:00
huchuansai
4e456a3157
fix: 结算
2025-09-15 14:29:20 +08:00
huchuansai
b4d9a0285b
合并
2025-09-13 14:04:56 +08:00
huchuansai
9e46230b70
fix: bug
2025-09-13 14:02:52 +08:00
irving
ffcb5eae20
feat: 新增docker部署脚本
2025-09-07 17:21:47 -04:00
irving
4bc5b67937
修复部署失败问题
...
- 移除SpringSecurityConfig中重复的corsFilter Bean
- 保留CorsConfig中的全局CORS配置
- 解决因Bean定义冲突导致的应用启动失败问题
2025-09-07 17:13:01 -04:00
irving
de54406d19
修复跨域请求问题
...
- 添加全局CORS配置类CorsConfig.java
- 移除SpringSecurityConfig中的重复CORS配置
- 支持所有域名跨域访问并允许携带凭据
- 解决前端跨域请求被阻止的问题
2025-09-07 17:04:14 -04:00
irving
5a50114b59
Refactor order creation with Builder pattern and type-safe enums
...
- Replace 20+ parameter method calls with Builder pattern in WxCustomController
- Add RewardType and CommodityType enums with database compatibility
- Update DTOs and service layer for enum conversion
- Fix all test cases with proper enum usage
- Ensure backward compatibility through service layer conversion
2025-09-06 23:20:44 -04:00
irving
295400b83e
重构订单创建逻辑:采用Builder模式替代20+参数方法
...
主要改进:
- 新增OrderCreationRequest及相关DTO类,使用Builder模式提升代码可读性
- 引入类型安全的枚举类OrderConstant,替代魔法字符串常量
- 重构PlayOrderInfoServiceImpl,新增基于Builder模式的createOrderInfo方法
- 保留原有方法并标记为@Deprecated,确保向后兼容性
- 完善单元测试覆盖,包含Mockito模拟和边界条件测试
- 优化包结构,将DTO类从vo包迁移到dto包
- 添加JUnit 5和Mockito测试依赖
- 移除实体类过度使用的Lombok注解,改用精简的自定义构造器
- 新增数据库开发工作流程文档
技术栈:
- Spring Boot 2.7.9
- MyBatis-Plus 3.5.3.2
- JUnit 5 + Mockito
- Lombok Builder模式
- 类型安全枚举设计
2025-09-06 22:58:14 -04:00
irving
6194c64b4f
docs: 添加Docker部署说明文档
...
- 添加多架构Docker构建和推送说明
- 详细说明服务器部署流程
- 说明CentOS环境下的docker-compose配置
- 添加日志查看和监控指引
- 完善从本地开发到服务器部署的完整工作流程
2025-09-06 22:00:19 -04:00
irving
ea0490e141
feat: 增强Docker构建系统,支持多架构构建
...
- 为build-docker.sh添加架构特定构建支持 (amd64/arm64)
- 始终使用Docker Buildx确保跨平台构建的一致性
- 添加构建缓存支持,使用.buildx-cache目录
- 更新Dockerfile使用平台感知基础镜像 (FROM --platform=$TARGETPLATFORM)
- 改进push-docker.sh以支持架构特定标签
- 为构建脚本添加帮助选项 (-h)
- 使用更严格的错误处理 (set -euo pipefail)
- 更新.gitignore排除构建缓存
现在支持构建:
- Apple Silicon本地开发 (arm64)
- Linux服务器部署 (amd64)
- 从任意机器进行跨平台构建
2025-09-06 21:57:59 -04:00
irving
b96fdc6427
feat: 增强日志系统和请求追踪功能
...
- 新增CorrelationFilter过滤器,为每个请求生成唯一跟踪ID
- 增强logback配置,支持关联ID、租户信息和用户ID的结构化日志
- 新增RequestLoggingInterceptor,记录详细的HTTP请求响应信息
2025-09-06 20:30:13 -04:00
irving
dd2342a234
优化构建配置和网络连接设置
...
- 移除特定平台的JAVE依赖,改用Maven profiles实现跨平台支持
- 更新开发环境配置使用Tailscale网络地址(100.80.201.143)
- 添加macOS Apple Silicon和Linux x86_64的Maven profiles配置
- 升级JAVE版本到3.5.0并优化依赖管理
- 清理代码格式,移除多余的空行导入
2025-09-06 19:42:41 -04:00
irving
102608b85c
WIP: 重构Docker构建流程和部署脚本
...
- 更新Dockerfile为多阶段构建,提升安全性和构建效率
- 重构docker-compose.yml,添加健康检查和网络配置
- 新增Docker镜像构建和推送脚本
- 修复Maven打包配置,移除不必要的配置项
- 添加.dockerignore文件优化构建上下文
- 删除旧的deploy.sh脚本
- 新增JAR部署和回滚脚本
注意:此为开发中版本,请勿部署到生产环境
2025-09-06 19:35:08 -04:00
huchuansai
b9b67dfe8b
fix: 订æ 订单消息异常
2025-09-04 10:16:28 +08:00
huchuansai
203d17c0f3
feat: 是å¯随å 随机单
2025-09-03 10:40:14 +08:00
huchuansai
d91de22318
fix: 定时任务解决订单未结束的需求
2025-09-01 11:32:30 +08:00
huchuansai
a78ddd0ece
fix: 合并
2025-09-01 10:03:13 +08:00