Skip to content

Latest commit

 

History

History
1479 lines (1301 loc) · 86.6 KB

README.wiki

File metadata and controls

1479 lines (1301 loc) · 86.6 KB

Auto TBOX Data System


Table of Contents

汽车TBOX数据采集及分析系统设计与实现

0 背景

1 后端设计与实现

1.1 Entity实体类设计

1.1.1 BaseEntity

基础实体类, 用于让其他类继承一些基础属性.

BaseEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
IntegerintidID
Stringvarchar(4)isActivated启用状态
Stringvarchar(4)isDeleted删除状态
Stringvarchar(4)status状态
Stringvarchar(64)remark备注
Stringvarchar(32)createdBy创建人
StringtimestampcreatedDate创建日期
Stringvarchar(32)lastUpdatedBy最后修改人
StringtimestamplastUpdatedDate最后修改日期
Integer-pageIndex当前页面
Integer-pageSize页面容量

1.1.2 UserEntity

用户实体类. 关联表user_entity.

UserEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
Stringvarchar(32)username用户名
Stringvarchar(64)password密码
Stringvarchar(32)email邮箱
Stringvarchar(16)phone电话
Stringvarchar(64)avatar头像

1.1.3 RoleEntity

角色实体类. 关联表role_entity.

RoleEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
Stringvarchar(32)roleName角色名
Stringvarchar(16)roleType角色类型
IntegerintfatherRoleId父角色ID

1.1.4 MenuEntity

菜单实体类. 关联表menu_entity.

MenuEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
Stringvarchar(32)menuName菜单名
Stringvarchar(16)menuType菜单类型
IntegerintfatherMenuId父菜单ID

1.1.5 UserRoleEntity

用户角色类, 关联用户与角色. 关联表user_role_entity.

不同用户赋予不同角色, 角色有不同菜单.

UserRoleEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
IntegerintuserId用户ID
Stringvarchar(32)username用户名
IntegerintroleId角色ID
Stringvarchar(32)roleName角色名

1.1.6 RoleMenuEntity

角色菜单类, 关联角色和菜单. 关联表role_menu_entity.

不同用户赋予不同角色, 角色有不同菜单.

RoleMenuEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
IntegerintroleId角色ID
Stringvarchar(32)roleName角色名
IntegerintmenuId菜单ID
Stringvarchar(32)menuName菜单名

1.1.7 CarEntity

车辆实体类. 关联表car_entity.

CarEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
Stringvarchar(255)carName车辆名
Stringvarchar(64)price价格
Stringvarchar(64)periodicalTechnicalInspection定期技术检查
Stringvarchar(64)roadTax3Months道路税每三月
Stringvarchar(64)carBody车身
Stringvarchar(64)transmission变速箱
Stringvarchar(64)seatsNumber座位数
Stringvarchar(64)firstYearOfProduction首次生产年份
Stringvarchar(64)lastYearOfProduction最后生产年份
Stringvarchar(64)drive驱动
Stringvarchar(64)engineType引擎类型
Stringvarchar(64)fuel燃料
Stringvarchar(64)totalMaximumPower最大功率
Stringvarchar(64)totalMaximumTorque最大扭矩
Stringvarchar(64)cylindersNumber气缸数量
Stringvarchar(64)cylinderValves每缸气门
Stringvarchar(64)cylinderCapacity气缸容量
Stringvarchar(64)boreXStroke气缸x行程
Stringvarchar(64)compressionRatio压缩率
Stringvarchar(64)maxPower最大功率
Stringvarchar(64)maxPowerRPM最大功率转速
Stringvarchar(64)maxTorque最大扭矩
Stringvarchar(64)maxTorqueRPM最大扭矩转速
Stringvarchar(64)fuelSystem燃油系统
Stringvarchar(64)valveControl阀门控制
Stringvarchar(64)turbo涡轮增压
Stringvarchar(64)catalyst催化剂
Stringvarchar(64)fuelTank燃料容量
Stringvarchar(64)electroEngineType电动引擎类型
Stringvarchar(64)electroMaxPower电动最大功率
Stringvarchar(64)electroMaxTorque电动最大扭矩
Stringvarchar(64)electroEnginesNumber电动引擎数量
Stringvarchar(64)batteryType电池类型
Stringvarchar(64)batteryCapacity电池容量
Stringvarchar(64)batteryVoltage电池电压
Stringvarchar(64)batteryRange电池里程
Stringvarchar(64)powerConsumption电量消耗
Stringvarchar(64)topSpeed最大速度
Stringvarchar(64)acceleration零百加速用时
Stringvarchar(64)cityConsumption城市每百公里耗油量
Stringvarchar(64)cityConsumptionKM城市每公里耗油量
Stringvarchar(64)extraUrbanConsumption额外城市每百公里耗油量
Stringvarchar(64)extraUrbanConsumptionKM额外城市每公里耗油量
Stringvarchar(64)combinedConsumption混合每百公里耗油量
Stringvarchar(64)combinedConsumptionKM混合每公里耗油量
Stringvarchar(64)consumptionMonitor每百公里耗油量花费监视
Stringvarchar(64)consumptionMonitorKM每公里耗油量花费监视
Stringvarchar(64)CO2Emissions每公里二氧化碳排放量
Stringvarchar(64)energyLabel能源标签
Stringvarchar(64)frontWheelSuspension前轮悬挂
Stringvarchar(64)rearWheelSuspension后轮悬挂
Stringvarchar(64)frontSuspension前悬挂
Stringvarchar(64)rearSuspension后悬挂
Stringvarchar(64)frontStabilizer前稳定器
Stringvarchar(64)rearStabilizer后稳定器
Stringvarchar(64)frontBrakes前轮刹车
Stringvarchar(64)rearBrakes后轮刹车
Stringvarchar(64)frontTireSize前轮尺寸
Stringvarchar(64)rearTireSize后轮尺寸
Stringvarchar(64)turningRadius转弯半径
Stringvarchar(64)_1stGear一档变速
Stringvarchar(64)_2ndGear二档变速
Stringvarchar(64)_3rdGear三档变速
Stringvarchar(64)_4thGear四档变速
Stringvarchar(64)_5thGear五档变速
Stringvarchar(64)_6thGear六档变速
Stringvarchar(64)_7thGear七档变速
Stringvarchar(64)_8thGear八档变速
Stringvarchar(64)_9thGear九档变速
Stringvarchar(64)reverseGear倒车变速
Stringvarchar(64)finalTransmission最终变速
Stringvarchar(64)RPMAt120kmh120km/h时转速
Stringvarchar(64)maintenance保养
Stringvarchar(64)generalWarranty一般保修
Stringvarchar(64)chassisWarranty底盘保修

1.1.8 UserCarEntity

