Browse Source

底部信息维护 反舞弊举报通道

单个新闻发布修改
master
zhuoyang.xing 18 hours ago
parent
commit
710eb8381b

+ 4
- 1
templates/articleDetails.ftl View File

38
         <div class="detail_title">
38
         <div class="detail_title">
39
             <div class="title">${article.title}</div>
39
             <div class="title">${article.title}</div>
40
         </div>
40
         </div>
41
-        ${article.content}
41
+        <div class="ql-container ql-snow">
42
+            <div class="ql-editor" id="content">${article.content}</div>
43
+        </div>
44
+
42
         <#if otherNews??>
45
         <#if otherNews??>
43
         <div class="detail_footer">
46
         <div class="detail_footer">
44
             <#if otherNews?keys?seq_contains("upNew")>
47
             <#if otherNews?keys?seq_contains("upNew")>

+ 1
- 1
templates/index.ftl View File

284
             <div class="corTxts">
284
             <div class="corTxts">
285
                 <div class="activS">专注于盘活存量和长期价值投资</div>
285
                 <div class="activS">专注于盘活存量和长期价值投资</div>
286
                 <div>实业为本 产业报国</div>
286
                 <div>实业为本 产业报国</div>
287
-                <div>以人为本 家国情怀、正直诚信 永不妥协、志存高远 坚韧不拔、创新超越 追求卓越</div>
287
+                <div>以人为本 家国情怀&nbsp;&nbsp;&nbsp;&nbsp;正直诚信 永不妥协&nbsp;&nbsp;&nbsp;&nbsp;志存高远 坚韧不拔&nbsp;&nbsp;&nbsp;&nbsp;创新超越 追求卓越</div>
288
             </div>
288
             </div>
289
         </div>
289
         </div>
290
     </div>
290
     </div>

+ 3
- 3
templates/join.ftl View File

14
 </head>
14
 </head>
15
 <body>
15
 <body>
16
 <#include "./header.ftl" parse=true encoding="utf-8">
16
 <#include "./header.ftl" parse=true encoding="utf-8">
17
-<div class="main">
17
+<div class="main" id="careersInfo">
18
     <div class="desCon">
18
     <div class="desCon">
19
-        <div class="careersType" id="careersInfo">
19
+        <div class="careersType">
20
             <div class="titleBg">
20
             <div class="titleBg">
21
                 <div class="wow moveRight bgMove"></div>
21
                 <div class="wow moveRight bgMove"></div>
22
                 <div class="typeTitle">
22
                 <div class="typeTitle">
63
                                 </div>
63
                                 </div>
64
                                 <div class="newsLiCon">
64
                                 <div class="newsLiCon">
65
                                     <div class="liTitle">${bd.title}</div>
65
                                     <div class="liTitle">${bd.title}</div>
66
-                                    <div class="licon">${bd.digest}</div>
66
+                                    <div class="licon">${bd.digest!''}</div>
67
                                 </div>
67
                                 </div>
68
                             </a>
68
                             </a>
69
                         </#list>
69
                         </#list>

+ 3
- 3
templates/joinList.ftl View File

19
     <div class="list">
19
     <div class="list">
20
         <div class="newsType">
20
         <div class="newsType">
21
             <#list bdList as bd>
21
             <#list bdList as bd>
22
-                <a class="newsLi" href="">
22
+                <a class="newsLi" href="./biddingDocumentDetail/${bd.uuid}.html">
23
                     <div class="timer">
23
                     <div class="timer">
24
                         <div class="timerData">${bd.day}</div>
24
                         <div class="timerData">${bd.day}</div>
25
                         <div>${bd.year?substring(bd.year?length - 2)}-${bd.month}</div>
25
                         <div>${bd.year?substring(bd.year?length - 2)}-${bd.month}</div>
26
                     </div>
26
                     </div>
27
                     <div class="newsLiCon">
27
                     <div class="newsLiCon">
