Repository navigation
feat(B05a, C02m): Toạ độ cơ sở trong database, sửa ở B05, bản đồ đọc từ API - #12
Merged
Merged
Conversation
VectorNguyen
pushed a commit
that referenced
this pull request
Oct 22, 2026
feat(B05a, C02m): Toạ độ cơ sở trong database, sửa ở B05, bản đồ đọc từ API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mục đích
Vị trí ghim trên bản đồ Tìm kho (C02m) đang gõ tay trong
src/config/geo.js, cơ sở mới thêm sẽ bị ghim sai chỗ.PR này lưu toạ độ mỗi cơ sở trong database, cho Vận hành KD sửa ở màn B05, bản đồ đọc toạ độ từ API.
Thay đổi
Backend
facilitiesthêmLatitude,Longitude(decimal(9,6), cùng có hoặc cùng trống) — migrationAddFacilityCoordinates.GET /api/facilitiesvà/api/operations/facilitiestrả thêmlatitude,longitude.POST/PUT /api/operations/facilitiesnhận toạ độ: phải nhập đủ cả hai, nằm trong Việt Nam (vĩ độ 8–24, kinh độ 102–110).FacilityCoordinateSeeder: khi API khởi động, tự điền toạ độ cho 12 cơ sở còn trống (không ghi đè toạ độ đã sửa).Frontend
geo.jschỉ còn là dự phòng. Giao diện C02m không đổi.Dán cặp toạ độ copy từ Google Maps vào một ô sẽ tự tách hai ô.
Tài liệu:
DECISIONS.md(D20),docs/operations-api.md,BE-CONTRACT.md,progress.md. Figma: B05 + B05a.Cách kiểm tra
GET /api/facilities→ mỗi cơ sở cólatitude,longitude.ops01→ Các cơ sở → chọn cơ sở → "Sửa thông tin cơ sở" → đổi toạ độ → Lưu → bản đồ Tìm kho đổi theo.Kiểm chứng:
npm test39/39,npm run test:business9/9,npm run test:renderPASS,npm run buildPASS,dotnet buildPASS.Lưu ý
feature/ops-backendmerge vàomaintrước, cần mergemainvào nhánh này và tạo lại migration nếuAppDbContextModelSnapshot.csbị xung đột.