feat: 新增数据管理模块(区域管理)及修复前端已知问题
后端(bms-back):
- 新增区域管理完整后端:Domain/Mapper/Service/Controller + MyBatis XML
- 新增 RestTemplateConfig 配置类,用于第三方API调用
- 新增 countries.json 本地国家数据源(105个国家)
- RuoYiApplication 加 @EnableAsync 支持异步任务
- application-druid.yml 修复 Druid 连接池字符集配置(SET NAMES utf8mb4)
- logback.xml 日志路径改为 ${user.dir}/logs 避免沙箱写入受限
- pom.xml 增加 JVM 编码参数(-Dfile.encoding=UTF-8)
- 新增 sql/bms_region.sql 建表脚本+菜单权限
前端(bms-front):
- 新增区域管理页面(列表/编辑/状态切换/同步国家数据/导出)
- 新增同步日志功能(内嵌为区域管理弹窗,移除独立菜单)
- 新增 API 层: region.js / region-log.js
- 修复 BasicForm/index.vue 缺失 import FormControl 导致搜索栏控件不渲染
- 修复 user/role/region 三个页面 el-switch 初始化时弹 undefined 提示
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.BmsRegion;
|
||||
|
||||
/**
|
||||
* 国家/区域 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface BmsRegionMapper
|
||||
{
|
||||
/**
|
||||
* 查询区域信息
|
||||
*
|
||||
* @param regionId 区域ID
|
||||
* @return 区域信息
|
||||
*/
|
||||
public BmsRegion selectRegionById(Long regionId);
|
||||
|
||||
/**
|
||||
* 查询区域列表
|
||||
*
|
||||
* @param region 区域信息
|
||||
* @return 区域集合
|
||||
*/
|
||||
public List<BmsRegion> selectRegionList(BmsRegion region);
|
||||
|
||||
/**
|
||||
* 根据ISO两位码查询区域
|
||||
*
|
||||
* @param countryCode2 ISO两位码
|
||||
* @return 区域信息
|
||||
*/
|
||||
public BmsRegion selectRegionByCode2(String countryCode2);
|
||||
|
||||
/**
|
||||
* 新增区域
|
||||
*
|
||||
* @param region 区域信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRegion(BmsRegion region);
|
||||
|
||||
/**
|
||||
* 修改区域
|
||||
*
|
||||
* @param region 区域信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRegion(BmsRegion region);
|
||||
|
||||
/**
|
||||
* 批量删除区域
|
||||
*
|
||||
* @param regionIds 需要删除的区域ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRegionByIds(Long[] regionIds);
|
||||
|
||||
/**
|
||||
* 根据ISO两位码做upsert(存在则更新,不存在则新增)
|
||||
*
|
||||
* @param region 区域信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int upsertByCode2(BmsRegion region);
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.BmsRegionSyncLog;
|
||||
|
||||
/**
|
||||
* 区域数据同步日志 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public interface BmsRegionSyncLogMapper
|
||||
{
|
||||
/**
|
||||
* 查询同步日志
|
||||
*
|
||||
* @param logId 日志ID
|
||||
* @return 同步日志
|
||||
*/
|
||||
public BmsRegionSyncLog selectSyncLogById(Long logId);
|
||||
|
||||
/**
|
||||
* 查询同步日志列表
|
||||
*
|
||||
* @param syncLog 同步日志
|
||||
* @return 同步日志集合
|
||||
*/
|
||||
public List<BmsRegionSyncLog> selectSyncLogList(BmsRegionSyncLog syncLog);
|
||||
|
||||
/**
|
||||
* 新增同步日志
|
||||
*
|
||||
* @param syncLog 同步日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSyncLog(BmsRegionSyncLog syncLog);
|
||||
|
||||
/**
|
||||
* 修改同步日志
|
||||
*
|
||||
* @param syncLog 同步日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSyncLog(BmsRegionSyncLog syncLog);
|
||||
|
||||
/**
|
||||
* 批量删除同步日志
|
||||
*
|
||||
* @param logIds 需要删除的日志ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSyncLogByIds(Long[] logIds);
|
||||
}
|
||||
Reference in New Issue
Block a user