# Supplier Service
ERP供应商管理服务 - 包含供应商信息管理、联系人管理、银行账户管理、评级管理、采购询价管理

## 基本信息
- **服务端口**: 8086
- **服务名称**: supplier-service
- **模块分支**: 业务域/功能模块
- **数据库**: erp_db

## 功能清单
1. 供应商管理
2. 供应商档案

## API接口
| 方法 | 路径 | 描述 |
|------|------|------|
| GET | /api/suppliers/{id} | SupplierController接口 |
| GET | /api/suppliers/{supplierId}/contacts | SupplierController接口 |
| GET | /api/suppliers/{supplierId}/bank-accounts | SupplierController接口 |
| GET | /api/suppliers/ratings | SupplierController接口 |
| GET | /api/suppliers/ratings/{id} | SupplierController接口 |
| GET | /api/suppliers/{supplierId}/ratings/latest | SupplierController接口 |
| GET | /api/suppliers/inquiries | SupplierController接口 |
| GET | /api/suppliers/inquiries/{id} | SupplierController接口 |
| GET | /api/suppliers/statistics | SupplierController接口 |
| GET | /api/suppliers/options/status | SupplierController接口 |
| GET | /api/suppliers/options/grade | SupplierController接口 |
| GET | /api/suppliers/options/type | SupplierController接口 |
| POST | /api/suppliers/{id}/audit | SupplierController接口 |
| POST | /api/suppliers/{supplierId}/contacts | SupplierController接口 |
| POST | /api/suppliers/{supplierId}/bank-accounts | SupplierController接口 |
| POST | /api/suppliers/ratings | SupplierController接口 |
| POST | /api/suppliers/inquiries | SupplierController接口 |
| POST | /api/suppliers/inquiries/{id}/send | SupplierController接口 |
| POST | /api/suppliers/inquiries/{id}/reply | SupplierController接口 |
| POST | /api/suppliers/inquiries/{id}/confirm | SupplierController接口 |
| POST | /api/suppliers/inquiries/{id}/cancel | SupplierController接口 |
| PUT | /api/suppliers/{id} | SupplierController接口 |
| PUT | /api/suppliers/{supplierId}/contacts/{contactId} | SupplierController接口 |
| PUT | /api/suppliers/{supplierId}/bank-accounts/{accountId} | SupplierController接口 |
| PUT | /api/suppliers/{supplierId}/bank-accounts/{accountId}/default | SupplierController接口 |
| PUT | /api/suppliers/inquiries/{id} | SupplierController接口 |
| DELETE | /api/suppliers/{id} | SupplierController接口 |
| DELETE | /api/suppliers/{supplierId}/contacts/{contactId} | SupplierController接口 |
| DELETE | /api/suppliers/{supplierId}/bank-accounts/{accountId} | SupplierController接口 |

## 数据库表
| 表名 | 说明 |
|------|------|
| supplier_contacts | SupplierContact |
| supplier_operation_logs | SupplierOperationLog |
| supplier_ratings | SupplierRating |
| supplier_bank_accounts | SupplierBankAccount |
| procurement_inquiries | ProcurementInquiry |
| suppliers | Supplier |

## 配置文件
- application.yml: 应用配置

## 启动方式
```bash
mvn clean package
java -jar target/supplier-service.jar
```
