irving
56239450d4
Add earnings adjustments, withdrawal reject, and auth guard
2026-01-12 12:46:42 -05:00
irving
6fbc28d6f2
fix: harden apitest seeder and pk schedulers
2026-01-02 01:57:41 -05:00
irving
17a8c358a8
feat(pk): implement PK (Player-Killer) system with lifecycle management
...
- Add PK entity fields: winner, scores, and setting_id
- Implement force start/end API endpoints for clerk PK
- Add PK lifecycle service with auto-start/end scheduling
- Add Redis-based PK state management
- Implement PK detail service with live/history/upcoming queries
- Add WeChat PK controller with history and live PK endpoints
- Add comprehensive PK integration tests
- Create PK setting management with tenant-specific configs
- Add database migrations for PK scores, winner, settings, and menu
- Add PK-related DTOs and enums (status, menu paths)
- Add TenantScope utility for tenant context management
2026-01-02 01:34:03 -05:00
irving
a7e567e9b4
working but not tested
2026-01-01 00:41:55 -05:00
irving
90849e5267
test: stabilize random order cancellation cases
Build and Push Backend / docker (push) Failing after 12s
2025-12-31 23:12:51 -05:00
irving
ec5c1782c6
fix: allow manager cancellation of random orders
2025-12-31 23:02:43 -05:00
irving
911a974e51
feat: implement order relation type tracking
...
- Add OrderRelationType enum (UNASSIGNED, LEGACY, FIRST, CONTINUED, NEUTRAL)
- Create play_clerk_customer_relation table to track first-completed history
- Add order_relation_type column to play_order_info
- Migrate existing orders to set relation types based on completion history
- Update order services to determine relation type on creation
- Update order VOs and controllers to expose relation type in API responses
- Update clerk performance calculations to account for relation types
- Update revenue calculations to distinguish between first and continued orders
- Add comprehensive API and unit tests for order relation functionality
2025-12-31 22:06:05 -05:00
irving
f39b560a05
fix: mask random order details for non-owner clerks
2025-12-28 19:31:56 -05:00
irving
c29f76c2fc
fix: random order clerk visibility rules
Build and Push Backend / docker (push) Failing after 12s
2025-12-25 12:58:31 -05:00
irving
f300723fc0
fix: anonymize clerk random order views
2025-12-24 16:20:37 -05:00
irving
036e8156d5
fix: allow legacy clerk album entries
Build and Push Backend / docker (push) Failing after 5s
2025-12-05 23:31:46 -05:00
irving
132ac8796c
add test
Build and Push Backend / docker (push) Failing after 13s
2025-12-05 22:39:03 -05:00
irving
21bbd0386d
feat(media): refine clerk album review and tests
2025-12-05 22:16:01 -05:00
irving
e683ef6863
test(media): legacy album compatibility for user list and detail
2025-12-04 23:12:50 -05:00
irving
086aa47226
feat(media): clerk profile media flow
2025-12-04 22:27:03 -05:00
irving
8558d203af
wip: media migration progress
2025-11-16 11:33:58 -05:00
irving
69909a3b83
test: 依線上優先規則調整排序驗證
Build and Push Backend / docker (push) Failing after 6s
2025-11-14 19:37:14 -05:00
irving
d7754a66af
test: 明確驗證全組合排序
2025-11-14 19:31:53 -05:00
irving
dbf1832f75
test: 覆蓋大規模店員排序情境
2025-11-14 10:35:23 -05:00
irving
e10b7bd3be
feat: 線上優先排序並更新測試
2025-11-14 10:31:16 -05:00
irving
25554bac84
test: 修復店員排序測試與收益扣回即時解鎖
2025-11-14 01:25:06 -05:00
irving
cec5e965f6
feat: 完成撤销收益扣回與限額改動
2025-11-14 00:58:12 -05:00
irving
cc76710858
feat: guard revocation for normal orders
Build and Push Backend / docker (push) Failing after 5s
2025-11-13 15:46:09 -05:00
irving
b51aac0cfa
fix test
2025-11-13 14:58:05 -05:00
irving
ee0fc4d1f6
feat: unify admin order keyword search
2025-11-13 14:58:05 -05:00
irving
49867a30dd
fix: stabilize order api tests
Build and Push Backend / docker (push) Failing after 5s
2025-11-11 22:22:48 -05:00
irving
51c4a5438d
feat: improve wechat order query coverage
2025-11-11 20:48:20 -05:00
irving
e616dd6a13
WIP
2025-11-10 23:42:00 -05:00
irving
ed0edf584a
Merge branch 'feat/performance-filtering'
2025-11-10 22:39:31 -05:00
irving
b9250566fb
test: cover clerk performance date ranges
2025-11-10 22:33:27 -05:00
irving
7b6943d391
fix: allow editing blind box pools referencing inactive gifts
Build and Push Backend / docker (push) Failing after 7s
2025-11-10 21:59:59 -05:00
irving
4fdcf6ddbd
fix test
Build and Push Backend / docker (push) Failing after 6s
2025-11-08 20:31:30 -05:00
irving
7d07e32271
feat: enrich withdrawal audit info
2025-11-08 20:09:07 -05:00
irving
438aef7af7
fix: ignore null level prices when updating commodity
2025-11-08 20:06:15 -05:00
irving
eaee5f5aa6
Merge branch 'feat/earnling-line-status'
Build and Push Backend / docker (push) Failing after 5s
2025-11-07 23:42:43 -05:00
irving
51ec9dd85b
完善后台订单筛选及接口测试
2025-11-07 23:42:15 -05:00
irving
9868fb1bb9
feat: 新增提现审计接口与保障用例
2025-11-07 23:41:39 -05:00
irving
d7d7c64c01
fix: exclude cancelled orders from performance stats
Build and Push Backend / docker (push) Failing after 4s
2025-11-07 00:29:58 -05:00
irving
a8cdb27e8e
新增店员等级排序功能
...
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
da2902c61c
重构:优化订单通知消息标签,支持动态显示订单类型
...
- 新增 OrderMessageLabelResolver 用于解析订单场景标签
- 修改微信公众号下单通知,根据下单类型(随机单/指定单/打赏/礼物)显示对应标签
- 更新 WxCustomMpService 接口,传递 placeType 和 rewardType 参数
- 完善相关单元测试和 Mock 配置
2025-11-03 22:51:48 -05:00
irving
83112b406a
修复订单下单错误和余额扣款校验问题
Build and Push Backend / docker (push) Failing after 5s
2025-11-03 10:02:03 -05:00
irving
c463179e83
fix(order): 前置余额扣减并统一金额精度处理,补充余额校验与单测
...
- 抽取 validateSufficientBalance,统一使用 normalizeMoney 校验与比较,提升健壮性\n- AbstractOrderPlacementStrategy:在创建订单前根据 shouldDeduct 进行余额校验与扣减,使用上下文 orderId 记录流水,避免不一致\n- deductCustomerBalance:使用 amountToDeduct 变量并先归一化后运算,修正可能的精度问题\n- 调整/补充测试用例:扣减失败不插入订单、不保存用户信息;更新 selectById 调用次数校验
2025-11-02 16:03:59 -05:00
irving
79b516d81c
test: 添加微信端优惠券、订单评价、订单管理和提现的API测试
...
Build and Push Backend / docker (push) Failing after 5s
新增四个API集成测试类:
- WxCouponControllerApiTest: 测试优惠券领取、查询、使用限制和白名单逻辑
- WxCustomOrderEvaluationApiTest: 测试订单评价创建和查询功能
- WxOrderInfoControllerApiTest: 测试随机订单接单、续单申请和隐私字段处理
- WxWithdrawControllerApiTest: 测试收益余额查询、提现申请和收益明细过滤
提高微信端核心业务流程的测试覆盖率
2025-11-02 10:32:16 -05:00
irving
d01c8a4c6a
feat(wechat): 抽象通知发送器并完善自定义下单相关接口测试
2025-11-01 23:55:51 -04:00
irving
9f83103189
feat(order): 完善订单生命周期与投诉处理;补充单元测试
2025-11-01 23:55:47 -04:00
irving
60b4b0bd49
feat(shop): 优化商品与优惠券逻辑;修复礼品相关映射;补充接口测试
2025-11-01 23:55:41 -04:00
irving
c7684e3199
Merge branch 'api-test-1'
...
Build and Push Backend / docker (push) Failing after 5s
API test first run
2025-11-01 15:18:03 -04:00
irving
04b9960e35
API-test-in-progress
2025-11-01 15:16:45 -04:00
irving
b1fd515fb3
feat(order): 新增管理端完成订单能力(店员端触发)
...
Build and Push Backend / docker (push) Failing after 6s
- OrderConstant 新增角色 GROUP_LEADER、触发源 WX_CLERK_MGMT;补充映射
- IPlayOrderInfoService 新增 completeOrderByManagement 方法
- PlayOrderInfoServiceImpl:校验权限(仅运营/组长,组长仅限本组);ACCEPTED 自动切换为 IN_PROGRESS 后完成;抽取 completeOrderInternal;完善 GROUP_LEADER 的 Actor/Source 映射
- WxClerkController 新增 POST /wx/clerk/order/complete 接口,支持备注参数
- 新增请求体 PlayOrderCompleteVo
- 新增单测 PlayOrderInfoServiceImplTest 覆盖核心流程与边界
2025-11-01 15:07:59 -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