用户车辆类, 关联用户与车辆. 关联表user_car_entity.

UserCarEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
IntegerintuserId用户ID
Stringvarchar(20)username用户名
IntegerintcarId车辆ID
Stringvarchar(255)carName车辆名
Stringvarchar(64)vin车辆识别号码
Stringvarchar(255)_4SShop4S店名
Stringvarchar(64)saleLoc销售位置
Stringvarchar(64)saleTime销售时间

1.1.9 CarLogEntity

车辆日志类, 关联用户车辆与车辆日志. 关联表car_log_entity.

CarLogEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
StringintVIN车辆识别号码
Stringvarchar(64)bootTime开机时间
Stringvarchar(64)runTime运行时长
Stringvarchar(64)gear挡位
DoubleDoubleodometer行驶里程
DoubleDoubleodometerAcc累计里程
DoubleDoubleodometerRem剩余里程
DoubleDoublefuelRem剩余油量
DoubleDoubleelectroFuelRem剩余电量
DoubleDoublespeed车速
DoubleDoubleRPM转速
Stringvarchar(64)location位置
Stringvarchar(64)heading方向
DoubleDoublealtitude高度
DoubleDoubletemperature温度

1.1.10 CarWarningEntity

车辆故障类, 关联用户车辆与车辆故障. 关联表car_warning_entity.

CarWarningEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
Stringvarchar(64)blindSpotMonitoringSysFailure盲点监控系统故障
Stringvarchar(64)engineTheftPreventionSysFailure引擎防盗系统故障
Stringvarchar(64)batteryCharging电池充电
Stringvarchar(64)altitude高度
Stringvarchar(64)transmissionFailure传输失败
Stringvarchar(64)powerSteeringSystemFailure动力转向系统故障
Stringvarchar(64)autoParkingFailure自动停车失败
Stringvarchar(64)adaptiveCruiseFault自适应巡航故障
Stringvarchar(64)engineFailure发动机故障
Stringvarchar(64)stabilitySystemShutdown稳定系统关闭
Stringvarchar(64)oilPressure油压
Stringvarchar(64)slopeSlowDownFault斜坡减速故障
Stringvarchar(64)electronicParking电子停车
Stringvarchar(64)vin车辆识别号码
Stringvarchar(64)startStopSystemFailure开始停止系统故障
Stringvarchar(64)windshieldSensorShield挡风玻璃传感器护罩
Stringvarchar(64)longitude经度
Stringvarchar(64)laneDepartureSysFailure车道偏离系统故障
Stringvarchar(64)longitudeState经度状态
Stringvarchar(64)direct方向
Stringvarchar(64)tirePressureMonitoringSysFailure胎压监测系统故障
Stringvarchar(64)engineExhaustSystemFailure发动机排气系统故障
Stringvarchar(64)powerSteeringSystemInit动力转向系统
Stringvarchar(64)autoBrakSystemStatus自动刹车系统状态
Stringvarchar(64)latitudeState纬度州
Stringvarchar(64)loc位置
Stringvarchar(64)airbagFault安全气囊故障
Stringvarchar(64)errorContent错误内容
Stringvarchar(64)faultCategory故障类别
Stringvarchar(64)errorListCount错误列表计数
Stringvarchar(64)electronicStabilitySysIndication电子稳定系统指示
Stringvarchar(64)tirePressureAnomaly轮胎压力异常
Stringvarchar(64)electronicParkingFailure电子停车故障
Stringvarchar(64)gpsSpeedgps速度
Stringvarchar(64)latitude纬度
Stringvarchar(64)sendingTime发送时间
Stringvarchar(64)startStopSystemNotWork启动停止系统不起作用
Stringvarchar(64)autoEmergencyBrakeSysFailure自动紧急制动系统故障

1.1.11 CarWarningDetailEntity

车辆故障详细信息类, 关联车辆故障. 关联表car_warning_detail_entity.

CarWarningDetailEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
Stringvarchar(6)carType车辆型号(vin前六位)
Stringvarchar(6)faultCategory错误类型
Stringvarchar(6)errorContent错误内容
Stringvarchar(255)errorDetail错误详情

1.1.12 CarWarrantyEntity

车辆保修类, 关联用户车辆和车辆保修. 关联表car_warranty_entity.

CarWarrantyEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
StringintVIN车辆识别号码
Stringvarchar(255)generalComment整体评价
IntegerintgeneralScore整体分数
Stringvarchar(255)driveComment驱动评价
IntegerintdriveScore驱动分数
Stringvarchar(255)fuelEngineComment燃油引擎评价
IntegerintfuelEngineScore燃油引擎分数
Stringvarchar(255)performanceComment性能评价
IntegerintperformanceScore性能分数
Stringvarchar(255)consumptionComment效能评价
IntegerintconsumptionScore效能分数
Stringvarchar(255)chassisComment车身评价
IntegerintchassisScore车身分数
Stringvarchar(255)transmissionComment传动评价
IntegerinttransmissionScore传动分数

1.1.13 VisualChartEntity

视觉图表类. 关联表visual_chart_warranty_entity.

