Przeglądaj źródła

发现栏目、优化部分列表查询

XMTT 7 lat temu
rodzic
commit
dca55ff9bd

+ 9 - 0
src/main/java/com/ekexiu/console/system/dao/ArticleDao.java

@ -6,6 +6,7 @@ import org.jfw.apt.annotation.Nullable;
6 6
import org.jfw.apt.orm.annotation.dao.Batch;
7 7
import org.jfw.apt.orm.annotation.dao.Column;
8 8
import org.jfw.apt.orm.annotation.dao.DAO;
9
import org.jfw.apt.orm.annotation.dao.method.Exclude;
9 10
import org.jfw.apt.orm.annotation.dao.method.From;
10 11
import org.jfw.apt.orm.annotation.dao.method.OrderBy;
11 12
import org.jfw.apt.orm.annotation.dao.method.Where;
@ -39,11 +40,13 @@ public interface ArticleDao {
39 40
    @PageQuery
40 41
    @OrderBy(" ORDER BY publish_time DESC NULLS LAST")
41 42
    @Where("status='1'")
43
    @Exclude("articleContent")
42 44
    PageQueryResult<ArticleInfo> queryByTime(Connection con, @Nullable @Like String articleTitle, @SqlColumn(value = {"(p.name is null or p.name like ?)", "(o.name is null or o.name like ?)"}, handlerClass = StringHandler.class) String name, @Nullable @GtEq @Alias("publishTime") String bt, @Nullable @Alias("publishTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
43 45
44 46
    @PageQuery
45 47
    @OrderBy(" ORDER BY page_views DESC NULLS LAST")
46 48
    @Where("status='1'")
49
    @Exclude("articleContent")
47 50
    PageQueryResult<ArticleInfo> queryByPV(Connection con, @Nullable @Like String articleTitle, @SqlColumn(value = {"(p.name is null or p.name like ?)", "(o.name is null or o.name like ?)"}, handlerClass = StringHandler.class) String name, @Nullable @GtEq @Alias("publishTime") String bt, @Nullable @Alias("publishTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
48 51
49 52
    @Batch
@ -66,4 +69,10 @@ public interface ArticleDao {
66 69
    @UpdateWith
67 70
    @From(Article.class)
68 71
    int updateSubject(Connection con, String articleId, @Set String subject) throws SQLException;
72
73
    @Nullable
74
    @QueryVal
75
    @Column(handlerClass = StringHandler.class, value = "article_img")
76
    @From(Article.class)
77
    String queryImagePath(Connection con, String articleId) throws SQLException;
69 78
}

+ 9 - 2
src/main/java/com/ekexiu/console/system/dao/DiscoverBannerDao.java

@ -8,6 +8,7 @@ import org.jfw.apt.orm.annotation.dao.method.OrderBy;
8 8
import org.jfw.apt.orm.annotation.dao.method.SetSentence;
9 9
import org.jfw.apt.orm.annotation.dao.method.Where;
10 10
import org.jfw.apt.orm.annotation.dao.method.operator.*;
11
import org.jfw.apt.orm.annotation.dao.param.Like;
11 12
import org.jfw.util.PageQueryResult;
12 13
13 14
import java.sql.Connection;
@ -30,12 +31,18 @@ public interface DiscoverBannerDao {
30 31
    long insert(Connection con, DiscoverBanner discoverBanner) throws SQLException;
31 32
32 33
    @PageQuery
33
    @OrderBy(" ORDER BY create_time DESC")
34
    PageQueryResult<DiscoverBanner> query(Connection con, @Nullable String title, int pageSize, int pageNo) throws SQLException;
34
    @OrderBy(" ORDER BY location, create_time DESC")
35
    PageQueryResult<DiscoverBanner> query(Connection con, @Nullable @Like String title, int pageSize, int pageNo) throws SQLException;
35 36
36 37
    @UpdateWith
37 38
    @From(DiscoverBanner.class)
38 39
    @SetSentence("end_time = TO_CHAR(NOW(),'YYYYMMDDHH24MISS') ")
39 40
    @Where("begin_time is not null and end_time is null")
40 41
    int end(Connection con)throws SQLException;
42
43
    @UpdateWith
44
    @From(DiscoverBanner.class)
45
    @SetSentence("location = null")
46
    @Where("location is not null")
47
    int clearLocation(Connection con) throws SQLException;
41 48
}

+ 3 - 0
src/main/java/com/ekexiu/console/system/dao/PpaperDao.java

@ -4,6 +4,7 @@ import com.ekexiu.console.system.po.Ppaper;
4 4
import org.jfw.apt.annotation.Nullable;
5 5
import org.jfw.apt.orm.annotation.dao.Column;
6 6
import org.jfw.apt.orm.annotation.dao.DAO;
7
import org.jfw.apt.orm.annotation.dao.method.Exclude;
7 8
import org.jfw.apt.orm.annotation.dao.method.From;
8 9
import org.jfw.apt.orm.annotation.dao.method.OrderBy;
9 10
import org.jfw.apt.orm.annotation.dao.method.operator.PageQuery;
@ -35,10 +36,12 @@ public interface PpaperDao {
35 36
36 37
    @PageQuery
37 38
    @OrderBy(" ORDER BY create_time DESC NULLS LAST")
39
    @Exclude("summary")
38 40
    PageQueryResult<Ppaper> queryByTime(Connection con, @Nullable @Like String name, @Nullable @Like String authors, @Nullable @GtEq @Alias("createTime") String bt, @Nullable @Alias("createTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
39 41
40 42
    @PageQuery
41 43
    @OrderBy(" ORDER BY page_views DESC NULLS LAST")
44
    @Exclude("summary")
42 45
    PageQueryResult<Ppaper> queryByPV(Connection con, @Nullable @Like String name,@Nullable @Like String authors, @Nullable @GtEq @Alias("createTime") String bt, @Nullable @Alias("createTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
43 46
44 47
    @UpdateWith

+ 3 - 0
src/main/java/com/ekexiu/console/system/dao/PpatentDao.java

@ -4,6 +4,7 @@ import com.ekexiu.console.system.po.Ppatent;
4 4
import org.jfw.apt.annotation.Nullable;
5 5
import org.jfw.apt.orm.annotation.dao.Column;
6 6
import org.jfw.apt.orm.annotation.dao.DAO;
7
import org.jfw.apt.orm.annotation.dao.method.Exclude;
7 8
import org.jfw.apt.orm.annotation.dao.method.From;
8 9
import org.jfw.apt.orm.annotation.dao.method.OrderBy;
9 10
import org.jfw.apt.orm.annotation.dao.method.operator.PageQuery;
@ -35,10 +36,12 @@ public interface PpatentDao {
35 36
36 37
    @PageQuery
37 38
    @OrderBy(" ORDER BY create_time DESC NULLS LAST")
39
    @Exclude("summary")
38 40
    PageQueryResult<Ppatent> queryByTime(Connection con, @Nullable @Like String name, @Nullable @Like String authors, @Nullable @GtEq @Alias("createTime") String bt, @Nullable @Alias("createTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
39 41
40 42
    @PageQuery
41 43
    @OrderBy(" ORDER BY page_views DESC NULLS LAST")
44
    @Exclude("summary")
42 45
    PageQueryResult<Ppatent> queryByPV(Connection con, @Nullable @Like String name,@Nullable @Like String authors, @Nullable @GtEq @Alias("createTime") String bt, @Nullable @Alias("createTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
43 46
44 47
    @UpdateWith

+ 3 - 0
src/main/java/com/ekexiu/console/system/dao/ResourceDao.java

@ -6,6 +6,7 @@ import org.jfw.apt.annotation.Nullable;
6 6
import org.jfw.apt.orm.annotation.dao.Batch;
7 7
import org.jfw.apt.orm.annotation.dao.Column;
8 8
import org.jfw.apt.orm.annotation.dao.DAO;
9
import org.jfw.apt.orm.annotation.dao.method.Exclude;
9 10
import org.jfw.apt.orm.annotation.dao.method.From;
10 11
import org.jfw.apt.orm.annotation.dao.method.OrderBy;
11 12
import org.jfw.apt.orm.annotation.dao.method.Where;
@ -39,11 +40,13 @@ public interface ResourceDao {
39 40
    @PageQuery
40 41
    @OrderBy(" ORDER BY publish_time DESC NULLS LAST")
41 42
    @Where("status='1'")
43
    @Exclude("descp")
42 44
    PageQueryResult<ResourceInfo> queryByTime(Connection con, @Nullable @Like String resourceName, @SqlColumn(value = {"(p.name is null or p.name like ?)", "(o.name is null or o.name like ?)"}, handlerClass = StringHandler.class) String name, @Nullable @GtEq @Alias("publishTime") String bt, @Nullable @Alias("publishTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
43 45
44 46
    @PageQuery
45 47
    @OrderBy(" ORDER BY page_views DESC NULLS LAST")
46 48
    @Where("status='1'")
49
    @Exclude("descp")
47 50
    PageQueryResult<ResourceInfo> queryByPV(Connection con, @Nullable @Like String resourceName,@SqlColumn(value = {"(p.name is null or p.name like ?)", "(o.name is null or o.name like ?)"}, handlerClass = StringHandler.class) String name, @Nullable @GtEq @Alias("publishTime") String bt, @Nullable @Alias("publishTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
48 51
49 52
    @Batch

+ 15 - 5
src/main/java/com/ekexiu/console/system/po/DiscoverBanner.java

@ -19,13 +19,14 @@ public class DiscoverBanner implements CreateTimeSupported, ModifyTimeSupported
19 19
    private int banner;
20 20
    private String beginTime;
21 21
    private String endTime;
22
    private long pageViews;
22
    private long clicks;
23 23
    private String descp;
24 24
    private String articleId;
25 25
    private String modifyTime;
26 26
    private String modifier;
27 27
    private String createTime;
28 28
    private String creator;
29
    private Integer location;
29 30
30 31
    @Column(DE.bigSerial)
31 32
    public long getId() {
@ -73,12 +74,12 @@ public class DiscoverBanner implements CreateTimeSupported, ModifyTimeSupported
73 74
    }
74 75
75 76
    @Column(handlerClass = LongHandler.class, dbType = "BIGINT", fixSqlValueWithInsert = "0", insertable = true, renewable = false, nullable = false, queryable = true)
76
    public long getPageViews() {
77
        return pageViews;
77
    public long getClicks() {
78
        return clicks;
78 79
    }
79 80
80
    public void setPageViews(long pageViews) {
81
        this.pageViews = pageViews;
81
    public void setClicks(long clicks) {
82
        this.clicks = clicks;
82 83
    }
83 84
84 85
    @Column(DE.Text_de)
@ -117,6 +118,15 @@ public class DiscoverBanner implements CreateTimeSupported, ModifyTimeSupported
117 118
        this.creator = creator;
118 119
    }
119 120
121
    @Column(DE.Int_de)
122
    public Integer getLocation() {
123
        return location;
124
    }
125
126
    public void setLocation(Integer location) {
127
        this.location = location;
128
    }
129
120 130
    @Override
121 131
    public String getModifyTime() {
122 132
        return this.modifyTime;

+ 1 - 1
src/main/java/com/ekexiu/console/system/service/ArticleService.java

@ -81,7 +81,7 @@ public class ArticleService {
81 81
82 82
    @Post
83 83
    @Path("/subject")
84
    public void updateSubject(@JdbcConn(true) Connection con,String articleId,@Nullable String subject) throws SQLException {
84
    public void updateSubject(@JdbcConn(true) Connection con, String articleId, @Nullable String subject) throws SQLException {
85 85
        this.articleDao.updateSubject(con, articleId, subject);
86 86
        this.keyWordService.refreshArticle(con, articleId, subject);
87 87
    }

+ 0 - 130
src/main/java/com/ekexiu/console/system/service/BannerService.java

@ -1,130 +0,0 @@
1
package com.ekexiu.console.system.service;
2
3
import freemarker.template.Configuration;
4
5
import java.io.File;
6
7
/**
8
 * Created by TT on 2017/8/24.
9
 */
10
public class BannerService {
11
12
    private File source;
13
    private Configuration cfg = new Configuration(Configuration.VERSION_2_3_26);
14
    //public void setSource(File source) {
15
    //    this.source = source;
16
    //    try {
17
    //        this.cfg.setDirectoryForTemplateLoading(source);
18
    //    } catch (IOException e) {
19
    //        this.source = null;
20
    //        this.cfg.setTemplateLoader(new TemplateLoader() {
21
    //            @Override
22
    //            public Reader getReader(Object templateSource, String encoding) throws IOException {
23
    //                StringReader reader = new StringReader("TemplateService'source is invalid dir,so "+templateSource.toString()+" can't read");
24
    //                return reader;
25
    //            }
26
    //
27
    //            @Override
28
    //            public long getLastModified(Object templateSource) {
29
    //                return 0;
30
    //            }
31
    //
32
    //            @Override
33
    //            public Object findTemplateSource(String name) throws IOException {
34
    //                return name;
35
    //            }
36
    //
37
    //            @Override
38
    //            public void closeTemplateSource(Object templateSource) throws IOException {
39
    //            }
40
    //        });
41
    //    }
42
    //    cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
43
    //}
44
    //
45
    //public void genCnt(String templateName,File dest,Map<String,Object> root) throws IOException, TemplateException{
46
    //    if(dest.exists()){
47
    //        if(!dest.delete()){
48
    //            throw new IOException("delete file["+dest.getAbsolutePath()+"] error");
49
    //        }
50
    //    }
51
    //    Template template = this.cfg.getTemplate(templateName,"UTF-8");
52
    //    OutputStream out = new FileOutputStream(dest);
53
    //    try {
54
    //        template.process(root, new OutputStreamWriter(out, ConstData.UTF8));
55
    //        out.flush();
56
    //    } finally {
57
    //        out.close();
58
    //    }
59
    //}
60
    //
61
    //
62
    //public static void main(String[] args) {
63
    //    BannerService templateService = new BannerService();
64
    //    templateService.setSource(new File("D:/tmp/banner"));
65
    //    ArrayList<Banner> banners = new ArrayList<>();
66
    //    ArrayList<Integer> ids = new ArrayList<>();
67
    //    ids.add(3);
68
    //    ids.add(2);
69
    //    ids.add(1);
70
    //    ids.add(5);
71
    //    ids.add(6);
72
    //    for (int i=0;i<5;i++) {
73
    //        Banner b = new Banner();
74
    //        b.setId(String.valueOf(ids.get(i)));
75
    //        b.setImage("image"+i);
76
    //        b.setBanner("banner"+i);
77
    //        b.setTitle("title"+i);
78
    //        banners.add(b);
79
    //    }
80
    //    Map<String, Object> root = new HashMap<String, Object>();
81
    //    root.put("banner", banners);
82
    //    try {
83
    //        templateService.genCnt("slideTab.html",new File("D:/tmp/banner/generate.html"),root);
84
    //        templateService.genCnt("appfound.html",new File("D:/tmp/banner/generateApp.html"),root);
85
    //    } catch (IOException | TemplateException e) {
86
    //        e.printStackTrace();
87
    //    }
88
    //}
89
    //
90
    //public static class Banner{
91
    //    private String id;
92
    //    private String image;
93
    //    private String title;
94
    //    private String banner;
95
    //
96
    //    public String getId() {
97
    //        return id;
98
    //    }
99
    //
100
    //    public void setId(String id) {
101
    //        this.id = id;
102
    //    }
103
    //
104
    //    public String getImage() {
105
    //        return image;
106
    //    }
107
    //
108
    //    public void setImage(String image) {
109
    //        this.image = image;
110
    //    }
111
    //
112
    //    public String getTitle() {
113
    //        return title;
114
    //    }
115
    //
116
    //    public void setTitle(String title) {
117
    //        this.title = title;
118
    //    }
119
    //
120
    //    public String getBanner() {
121
    //        return banner;
122
    //    }
123
    //
124
    //    public void setBanner(String banner) {
125
    //        this.banner = banner;
126
    //    }
127
    //}
128
129
130
}

+ 242 - 81
src/main/java/com/ekexiu/console/system/service/DiscoverBannerService.java

@ -1,14 +1,13 @@
1 1
2 2
package com.ekexiu.console.system.service;
3 3
4
import com.ekexiu.console.system.dao.ArticleDao;
4 5
import com.ekexiu.console.system.dao.DiscoverBannerDao;
5 6
import com.ekexiu.console.system.po.DiscoverBanner;
6 7
import com.ekexiu.console.system.vo.ConsoleAuthUser;
7
import freemarker.cache.TemplateLoader;
8
import freemarker.cache.StringTemplateLoader;
8 9
import freemarker.template.Configuration;
9
import freemarker.template.Template;
10 10
import freemarker.template.TemplateException;
11
import freemarker.template.TemplateExceptionHandler;
12 11
import org.jfw.apt.annotation.Autowrie;
13 12
import org.jfw.apt.annotation.DefaultValue;
14 13
import org.jfw.apt.annotation.Nullable;
@ -19,16 +18,17 @@ import org.jfw.apt.web.annotation.operate.Post;
19 18
import org.jfw.apt.web.annotation.param.JdbcConn;
20 19
import org.jfw.apt.web.annotation.param.PathVar;
21 20
import org.jfw.apt.web.annotation.param.RequestParam;
22
import org.jfw.util.ConstData;
23 21
import org.jfw.util.DateUtil;
24 22
import org.jfw.util.PageQueryResult;
25 23
26
import java.io.*;
24
import java.io.File;
25
import java.io.IOException;
27 26
import java.sql.Connection;
28 27
import java.sql.SQLException;
29 28
import java.util.ArrayList;
30 29
import java.util.HashMap;
31 30
import java.util.Map;
31
import java.util.Objects;
32 32
33 33
/**
34 34
 * Created by TT on 2017/8/25.
@ -36,13 +36,92 @@ import java.util.Map;
36 36
@Path("/disBanner")
37 37
public class DiscoverBannerService {
38 38
39
    private File source;
40
    private Configuration cfg = new Configuration(Configuration.VERSION_2_3_26);
39
    private File generatePath;
41 40
41
    //private Configuration cfg = new Configuration(Configuration.VERSION_2_3_26);
42
43
    private String templatePc = "<ul id=\"slide-list\" class=\"slide-list floatL\">\n" +
44
            "    <li class=\"slide-item slide-item-active\" data-col=\"${banner[0].bannerId}\">\n" +
45
            "        <a href=\"articalShow.html?articleId=${banner[0].articleId}\" target=\"_blank\" style=\"background-image:url('/data/article/${banner[0].image}');\">\n" +
46
            "            <p class=\"title\">${banner[0].title}</p>\n" +
47
            "        </a>\n" +
48
            "    </li>\n" +
49
            "    <li class=\"slide-item\" data-col=\"${banner[1].bannerId}\">\n" +
50
            "        <a href=\"articalShow.html?articleId=${banner[1].articleId}\" target=\"_blank\" style=\"background-image:url('/data/article/${banner[1].image}');\">\n" +
51
            "            <p class=\"title\">${banner[1].title}</p>\n" +
52
            "        </a>\n" +
53
            "    </li>\n" +
54
            "    <li class=\"slide-item\" data-col=\"${banner[2].bannerId}\">\n" +
55
            "        <a href=\"articalShow.html?articleId=${banner[2].articleId}\" target=\"_blank\" style=\"background-image:url('/data/article/${banner[2].image}');\">\n" +
56
            "            <p class=\"title\">${banner[2].title}</p>\n" +
57
            "        </a>\n" +
58
            "    </li>\n" +
59
            "    <li class=\"slide-item\" data-col=\"${banner[3].bannerId}\">\n" +
60
            "        <a href=\"articalShow.html?articleId=${banner[3].articleId}\" target=\"_blank\" style=\"background-image:url('/data/article/${banner[3].image}');\">\n" +
61
            "            <p class=\"title\">${banner[3].title}</p>\n" +
62
            "        </a>\n" +
63
            "    </li>\n" +
64
            "    <li class=\"slide-item\" data-col=\"${banner[4].bannerId}\">\n" +
65
            "        <a href=\"articalShow.html?articleId=${banner[4].articleId}\" target=\"_blank\" style=\"background-image:url('/data/article/${banner[4].image}');\">\n" +
66
            "            <p class=\"title\">${banner[4].title}</p>\n" +
67
            "        </a>\n" +
68
            "    </li>\n" +
69
            "</ul>\n" +
70
            "<ul id=\"slide-tab\" class=\"slide-tab floatR\">\n" +
71
            "    <li class=\"slide-tab-item slide-tab-item-active\">\n" +
72
            "        ${banner[0].banner}\n" +
73
            "    </li>\n" +
74
            "    <li class=\"slide-tab-item\">\n" +
75
            "        ${banner[1].banner}\n" +
76
            "    </li>\n" +
77
            "    <li class=\"slide-tab-item\">\n" +
78
            "        ${banner[2].banner}\n" +
79
            "    </li>\n" +
80
            "    <li class=\"slide-tab-item\">\n" +
81
            "        ${banner[3].banner}\n" +
82
            "    </li>\n" +
83
            "    <li class=\"slide-tab-item\">\n" +
84
            "        ${banner[4].banner}\n" +
85
            "    </li>\n" +
86
            "</ul>";
87
    private String templateApp = "<div class=\"mui-slider-group mui-slider-loop\">\n" +
88
            "\n" +
89
            "    <div class=\"mui-slider-item mui-slider-item-duplicate\" style=\"height:210px;\" data-id=\"${banner[4].articleId}\" col-id=\"${banner[4].bannerId}\">\n" +
90
            "        <a href=\"#\" class=\"bgImg photoTop\" style=\"background-image:url('http://www.ekexiu.com/data/article/${banner[4].image}');top:105px;height:210px;\">\n" +
91
            "            <p class=\"mui-slider-title sizefont elipse he\">${banner[4].title}</p>\n" +
92
            "        </a>\n" +
93
            "    </div>\n" +
94
            "\n" +
95
            "    <#list banner as banner>\n" +
96
            "    <div class=\"mui-slider-item\" style=\"height:210px;\" data-id=\"${banner.articleId}\" col-id=\"${banner.bannerId}\">\n" +
97
            "        <a href=\"#\" class=\"bgImg photoTop\" style=\"background-image:url('http://www.ekexiu.com/data/article/${banner.image}');top:105px;height:210px;\">\n" +
98
            "            <p class=\"mui-slider-title sizefont elipse he\">${banner.title}</p>\n" +
99
            "        </a>\n" +
100
            "    </div>\n" +
101
            "    </#list>\n" +
102
            "\n" +
103
            "    <div class=\"mui-slider-item mui-slider-item-duplicate\" style=\"height:210px;\" data-id=\"${banner[0].articleId}\" col-id=\"${banner[0].bannerId}\">\n" +
104
            "        <a href=\"#\" class=\"bgImg photoTop\" style=\"background-image:url('http://www.ekexiu.com/data/article/${banner[0].image}');top:105px;height:210px;\">\n" +
105
            "            <p class=\"mui-slider-title sizefont elipse he\">${banner[0].title}</p>\n" +
106
            "        </a>\n" +
107
            "    </div>\n" +
108
            "\n" +
109
            "</div>\n" +
110
            "<div class=\"mui-slider-indicator mui-text-right\" style=\"bottom:30px;\">\n" +
111
            "    <div class=\"mui-indicator mui-active\"></div>\n" +
112
            "    <div class=\"mui-indicator\"></div>\n" +
113
            "    <div class=\"mui-indicator\"></div>\n" +
114
            "    <div class=\"mui-indicator\"></div>\n" +
115
            "    <div class=\"mui-indicator\"></div>\n" +
116
            "</div>";
42 117
    @Autowrie
43 118
    private DiscoverBannerDao discoverBannerDao;
44 119
    @Autowrie
45 120
    private ImageService imageService;
121
    @Autowrie
122
    private ArticleDao articleDao;
123
    @Autowrie
124
    private TemplateService templateService;
46 125
47 126
    public DiscoverBannerDao getDiscoverBannerDao() {
48 127
        return discoverBannerDao;
@ -52,63 +131,97 @@ public class DiscoverBannerService {
52 131
        this.discoverBannerDao = discoverBannerDao;
53 132
    }
54 133
55
    public File getSource() {
56
        return source;
134
    public ImageService getImageService() {
135
        return imageService;
57 136
    }
58 137
59
    public void setSource(File source) {
60
        this.source = source;
61
        try {
62
            this.cfg.setDirectoryForTemplateLoading(source);
63
        } catch (IOException e) {
64
            this.source = null;
65
            this.cfg.setTemplateLoader(new TemplateLoader() {
66
                @Override
67
                public Reader getReader(Object templateSource, String encoding) throws IOException {
68
                    StringReader reader = new StringReader("TemplateService'source is invalid dir,so "+templateSource.toString()+" can't read");
69
                    return reader;
70
                }
71
72
                @Override
73
                public long getLastModified(Object templateSource) {
74
                    return 0;
75
                }
76
77
                @Override
78
                public Object findTemplateSource(String name) throws IOException {
79
                    return name;
80
                }
81
82
                @Override
83
                public void closeTemplateSource(Object templateSource) throws IOException {
84
                }
85
            });
86
        }
87
        cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
138
    public void setImageService(ImageService imageService) {
139
        this.imageService = imageService;
88 140
    }
89 141
90
    public void genCnt(String templateName,File dest,Map<String,Object> root) throws IOException, TemplateException {
91
        if(dest.exists()){
92
            if(!dest.delete()){
93
                throw new IOException("delete file["+dest.getAbsolutePath()+"] error");
94
            }
95
        }
96
        Template template = this.cfg.getTemplate(templateName,"UTF-8");
97
        OutputStream out = new FileOutputStream(dest);
98
        try {
99
            template.process(root, new OutputStreamWriter(out, ConstData.UTF8));
100
            out.flush();
101
        } finally {
102
            out.close();
103
        }
142
    public ArticleDao getArticleDao() {
143
        return articleDao;
144
    }
145
146
    public void setArticleDao(ArticleDao articleDao) {
147
        this.articleDao = articleDao;
148
    }
149
150
    public TemplateService getTemplateService() {
151
        return templateService;
152
    }
153
154
    public void setTemplateService(TemplateService templateService) {
155
        this.templateService = templateService;
156
    }
157
158
    public File getGeneratePath() {
159
        return generatePath;
104 160
    }
105 161
162
    public void setGeneratePath(File generatePath) {
163
        this.generatePath = generatePath;
164
    }
165
166
    //public File getSource() {
167
    //    return source;
168
    //}
169
170
    //public void setSource(File source) {
171
    //    this.source = source;
172
    //    try {
173
    //        this.cfg.setDirectoryForTemplateLoading(source);
174
    //    } catch (IOException e) {
175
    //        this.source = null;
176
    //        this.cfg.setTemplateLoader(new TemplateLoader() {
177
    //            @Override
178
    //            public Reader getReader(Object templateSource, String encoding) throws IOException {
179
    //                StringReader reader = new StringReader("TemplateService'source is invalid dir,so "+templateSource.toString()+" can't read");
180
    //                return reader;
181
    //            }
182
    //
183
    //            @Override
184
    //            public long getLastModified(Object templateSource) {
185
    //                return 0;
186
    //            }
187
    //
188
    //            @Override
189
    //            public Object findTemplateSource(String name) throws IOException {
190
    //                return name;
191
    //            }
192
    //
193
    //            @Override
194
    //            public void closeTemplateSource(Object templateSource) throws IOException {
195
    //            }
196
    //        });
197
    //    }
198
    //    cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
199
    //}
200
201
    //public void genCnt(String templateName,File dest,Map<String,Object> root) throws IOException, TemplateException {
202
    //    if(dest.exists()){
203
    //        if(!dest.delete()){
204
    //            throw new IOException("delete file["+dest.getAbsolutePath()+"] error");
205
    //        }
206
    //    }
207
    //    Template template = this.cfg.getTemplate(templateName,"UTF-8");
208
    //    OutputStream out = new FileOutputStream(dest);
209
    //    try {
210
    //        template.process(root, new OutputStreamWriter(out, ConstData.UTF8));
211
    //        out.flush();
212
    //    } finally {
213
    //        out.close();
214
    //    }
215
    //}
216
106 217
    @Path
107 218
    @Post
108
    public void insert(@JdbcConn(true) Connection con,@RequestParam(excludeFields = {"createTime", "modifyTime", "id"}) DiscoverBanner discoverBanner,@Nullable String fn) throws SQLException, IOException {
219
    public void insert(@JdbcConn(true) Connection con,@RequestParam(excludeFields = {"createTime", "modifyTime", "id"}) DiscoverBanner discoverBanner,@LoginUser ConsoleAuthUser user,@Nullable String fn) throws SQLException, IOException {
220
        discoverBanner.setCreator(user.getId());
109 221
        long id = this.discoverBannerDao.insert(con, discoverBanner);
110
        this.imageService.saveBannerImage(id, fn);
111
222
        if (fn != null) {
223
            this.imageService.saveBannerImage(id, fn);
224
        }
112 225
    }
113 226
114 227
    @Path("/id/{id}")
@ -127,50 +240,90 @@ public class DiscoverBannerService {
127 240
    @Path("/pq")
128 241
    @Get
129 242
    public PageQueryResult<DiscoverBanner> pageQuery(@JdbcConn Connection con, @Nullable String title, @DefaultValue("1") int pageNo, @DefaultValue("10") int pageSize) throws SQLException {
130
        return this.discoverBannerDao.query(con,title,pageNo,pageSize);
243
        return this.discoverBannerDao.query(con,title == null ? null : "%" + title + "%",pageSize,pageNo);
131 244
    }
132 245
133
    @Path("/putOn")
246
    @Path("/putUp")
134 247
    @Post
135
    public void putOn(@JdbcConn(true) Connection con, Long[] ids, @LoginUser ConsoleAuthUser user) throws SQLException {
248
    public void putOn(@JdbcConn(true) Connection con, Long id1, Long id2, Long id3, Long id4, Long id5, @LoginUser ConsoleAuthUser user) throws SQLException {
136 249
137
        this.setSource(new File("D:/tmp/banner"));
250
        //this.setSource(new File("D:/tmp/banner"));
251
        StringTemplateLoader stringLoader = new StringTemplateLoader();
252
        stringLoader.putTemplate("slideTab.html", templatePc);
253
        stringLoader.putTemplate("appfound.html", templateApp);
254
        Configuration cfg = templateService.getCfg();
255
        cfg.setTemplateLoader(stringLoader);
256
        this.discoverBannerDao.end(con);
257
        this.discoverBannerDao.clearLocation(con);
138 258
        ArrayList<Banner> banners = new ArrayList<>();
139
        for (int i=0;i<5;i++) {
140
            DiscoverBanner discoverBanner = this.discoverBannerDao.query(con, ids[i]);
141
            discoverBanner.setBeginTime(DateUtil.formatDateTime(System.currentTimeMillis()));
142
            discoverBanner.setModifier(user.getId());
143
            this.discoverBannerDao.update(con, discoverBanner);
144
            Banner b = new Banner();
145
            b.setId(discoverBanner.getArticleId());
146
            b.setImage("image"+i);
147
            b.setBanner(discoverBanner.getBanner());
148
            b.setTitle(discoverBanner.getTitle());
149
            banners.add(b);
150
        }
259
        queryId(con, id1, user.getId(), 1, banners);
260
        queryId(con, id2, user.getId(), 2, banners);
261
        queryId(con, id3, user.getId(), 3, banners);
262
        queryId(con, id4, user.getId(), 4, banners);
263
        queryId(con, id5, user.getId(), 5, banners);
151 264
        Map<String, Object> root = new HashMap<String, Object>();
152 265
        root.put("banner", banners);
153 266
        try {
154
            this.genCnt("slideTab.html",new File("D:/tmp/banner/generate.html"),root);
155
            this.genCnt("appfound.html",new File("D:/tmp/banner/generateApp.html"),root);
267
            //this.genCnt("slideTab.html", new File(generatePath+"/col_banner.html"), root);
268
            //this.genCnt("appfound.html", new File(generatePath+"/col_bannerApp.html"), root);
269
            templateService.genCnt(cfg,"slideTab.html", new File(generatePath+"/col_banner.html"), root);
270
            templateService.genCnt(cfg,"appfound.html", new File(generatePath+"/col_bannerApp.html"), root);
156 271
        } catch (IOException | TemplateException e) {
157 272
            e.printStackTrace();
158 273
        }
159 274
    }
160 275
276
    private void queryId(Connection con, Long id, String userId, int location, ArrayList<Banner> banners) throws SQLException {
277
        DiscoverBanner discoverBanner = this.discoverBannerDao.query(con, id);
278
        discoverBanner.setBeginTime(DateUtil.formatDateTime(System.currentTimeMillis()));
279
        discoverBanner.setEndTime(null);
280
        discoverBanner.setModifier(userId);
281
        discoverBanner.setLocation(location);
282
        this.discoverBannerDao.update(con, discoverBanner);
283
        Banner b = new Banner();
284
        b.setArticleId(discoverBanner.getArticleId());
285
        String image = this.articleDao.queryImagePath(con, discoverBanner.getArticleId());
286
        b.setImage(image);
287
        b.setBanner(dictBanner(discoverBanner.getBanner()));
288
        b.setTitle(discoverBanner.getTitle());
289
        b.setBannerId(id);
290
        banners.add(b);
291
    }
161 292
293
    private String dictBanner(int banner) {
294
        if (Objects.equals(banner, 1) || Objects.equals(banner, 2)) {
295
            return "原创";
296
        } else if (Objects.equals(banner, 3)) {
297
            return "前沿";
298
        } else if (Objects.equals(banner, 4)) {
299
            return "经验";
300
        } else if (Objects.equals(banner, 5)) {
301
            return "检测";
302
        } else if (Objects.equals(banner, 6)) {
303
            return "会议";
304
        } else if (Objects.equals(banner, 7)) {
305
            return "访谈";
306
        } else if (Objects.equals(banner, 8)) {
307
            return "招聘";
308
        } else if (Objects.equals(banner, 9)) {
309
            return "新闻";
310
        } else {
311
            return "未设定";
312
        }
313
    }
162 314
    public static class Banner{
163
        private String id;
315
        private String articleId;
164 316
        private String image;
165 317
        private String title;
166
        private int banner;
318
        private String banner;
319
        private Long bannerId;
167 320
168
        public String getId() {
169
            return id;
321
        public String getArticleId() {
322
            return articleId;
170 323
        }
171 324
172
        public void setId(String id) {
173
            this.id = id;
325
        public void setArticleId(String articleId) {
326
            this.articleId = articleId;
174 327
        }
175 328
176 329
        public String getImage() {
@ -189,13 +342,21 @@ public class DiscoverBannerService {
189 342
            this.title = title;
190 343
        }
191 344
192
        public int getBanner() {
345
        public String getBanner() {
193 346
            return banner;
194 347
        }
195 348
196
        public void setBanner(int banner) {
349
        public void setBanner(String banner) {
197 350
            this.banner = banner;
198 351
        }
352
353
        public long getBannerId() {
354
            return bannerId;
355
        }
356
357
        public void setBannerId(Long bannerId) {
358
            this.bannerId = bannerId;
359
        }
199 360
    }
200 361
    
201 362
}

+ 107 - 0
src/main/java/com/ekexiu/console/system/service/TemplateService.java

@ -0,0 +1,107 @@
1
package com.ekexiu.console.system.service;
2
3
import freemarker.cache.TemplateLoader;
4
import freemarker.template.Configuration;
5
import freemarker.template.Template;
6
import freemarker.template.TemplateException;
7
import freemarker.template.TemplateExceptionHandler;
8
import org.jfw.apt.annotation.Bean;
9
import org.jfw.util.ConstData;
10
11
import java.io.*;
12
import java.util.Map;
13
14
/**
15
 * Created by TT on 2017/8/24.
16
 */
17
@Bean
18
public class TemplateService {
19
20
    private File source;
21
    private Configuration cfg = new Configuration(Configuration.VERSION_2_3_26);
22
23
    public Configuration getCfg() {
24
        return cfg;
25
    }
26
27
    public void setSource(File source) {
28
        this.source = source;
29
        try {
30
            this.cfg.setDirectoryForTemplateLoading(source);
31
        } catch (IOException e) {
32
            this.source = null;
33
            this.cfg.setTemplateLoader(new TemplateLoader() {
34
                @Override
35
                public Reader getReader(Object templateSource, String encoding) throws IOException {
36
                    StringReader reader = new StringReader("TemplateService'source is invalid dir,so "+templateSource.toString()+" can't read");
37
                    return reader;
38
                }
39
40
                @Override
41
                public long getLastModified(Object templateSource) {
42
                    return 0;
43
                }
44
45
                @Override
46
                public Object findTemplateSource(String name) throws IOException {
47
                    return name;
48
                }
49
50
                @Override
51
                public void closeTemplateSource(Object templateSource) throws IOException {
52
                }
53
            });
54
        }
55
        cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
56
    }
57
58
    public void genCnt(Configuration cfg,String templateName,File dest,Map<String,Object> root) throws IOException, TemplateException {
59
        if(dest.exists()){
60
            if(!dest.delete()){
61
                throw new IOException("delete file["+dest.getAbsolutePath()+"] error");
62
            }
63
        }
64
        Template template = cfg.getTemplate(templateName,"UTF-8");
65
        OutputStream out = new FileOutputStream(dest);
66
        try {
67
            template.process(root, new OutputStreamWriter(out, ConstData.UTF8));
68
            out.flush();
69
        } finally {
70
            out.close();
71
        }
72
    }
73
74
75
    public static void main(String[] args) {
76
        //BannerService templateService = new BannerService();
77
        ////templateService.setSource(new File("D:/tmp/banner"));
78
        //StringTemplateLoader stringLoader = new StringTemplateLoader();
79
        //stringLoader.putTemplate("slideTab",templatePc);
80
        //stringLoader.putTemplate("appfound",templateApp);
81
        //templateService.cfg.setTemplateLoader(stringLoader);
82
        //ArrayList<Banner> banners = new ArrayList<>();
83
        //ArrayList<Integer> ids = new ArrayList<>();
84
        //ids.add(30);
85
        //ids.add(20);
86
        //ids.add(10);
87
        //ids.add(50);
88
        //ids.add(60);
89
        //for (int i=0;i<5;i++) {
90
        //    Banner b = new Banner();
91
        //    b.setId(String.valueOf(ids.get(i)));
92
        //    b.setImage("image"+i);
93
        //    b.setBanner("banner"+i);
94
        //    b.setTitle("title"+i);
95
        //    banners.add(b);
96
        //}
97
        //Map<String, Object> root = new HashMap<String, Object>();
98
        //root.put("banner", banners);
99
        //try {
100
        //    templateService.genCnt("slideTab",new File("D:/tmp/banner/generate.html"),root);
101
        //    templateService.genCnt("appfound",new File("D:/tmp/banner/generateApp.html"),root);
102
        //} catch (IOException | TemplateException e) {
103
        //    e.printStackTrace();
104
        //}
105
    }
106
107
}

+ 18 - 0
src/main/java/com/ekexiu/console/system/service/TestService.java

@ -44,4 +44,22 @@ public class TestService {
44 44
		}
45 45
		
46 46
	}
47
48
	//private TestService(int i) {
49
	//	this.anInt = i;
50
	//}
51
	//
52
	//public static TestService build(int i) {
53
	//	return new TestService(i);
54
	//}
55
	//
56
	//public int getAnInt() {
57
	//	return anInt;
58
	//}
59
	//
60
	//public static void main(String[] args) {
61
	//	TestService testService = TestService.build(10);
62
	//	int i = testService.getAnInt();
63
	//	System.out.println(i);
64
	//}
47 65
}

+ 34 - 1
src/main/resources/database.sql

@ -59,4 +59,37 @@ ALTER TABLE article ADD COLUMN sort_num  int8 default 0 not null;
59 59
COMMENT ON COLUMN article.sort_num IS '排序字段,人工权重';
60 60
61 61
ALTER TABLE resource ADD COLUMN sort_num  int8 default 0 not null;
62
COMMENT ON COLUMN resource.sort_num IS '排序字段,人工权重';
62
COMMENT ON COLUMN resource.sort_num IS '排序字段,人工权重';
63
64
-----begin version 1.9.2------------------------
65
66
-- ------------------------------------
67
-- Table structure for discover_banner
68
-- ------------------------------------
69
CREATE TABLE discover_banner (
70
  id bigserial PRIMARY KEY NOT NULL, -- 编号id
71
  title CHARACTER VARYING(50) NOT NULL, -- 外显标题
72
  banner SMALLINT NOT NULL, -- 栏目
73
  begin_time CHARACTER(14), -- 上架时间
74
  end_time CHARACTER(14), -- 下架时间
75
  clicks BIGINT NOT NULL DEFAULT 0, -- 点击量
76
  descp TEXT, -- 备注
77
  article_id CHARACTER(32) NOT NULL, -- 文章ID
78
  modify_time CHARACTER(14) NOT NULL, -- 修改时间
79
  modifier CHARACTER VARYING(32), -- 最后修改人ID
80
  create_time CHARACTER(14) NOT NULL, -- 创建时间
81
  creator CHARACTER VARYING(32) NOT NULL -- 创建人ID
82
);
83
COMMENT ON COLUMN discover_banner.id IS '编号id';
84
COMMENT ON COLUMN discover_banner.title IS '外显标题';
85
COMMENT ON COLUMN discover_banner.banner IS '栏目';
86
COMMENT ON COLUMN discover_banner.begin_time IS '上架时间';
87
COMMENT ON COLUMN discover_banner.end_time IS '下架时间';
88
COMMENT ON COLUMN discover_banner.clicks IS '点击量';
89
COMMENT ON COLUMN discover_banner.descp IS '备注';
90
COMMENT ON COLUMN discover_banner.article_id IS '文章ID';
91
COMMENT ON COLUMN discover_banner.modify_time IS '修改时间';
92
COMMENT ON COLUMN discover_banner.modifier IS '最后修改人ID';
93
COMMENT ON COLUMN discover_banner.create_time IS '创建时间';
94
COMMENT ON COLUMN discover_banner.creator IS '创建人ID';
95

+ 7 - 5
src/main/resources/project-test-dev.properties

@ -30,14 +30,14 @@ dataSource.maxPoolPreparedStatementPerConnectionSize::int=20
30 30
#默认的SQL语句自动提交状态(开启或关闭)设置由连接池本身设置(false由连接池定)
31 31
dataSource.defaultAutoCommit::boolean=false
32 32
33
com_ekexiu_console_system_service_OrgService.tmpPath::java.io.File=/kexiu/www/html/images/tmp
34
com_ekexiu_console_system_service_OrgService.imagePath::java.io.File=/kexiu/www/html/images
33
com_ekexiu_console_system_service_ImageService.tmpPath::java.io.File=/kexiu/www/html/images/tmp
34
com_ekexiu_console_system_service_ImageService.imagePath::java.io.File=/kexiu/www/html/images
35 35
#用户默认头像保存路径
36
com_ekexiu_console_system_service_OrgService.defaultHeadPhoto::java.io.File=/kexiu/www/html/images/default-photo.jpg
36
com_ekexiu_console_system_service_ImageService.defaultHeadPhoto::java.io.File=/kexiu/www/html/images/default-photo.jpg
37 37
#机构默认图片保存路径
38
com_ekexiu_console_system_service_OrgService.defaultOrgLogo::java.io.File=/kexiu/www/html/images/default-icon.jpg
38
com_ekexiu_console_system_service_ImageService.defaultOrgLogo::java.io.File=/kexiu/www/html/images/default-icon.jpg
39 39
#资源默认图片保存路径
40
com_ekexiu_console_system_service_OrgService.defaultResourcePhoto::java.io.File=/kexiu/www/html/images/default-icon.jpg
40
com_ekexiu_console_system_service_ImageService.defaultResourcePhoto::java.io.File=/kexiu/www/html/images/default-icon.jpg
41 41
42 42
cachedFileUploadServlet=org.jfw.web.servlet.fileupload.cached.CachedUploadServletConfig
43 43
cachedFileUploadServlet.cacheByMemory::boolean=false
@ -76,3 +76,5 @@ mailService_Map.map-key-2::java.lang.String=mail.smtp.auth
76 76
mailService_Map.map-val-2::java.lang.String=true
77 77
78 78
com_ekexiu_console_system_service_OrgService.defaultOrgType=1
79
80
com_ekexiu_console_system_service_DiscoverBannerService.generatePath::java.io.File=/kexiu/webdata/data/inc

+ 8 - 6
src/main/resources/project-test.properties

@ -30,14 +30,14 @@ dataSource.maxPoolPreparedStatementPerConnectionSize::int=20
30 30
#默认的SQL语句自动提交状态(开启或关闭)设置由连接池本身设置(false由连接池定)
31 31
dataSource.defaultAutoCommit::boolean=false
32 32
33
com_ekexiu_console_system_service_OrgService.tmpPath::java.io.File=/kexiu/www/html/images/tmp
34
com_ekexiu_console_system_service_OrgService.imagePath::java.io.File=/kexiu/www/html/images
33
com_ekexiu_console_system_service_ImageService.tmpPath::java.io.File=/kexiu/www/html/images/tmp
34
com_ekexiu_console_system_service_ImageService.imagePath::java.io.File=/kexiu/www/html/images
35 35
#用户默认头像保存路径
36
com_ekexiu_console_system_service_OrgService.defaultHeadPhoto::java.io.File=/kexiu/www/html/images/default-photo.jpg
36
com_ekexiu_console_system_service_ImageService.defaultHeadPhoto::java.io.File=/kexiu/www/html/images/default-photo.jpg
37 37
#机构默认图片保存路径
38
com_ekexiu_console_system_service_OrgService.defaultOrgLogo::java.io.File=/kexiu/www/html/images/default-icon.jpg
38
com_ekexiu_console_system_service_ImageService.defaultOrgLogo::java.io.File=/kexiu/www/html/images/default-icon.jpg
39 39
#资源默认图片保存路径
40
com_ekexiu_console_system_service_OrgService.defaultResourcePhoto::java.io.File=/kexiu/www/html/images/default-icon.jpg
40
com_ekexiu_console_system_service_ImageService.defaultResourcePhoto::java.io.File=/kexiu/www/html/images/default-icon.jpg
41 41
42 42
cachedFileUploadServlet=org.jfw.web.servlet.fileupload.cached.CachedUploadServletConfig
43 43
cachedFileUploadServlet.cacheByMemory::boolean=false
@ -75,4 +75,6 @@ mailService_Map.map-val-1::java.lang.String=smtp
75 75
mailService_Map.map-key-2::java.lang.String=mail.smtp.auth
76 76
mailService_Map.map-val-2::java.lang.String=true
77 77
78
com_ekexiu_console_system_service_OrgService.defaultOrgType=1
78
com_ekexiu_console_system_service_OrgService.defaultOrgType=1
79
80
com_ekexiu_console_system_service_DiscoverBannerService.generatePath::java.io.File=/kexiu/webdata/data/inc

+ 8 - 6
src/main/resources/project.properties

@ -30,15 +30,15 @@ dataSource.maxPoolPreparedStatementPerConnectionSize::int=20
30 30
#默认的SQL语句自动提交状态(开启或关闭)设置由连接池本身设置(false由连接池定)
31 31
dataSource.defaultAutoCommit::boolean=false
32 32
33
com_ekexiu_console_system_service_OrgService.tmpPath::java.io.File=/kexiu/www/html/images/tmp
34
com_ekexiu_console_system_service_OrgService.imagePath::java.io.File=/kexiu/www/html/images
33
com_ekexiu_console_system_service_ImageService.tmpPath::java.io.File=/kexiu/www/html/images/tmp
34
com_ekexiu_console_system_service_ImageService.imagePath::java.io.File=/kexiu/www/html/images
35 35
36 36
#用户默认头像保存路径
37
com_ekexiu_console_system_service_OrgService.defaultHeadPhoto::java.io.File=/kexiu/www/html/images/default-photo.jpg
37
com_ekexiu_console_system_service_ImageService.defaultHeadPhoto::java.io.File=/kexiu/www/html/images/default-photo.jpg
38 38
#机构默认图片保存路径
39
com_ekexiu_console_system_service_OrgService.defaultOrgLogo::java.io.File=/kexiu/www/html/images/default-icon.jpg
39
com_ekexiu_console_system_service_ImageService.defaultOrgLogo::java.io.File=/kexiu/www/html/images/default-icon.jpg
40 40
#资源默认图片保存路径
41
com_ekexiu_console_system_service_OrgService.defaultResourcePhoto::java.io.File=/kexiu/www/html/images/default-icon.jpg
41
com_ekexiu_console_system_service_ImageService.defaultResourcePhoto::java.io.File=/kexiu/www/html/images/default-icon.jpg
42 42
43 43
cachedFileUploadServlet=org.jfw.web.servlet.fileupload.cached.CachedUploadServletConfig
44 44
cachedFileUploadServlet.cacheByMemory::boolean=false
@ -77,4 +77,6 @@ mailService_Map.map-val-1::java.lang.String=smtp
77 77
mailService_Map.map-key-2::java.lang.String=mail.smtp.auth
78 78
mailService_Map.map-val-2::java.lang.String=true
79 79
80
com_ekexiu_console_system_service_OrgService.defaultOrgType=1
80
com_ekexiu_console_system_service_OrgService.defaultOrgType=1
81
82
com_ekexiu_console_system_service_DiscoverBannerService.generatePath::java.io.File=/kexiu/webdata/data/inc