28
-                        <div class="liTitle">${bd.title}</div>
29
-                        <div class="licon">${bd.digest}</div>
28
+                        <div class="liTitle">${bd.title!}</div>
29
+                        <div class="licon">${bd.digest!''}</div>
30
                     </div>
30
                     </div>
31
                 </a>
31
                 </a>
32
             </#list>
32
             </#list>

+ 1
- 1
templates/news.ftl View File

63
                         <div class="timerData">${news.day}</div>
63
                         <div class="timerData">${news.day}</div>
64
                         <div>${news.year?substring(news.year?length - 2)}-${news.month}</div>
64
                         <div>${news.year?substring(news.year?length - 2)}-${news.month}</div>
65
                     </div>
65
                     </div>
66
-                    <a class="li_cont" href="./newsDetail/${news.uuid}.html">
66
+                    <a class="li_cont" href="./newsDetail${dirCode}/${news.uuid}.html">
67
                         <div>${news.title}</div>
67
                         <div>${news.title}</div>
68
                         <div>${news.digest!""}...</div>
68
                         <div>${news.digest!""}...</div>
69
                     </a>
69
                     </a>

+ 90
- 59
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/controller/StaticizeController.java View File

8
 import io.swagger.annotations.Api;
8
 import io.swagger.annotations.Api;
9
 import io.swagger.annotations.ApiOperation;
9
 import io.swagger.annotations.ApiOperation;
10
 import org.springframework.beans.factory.annotation.Autowired;
10
 import org.springframework.beans.factory.annotation.Autowired;
11
-import org.springframework.util.CollectionUtils;
12
 import org.springframework.web.bind.annotation.*;
11
 import org.springframework.web.bind.annotation.*;
13
 
12
 
14
 import java.util.ArrayList;
13
 import java.util.ArrayList;
128
             //seo
127
             //seo
129
             map.put("TDK",getSeo("news"));
128
             map.put("TDK",getSeo("news"));
130
             //最近三篇新闻
129
             //最近三篇新闻
131
-            List<News> recentlyNewsList = staticizeService.getNewsByParm(null, 1, null);
130
+            List<News> recentlyNewsList = staticizeService.getNewsByParm(null, 1, null, null,"index");
132
             map.put("recentlyNewsList", recentlyNewsList);
131
             map.put("recentlyNewsList", recentlyNewsList);
133
             //按全部、新闻分类 分类
132
             //按全部、新闻分类 分类
134
-            List<Map> newsIndexList = staticizeService.getNewsIndex();
133
+            List<Map> newsIndexList = staticizeService.getNewsIndex(null);
135
             map.put("columnList", newsIndexList);
134
             map.put("columnList", newsIndexList);
136
             //分类别分页
135
             //分类别分页
