Procházet zdrojové kódy

删除无用文件

Young před 2 roky
rodič
revize
cf6fed9d18

+ 6 - 36
src/main/resources/application.yml

@@ -3,48 +3,18 @@ server:
   servlet:
     context-path: /deliver
 spring:
-  profiles:
-    active: dev
-  datasource:
-    name: sumbytes
-    url:  ${MYSQL_DATABASE:jdbc:mysql://mysql.nosum.cn:3306/deliver?useSSL=false&characterEncoding=utf8}
-    username: ${MYSQL_USERNAME:nosum}
-    password: ${MYSQL_PASSWORD:QingSe_1H}
-    type: com.zaxxer.hikari.HikariDataSource
-    driver-class-name: com.mysql.jdbc.Driver
-    hikari:
-      connection-timeout: 30000
-      minimum-idle: 5
-      maximum-pool-size: 20
-      auto-commit: true
-      idle-timeout: 30000
-      pool-name: sumbytes
-      max-lifetime: 1800000
-      connection-test-query: SELECT 1
   servlet:
     multipart:
       enabled: true
-      max-file-size: 2MB  #设置支持的单个上传文件大小
-      max-request-size: 6MB  #设置最大的请求文件大小,设置总体大小的请求
-      file-size-threshold: 512KB #当上传文件达到指定配置量的时候,会将文件内容写入到磁盘
+      max-file-size: 100MB  #设置支持的单个上传文件大小
+      max-request-size: 600MB  #设置最大的请求文件大小,设置总体大小的请求
+      file-size-threshold: 10MB #当上传文件达到指定配置量的时候,会将文件内容写入到磁盘
       location: /   #设置上传文件的临时目录
   data:
     mongodb:
       host: 8.131.250.69
       port: 28018
       database: deliver
-
-mybatis-plus:
-  mapper-locations: classpath:/mapper/*/*.xml
-  typeAliasesPackage: com.nosum.deliver.*.dao
-  global-config:
-    db-config:
-      #数据库大写下划线转换
-      capital-mode: false
-      #删除
-      logic-delete-value: 1
-      #不删除
-      logic-not-delete-value: 0
-  configuration:
-    map-underscore-to-camel-case: true
-    cache-enabled: true
+      authentication-database: admin
+      username: admin
+      password: QingSe_1H

binární
src/main/resources/dll/libsigar-amd64-linux.so


binární
src/main/resources/dll/sigar-amd64-winnt.dll


+ 0 - 158
src/main/resources/mapper/posts/PostsMapper.xml

@@ -1,158 +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.nosum.deliver.posts.dao.PostsDao">
-
-    <sql id="BASE_SQL">
-      	id,author_id as authorId,title,thumbnail,comments, is_comment as isComment, sync_status as syncStatus,status,summary,views,weight,category_id as categoryId,create_time as createTime,update_time as updateTime
-   </sql>
-
-    <!-- 通用查询映射结果 -->
-    <resultMap id="BaseResultMap" type="com.nosum.deliver.posts.domain.po.Posts">
-        <id column="id" property="id"/>
-        <result column="title" property="title"/>
-        <result column="thumbnail" property="thumbnail"/>
-        <result column="comments" property="comments"/>
-        <result column="status" property="status"/>
-        <result column="summary" property="summary"/>
-        <result column="views" property="views"/>
-        <result column="author_id" property="authorId"/>
-        <result column="sync_status" property="syncStatus"/>
-        <result column="category_id" property="categoryId"/>
-        <result column="is_comment" property="isComment"/>
-        <result column="weight" property="weight"/>
-        <result column="create_time" property="createTime"/>
-        <result column="update_time" property="updateTime"/>
-    </resultMap>
-
-    <select id="selectPostsList" resultType="com.nosum.deliver.posts.domain.vo.PostsVO">
-        SELECT
-        DISTINCT(posts.id),
-        posts.title,
-        posts.status,
-        posts.summary,
-        posts.thumbnail,
-        posts.sync_status syncStatus,
-        users.name author,
-        posts.views,
-        posts.comments,
-        posts.category_id as categoryId,
-        category.name as categoryName,
-        posts.weight,
-        posts.create_time createTime
-        FROM
-        posts posts
-        LEFT JOIN auth_user users ON users.id = posts.author_id
-        LEFT JOIN posts_tags postsTags ON postsTags.posts_id = posts.id
-        LEFT JOIN tags tags ON postsTags.tags_id = tags.id
-        LEFT JOIN category category ON category.id=posts.category_id
-        <where>
-            <if test="condition.archiveDate != null">
-                BETWEEN DATE_FORMAT( condition.archiveDate, "%Y-%m-01 00:00:00") AND DATE_FORMAT(condition.archiveDate, "%Y-%m-01 59:59:59" )
-            </if>
-            <if test="condition.createTime != null">
-                AND posts.create_time = #{condition.createTime}
-            </if>
-            <if test="condition.keywords != null and condition.keywords != ''">
-                AND (posts.title LIKE #{condition.keywords} OR posts.summary LIKE #{condition.keywords})
-            </if>
-            <if test="condition.tagsName != null and condition.tagsName != ''">
-                AND tags.name = #{condition.tagsName}
-            </if>
-            <if test="condition.categoryId != null and condition.categoryId != ''">
-                AND posts.category_id  = #{condition.categoryId}
-            </if>
-            <if test="condition.postsTagsId != null and condition.postsTagsId != ''">
-                AND postsTags.tags_id = #{condition.postsTagsId}
-            </if>
-            <if test="condition.title != null and condition.title != ''">
-                AND posts.title LIKE #{condition.title}
-            </if>
-            <if test="condition.isPublishByteBlogs != null and condition.isPublishByteBlogs != ''">
-                AND posts.sync_status = #{condition.isPublishByteBlogs}
-            </if>
-            <if test="condition.status != null and condition.status != ''">
-                AND posts.status = #{condition.status}
-            </if>
-        </where>
-        <choose>
-            <when test="condition.isWeight != null and condition.isWeight == 1" >
-                ORDER BY posts.weight DESC
-            </when>
-            <otherwise>
-                ORDER BY posts.id DESC
-            </otherwise>
-        </choose>
-    </select>
-
-    <select id="selectArchiveGroupYearList" resultType="com.nosum.deliver.posts.domain.vo.PostsVO">
-        SELECT
-          id,
-          title,
-          create_time createTime,
-          DATE_FORMAT( create_time, "%Y" ) `year`
-        FROM
-          posts
-        ORDER BY
-          DATE_FORMAT( create_time, "%Y" ) DESC
-    </select>
-
-    <select id="selectPostsTotal" resultType="com.nosum.deliver.posts.domain.vo.PostsVO">
-    SELECT
-      SUM(comments) commentsTotal,
-      SUM(views) viewsTotal
-    FROM
-      posts posts
-    </select>
-
-    <select id="selectArchiveTotalGroupDateList" resultType="com.nosum.deliver.posts.domain.vo.PostsVO">
-      SELECT
-     	DATE_FORMAT( create_time, "%Y-%m-01 00:00:00" ) archiveDate,
-        COUNT(*) articleTotal
-      FROM
-        posts
-      GROUP BY DATE_FORMAT( create_time, "%Y-%m-01 00:00:00" )
-      ORDER BY id DESC
-    </select>
-    <select id="selectOneById" resultType="com.nosum.deliver.posts.domain.po.Posts">
-        SELECT
-            posts.`id`,
-            posts.`author_id`,
-            posts.`title`,
-            posts.`thumbnail`,
-            posts.`comments`,
-            posts.`is_comment`,
-            posts.`sync_status`,
-            posts.`status`,
-            posts.`summary`,
-            posts.`views`,
-            posts.`weight`,
-            posts.`category_id`,
-            category.name as categoryName,
-            posts.`create_time`,
-            posts.`update_time`
-        FROM posts as posts
-        LEFT JOIN category as category ON category.id=posts.category_id
-        WHERE posts.id=#{id}
-    </select>
-    <select id="selectByArchiveDate" resultType="com.nosum.deliver.posts.domain.vo.PostsVO">
-        SELECT <include refid="BASE_SQL"/>
-        FROM posts
-        WHERE DATE_FORMAT( create_time,"%Y-%m-01 00:00:00")= DATE_FORMAT(#{archiveDate}, "%Y-%m-01 00:00:00" )
-    </select>
-
-    <select id="selectHotPostsList" resultType="com.nosum.deliver.posts.domain.vo.PostsVO">
-
-    </select>
-    <select id="selectByStatistics" resultType="com.nosum.deliver.posts.domain.vo.PostsStatisticsVO">
-        SELECT COUNT(1) as articleTotal,SUM(views) as viewsTotal,SUM(comments) as commentsTotal
-        FROM `posts`
-    </select>
-
-    <update id="incrementView">
-       UPDATE posts SET views = views + 1 WHERE id = #{id}
-    </update>
-
-    <update id="incrementComments">
-       UPDATE posts SET comments = comments + 1 WHERE id = #{id}
-    </update>
-</mapper>