Commit Graph

47 Commits

Author SHA1 Message Date
irving
d6402d60b2 chore: update V14 migration and add application-local-staging.yml
Some checks failed
Build and Push Backend / docker (push) Failing after 5s
- Updated play-admin migration: V14__add_clerk_level_order_number.sql
- Added play-admin/src/main/resources/application-local-staging.yml
2025-11-05 23:12:58 -05:00
irving
0b7e86cfa3 chore: commit all changes (2025-11-04) 2025-11-04 22:00:31 -05:00
irving
a8cdb27e8e 新增店员等级排序功能
Some checks failed
Build and Push Backend / docker (push) Failing after 6s
- 添加数据库迁移脚本,为 play_clerk_level_info 表新增 order_number 字段
- 更新测试数据种子,设置默认等级的排序号
- 新增店员用户API测试,验证按等级排序号和在线状态的排序逻辑
2025-11-04 21:20:42 -05:00
irving
2a820f113d chore(config): 更新 apitest 环境配置 2025-11-01 23:55:16 -04:00
irving
f3480b6ba0 feat(apitest): 新增 API 测试环境与安全配置
- 新增 apitest 专用 MySQL 配置与 Docker 编排(docker/apitest-mysql.yml、docker/apitest-mysql/)

- 增加 ApiTestSecurityConfig / ApiTestSecurityProperties 与 ApiTestAuthenticationFilter

- 新增 application-apitest.yml 与相关测试目录(play-admin/src/test/java/com/starry/admin/api/)

- 调整根 pom 与 play-admin/pom 依赖,优化 SpringSecurityConfig 以兼容 apitest
2025-11-01 10:33:54 -04:00
irving
422e781c60 feat: 实现盲盒功能模块
新增功能:
- 盲盒配置管理:支持盲盒的创建、编辑、上下架
- 盲盒奖池管理:支持奖池配置、Excel导入、权重抽奖、库存管理
- 盲盒购买流程:客户购买盲盒并抽取奖励
- 奖励兑现流程:客户可将盲盒奖励兑现为实际礼物订单
- 店员提成:奖励兑现时自动增加店员礼物提成

核心实现:
- BlindBoxService: 抽奖核心逻辑,支持权重算法和库存扣减
- BlindBoxDispatchService: 奖励兑现订单创建
- BlindBoxInventoryService: 奖池库存管理
- BlindBoxPoolAdminService: 奖池配置管理,支持批量导入

API接口:
- /play/blind-box/config: 盲盒配置CRUD
- /play/blind-box/pool: 奖池配置管理和导入
- /wx/blind-box: 客户端盲盒购买和奖励查询

数据库变更:
- blind_box_config: 盲盒配置表
- blind_box_pool: 盲盒奖池表
- blind_box_reward: 盲盒奖励记录表
- play_order_info: 新增 payment_source 和 source_reward_id 字段

其他改进:
- 订单模块支持盲盒支付来源,区分余额扣款和奖励抵扣
- 优惠券校验:盲盒相关订单不支持使用优惠券
- 完善单元测试覆盖
2025-10-31 02:46:51 -04:00
irving
7db9318a7b feat: 完善订单生命周期幂等与日志追踪 2025-10-28 23:24:33 -04:00
irving
8691a56f8a adjust logging, avoid add too much raw sql logging 2025-10-27 21:51:28 -04:00
irving
38bc83d0f7 fix: 调整充值限额并规范日志目录 2025-10-26 14:55:13 -04:00
irving
0356834b88 feat(gift): 修复赠礼事务并补充租户隔离
Some checks failed
Build and Push Backend / docker (push) Failing after 6s
2025-10-26 01:30:02 -04:00
irving
0725c94bbe 修复:防止提现创建中的竞态条件和重复收益
Some checks failed
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
Some checks failed
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
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
4ee24aabea fix: 修复bug 2025-10-04 23:59:17 +08: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
197ca509c5 TODO 2025-08-29 09:58:52 -04:00
irving
f4c412be9d 增强日志配置:启用DEBUG级别详细日志记录
- 配置logback-spring.xml启用所有com.starry包的DEBUG日志
- 新增Spring框架请求处理和安全相关的DEBUG日志
- 启用MyBatis Plus和数据库SQL查询的详细日志
- 更新application-dev.yml添加各模块的DEBUG级别配置
- 改善问题排查和系统监控能力

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-28 22:44:06 -04:00
huchuansai
725d14c125 feat: 店铺装修 2025-06-11 16:09:23 +08:00
Irving
0bee71eaa7 review fix 2025-04-26 21:50:21 -04:00
Irving
9d8293f327 feat: introduce flyway 2025-04-26 21:16:31 -04:00
hucs
b14d937b49 fix 2025-01-06 11:21:16 +08:00
admin
438d6755f5 优化代码 2024-09-05 17:29:30 +08:00
admin
fc59148185 代码优化 2024-08-22 20:48:51 +08:00
admin
9ae9963ea4 离线定位fix 2024-07-25 15:52:01 +08:00
hucs
5aa8cda06e fix 2024-07-02 09:59:10 +08:00
hucs
f689fc6bc9 fix 2024-06-24 16:09:55 +08:00
hucs
12422d8c06 fix 2024-06-14 16:32:23 +08:00
hucs
b5ba08a359 fix 2024-06-14 14:13:48 +08:00
hucs
280f2485f6 fix 2024-06-13 18:23:41 +08:00
admin
8bbd74c5f1 排行fix 2024-06-13 10:06:10 +08:00
hucs
3b0b1a4d33 fix 2024-06-05 17:21:44 +08:00
admin
80102a56fc 最新代码 2024-06-05 15:54:18 +08:00
admin
5838b2df35 订单 2024-05-08 21:21:29 +08:00
admin
2919029b81 最新代码 2024-05-06 10:20:46 +08:00
admin
993f975edd 最新代码 2024-04-19 17:20:40 +08:00
starrySky
e4032a0183 1、不同模块登录之后,租户ID的处理,2、新增绑定短信接口 2024-04-10 17:02:54 +08:00
starrySky
e8b6c8e0aa 微信网页登录 2024-04-09 10:17:49 +08:00
hucs
b2f6921ef1 chore: 发布脚本 2024-04-01 15:36:27 +08:00
starrySky
c7f81acbe5 店员管理/店员等级/账户管理 2024-03-31 13:52:29 +08:00
hucs
534e6d93fb feat: 公众号开发 2024-03-27 23:01:53 +08:00
starrySky
a0e377c42f 新增陪玩管理 2024-03-24 01:54:03 +08:00
starrySky
92d239286e 切换OSS为阿里云OSS,文件上传成功,文件访问还有问题 2024-03-23 23:11:48 +08:00
hucs
649e1ee2e5 fix: code & vm 2024-03-22 16:46:41 +08:00
starrySky
994f32a342 新增订单模块 2024-03-22 15:55:17 +08:00
starrySky
989f0210f2 first commit 2024-03-20 09:28:04 +08:00