Logo

GitLab

Sign in

朱子纯 / test

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Snippets
  • Commits 90
  • Compare
  • Branches 4
  • Tags 0
Create Merge Request
  • test
  • scripts
30 Apr, 2026
5 commits
  • chore(scripts): add seed-dev-data.sh for realistic dev/test fixtures ...
    2f4874be
    Idempotent (INSERT IGNORE on unique keys) script that populates:
    - tStaff: 20 print-industry employees with realistic Chinese names,
      staff numbers (S0001..S0020), and varied departments
    - tUser: admin + 18 business users, all BCrypt(666666), linked to
      staff rows; mix of 超级管理员 / 普通用户, languages zh/en/zh-TW,
      with one bDeleted=1 to demo the 作废 column
    - tPermissionCategory: 30 groups matching prototype's permission grid
    - tUserPermission: department-correlated permission grants
      (e.g. 财务部 users get PERM_FINANCE + PERM_VIEW_ORDER_PRICE)
    - tModule: 5 KPI flow trees (估价/订单/拼版/送货/采购) + 系统设置,
      ~30 nodes with proper parent/child relationships
    
    Final SELECT prints row counts for verification.
    zichun authored
    2026-04-30 19:11:49 +0800  
    Browse Code »
  • fix(scripts): load .env.local in seed-dev-admin so it targets correct DB ...
    c0e2fcae
    Previously the script used hardcoded defaults (127.0.0.1:3306 / xly_erp)
    and ignored the user's remote test DB. Now sources .env.local like
    setup-test-db.sh does. Documents the prereq that Spring Boot must have
    started at least once (Flyway applies V1) before seeding.
    zichun authored
    2026-04-30 17:55:05 +0800  
    Browse Code »
  • chore(backend): add CORS config and dev admin seed script ...
    3a50cebe
    Enables the new frontend/ Vite app (localhost:5173) to call the backend
    across origins. Adds OPTIONS preflight permitAll. Seed script provisions
    an admin user (sUserName=admin / password=666666) for first-run login.
    zichun authored
    2026-04-30 17:53:21 +0800  
    Browse Dir »
  • chore(infra): source .env.local in scripts/test.sh for pre-push hook
    583dd1d5
    zichun authored
    2026-04-30 09:19:15 +0800  
    Browse Code »
  • chore(infra): make scripts/test.sh runnable on macOS without preset PATH ...
    3626c1c0
    - setup-test-db.sh: prepend Homebrew mysql-client bin paths if present
    - test.sh: skip frontend build/lint/test segments when frontend/ absent
    zichun authored
    2026-04-30 09:15:39 +0800  
    Browse Code »

29 Apr, 2026
1 commit
  • chore: plan phase A0~A5 done
    9bb41b2b
    zichun authored
    2026-04-29 11:10:07 +0800  
    Browse Code »