kkfluous
7792c5157f
feat(energy): 新增 cooperation_type 和 auto_match 字段,标记旧导入接口废弃
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-16 00:37:09 +08:00
kkfluous
57ecce2649
chore(sql): add full-chain setup script for tables and menus
...
Creates 5 tables in oneos_asset:
- asset_inspection_template, asset_inspection_template_item
- asset_inspection_record, asset_inspection_record_item
- asset_vehicle_replacement
Inserts 12 menu entries in oneos_system (5161-5174):
- 验车模板 page + 6 permission buttons (template CRUD + record query/update)
- 替换车管理 page + 4 permission buttons (CRUD)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-13 10:46:08 +08:00
kkfluous
04f0599efa
feat(asset): enhance return order with inspection, BPM approval, and event-driven cross-module linkage
...
- Add sourceType/sourceId/deliveryOrderId to return order table and DO
- Add inspectionRecordId to return order vehicle table and DO
- Add createFromDelivery/createFromReplacement methods to auto-create return orders
- Add startVehicleInspection/completeVehicleInspection for per-vehicle inspection flow
- Add submitApproval/withdrawApproval/updateApprovalStatus for BPM workflow
- Create ReturnApprovedEvent and ReturnOrderBpmListener
- Create DeliveryCompletedEvent for future vehicle status tracking
- Create VehicleStatusEventListener (TODO stubs for vehicle status updates)
- Create ReturnOrderEventListener to auto-create return order on permanent replacement approval
- Add BPM process definitions for replacement (with GM escalation) and return order approval
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-13 10:20:25 +08:00
kkfluous
b93ea71174
feat(asset): add vehicle replacement module with BPM approval workflow
...
Implement complete replacement vehicle management (替换车) supporting
temporary and permanent vehicle replacements under rental contracts,
with BPM-based approval flow, event-driven architecture, and CRUD APIs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-13 10:11:50 +08:00
kkfluous
46485289a2
feat(asset): integrate inspection records with prepare and delivery order
...
- Add inspection_record_id column to asset_vehicle_prepare and asset_delivery_order tables
- Add inspectionRecordId field to VehiclePrepareDO, DeliveryOrderDO, and their RespVOs
- Auto-create inspection record from matched template when creating a prepare record
- Auto-complete inspection record when completing a prepare record
- Clone prepare inspection record to delivery order on delivery order creation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-13 10:06:55 +08:00
kkfluous
1dca703caa
feat(asset): add inspection template and record system for vehicle checks
...
Implement the shared inspection template system backend (Chunk 1) including:
- 4 database tables: template, template_item, record, record_item
- 3 enums: InspectionSourceType, InspectionStatus, InspectionResult
- 4 DO classes, 4 Mapper classes with query methods
- 6 VO classes for request/response
- MapStruct converter for DO/VO conversions
- Template service: CRUD, match by bizType+vehicleType
- Record service: create from template, clone, update items, complete
- 2 REST controllers with permission annotations
- Error codes for inspection and replacement modules
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-13 10:02:19 +08:00
kkfluous
d5c3ed373f
docs: add rental full-chain implementation plan
...
27 tasks across 6 chunks: inspection template system, prepare simplification,
delivery enhancement, replacement vehicle module, return order improvements,
BPM flows, event-driven linkage, and frontend changes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-13 09:53:59 +08:00
kkfluous
072196aad4
docs: add rental full-chain design spec
...
Covers shared inspection template system, vehicle prepare simplification,
delivery enhancement, replacement vehicle module (new), return order
improvements, BPM approval flows, and event-driven cross-module linkage.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-13 09:42:06 +08:00
kkfluous
43f2f054e9
feat: 实现供应商管理模块
...
- 新增供应商管理功能
- 数据库表:asset_supplier(27个字段)
- 基本信息:供应商编码、名称、类型、合作状态等
- 开票信息:税号、开票地址、账号、开户行等
- 完整的 CRUD 接口
- 后端代码
- Controller/Service/Mapper/VO/DO 完整实现
- 支持多条件分页查询
- 字段验证(手机号、邮箱格式)
- 供应商编码唯一性约束
- API 接口
- POST /asset/supplier/create - 创建供应商
- PUT /asset/supplier/update - 更新供应商
- DELETE /asset/supplier/delete - 删除供应商
- GET /asset/supplier/get - 获取供应商详情
- GET /asset/supplier/page - 分页查询供应商
- 查询功能
- 供应商编码精确查询
- 合作状态多选筛选
- 供应商名称模糊查询
- 供应商类型多选筛选
- 区域多选筛选
- 城市精确查询
- 创建者筛选
- 菜单和权限
- 供应商管理菜单
- 5个按钮权限(查询、创建、更新、删除、导出)
- 文档
- 供应商管理模块开发总结
- 数据库初始化脚本
2026-03-12 21:09:06 +08:00
kkfluous
30e15b90ea
refactor: 优化资产模块字段和业务逻辑
...
- 添加 OCR 模块到主 pom.xml
- 优化客户管理模块
- 调整客户字段(customerNo -> customerCode)
- 新增合作状态、省份城市等字段
- 新增客户商务经理关联表
- 优化客户查询和保存逻辑
- 优化停车场管理
- 调整停车场字段结构
- 优化字段命名和注释
- 优化车型管理
- 新增车型分类、能源类型等字段
- 优化保养项目管理
- 新增车型简化查询接口
- 新增数据库脚本
- 车辆类型字典数据
- 停车场和车型字段更新脚本
2026-03-12 20:35:36 +08:00
kkfluous
78a6cde22d
feat: 实现 OCR 模块和车辆上牌管理功能
...
- 新增 yudao-module-ocr 模块
- OCR API 模块:定义 Feign 接口和 DTO
- OCR Server 模块:实现行驶证识别功能
- 集成百度 OCR SDK
- 支持多厂商扩展(百度/腾讯/阿里云)
- 新增车辆上牌管理功能
- 数据库表:asset_vehicle_registration
- 完整的 CRUD 接口
- 行驶证识别接口(集成 OCR)
- 车辆匹配功能(根据 VIN)
- 确认上牌功能(更新车辆信息)
- 技术实现
- 遵循 BPM/System 模块的 RPC API 模式
- 使用 Feign 实现服务间调用
- Base64 编码传输图片数据
- 统一返回格式 CommonResult<T>
- 文档
- OCR 模块使用文档
- OCR 部署指南
- 车辆上牌管理总结
- API 集成规划和总结
2026-03-12 20:33:21 +08:00
kkfluous
0706b51acd
feat(asset): 客户管理模块开发完成
...
- 新增客户管理 CRUD 功能(个人/企业客户)
- 新增 7 个单元测试用例(全部通过)
- 新增测试配置和 SQL 脚本
- 车辆管理字段补充(32个新字段)
- ECS 部署测试通过
2026-03-12 14:45:51 +08:00
kkfluous
40ea4fabd6
修复车辆模块字段映射问题
...
- 修正 VehicleBaseDO:删除不存在的 vehicleNo、noticeModel 等字段,添加 vehicleModelId
- 修正 VehicleLocationDO:使用 vehicleId 替代 vin
- 修正 VehicleBusinessDO:使用 vehicleId 替代 vin,更新字段为实际表结构
- 修正 VehicleStatusDO:使用 vehicleId 替代 vin,更新字段为实际表结构
- 更新所有 Mapper:selectByVins -> selectByVehicleIds
- 更新 Service:使用 vehicleId 作为关联键
- 更新 VehicleRespVO:字段与数据库表结构对应
- 完善 VehicleConvert:补充位置、业务、状态信息的映射
测试结果:
- ✅ 分页查询接口正常(100条测试数据)
- ✅ 精简列表接口正常
- ✅ 车型参数接口正常
2026-03-12 13:55:37 +08:00
kkfluous
3c36ff6adf
车辆管理模块:新增车辆查询接口和数据表结构
2026-03-12 13:19:37 +08:00
k kfluous
a2e2d5c27e
refactor(asset): 优化保养项目设计,使用折中方案
...
变更内容:
1. 删除 maintainItemId 字段(冗余,无实际作用)
2. 保留 maintainItem 字段(直接存储项目名称)
3. 新增接口:获取已使用的保养项目列表(去重)
4. 前端可使用该接口提供下拉提示,提升用户体验
5. 添加 maintainItem 字段的非空校验
设计思路:
- 不引入保养项目字典表(避免过度设计)
- 通过 DISTINCT 查询提供已使用项目列表
- 用户可以输入新项目,也可以从已有项目中选择
- 后续如需规范化,可平滑升级到字典表方案
2026-03-12 09:54:00 +08:00
k kfluous
eb9eaf3810
feat(asset): 添加参数校验注解
...
停车场模块:
- 经度:-180~180,最多6位小数
- 纬度:-90~90,最多6位小数
- 手机号:1开头的11位数字
- 容量:必须大于0
- 已停车辆数:不能为负数
车型参数模块:
- 氢瓶容量、里程数:不能为负数
- 储电量、材料费、工时费:不能为负数
- 轮胎数量:必须大于0
- 保养周期:必须大于0
防止用户输入非法数据导致展示错乱
2026-03-12 09:32:48 +08:00
oneos-deploy
8defb1411b
fix(asset): 添加 Swagger 接口放行配置
...
- SecurityConfiguration 中添加 /v3/api-docs/** 等路径的放行
- 修复 Asset 模块 Swagger 文档无法访问的问题
2026-03-12 09:30:08 +08:00
oneos-deploy
b6254c0f3b
feat(asset): 添加 Asset 模块配置和依赖
...
- 在父 pom.xml 中添加 yudao-module-asset 模块
- 添加 yudao-spring-boot-starter-env 依赖
- 修改 application.yaml 配置(Nacos 配置导入、Bean 覆盖)
- 添加 SecurityConfiguration 配置类
- 添加 AssetWebConfiguration 配置类
- 修复启动失败问题
2026-03-12 09:12:01 +08:00
k kfluous
a614df46f3
feat: 新增资产管理模块 - 停车场和车型参数管理
...
- 停车场管理:CRUD + 业务校验 + 权限控制
- 车型参数管理:主子表关联 + 维保项目管理
- 数据库表结构:asset_parking, asset_vehicle_model, asset_vehicle_model_maintain_item
- 优化点:参数校验、业务逻辑校验、类型安全
2026-03-12 03:04:11 +08:00
k kfluous
ca98eabf3a
配置中心化:使用 Nacos 管理所有配置,关闭验证码功能
2026-03-11 22:33:18 +08:00
k kfluous
3b7ec28653
Initial commit: OneOS backend based on yudao-cloud
2026-03-11 22:18:20 +08:00