Browse Source

回退file代码为无修改

zhaojinyu 3 weeks ago
parent
commit
a525f77b89

+ 0 - 11
base-modules/service-file/pom.xml

@@ -74,17 +74,6 @@
             <groupId>com.usky</groupId>
             <artifactId>ruoyi-common-core</artifactId>
         </dependency>
-        <dependency>
-            <groupId>javax.validation</groupId>
-            <artifactId>validation-api</artifactId>
-            <version>2.0.1.Final</version>
-        </dependency>
-        <dependency>
-            <groupId>com.h2database</groupId>
-            <artifactId>h2</artifactId>
-            <scope>runtime</scope>
-        </dependency>
-
     </dependencies>
 
     <build>

+ 4 - 30
base-modules/service-file/src/main/java/com/ruoyi/file/RuoYiFileApplication.java

@@ -21,38 +21,12 @@ import java.net.UnknownHostException;
  * 
  * @author ruoyi
  */
-//@EnableCustomSwagger2
-//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })
-//public class RuoYiFileApplication
-//{
-//    public static void main(String[] args)
-//    {
-//        SpringApplication.run(RuoYiFileApplication.class, args);
-//    }
-//}
-
 @EnableCustomSwagger2
-@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
-@EnableFeignClients(basePackages = {"com.ruoyi"})
-@MapperScan(value = "com.ruoyi.file.mapper")
-@ComponentScan(basePackages = {"com.ruoyi"})
-@SpringBootApplication
+@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })
 public class RuoYiFileApplication
 {
-    private static final Logger LOGGER = LoggerFactory.getLogger(RuoYiFileApplication.class);
-
-    public static void main(String[] args) throws UnknownHostException {
-        ConfigurableApplicationContext application = SpringApplication.run(RuoYiFileApplication.class, args);
-        Environment env = application.getEnvironment();
-        String ip = InetAddress.getLocalHost().getHostAddress();
-        String port = env.getProperty("server.port");
-        String path = env.getProperty("server.servlet.context-path");
-        LOGGER.info("\n----------------------------------------------------------\n\t" +
-                "Application is running! Access URLs:\n\t" +
-                "Local: \t\thttp://localhost:" + port + (null==path?"":path) + "/\n\t" +
-                "External: \thttp://" + ip + ":" + port + (null==path?"":path) + "/\n\t" +
-                "Api: \t\thttp://" + ip + ":" + port + (null==path?"":path) + "/swagger-ui/index.html\n\t" +
-                "----------------------------------------------------------");
+    public static void main(String[] args)
+    {
+        SpringApplication.run(RuoYiFileApplication.class, args);
     }
 }
-

+ 0 - 82
base-modules/service-file/src/main/resources/mapper.file/UploadFileMapper.xml

@@ -1,82 +0,0 @@
-<?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.ruoyi.file.mapper.UploadFileMapper">
-
-    <resultMap type="com.ruoyi.file.service.UploadFile" id="UploadFileResult">
-        <result property="id" column="id"/>
-        <result property="name" column="name"/>
-        <result property="fileName" column="file_name"/>
-        <result property="fileSuffix" column="file_suffix"/>
-        <result property="type" column="type"/>
-        <result property="domain" column="domain"/>
-        <result property="path" column="path"/>
-        <result property="pathExt" column="path_ext"/>
-        <result property="size" column="size"/>
-        <result property="bussinessId" column="bussiness_id"/>
-        <result property="status" column="status"/>
-        <result property="createTime" column="create_time"/>
-        <result property="createBy" column="create_by"/>
-        <result property="updateTime" column="update_time"/>
-        <result property="updateBy" column="update_by"/>
-    </resultMap>
-
-    <insert id="insertUploadFile" parameterType="com.ruoyi.file.service.UploadFile">
-        insert into upload_file
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">id,</if>
-            <if test="name != null">name,</if>
-            <if test="fileName != null">file_name,</if>
-            <if test="fileSuffix != null">file_suffix,</if>
-            <if test="type != null">type,</if>
-            <if test="domain != null">domain,</if>
-            <if test="path != null">path,</if>
-            <if test="pathExt != null">path_ext,</if>
-            <if test="size != null">size,</if>
-            <if test="bussinessId != null">bussiness_id,</if>
-            <if test="status != null">status,</if>
-            <if test="createTime != null">create_time,</if>
-            <if test="createBy != null">create_by,</if>
-            <if test="updateTime != null">update_time,</if>
-            <if test="updateBy != null">update_by,</if>
-        </trim>
-        values
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">#{id},</if>
-            <if test="name != null">#{name},</if>
-            <if test="fileName != null">#{fileName},</if>
-            <if test="fileSuffix != null">#{fileSuffix},</if>
-            <if test="type != null">#{type},</if>
-            <if test="domain != null">#{domain},</if>
-            <if test="path != null">#{path},</if>
-            <if test="pathExt != null">#{pathExt},</if>
-            <if test="size != null">#{size},</if>
-            <if test="bussinessId != null">#{bussinessId},</if>
-            <if test="status != null">#{status},</if>
-            <if test="createTime != null">#{createTime},</if>
-            <if test="createBy != null">#{createBy},</if>
-            <if test="updateTime != null">#{updateTime},</if>
-            <if test="updateBy != null">#{updateBy},</if>
-        </trim>
-    </insert>
-
-    <select id="selectOne" resultMap="UploadFileResult">
-        select
-        <include refid="UploadFile_Column_List"/>
-        from upload_file
-        where 1=1
-        <if test="id != null">
-            and id = #{id}
-        </if>
-        <if test="bussinessId != null">
-            and bussiness_id = #{bussinessId}
-        </if>
-        <if test="status != null">
-            and status = #{status}
-        </if>
-    </select>
-
-
-
-</mapper>