137
             for (Map newsIndex : newsIndexList) {
136
             for (Map newsIndex : newsIndexList) {
138
                 //页面名称 = news + 分类code + 当前页数
137
                 //页面名称 = news + 分类code + 当前页数
139
                 String columnCode = (String) newsIndex.get("columnCode");
138
                 String columnCode = (String) newsIndex.get("columnCode");
140
                 map.put("columnCode", columnCode);
139
                 map.put("columnCode", columnCode);
140
+                //详情跳转拼接code
141
+                String dirCode = "";
142
+                if (!columnCode.equals("全部")){
143
+                    dirCode = columnCode;
144
+                }
145
+                map.put("dirCode",dirCode);
141
                 //当前在哪个分类下
146
                 //当前在哪个分类下
142
                 Integer sort = (Integer) newsIndex.get("sort");
147
                 Integer sort = (Integer) newsIndex.get("sort");
143
                 List<News> newsList1 = (List<News>) newsIndex.get("newsList");
148
                 List<News> newsList1 = (List<News>) newsIndex.get("newsList");
309
         map.put("template", "join.ftl");
314
         map.put("template", "join.ftl");
310
         try {
315
         try {
311
             staticizeService.pushHtml(map, "");
316
             staticizeService.pushHtml(map, "");
317
+            staticizeService.updatePushStatus(null, "vacancy", "vacancy_");
312
             return AjaxResult.success("发布成功");
318
             return AjaxResult.success("发布成功");
313
         }catch (Exception e){
319
         }catch (Exception e){
314
             return AjaxResult.error("发布失败"+e.getMessage());
320
             return AjaxResult.error("发布失败"+e.getMessage());
340
     @ApiOperation(value = "招标文件", httpMethod = "GET")
346
     @ApiOperation(value = "招标文件", httpMethod = "GET")
341
     public AjaxResult joinList(){
347
     public AjaxResult joinList(){
342
         try {
348
         try {
343
-            Map map = getFooter();
344
-            //seo
345
-            map.put("TDK",getSeo("joinList"));
346
-            //招标文件
347
-            List<BiddingDocument> bdList1 = staticizeService.getBiddingDocument(null);
348
-            Integer totalPage = 0;//总页数
349
-            if ((bdList1.size() % 10) > 0) {
350
-                totalPage = (bdList1.size() / 10) + 1;
351
-            } else {
352
-                totalPage = bdList1.size() / 10;
353
-            }
354
-            List<BiddingDocument> bdList2 = new ArrayList<>();
355
-            for (int i = 0; i < bdList1.size(); i++) {
356
-                bdList2.add(bdList1.get(i));
357
-                //每页10条
358
-                if (i % 10 == 9 || i == bdList1.size() - 1) {
359
-                    map.put("bdList", bdList2);
360
-                    //当前页
361
-                    map.put("currentPage", (i / 10) + 1);
362
-                    //总页数
363
-                    map.put("totalPage", totalPage);
364
-                    // html名字 = joinList + 当前页数
365
-                    map.put("fileName", "joinList" + ((i / 10) + 1));
366
-                    // 模板
367
-                    map.put("template", "joinList.ftl");
368
-                    staticizeService.pushHtml(map, "");
369
-                    bdList2.clear();
370
-                }
371
-            }
349
+            biddingDocumentDetail(null);
372
             return AjaxResult.success("发布成功");
350
             return AjaxResult.success("发布成功");
373
         }catch (Exception e){
351
         }catch (Exception e){
374
             return AjaxResult.error("发布失败"+e.getMessage());
352
             return AjaxResult.error("发布失败"+e.getMessage());
375
         }
353
         }
376
     }
354
     }
377
 
355
 
356
+    private void joinList1() throws Exception {
357
+        Map map = getFooter();
358
+        //seo
359
+        map.put("TDK",getSeo("joinList"));
360
+        //招标文件
361
+        List<BiddingDocument> bdList1 = staticizeService.getBiddingDocument(null);
362
+        Integer totalPage = 0;//总页数
363
+        if ((bdList1.size() % 10) > 0) {
364
+            totalPage = (bdList1.size() / 10) + 1;
365
+        } else {
366
+            totalPage = bdList1.size() / 10;
367
+        }
368
+        List<BiddingDocument> bdList2 = new ArrayList<>();
369
+        for (int i = 0; i < bdList1.size(); i++) {
370
+            bdList2.add(bdList1.get(i));
371
+            //每页10条
372
+            if (i % 10 == 9 || i == bdList1.size() - 1) {
373
+                map.put("bdList", bdList2);
374
+                //当前页
375
+                map.put("currentPage", (i / 10) + 1);
376
+                //总页数
377
+                map.put("totalPage", totalPage);
378
+                // html名字 = joinList + 当前页数
379
+                map.put("fileName", "joinList" + ((i / 10) + 1));
380
+                // 模板
381
+                map.put("template", "joinList.ftl");
382
+                staticizeService.pushHtml(map, "");
383
+                bdList2.clear();
384
+            }
385
+        }
386
+    }
387
+
378
 
388
 
379
     @GetMapping("/articleDetail")
389
     @GetMapping("/articleDetail")
380
     @ApiOperation(value = "文章详情", httpMethod = "GET")
390
     @ApiOperation(value = "文章详情", httpMethod = "GET")
402
     private boolean newsDetail(String uuid){
412
     private boolean newsDetail(String uuid){
403
         try {
413
         try {
404
             Map map = getFooter();
414
             Map map = getFooter();
405
-            List<News> list = staticizeService.getNewsList(uuid);
406
-            for (int i = 0; i < list.size(); i++) {
407
-                News news = list.get(i);
408
-                map.put("article", news);
409
-                map.put("type", "news");
410
-                //判断是否有上一页
411
-                Map otherMap = new HashMap();
412
-                if (list.size() > 1){
413
-
414
-                    if (i == 0 && list.size() > 1){
415
-                        otherMap.put("nextNew",list.get(1));
416
-                    }else {
417
-                        otherMap.put("upNew",list.get(i-1));
418
-                        if (i < list.size()-1){
419
-                            otherMap.put("nextNew",list.get(i+1));
415
+            //全部新闻
416
+            List<Map> newsMap = staticizeService.getNewsIndex(uuid);
417
+            for (Map newMap:
418
+            newsMap) {
419
+                String columnName = (String) newMap.get("columnName");
420
+                String columnCode = (String) newMap.get("columnCode");
421
+                //不同分类生成不同的文件夹
422
+                String childPath = "";
423
+                if (columnName.equals("全部")){
424
+                    childPath = "newsDetail";
425
+                }else {
426
+                    childPath = "newsDetail" + columnCode;
427
+                }
428
+                List<News> list = (List<News>) newMap.get("newsList");
429
+                //生成各分类下的详情页
430
+                for (int i = 0; i < list.size(); i++) {
431
+                    News news = list.get(i);
432
+                    map.put("article", news);
433
+                    map.put("type", "news");
434
+                    //判断是否有上一页
435
+                    Map otherMap = new HashMap();
436
+                    if (list.size() > 1){
437
+
438
+                        if (i == 0 && list.size() > 1){
439
+                            otherMap.put("nextNew",list.get(1));
440
+                        }else {
441
+                            otherMap.put("upNew",list.get(i-1));
442
+                            if (i < list.size()-1){
443
+                                otherMap.put("nextNew",list.get(i+1));
444
+                            }
445
+
420
                         }
446
                         }
421
 
447
 
448
+                    }else if (list.size() == 1){
449
+                        getUpDownNews(news,otherMap,columnName);
422
                     }
450
                     }
451
+                    map.put("otherNews",otherMap);
452
+                    // html名字
453
+                    map.put("fileName", news.getUuid());
454
+                    // 模板
455
+                    map.put("template", "articleDetails.ftl");
423
 
456
 
424
-                }else if (list.size() == 1){
425
-                    getUpDownNews(news,otherMap);
457
+                    staticizeService.pushHtml(map, childPath);
458
+                    if (columnName.equals("全部")) {
459
+                        staticizeService.updatePushStatus(news.getUuid(), "news", "news_");
460
+                    }
426
                 }
461
                 }
427
-                map.put("otherNews",otherMap);
428
-                // html名字
429
-                map.put("fileName", news.getUuid());
430
-                // 模板
431
-                map.put("template", "articleDetails.ftl");
432
-                staticizeService.pushHtml(map, "newsDetail");
433
-                staticizeService.updatePushStatus(news.getUuid(), "news", "news_");
434
             }
462
             }
435
 
463
 
436
             index();//首页
464
             index();//首页
441
         }
469
         }
442
     }
470
     }
443
 
471
 
444
-    private void getUpDownNews(News news, Map otherMap) {
472
+    private void getUpDownNews(News news, Map otherMap, String columnName) {
445
         Map param = new HashMap();
473
         Map param = new HashMap();
446
         param.put("uuid",news.getUuid());
474
         param.put("uuid",news.getUuid());
447
-        param.put("column",news.getColumn());
475
+        if (!columnName.equals("全部")){
476
+            param.put("column",news.getColumn());
477
+        }
478
+
448
         param.put("date",news.getDate());
479
         param.put("date",news.getDate());
449
         param.put("type",1);//下一个
480
         param.put("type",1);//下一个
450
         News next = staticizeService.getNewsByParam(param);
481
         News next = staticizeService.getNewsByParam(param);
517
                 staticizeService.pushHtml(map, "biddingDocumentDetail");
548
                 staticizeService.pushHtml(map, "biddingDocumentDetail");
518
                 staticizeService.updatePushStatus(bd.getUuid(), "bidding_document", "bidding_");
549
                 staticizeService.updatePushStatus(bd.getUuid(), "bidding_document", "bidding_");
519
             }
550
             }
520
-            joinList();//招标文件列表页
551
+            joinList1();//招标文件列表页
521
             join();//加入中泽
552
             join();//加入中泽
522
             return true;
553
             return true;
523
         }catch (Exception e){
554
         }catch (Exception e){

+ 1
- 1
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/mapper/master/StaticizeMapper.java View File

13
 
13
 
14
     List<SysEnumData> columnList(@Param("enumUuid")String enumUuid);
14
     List<SysEnumData> columnList(@Param("enumUuid")String enumUuid);
15
 
15
 
16
-    List<News> getNewsByParm(@Param("column") String column, @Param("newsTop") Integer newsTop,@Param("limit")Integer limit);
16
+    List<News> getNewsByParm(@Param("column") String column, @Param("newsTop") Integer newsTop,@Param("limit")Integer limit,@Param("uuid") String uuid,@Param("type") String type);
17
 
17
 
18
     List<News> getNewsList(@Param("uuid")String newsDetailUuid);
18
     List<News> getNewsList(@Param("uuid")String newsDetailUuid);
19
 
19
 

+ 2
- 3
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/service/StaticizeService.java View File

13
 
13
 
14
     List<Map> getIndexNews();
14
     List<Map> getIndexNews();
15
 
15
 
16
-    List<News> getNewsByParm(String cloumn, Integer newsTop, Integer limit);
16
+    List<News> getNewsByParm(String cloumn, Integer newsTop, Integer limit, String uuid, String type);
17
 
17
 
18
     News getNewsByParam(Map param);
18
     News getNewsByParam(Map param);
19
-
20
-    List<Map> getNewsIndex();
19
+    List<Map> getNewsIndex(String uuid);
21
 
20
 
22
     List<News> getNewsList(String newsDetailUuid);
21
     List<News> getNewsList(String newsDetailUuid);
23
 
22
 

+ 8
- 6
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/service/impl/StaticizeServiceImpl.java View File

14
 
14
 
15
 import java.io.File;
15
 import java.io.File;
16
 import java.util.*;
16
 import java.util.*;
17
+import java.util.stream.Collectors;
17
 
18
 
18
 @Service
19
 @Service
19
 public class StaticizeServiceImpl implements StaticizeService {
20
 public class StaticizeServiceImpl implements StaticizeService {
81
             Map map = new HashMap();
82
             Map map = new HashMap();
82
             map.put("columnName",enumData.getDataName());
83
             map.put("columnName",enumData.getDataName());
83
             //该分类下的最新四篇新闻
84
             //该分类下的最新四篇新闻
84
-            List<News> newsList = getNewsByParm(enumData.getUuid(),null,4);
85
+            List<News> newsList = getNewsByParm(enumData.getUuid(),null,4,null,"index");
86
+
85
             map.put("newsList",newsList);
87
             map.put("newsList",newsList);
86
             indexNewsList.add(map);
88
             indexNewsList.add(map);
87
         }
89
         }
103
 
105
 
104
     //新闻列表,按分类和分页查询
106
     //新闻列表,按分类和分页查询
105
     @Override
107
     @Override
106
-    public List<News> getNewsByParm(String cloumn, Integer newsTop, Integer limit) {
107
-        List<News> newsList = staticizeMapper.getNewsByParm(cloumn,newsTop,limit);
108
+    public List<News> getNewsByParm(String cloumn, Integer newsTop, Integer limit, String uuid, String type) {
109
+        List<News> newsList = staticizeMapper.getNewsByParm(cloumn,newsTop,limit,uuid, type);
108
         for (News n : newsList){
110
         for (News n : newsList){
109
             if (n.getSurface() != null && !"".equals(n.getSurface())){
111
             if (n.getSurface() != null && !"".equals(n.getSurface())){
110
                 SysFile sysFileR = fileService.selectSysFileByUUID(n.getSurface()).getData();
112
                 SysFile sysFileR = fileService.selectSysFileByUUID(n.getSurface()).getData();
348
 
350
 
349
     //新闻首页
351
     //新闻首页
350
     @Override
352
     @Override
351
-    public List<Map> getNewsIndex(){
353
+    public List<Map> getNewsIndex(String uuid){
352
         List<Map> newsIndexList = new ArrayList<>();
354
         List<Map> newsIndexList = new ArrayList<>();
353
         //所有新闻
355
         //所有新闻
354
         Map allNewsMap = new HashMap();
356
         Map allNewsMap = new HashMap();
355
-        List<News> allNewsList = getNewsByParm(null,null,null);
357
+        List<News> allNewsList = getNewsByParm(null,null,null,uuid,null);
356
         allNewsMap.put("columnName","全部");
358
         allNewsMap.put("columnName","全部");
357
         allNewsMap.put("columnCode","");
359
         allNewsMap.put("columnCode","");
358
         allNewsMap.put("sort",0);
360
         allNewsMap.put("sort",0);
367
             map.put("columnCode",enumData.getDataValue());
369
             map.put("columnCode",enumData.getDataValue());
368
             map.put("sort",enumData.getSort());
370
             map.put("sort",enumData.getSort());
369
             //该分类下的新闻
371
             //该分类下的新闻
370
-            List<News> newsList = getNewsByParm(enumData.getUuid(),null,null);
372
+            List<News> newsList = getNewsByParm(enumData.getUuid(),null,null, uuid,null);
371
             map.put("newsList",newsList);
373
             map.put("newsList",newsList);
372
             newsIndexList.add(map);
374
             newsIndexList.add(map);
373
         }
375
         }

+ 24
- 11
webstudio-modules/webstudio-modules-staticize/src/main/resources/mapper/system/StaticizeMapper.xml View File

17
     </resultMap>
17
     </resultMap>
18
 <!--    修改文章状态-->
18
 <!--    修改文章状态-->
19
     <update id="updatePushStatus">
19
     <update id="updatePushStatus">
20
-        update ${table} set ${suffer}push_status = 1 where ${suffer}uuid = #{uuid}
20
+        update ${table} set ${suffer}push_status = 1
21
+        <where>
22
+            <if test="uuid != null and uuid != ''">
23
+                and ${suffer}uuid = #{uuid}
24
+            </if>
25
+        </where>
21
     </update>
26
     </update>
22
     <!--    首页轮播图-->
27
     <!--    首页轮播图-->
23
     <select id="selectBanner" resultMap="BannerResult">
28
     <select id="selectBanner" resultMap="BannerResult">
64
             LPAD(MONTH(news_date),2,0) as month ,
69
             LPAD(MONTH(news_date),2,0) as month ,
65
             LPAD(DAY(news_date),2,0) as day
70
             LPAD(DAY(news_date),2,0) as day
66
         from news
71
         from news
67
-        where news_push_status = 1
68
-        <if test="column != null">
69
-            and news_column = #{column}
70
-        </if>
71
-        <if test="newsTop != null">
72
-            and news_top = #{newsTop}
73
-        </if>
72
+        <where>
73
+            <if test="type != null">
74
+                and news_push_status = 1
75
+            </if>
76
+            <if test="uuid != null">
77
+                and news_uuid = #{uuid}
78
+            </if>
79
+            <if test="column != null">
80
+                and news_column = #{column}
81
+            </if>
82
+            <if test="newsTop != null">
83
+                and news_top = #{newsTop}
84
+            </if>
85
+        </where>
74
         order by news_date desc
86
         order by news_date desc
75
         <if test="limit != null">
87
         <if test="limit != null">
76
             limit 0,#{limit}
88
             limit 0,#{limit}
290
             LPAD(DAY(bidding_date),2,0) as day
302
             LPAD(DAY(bidding_date),2,0) as day
291
         from bidding_document
303
         from bidding_document
292
         where bidding_push_status = 1
304
         where bidding_push_status = 1
305
+        order by bidding_date desc
293
         <if test="limit != null">
306
         <if test="limit != null">
294
             limit 0,${limit}
307
             limit 0,${limit}
295
         </if>
308
         </if>
364
     </select>
377
     </select>
365
 
378
 
366
     <select id="getNewsByParam" parameterType="java.util.Map" resultMap="NewsResult">
379
     <select id="getNewsByParam" parameterType="java.util.Map" resultMap="NewsResult">
367
-        select news_uuid,news_title
380
+        select news_uuid,news_title,news_date
368
         from news
381
         from news
369
         where news_push_status = 1 and news_uuid != #{uuid}
382
         where news_push_status = 1 and news_uuid != #{uuid}
370
         <if test="column != null">
383
         <if test="column != null">
371
             and news_column = #{column}
384
             and news_column = #{column}
372
         </if>
385
         </if>
373
         <if test="date != null and type == 1">
386
         <if test="date != null and type == 1">
374
-            and news_date &lt; #{date}
387
+            and news_date &lt;= #{date}
375
         </if>
388
         </if>
376
         <if test="date != null and type == 2">
389
         <if test="date != null and type == 2">
377
-            and news_date &gt; #{date}
390
+            and news_date &gt;= #{date}
378
         </if>
391
         </if>
379
         limit 0,1
392
         limit 0,1
380
     </select>
393
     </select>

+ 3
- 3
webstudio-modules/webstudio-modules-system/src/main/resources/mapper/system/JoinZZMapper.xml View File

39
         <if test="content != null and content != ''">,bidding_content</if>
39
         <if test="content != null and content != ''">,bidding_content</if>
40
         <if test="vievNum != null">,bidding_viev_num</if>
40
         <if test="vievNum != null">,bidding_viev_num</if>
41
         <if test="source != null and source != ''">,bidding_source</if>
41
         <if test="source != null and source != ''">,bidding_source</if>
42
-        ,create_time
42
+        <if test="createTime != null">,create_time</if>
43
         ) values (
43
         ) values (
44
         <if test="uuid != null and uuid != ''">#{uuid}</if>
44
         <if test="uuid != null and uuid != ''">#{uuid}</if>
45
         <if test="pushStatus != null">,#{pushStatus}</if>
45
         <if test="pushStatus != null">,#{pushStatus}</if>
50
         <if test="content != null and content != ''">,#{content}</if>
50
         <if test="content != null and content != ''">,#{content}</if>
51
         <if test="vievNum != null">,#{vievNum}</if>
51
         <if test="vievNum != null">,#{vievNum}</if>
52
         <if test="source != null and source != ''">,#{source}</if>
52
         <if test="source != null and source != ''">,#{source}</if>
53
-        ,now()
53
+        <if test="createTime != null">,#{createTime}</if>
54
         )
54
         )
55
     </insert>
55
     </insert>
56
 
56
 
65
             <if test="content != null">bidding_content = #{content},</if>
65
             <if test="content != null">bidding_content = #{content},</if>
66
             <if test="vievNum != null">bidding_viev_num = #{vievNum},</if>
66
             <if test="vievNum != null">bidding_viev_num = #{vievNum},</if>
67
             <if test="source != null">bidding_source = #{source},</if>
67
             <if test="source != null">bidding_source = #{source},</if>
68
-            create_time = now()
68
+            <if test="createTime != null">create_time = #{createTime},</if>
69
         </set>
69
         </set>
70
         where bidding_uuid = #{uuid}
70
         where bidding_uuid = #{uuid}
71
     </update>
71
     </update>

+ 3
- 3
webstudio-modules/webstudio-modules-system/src/main/resources/mapper/system/PartyBuildMapper.xml View File

37
         <if test="content != null and content != ''">,party_content</if>
37
         <if test="content != null and content != ''">,party_content</if>
38
         <if test="vievNum != null">,party_viev_num</if>
38
         <if test="vievNum != null">,party_viev_num</if>
39
         <if test="source != null and source != ''">,party_source</if>
39
         <if test="source != null and source != ''">,party_source</if>
40
-        ,create_time
40
+        <if test="createTime != null">,create_time</if>
41
         ) values (
41
         ) values (
42
         <if test="uuid != null and uuid != ''">#{uuid}</if>
42
         <if test="uuid != null and uuid != ''">#{uuid}</if>
43
         <if test="pushStatus != null">,#{pushStatus}</if>
43
         <if test="pushStatus != null">,#{pushStatus}</if>
50
         <if test="content != null and content != ''">,#{content}</if>
50
         <if test="content != null and content != ''">,#{content}</if>
51
         <if test="vievNum != null">,#{vievNum}</if>
51
         <if test="vievNum != null">,#{vievNum}</if>
52
         <if test="source != null and source != ''">,#{source}</if>
52
         <if test="source != null and source != ''">,#{source}</if>
53
-        ,now()
53
+        <if test="createTime != null">,#{createTime}</if>
54
         )
54
         )
55
     </insert>
55
     </insert>
56
 
56
 
67
             <if test="content != null">party_content = #{content},</if>
67
             <if test="content != null">party_content = #{content},</if>
68
             <if test="vievNum != null">party_viev_num = #{vievNum},</if>
68
             <if test="vievNum != null">party_viev_num = #{vievNum},</if>
69
             <if test="source != null">party_source = #{source},</if>
69
             <if test="source != null">party_source = #{source},</if>
70
-            create_time = now()
70
+            <if test="createTime != null">create_time = #{createTime},</if>
71
         </set>
71
         </set>
72
         where party_uuid = #{uuid}
72
         where party_uuid = #{uuid}
73
     </update>
73
     </update>

+ 3
- 3
webstudio-modules/webstudio-modules-system/src/main/resources/mapper/system/SocialResponMapper.xml View File

41
         <if test="content != null and content != ''">,social_content</if>
41
         <if test="content != null and content != ''">,social_content</if>
42
         <if test="vievNum != null">,social_viev_num</if>
42
         <if test="vievNum != null">,social_viev_num</if>
43
         <if test="source != null and source != ''">,social_source</if>
43
         <if test="source != null and source != ''">,social_source</if>
44
-        ,create_time
44
+        <if test="createTime != null">,create_time</if>
45
         ) values (
45
         ) values (
46
         <if test="uuid != null and uuid != ''">#{uuid}</if>
46
         <if test="uuid != null and uuid != ''">#{uuid}</if>
47
         <if test="pushStatus != null">,#{pushStatus}</if>
47
         <if test="pushStatus != null">,#{pushStatus}</if>
53
         <if test="content != null and content != ''">,#{content}</if>
53
         <if test="content != null and content != ''">,#{content}</if>
54
         <if test="vievNum != null">,#{vievNum}</if>
54
         <if test="vievNum != null">,#{vievNum}</if>
55
         <if test="source != null and source != ''">,#{source}</if>
55
         <if test="source != null and source != ''">,#{source}</if>
56
-        ,now()
56
+        <if test="createTime != null">,#{createTime}</if>
57
         )
57
         )
58
     </insert>
58
     </insert>
59
 
59
 
69
             <if test="content != null">social_content = #{content},</if>
69
             <if test="content != null">social_content = #{content},</if>
70
             <if test="vievNum != null">social_viev_num = #{vievNum},</if>
70
             <if test="vievNum != null">social_viev_num = #{vievNum},</if>
71
             <if test="source != null">social_source = #{source},</if>
71
             <if test="source != null">social_source = #{source},</if>
72
-            create_time = now()
72
+            <if test="createTime != null">create_time = #{createTime},</if>
73
         </set>
73
         </set>
74
         where social_uuid = #{uuid}
74
         where social_uuid = #{uuid}
75
     </update>
75
     </update>

Loading…
Cancel
Save