From 089e288a6e55d2ae527ad733bbb8b8b5eaad6107 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期日, 18 七月 2021 18:20:21 +0800 Subject: [PATCH] update 使用 策略+工厂 重写OSS模块 --- ruoyi-oss/src/main/resources/mapper/system/SysOssMapper.xml | 25 +++++++++++-------------- 1 files changed, 11 insertions(+), 14 deletions(-) diff --git a/ruoyi-oss/src/main/resources/mapper/system/SysOssMapper.xml b/ruoyi-oss/src/main/resources/mapper/system/SysOssMapper.xml index 1af8bf1..a1e4ca8 100644 --- a/ruoyi-oss/src/main/resources/mapper/system/SysOssMapper.xml +++ b/ruoyi-oss/src/main/resources/mapper/system/SysOssMapper.xml @@ -1,21 +1,18 @@ <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.chkj.cloudStorage.mapper.SysOssMapper"> +<mapper namespace="com.ruoyi.system.mapper.SysOssMapper"> - <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 --> - <resultMap id="BaseResultMap" type="com.chkj.cloudStorage.domain.SysOss"> - <id column="id" property="id"/> - <result column="file_name" property="fileName"/> - <result column="file_suffix" property="fileSuffix"/> - <result column="url" property="url"/> - <result column="create_time" property="createTime"/> - <result column="create_by" property="createBy"/> - <result column="service" property="service"/> + <resultMap type="com.ruoyi.system.domain.SysOss" id="SysOssResult"> + <result property="ossId" column="oss_id"/> + <result property="fileName" column="file_name"/> + <result property="fileSuffix" column="file_suffix"/> + <result property="url" column="url"/> + <result property="createTime" column="create_time"/> + <result property="createBy" column="create_by"/> + <result property="updateTime" column="update_time"/> + <result property="updateBy" column="update_by"/> + <result property="service" column="service"/> </resultMap> - <!-- 閫氱敤鏌ヨ缁撴灉鍒� --> - <sql id="Base_Column_List"> - id, file_name, file_suffix, url, create_time, create_by, service - </sql> </mapper> -- Gitblit v1.9.3