VisualChartEntity
Java实体属性类型SQL表属性类型Java实体属性名注释
BaseEntity
Stringvarchar(255)chartName图表名
Stringvarchar(255)chartType图表类型
Stringvarchar(8192chartData图表数据

1.2 Controller控制类设计

1.2.1 UserController

用户控制类.

UserController
控制名地址输入属性注释
register/User/registeruserEntity用户注册
login/User/loginuserEntity用户登录
addUser/User/addUseruserEntity添加用户
hardDeleteUserById/User/hardDeleteUserByIduserEntity硬删除用户
softDeleteUserById/User/softDeleteUserByIduserEntity软删除用户
restoreUserById/User/restoreUserByIduserEntity恢复软删除用户
activateUserById/User/activateUserByIduserEntity激活用户
deactivateUserById/User/deactivateUserByIduserEntity禁用用户
updateStatusById/User/updateStatusByIduserEntity更新状态
updateRemarkById/User/updateRemarkByIduserEntity更新备注
updateEmailById/User/updateEmailByIduserEntity更新邮箱
updatePhoneById/User/updatePhoneByIduserEntity更新电话
updatePasswordById/User/updatePasswordByIduserEntity更新密码
updateAvatarById/User/updateAvatarByIduserEntity更新头像
resetPasswordById/User/resetPasswordByIduserEntity重置用户密码
searchUserById/User/searchUserByIduserEntityID查找用户
searchUserByUsername/User/searchUserByUsernameuserEntity用户名查找用户
searchActivedUserList/User/searchActivedUserListuserEntity查找激活用户List
searchActivedUserPager/User/searchActivedUserPageruserEntity查找激活用户Pager
searchAllUserList/User/searchAllUserListuserEntity查找全部用户List
searchAllUserPager/User/searchAllUserPageruserEntity查找全部用户Pager

1.2.2 RoleController

角色控制类.

RoleController
控制名地址输入属性注释
addRole/Role/addRoleroleEntity添加角色
hardDeleteRoleById/Role/hardDeleteRoleByIdroleEntity硬删除角色
softDeleteRoleById/Role/softDeleteRoleByIdroleEntity软删除角色
restoreRoleById/Role/restoreRoleByIdroleEntity恢复软删除角色
activateRoleById/Role/activateRoleByIdroleEntity激活角色
deactivateRoleById/Role/deactivateRoleByIdroleEntity禁用角色
updateStatusById/Role/updateStatusByIdroleEntity更新状态
updateRemarkById/Role/updateRemarkByIdroleEntity更新备注
updateRoleById/Role/updateRoleByIdroleEntity更新角色信息
searchRoleById/Role/searchRoleByIdroleEntityID查找角色
searchRoleByRoleName/Role/searchRoleByRoleNameroleEntity角色名查找角色
searchActivedRoleList/Role/searchActivedRoleListroleEntity查找激活角色List
searchActivedRolePager/Role/searchActivedRolePagerroleEntity查找激活角色Pager
searchAllRoleList/Role/searchAllRoleListroleEntity查找全部角色List
searchAllRolePager/Role/searchAllRolePagerroleEntity查找全部角色Pager

1.2.3 MenuController

菜单控制类.

MenuController
控制名地址输入属性注释
addMenu/Menu/addMenumenuEntity添加菜单
hardDeleteMenuById/Menu/hardDeleteMenuByIdmenuEntity硬删除菜单
softDeleteMenuById/Menu/softDeleteMenuByIdmenuEntity软删除菜单
restoreMenuById/Menu/restoreMenuByIdmenuEntity恢复软删除菜单
activateMenuById/Menu/activateMenuByIdmenuEntity激活菜单
deactivateMenuById/Menu/deactivateMenuByIdmenuEntity禁用菜单
updateStatusById/Menu/updateStatusByIdmenuEntity更新状态
updateRemarkById/Menu/updateRemarkByIdmenuEntity更新备注
updateMenuById/Menu/updateMenuByIdmenuEntity更新菜单信息
searchMenuById/Menu/searchMenuByIdmenuEntityID查找菜单
searchMenuByMenuName/Menu/searchMenuByMenuNamemenuEntity菜单名查找菜单
searchActivedMenuList/Menu/searchActivedMenuListmenuEntity查找激活菜单List
searchActivedMenuPager/Menu/searchActivedMenuPagermenuEntity查找激活菜单Pager
searchAllMenuList/Menu/searchAllMenuListmenuEntity查找全部菜单List
searchAllMenuPager/Menu/searchAllMenuPagermenuEntity查找全部菜单Pager

1.2.4 UserRoleController

用户角色控制类.

UserRoleController
控制名地址输入属性注释
addRole2User/UserRole/addRole2UseruserRoleEntity为用户添加角色
deleteUserRoleByUserId/UserRole/deleteUserRoleByUserIduserRoleEntity用户ID硬删除用户角色
deleteUserRoleByUsername/UserRole/deleteUserRoleByUsernameuserRoleEntity用户名硬删除用户角色
deleteUserRoleByRoleId/UserRole/deleteUserRoleByRoleIduserRoleEntity角色ID硬删除用户角色
deleteUserRoleByRoleName/UserRole/deleteUserRoleByRoleNameuserRoleEntity角色名硬删除用户角色
updateStatusById/UserRole/updateStatusByIduserRoleEntity更新状态
updateRemarkById/UserRole/updateRemarkByIduserRoleEntity更新备注
searchUserRoleById/UserRole/searchUserRoleByIduserRoleEntityID查找角用户角色
searchUserRoleByUserIdList/UserRole/searchUserRoleByUserIdListuserRoleEntity用户ID查找用户角色List
searchUserRoleByUserIdPager/UserRole/searchUserRoleByUserIdPageruserRoleEntity用户ID查找用户角色Pager
searchUserRoleByUsernameList/UserRole/searchUserRoleByUsernameListuserRoleEntity用户名查找用户角色List
searchUserRoleByUsernamePager/UserRole/searchUserRoleByUsernamePageruserRoleEntity用户名查找用户角色Pager
searchUserRoleByRoleIdList/UserRole/searchUserRoleByRoleIdListuserRoleEntity角色ID查找用户角色List
searchUserRoleByRoleIdPager/UserRole/searchUserRoleByRoleIdPageruserRoleEntity角色ID查找用户角色Pager
searchUserRoleByRoleNameList/UserRole/searchUserRoleByRoleNameListuserRoleEntity角色名查找用户角色List
searchUserRoleByRoleNamePager/UserRole/searchUserRoleByRoleNamePageruserRoleEntity角色名查找用户角色Pager
searchAllUserRoleList/UserRole/searchAllUserRoleListuserRoleEntity查找全部用户角色List
searchAllUserRolePager/UserRole/searchAllUserRolePageruserRoleEntity查找全部用户角色Pager

1.2.5 RoleMenuController

角色菜单控制类.

RoleMenuController
控制名地址输入属性注释
addMenu2Role/RoleMenu/addMenu2RoleroleMenuEntity为角色添加菜单
deleteRoleMenuByRoleId/RoleMenu/deleteRoleMenuByRoleIdroleMenuEntity角色ID硬删除角色菜单
deleteRoleMenuByRoleName/RoleMenu/deleteRoleMenuByRoleNameroleMenuEntity角色名硬删除角色菜单
deleteRoleMenuByMenuId/RoleMenu/deleteRoleMenuByMenuIdroleMenuEntity菜单ID硬删除角色菜单
deleteRoleMenuByMenuName/RoleMenu/deleteRoleMenuByMenuNameroleMenuEntity菜单名硬删除角色菜单
updateStatusById/RoleMenu/updateStatusByIdroleMenuEntity更新状态
updateRemarkById/RoleMenu/updateRemarkByIdroleMenuEntity更新备注
searchRoleMenuById/RoleMenu/searchRoleMenuByIdroleMenuEntityID查找角色菜单
searchRoleMenuByRoleIdList/RoleMenu/searchRoleMenuByRoleIdListroleMenuEntity角色ID查找角色菜单List
searchRoleMenuByRoleIdPager/RoleMenu/searchRoleMenuByRoleIdPagerroleMenuEntity角色ID查找角色菜单Pager
searchRoleMenuByRoleNameList/RoleMenu/searchRoleMenuByRoleNameListroleMenuEntity角色名查找角色菜单List
searchRoleMenuByRoleNamePager/RoleMenu/searchRoleMenuByRoleNamePagerroleMenuEntity角色名查找角色菜单Pager
searchRoleMenuByMenuIdList/RoleMenu/searchRoleMenuByMenuIdListroleMenuEntity菜单ID查找角色菜单List
searchRoleMenuByMenuIdPager/RoleMenu/searchRoleMenuByMenuIdPagerroleMenuEntity菜单ID查找角色菜单Pager
searchRoleMenuByMenuNameList/RoleMenu/searchRoleMenuByMenuNameListroleMenuEntity菜单名查找角色菜单List
searchRoleMenuByMenuNamePager/RoleMenu/searchRoleMenuByMenuNamePagerroleMenuEntity菜单名查找角色菜单Pager
searchAllRoleMenuList/RoleMenu/searchAllRoleMenuListroleMenuEntity查找全部角色菜单List
searchAllRoleMenuPager/RoleMenu/searchAllRoleMenuPagerroleMenuEntity查找全部角色菜单Pager

1.2.6 CarController

车辆控制类.

CarController
控制名地址输入属性注释
addCar/Car/addCarcarEntity添加车辆
hardDeleteCarById/Car/hardDeleteCarByIdcarEntity硬删除车辆
softDeleteCarById/Car/softDeleteCarByIdcarEntity软删除车辆
restoreCarById/Car/restoreCarByIdcarEntity恢复软删除车辆
activateCarById/Car/activateCarByIdcarEntity激活车辆
deactivateCarById/Car/deactivateCarByIdcarEntity禁用车辆
updateStatusById/Car/updateStatusByIdcarEntity更新状态
updateRemarkById/Car/updateRemarkByIdcarEntity更新备注
updateGeneralById/Car/updateGeneralByIdcarEntity更新车辆信息 GENERAL
updateDriveById/Car/updateDriveByIdcarEntity更新车辆信息 DRIVE
updateFuelEngineById/Car/updateFuelEngineByIdcarEntity更新车辆信息 FUEL ENGINE
updateElectroMotorById/Car/updateElectroMotorByIdcarEntity更新车辆信息 ELECTROMOTOR
updatePerformanceById/Car/updatePerformanceByIdcarEntity更新车辆信息 PERFORMANCE
updateChassisById/Car/updateChassisByIdcarEntity更新车辆信息 CHASSIS
updateTransmissionById/Car/updateTransmissionByIdcarEntity更新车辆信息 TRANSMISSION
updateServiceAndWarrantyById/Car/updateServiceAndWarrantyByIdcarEntity更新车辆信息 SERVICE AND WARRANTY
searchCarById/Car/searchCarByIdcarEntityID查找车辆
searchCarByCarName/Car/searchCarByCarNamecarEntity车辆名查找车辆
searchActivedCarList/Car/searchActivedCarListcarEntity查找激活车辆List
searchActivedCarPager/Car/searchActivedCarPagercarEntity查找激活车辆Pager
searchAllCarList/Car/searchAllCarListcarEntity查找全部车辆List
searchAllCarPager/Car/searchAllCarPagercarEntity查找全部车辆Pager

1.2.7 UserCarController

用户车辆控制类.

UserCarController
控制名地址输入属性注释
addCar2User/UserCar/addCar2UseruserCarEntity为用户添加车辆
deleteUserCarById/UserCar/deleteUserCarByIduserCarEntityID硬删除用户车辆
deleteUserCarByUserId/UserCar/deleteUserCarByUserIduserCarEntity用户ID硬删除用户车辆
deleteUserCarByUsername/UserCar/deleteUserCarByUsernameuserCarEntity用户名硬删除用户车辆
deleteUserCarByCarId/UserCar/deleteUserCarByCarIduserCarEntity车辆ID硬删除用户车辆
deleteUserCarByCarName/UserCar/deleteUserCarByCarNameuserCarEntity车辆名硬删除用户车辆
deleteUserCarByVin/UserCar/deleteUserCarByVinuserCarEntityVin硬删除用户车辆
updateStatusById/UserCar/updateStatusByIduserCarEntity更新状态
updateRemarkById/UserCar/updateRemarkByIduserCarEntity更新备注
searchUserCarById/UserCar/searchUserCarByIduserCarEntityID查找用户车辆
searchUserCarByVin/UserCar/searchUserCarByVinuserCarEntityVin查找用户车辆
searchUserCarByUserIdList/UserCar/searchUserCarByUserIdListuserCarEntity用户ID查找用户车辆List
searchUserCarByUserIdPager/UserCar/searchUserCarByUserIdPageruserCarEntity用户ID查找用户车辆Pager
searchUserCarByUsernameList/UserCar/searchUserCarByUsernameListuserCarEntity用户名查找用户车辆List
searchUserCarByUsernamePager/UserCar/searchUserCarByUsernamePageruserCarEntity用户名查找用户车辆Pager
searchUserCarByCarIdList/UserCar/searchUserCarByCarIdListuserCarEntity车辆ID查找用户车辆List
searchUserCarByCarIdPager/UserCar/searchUserCarByCarIdPageruserCarEntity车辆ID查找用户车辆Pager
searchUserCarByCarNameList/UserCar/searchUserCarByCarNameListuserCarEntity车辆名查找用户车辆List
searchUserCarByCarNamePager/UserCar/searchUserCarByCarNamePageruserCarEntity车辆名查找用户车辆Pager
searchAllUserCarList/UserCar/searchAllUserCarListuserCarEntity查找全部用户车辆List
searchAllUserCarPager/UserCar/searchAllUserCarPageruserCarEntity查找全部用户车辆Pager

1.2.8 CarLogController

车辆日志控制类.

CarLogController
控制名地址输入属性注释
addCarLog/CarLog/addCarLogcarLogEntity添加车辆日志
deleteCarLogById/CarLog/deleteCarLogByIdcarLogEntity日志ID硬删除日志
deleteCarLogByVIN/CarLog/deleteCarLogByVINcarLogEntity车辆VIN硬删除日志
updateStatusById/CarLog/updateStatusByIdcarLogEntity更新状态
updateRemarkById/CarLog/updateRemarkByIdcarLogEntity更新备注
searchCarLogById/CarLog/searchCarLogByIdcarLogEntity日志ID查找
searchCarLogByVINList/CarLog/searchCarLogByVINListcarLogEntity车辆VIN查找日志List
searchCarLogByVINPager/CarLog/searchCarLogByVINPagercarLogEntity车辆VIN查找日志Pager
searchAllCarLogList/CarLog/searchAllCarLogListcarLogEntity查找全部车辆日志List
searchAllCarLogPager/CarLog/searchAllCarLogPagercarLogEntity查找全部车辆日志Pager

1.2.9 CarWarningController

车辆故障控制类.

CarWarningController
控制名地址输入属性注释
addCarWarning/CarWarning/addCarWarningcarWarningEntity添加车辆故障
deleteCarWarningById/CarWarning/deleteCarWarningByIdcarWarningEntity故障ID硬删除故障
deleteCarWarningByVin/CarWarning/deleteCarWarningByVincarWarningEntity车辆Vin硬删除故障
updateStatusById/CarWarning/updateStatusByIdcarWarningEntity更新状态
updateRemarkById/CarWarning/updateRemarkByIdcarWarningEntity更新备注
searchCarWarningById/CarWarning/searchCarWarningByIdcarWarningEntity故障ID查找
searchCarWarningByVinList/CarWarning/searchCarWarningByVinListcarWarningEntity车辆Vin查找故障List
searchCarWarningByVinPager/CarWarning/searchCarWarningByVinPagercarWarningEntity车辆Vin查找故障Pager
searchCarWarningByErrorContentList/CarWarning/searchCarWarningByErrorContentListcarWarningEntity错误内容查找故障List
searchCarWarningByErrorContentPager/CarWarning/searchCarWarningByErrorContentPagercarWarningEntity错误内容查找故障Pager
searchCarWarningByFaultCategoryList/CarWarning/searchCarWarningByFaultCategoryListcarWarningEntity错误单元查找故障List
searchCarWarningByFaultCategoryPager/CarWarning/searchCarWarningByFaultCategoryPagercarWarningEntity错误单元查找故障Pager
searchCarWarningBySendingTimeBetweenList/CarWarning/searchCarWarningBySendingTimeBetweenListcarWarningEntity查找时间内的车辆故障List
searchCarWarningBySendingTimeBetweenPager/CarWarning/searchCarWarningBySendingTimeBetweenPagercarWarningEntity查找时间内的车辆故障Pager
searchCarWarningDetailBySendingTimeBetween/CarWarning/searchCarWarningDetailBySendingTimeBetweencarWarningEntity查找时间内的故障详情List(CarWarningEntity, CarWarningDetailEntity多表查询)
searchUserCarWarningDetailBySendingTimeBetween/CarWarning/searchUserCarWarningDetailBySendingTimeBetweencarWarningEntity查找时间内的车辆详情List(UserCarEntity, CarWarningEntity, CarWarningDetailEntity多表查询)
searchAllCarWarningList/CarWarning/searchAllCarWarningListcarWarningEntity查找全部车辆故障List
searchAllCarWarningPager/CarWarning/searchAllCarWarningPagercarWarningEntity查找全部车辆故障Pager

1.2.9 CarWarningDetailController

车辆故障详细控制类.

CarWarningDetailController
控制名地址输入属性注释
addCarWarningDetail/CarWarningDetail/addCarWarningDetailcarWarningDetailEntity添加车辆故障详情
deleteCarWarningDetailById/CarWarningDetail/deleteCarWarningDetailByIdcarWarningDetailEntity故障ID硬删除故障详情
deleteCarWarningDetailByCarType/CarWarningDetail/deleteCarWarningDetailByCarTypecarWarningDetailEntity车辆类型硬删除故障详情
updateStatusById/CarWarningDetail/updateStatusByIdcarWarningDetailEntity更新状态
updateRemarkById/CarWarningDetail/updateRemarkByIdcarWarningDetailEntity更新备注
searchCarWarningDetailById/CarWarningDetail/searchCarWarningDetailByIdcarWarningDetailEntity故障详情ID查找
searchCarWarningDetailByCarTypeAndErrorContent/CarWarningDetail/searchCarWarningDetailByCarTypeAndErrorContentcarWarningDetailEntity车辆型号与故障内容查找故障
searchCarWarningDetailByCarTypeList/CarWarningDetail/searchCarWarningDetailByCarTypeListcarWarningDetailEntity车辆类型查找List
searchCarWarningDetailByCarTypePager/CarWarningDetail/searchCarWarningDetailByCarTypePagercarWarningDetailEntity车辆类型查找Pager
searchAllCarWarningDetailList/CarWarningDetail/searchAllCarWarningDetailListcarWarningDetailEntity查找全部车辆故障详情List
searchAllCarWarningDetailPager/CarWarningDetail/searchAllCarWarningDetailPagercarWarningDetailEntity查找全部车辆故障详情Pager

1.2.10 CarWarrantyController

车辆保修控制类.

CarWarrantyController
控制名地址输入属性注释
addCarWarranty/CarWarranty/addCarWarrantycarWarrantyEntity添加车辆保修
deleteCarWarrantyById/CarWarranty/deleteCarWarrantyByIdcarWarrantyEntity保修ID硬删除保修
deleteCarWarrantyByVIN/CarWarranty/deleteCarWarrantyByVINcarWarrantyEntity车辆VIN硬删除保修
updateStatusById/CarWarranty/updateStatusByIdcarWarrantyEntity更新状态
updateRemarkById/CarWarranty/updateRemarkByIdcarWarrantyEntity更新备注
searchCarWarrantyById/CarWarranty/searchCarWarrantyByIdcarWarrantyEntity保修ID查找
searchCarWarrantyByVINList/CarWarranty/searchCarWarrantyByVINListcarWarrantyEntity车辆VIN查找保修List
searchCarWarrantyByVINPager/CarWarranty/searchCarWarrantyByVINPagercarWarrantyEntity车辆VIN查找保修Pager
searchAllCarWarrantyList/CarWarranty/searchAllCarWarrantyListcarWarrantyEntity查找全部车辆保修List
searchAllCarWarrantyPager/CarWarranty/searchAllCarWarrantyPagercarWarrantyEntity查找全部车辆保修Pager

1.2.12 VisualChartController

视觉图表控制类.

VisualChartController
控制名地址输入属性注释
addVisualChart/VisualChart/addVisualChartvisualChartEntity添加视觉图表
deleteVisualChartById/VisualChart/deleteVisualChartByIdvisualChartEntity视觉图表硬删除
deleteVisualChartByChartName/VisualChart/deleteVisualChartByChartNamevisualChartEntity视觉图表名硬删除
updateStatusById/VisualChart/updateStatusByIdvisualChartEntity更新状态
updateRemarkById/VisualChart/updateRemarkByIdvisualChartEntity更新备注
searchVisualChartById/VisualChart/searchVisualChartByIdvisualChartEntity视觉图表ID查找
searchVisualChartByChartName/VisualChart/searchVisualChartByChartNamevisualChartEntity视觉图表名查找
searchAllVisualChartList/VisualChart/searchAllVisualChartListvisualChartEntity查找全部视觉图表List
searchAllVisualChartPager/VisualChart/searchAllVisualChartPagervisualChartEntity查找全部视觉图表Pager

2 前端设计与实现

2.1 数据面板

mui-table表格(Material UI), LineChart折线图, PieChart饼状图(recharts), Calender日历(nivo). 关联表 Dashboard.js

axios请求
请求地址请求参数
/VisualChart/searchVisualChartByChartName{ "chartName": "general-daily-" + dailyTimestamp }

数据面板
图表名x轴y轴意义
昨日故障时间(小时)次数统计昨日故障次数, 故障车辆数, 故障单元数, 和车辆平均故障数
平均故障--对比昨日故障和本周平均故障的数量差异
昨日故障概览时间(小时)次数对昨天每小时的故障, 故障车辆, 故障单元情况进行绘图
昨日故障单元--统计昨日出现故障次数前三的单元
过去一周故障情况日期(天)次数对过去一周每天的故障, 故障车辆, 故障单元情况进行绘图
本年度故障情况--统计本年度故障出现次数最多/中等/最少的日历
过去24h实时故障--统计过去24小时出现故障的时间, 车辆型号, 故障单元, 故障内容

2.2 故障概览

ScatterPlot散列表(nivo), Treemap树形图(nivo), Bar条形图(nivo). 关联表 General.js

axios请求
请求地址请求参数
/VisualChart/searchVisualChartByChartName{ "chartName": "dashboard-daily-" + dailyTimestamp }

故障概览
图表名x轴y轴意义
单元并发故障次数分布每个单元同时出现的故障数量次数每个单元可能会出现多个错误, 找到并发错误多且出现次数多的单元, 并对故障并发高的单元进行更严格的筛检
车型/单元/故障占比--树状图下故障发生在哪些车型, 车型中的哪些单元, 即发生了哪些故障, 以及故障占比
车型故障单元车型故障单元不同车型下故障单元的分布, 可对车型中单元故障次数高的单元进行更严格的筛检
4S店售出车辆故障单元车型故障单元不同4S店售出车辆的故障单元的分布, 可对4S店优化单元(用于替换故障单元)的仓储状况

2.3 故障分布

Bingmaps必应地图(ReactBingmaps). 关联地图 Maps.js

axios请求
请求地址请求参数
/VisualChart/searchVisualChartByChartName{ "chartName": "maps-daily-" + dailyTimestamp }

故障分布
功能意义
标记故障位置标记出故障发生的位置与故障发生的次数, 可以在故障位置附近针对性的布设维修点

2.4 故障信息表

mui-datatables(Material UI)表格作为模板, 加入CRUD修改而成. 关联表 CarWarningTables.js

axios请求
请求地址请求参数
/CarWarning/searchAllCarWarningList{}
/CarWarning/deleteCarWarrantyById{id: id}
/CarWarning/updateStatusById{ id: id, status: status, lastUpdatedBy: lastUpdatedBy }
/CarWarning/updateRemarkById{ id: id, status: status, lastUpdatedBy: lastUpdatedBy }
/CarWarning/addCarWarning{ blindSpotMonitoringSysFailure: blindSpotMonitoringSysFailure, engineTheftPreventionSysFailure: engineTheftPreventionSysFailure, batteryCharging: batteryCharging, altitude: altitude, transmissionFailure: transmissionFailure, powerSteeringSystemFailure: powerSteeringSystemFailure, autoParkingFailure: autoParkingFailure, adaptiveCruiseFault: adaptiveCruiseFault, engineFailure: engineFailure, stabilitySystemShutdown: stabilitySystemShutdown, oilPressure: oilPressure, slopeSlowDownFault: slopeSlowDownFault, electronicParking: electronicParking, vin: vin, startStopSystemFailure: startStopSystemFailure, windshieldSensorShield: windshieldSensorShield, longitude: longitude, laneDepartureSysFailure: laneDepartureSysFailure, longitudeState: longitudeState, direct: direct, tirePressureMonitoringSysFailure: tirePressureMonitoringSysFailure, engineExhaustSystemFailure: engineExhaustSystemFailure, powerSteeringSystemInit: powerSteeringSystemInit, autoBrakSystemStatus: autoBrakSystemStatus, latitudeState: latitudeState, loc: loc, airbagFault: airbagFault, errorContent: errorContent, faultCategory: faultCategory, errorListCount: errorListCount, electronicStabilitySysIndication: electronicStabilitySysIndication, tirePressureAnomaly: tirePressureAnomaly, electronicParkingFailure: electronicParkingFailure, gpsSpeed: gpsSpeed, latitude: latitude, sendingTime: sendingTime, startStopSystemNotWork: startStopSystemNotWork, autoEmergencyBrakeSysFailure: autoEmergencyBrakeSysFailure, status: status, remark: remark, createdBy: createdBy, lastUpdatedBy: lastUpdatedBy }

故障列表
属性名标签可见可编辑
idIDxx
blindSpotMonitoringSysFailure车辆识别号码ox
blindSpotMonitoringSysFailure盲点监控系统故障ox
engineTheftPreventionSysFailure引擎防盗系统故障ox
batteryCharging电池充电ox
altitude高度ox
transmissionFailure传输失败ox
powerSteeringSystemFailure动力转向系统故障ox
autoParkingFailure自动停车失败ox
adaptiveCruiseFault自适应巡航故障ox
engineFailure发动机故障ox
stabilitySystemShutdown稳定系统关闭ox
oilPressure油压ox
slopeSlowDownFault斜坡减速故障ox
electronicParking电子停车ox
vin车辆识别号码ox
startStopSystemFailure开始停止系统故障ox
windshieldSensorShield挡风玻璃传感器护罩ox
longitude经度ox
laneDepartureSysFailure车道偏离系统故障ox
longitudeState经度状态ox
direct方向ox
tirePressureMonitoringSysFailure胎压监测系统故障ox
engineExhaustSystemFailure发动机排气系统故障ox
powerSteeringSystemInit动力转向系统ox
autoBrakSystemStatus自动刹车系统状态ox
latitudeState纬度州ox
loc位置ox
airbagFault安全气囊故障ox
errorContent错误内容ox
faultCategory故障类别ox
errorListCount错误列表计数 ox
electronicStabilitySysIndication电子稳定系统指示ox
tirePressureAnomaly轮胎压力异常ox
electronicParkingFailure电子停车故障ox
gpsSpeedgps速度ox
latitude纬度ox
sendingTime发送时间ox
startStopSystemNotWork启动停止系统不起作用ox
autoEmergencyBrakeSysFailure自动紧急制动系统故障ox
status状态oo
remark备注oo
edit编辑o-

2.5 车辆

2.5.1 车辆列表

mui-datatables(Material UI)表格作为模板, 加入CRUD修改而成. 关联表 CarTable.js

axios请求
请求地址请求参数
/Car/searchAllCarPager{ "pageIndex": 0, "pageSize": 30 }
/Car/hardDeleteCarById{id: id}
/Car/updateGeneralById{ id: id, carName: carName, price: price, periodicalTechnicalInspection: periodicalTechnicalInspection, roadTax3Months: roadTax3Months, carBody: carBody, transmission: transmission, seatsNumber: seatsNumber, firstYearOfProduction: firstYearOfProduction, lastYearOfProduction: lastYearOfProduction, lastUpdatedBy: lastUpdatedBy }
/Car/deactivateCarById{ id: id, lastUpdatedBy: lastUpdatedBy }
/Car/activateCarById{ id: id, lastUpdatedBy: lastUpdatedBy }
/Car/restoreCarById{ id: id, lastUpdatedBy: lastUpdatedBy }
/Car/softDeleteCarById{ id: id, lastUpdatedBy: lastUpdatedBy }
/Car/updateStatusById{ id: id, status: status, lastUpdatedBy: lastUpdatedBy }
/Car/updateRemarkById{ id: id, remark: remark, lastUpdatedBy: lastUpdatedBy }
/Car/addCar{ carName: carName, price: price, periodicalTechnicalInspection: periodicalTechnicalInspection, roadTax3Months: roadTax3Months, carBody: carBody, transmission: transmission, seatsNumber: seatsNumber, firstYearOfProduction: firstYearOfProduction, lastYearOfProduction: lastYearOfProduction, status: status, remark: remark, createdBy: createdBy, lastUpdatedBy: lastUpdatedBy }

车辆列表
属性名标签可见可编辑
idIDxx
carName车辆名oo
price价格oo
periodicalTechnicalInspection定期技术检查oo
roadTax3Months道路税每三月oo
carBody车身oo
transmission变速箱oo
seatsNumber座位数oo
firstYearOfProduction首次生产年份oo
lastYearOfProduction最后生产年份oo
isActivated启用状态oo
isDeleted删除状态oo
status状态oo
remark备注oo
edit编辑o-

2.5.2 日志列表

mui-datatables(Material UI)表格作为模板, 加入CRUD修改而成. 关联表 CarLogTable.js

axios请求
请求地址请求参数
/CarLog/searchAllCarLogList{}
/CarLog/hardDeleteCarById{id: id}
/CarLog/updateStatusById{ id: id, status: status, lastUpdatedBy: lastUpdatedBy }
/CarLog/updateRemarkById{ id: id, remark: remark, lastUpdatedBy: lastUpdatedBy }
/CarLog/addCarLog{ vin: vin, bootTime: bootTime, runTime: runTime, gear: gear, odometer: odometer, odometerAcc: odometerAcc, odometerRem: odometerRem, fuelRem: fuelRem, electroFuelRem: electroFuelRem, speed: speed, rpm: rpm, location: location, heading: heading, altitude: altitude, temperature: temperature, status: status, remark: remark, createdBy: createdBy, lastUpdatedBy: lastUpdatedBy }

日志列表
属性名标签可见可编辑
idIDxx
vin车辆识别号码ox
generalComment整体评价ox
generalScore整体分数ox
driveComment驱动评价ox
driveScore驱动分数ox
fuelEngineComment燃油引擎评价ox
fuelEngineScore燃油引擎分数ox
performanceComment性能评价ox
performanceScore性能分数ox
consumptionComment效能评价ox
consumptionScore效能分数ox
chassisComment车身评价ox
chassisScore车身分数ox
transmissionComment传动评价ox
transmissionScore传动分数ox
status状态oo
remark备注oo
edit编辑o-

2.5.3 故障列表

#2.4-车辆故障信息表

2.5.4 故障详细列表

mui-datatables(Material UI)表格作为模板, 加入CRUD修改而成. 关联表 CarWarningDetailTables.js

axios请求
请求地址请求参数
/CarWarningDetail/searchAllCarWarningDetailList{}
/CarWarningDetail/deleteCarWarningDetailById{id: id}
/CarWarningDetail/updateStatusById{ id: id, status: status, lastUpdatedBy: lastUpdatedBy }
/CarWarningDetail/updateRemarkById{ id: id, remark: remark, lastUpdatedBy: lastUpdatedBy }
/CarWarningDetail/addCarWarningDetail{ carType: carType, faultCategory: faultCategory, errorContent: errorContent, errorDetail: errorDetail, status: status, remark: remark, createdBy: createdBy, lastUpdatedBy: lastUpdatedBy }

故障详细列表
属性名标签可见可编辑
idIDxx
carType车辆型号(vin前六位)ox
faultCategory整体评价ox
errorContent整体分数ox
errorDetail驱动评价ox
status状态oo
remark备注oo
edit编辑o-

2.5.5 保修列表

mui-datatables(Material UI)表格作为模板, 加入CRUD修改而成. 关联表 CarWarrantyTables.js

axios请求
请求地址请求参数
/CarWarranty/searchAllCarWarrantyList{}
/CarWarranty/deleteCarWarrantyById{id: id}
/CarWarranty/updateStatusById{ id: id, status: status, lastUpdatedBy: lastUpdatedBy }
/CarWarranty/updateRemarkById{ id: id, remark: remark, lastUpdatedBy: lastUpdatedBy }
/CarWarranty/addCarWarranty{ vin: vin, generalComment: generalComment, generalScore: generalScore, driveComment: driveComment, driveScore: driveScore, fuelEngineComment: fuelEngineComment, fuelEngineScore: fuelEngineScore, performanceComment: performanceComment, performanceScore: performanceScore, consumptionComment: consumptionComment, consumptionScore: consumptionScore, chassisComment: chassisComment, chassisScore: chassisScore, transmissionComment: transmissionComment, transmissionScore: transmissionScore, status: status, remark: remark, createdBy: createdBy, lastUpdatedBy: lastUpdatedBy }

保修列表
属性名标签可见可编辑
idIDxx
vin车辆识别号码ox
generalComment整体评价ox
generalScore整体分数ox
driveComment驱动评价ox
driveScore驱动分数ox
fuelEngineComment燃油引擎评价ox
fuelEngineScore燃油引擎分数ox
performanceComment性能评价ox
performanceScore性能分数ox
consumptionComment效能评价ox
consumptionScore效能分数ox
chassisComment车身评价ox
chassisScore车身分数ox
transmissionComment传动评价ox
transmissionScore传动分数ox
status状态oo
remark备注oo
edit编辑o-

2.6 用户

2.6.1 用户列表

mui-datatables(Material UI)表格作为模板, 加入CRUD修改而成. 关联表 UserTables.js

axios请求
请求地址请求参数
/User/searchAllUserList{}
/User/resetPasswordById{ id: id, lastUpdatedBy: lastUpdatedBy }
/User/hardDeleteUserById{ id: id }
/User/updateEmailById{ id: id, email: email, lastUpdatedBy: lastUpdatedBy }
/User/updatePhoneById{}
/User/updateAvatarById{ id: id, avatar: avatar, lastUpdatedBy: lastUpdatedBy }
/User/deactivateUserById{ id: id, lastUpdatedBy: lastUpdatedBy }
/User/activateUserById{ id: id, lastUpdatedBy: lastUpdatedBy }
/User/restoreUserById{ id: id, lastUpdatedBy: lastUpdatedBy }
/User/softDeleteUserById{ id: id, lastUpdatedBy: lastUpdatedBy }
/User/updateStatusById{ id: id, status: status, lastUpdatedBy: lastUpdatedBy }
/User/updateRemarkById{ id: id, remark: remark, lastUpdatedBy: lastUpdatedBy }
/User/addUser{ username: username, password: password, email: email, avatar: avatar, status: status, remark: remark, createdBy: createdBy, lastUpdatedBy: lastUpdatedBy }

用户列表
属性名标签可见可编辑
idIDxx
username用户名ox
email邮箱oo
phone电话oo
avatar头像oo
createdDate注册日期ox
isActivated启用状态oo
isDeleted删除状态oo
status状态oo
remark备注oo
edit编辑o-

2.6.2 用户车辆列表

mui-datatables(Material UI)表格作为模板, 加入CRUD修改而成. 关联表 UserCarTables.js

axios请求
请求地址请求参数
/UserCar/searchAllUserCarList{}
/UserCar/deleteUserCarById{id: id}
/UserCar/updateStatusById{ id: id, status: status, lastUpdatedBy: lastUpdatedBy }
/UserCar/updateRemarkById{ id: id, remark: remark, lastUpdatedBy: lastUpdatedBy }
/UserCar/addCar2User{ userId: userId, username: username, carId: carId, carName: carName, vin: vin, _4SShop: _4SShop, saleLoc: saleLoc, saleTime: saleTime, status: status, remark: remark, createdBy: createdBy, lastUpdatedBy: lastUpdatedBy }

角色列表
属性名标签可见可编辑
idIDxx
userId用户IDox
username用户名ox
carId车辆IDox
carName车辆名ox
vin车辆识别号码ox
_4SShop4S店名ox
saleLoc销售位置ox
saleTime销售时间ox
status状态oo
remark备注oo
edit编辑o-

2.6.3 角色列表

mui-datatables(Material UI)表格作为模板, 加入CRUD修改而成. 关联表 RoleTables.js

axios请求
请求地址请求参数
/Role/searchAllRoleList{}
/Role/hardDeleteRoleById{id: id}
/Role/updateRoleById{ id: id, roleName: roleName, fatherRoleId: fatherRoleId, lastUpdatedBy: lastUpdatedBy }
/Role/deactivateRoleById{ id: id, lastUpdatedBy: lastUpdatedBy }
/Role/activateRoleById{ id: id, lastUpdatedBy: lastUpdatedBy }
/Role/restoreRoleById{ id: id, lastUpdatedBy: lastUpdatedBy }
/Role/softDeleteRoleById{ id: id, lastUpdatedBy: lastUpdatedBy }
/Role/updateStatusById{ id: id, status: status, lastUpdatedBy: lastUpdatedBy }
/Role/updateRemarkById{ id: id, remark: remark, lastUpdatedBy: lastUpdatedBy }
/Role/addRole{ roleName: roleName, roleType: roleType, fatherRoleId: fatherRoleId, status: status, remark: remark, createdBy: createdBy, lastUpdatedBy: lastUpdatedBy }

角色列表
属性名标签可见可编辑
idIDxx
roleName角色名oo
roleType角色类型oo
fatherRoleId父角色IDoo
isActivated启用状态oo
isDeleted删除状态oo
status状态oo
remark备注oo
edit编辑o-

2.7 视觉图表

mui-datatables(Material UI)表格作为模板, 加入CRUD修改而成. 关联表 VisualChartTables.js

axios请求
请求地址请求参数
/VisualChart/searchAllVisualChartList{}
/VisualChart/deleteVisualChartById{id: id}
/VisualChart/updateStatusById{ id: id, status: status, lastUpdatedBy: lastUpdatedBy }
/VisualChart/updateRemarkById{ id: id, remark: remark, lastUpdatedBy: lastUpdatedBy }
/VisualChart/addVisualChart{ chartName: chartName, chartType: chartType, chartData: chartData, status: status, remark: remark, createdBy: createdBy, lastUpdatedBy: lastUpdatedBy }

视觉图表
属性名标签可见可编辑
idIDxx
chartName图表名ox
chartType图表类型ox
chartData图表数据ox
status状态oo
remark备注oo
edit编辑o-

2.8 个人

2.8.1 个人资料

mui-TextField配合其他元件组合而成(Material UI). 关联表 Profile.js

axios请求
请求地址请求参数
/User/searchUserById{id: id}
/User/updatePhoneById{ id: id, phone: phone, lastUpdatedBy: username, }
/User/updateEmailById{ id: id, email: email, lastUpdatedBy: lastUpdatedBy }
/User/updateAvatarById{ id: id, avatar: avatar, lastUpdatedBy: lastUpdatedBy }

个人资料
属性名标签可见可编辑
idIDox
createdDate注册日期ox
lastUpdatedDate最后修改日期ox
username用户名ox
email邮箱oo
phone电话oo
avatar头像oo

2.8.2 账户安全

mui-TextField配合其他元件组合而成(Material UI). 关联表 Security.js

axios请求
请求地址请求参数
/User/updatePasswordById{ id: id, remark: remark, password: password, lastUpdatedBy: lastUpdatedBy }

账户安全
属性名标签可见可编辑
oldPassword旧密码oo
newPassword新密码oo
confirmNewPassword确认密码oo

2.9 登录与注册

关联表 Login.js & UserContext.js

axios请求
请求地址请求参数
/User/login{ username : username, password : password }
/User/searchUserByUsername{ username : username }
/User/register{ email : email, username : username, password : password, createdBy : createdBy, lastUpdatedBy : lastUpdatedBy }

3 开发相关资料

3.1 Spring

安装环境, 搭建Spring框架

数据库相关部分: JPA, Hibernate, Query

3.2 MySQL

如果你有一台VPS(虚拟服务器), 可以在服务器上安装MySQL, 之后通过本地的Navicat或其他软件连接此服务器.

root登录

> mysql --user=root -p

安装MySQL, 创建用户, 授予权限

创建表格使用Spring的JPA, 详见 #131_Spring 部分.

3.3 Java

数据编码与加密: MD5, Base64

正则化: 用户名, 密码, 邮箱, 电话

3.4 React

3.5 Code Lib

  • 代码示例在线查询 codota

3.6 WikiText

3.7 JavaScript

4 数据来源