Quellcode durchsuchen

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

单个新闻发布修改
master
zhuoyang.xing vor 19 Stunden
Ursprung
Commit
710eb8381b

+ 4
- 1
templates/articleDetails.ftl Datei anzeigen

@@ -38,7 +38,10 @@
38 38
         <div class="detail_title">
39 39
             <div class="title">${article.title}</div>
40 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 45
         <#if otherNews??>
43 46
         <div class="detail_footer">
44 47
             <#if otherNews?keys?seq_contains("upNew")>

+ 1
- 1
templates/index.ftl Datei anzeigen

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

+ 3
- 3
templates/join.ftl Datei anzeigen

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

+ 3
- 3
templates/joinList.ftl Datei anzeigen

@@ -19,14 +19,14 @@
19 19
     <div class="list">
20 20
         <div class="newsType">
21 21
             <#list bdList as bd>
22
-                <a class="newsLi" href="">
22
+                <a class="newsLi" href="./biddingDocumentDetail/${bd.uuid}.html">
23 23
                     <div class="timer">
24 24
                         <div class="timerData">${bd.day}</div>
25 25
                         <div>${bd.year?substring(bd.year?length - 2)}-${bd.month}</div>
26 26
                     </div>
27 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 30
                     </div>
31 31
                 </a>
32 32
             </#list>

+ 1
- 1
templates/news.ftl Datei anzeigen

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

+ 90
- 59
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/controller/StaticizeController.java Datei anzeigen

@@ -8,7 +8,6 @@ import com.webstudio.staticize.service.StaticizeService;
8 8
 import io.swagger.annotations.Api;
9 9
 import io.swagger.annotations.ApiOperation;
10 10
 import org.springframework.beans.factory.annotation.Autowired;
11
-import org.springframework.util.CollectionUtils;
12 11
 import org.springframework.web.bind.annotation.*;
13 12
 
14 13
 import java.util.ArrayList;
@@ -128,16 +127,22 @@ public class StaticizeController {
128 127
             //seo
129 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 131
             map.put("recentlyNewsList", recentlyNewsList);
133 132
             //按全部、新闻分类 分类
134
-            List<Map> newsIndexList = staticizeService.getNewsIndex();
133
+            List<Map> newsIndexList = staticizeService.getNewsIndex(null);
135 134
             map.put("columnList", newsIndexList);
136 135
             //分类别分页
137 136
             for (Map newsIndex : newsIndexList) {
138 137
                 //页面名称 = news + 分类code + 当前页数
139 138
                 String columnCode = (String) newsIndex.get("columnCode");
140 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 147
                 Integer sort = (Integer) newsIndex.get("sort");
143 148
                 List<News> newsList1 = (List<News>) newsIndex.get("newsList");
@@ -309,6 +314,7 @@ public class StaticizeController {
309 314
         map.put("template", "join.ftl");
310 315
         try {
311 316
             staticizeService.pushHtml(map, "");
317
+            staticizeService.updatePushStatus(null, "vacancy", "vacancy_");
312 318
             return AjaxResult.success("发布成功");
313 319
         }catch (Exception e){
314 320
             return AjaxResult.error("发布失败"+e.getMessage());
@@ -340,41 +346,45 @@ public class StaticizeController {
340 346
     @ApiOperation(value = "招标文件", httpMethod = "GET")
341 347
     public AjaxResult joinList(){
342 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 350
             return AjaxResult.success("发布成功");
373 351
         }catch (Exception e){
374 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 389
     @GetMapping("/articleDetail")
380 390
     @ApiOperation(value = "文章详情", httpMethod = "GET")
@@ -402,35 +412,53 @@ public class StaticizeController {
402 412
     private boolean newsDetail(String uuid){
403 413
         try {
404 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 464
             index();//首页
@@ -441,10 +469,13 @@ public class StaticizeController {
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 473
         Map param = new HashMap();
446 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 479
         param.put("date",news.getDate());
449 480
         param.put("type",1);//下一个
450 481
         News next = staticizeService.getNewsByParam(param);
@@ -517,7 +548,7 @@ public class StaticizeController {
517 548
                 staticizeService.pushHtml(map, "biddingDocumentDetail");
518 549
                 staticizeService.updatePushStatus(bd.getUuid(), "bidding_document", "bidding_");
519 550
             }
520
-            joinList();//招标文件列表页
551
+            joinList1();//招标文件列表页
521 552
             join();//加入中泽
522 553
             return true;
523 554
         }catch (Exception e){

+ 1
- 1
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/mapper/master/StaticizeMapper.java Datei anzeigen

@@ -13,7 +13,7 @@ public interface StaticizeMapper {
13 13
 
14 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 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 Datei anzeigen

@@ -13,11 +13,10 @@ public interface StaticizeService {
13 13
 
14 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 18
     News getNewsByParam(Map param);
19
-
20
-    List<Map> getNewsIndex();
19
+    List<Map> getNewsIndex(String uuid);
21 20
 
22 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 Datei anzeigen

@@ -14,6 +14,7 @@ import org.springframework.stereotype.Service;
14 14
 
15 15
 import java.io.File;
16 16
 import java.util.*;
17
+import java.util.stream.Collectors;
17 18
 
18 19
 @Service
19 20
 public class StaticizeServiceImpl implements StaticizeService {
@@ -81,7 +82,8 @@ public class StaticizeServiceImpl implements StaticizeService {
81 82
             Map map = new HashMap();
82 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 87
             map.put("newsList",newsList);
86 88
             indexNewsList.add(map);
87 89
         }
@@ -103,8 +105,8 @@ public class StaticizeServiceImpl implements StaticizeService {
103 105
 
104 106
     //新闻列表,按分类和分页查询
105 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 110
         for (News n : newsList){
109 111
             if (n.getSurface() != null && !"".equals(n.getSurface())){
110 112
                 SysFile sysFileR = fileService.selectSysFileByUUID(n.getSurface()).getData();
@@ -348,11 +350,11 @@ public class StaticizeServiceImpl implements StaticizeService {
348 350
 
349 351
     //新闻首页
350 352
     @Override
351
-    public List<Map> getNewsIndex(){
353
+    public List<Map> getNewsIndex(String uuid){
352 354
         List<Map> newsIndexList = new ArrayList<>();
353 355
         //所有新闻
354 356
         Map allNewsMap = new HashMap();
355
-        List<News> allNewsList = getNewsByParm(null,null,null);
357
+        List<News> allNewsList = getNewsByParm(null,null,null,uuid,null);
356 358
         allNewsMap.put("columnName","全部");
357 359
         allNewsMap.put("columnCode","");
358 360
         allNewsMap.put("sort",0);
@@ -367,7 +369,7 @@ public class StaticizeServiceImpl implements StaticizeService {
367 369
             map.put("columnCode",enumData.getDataValue());
368 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 373
             map.put("newsList",newsList);
372 374
             newsIndexList.add(map);
373 375
         }

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

@@ -17,7 +17,12 @@
17 17
     </resultMap>
18 18
 <!--    修改文章状态-->
19 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 26
     </update>
22 27
     <!--    首页轮播图-->
23 28
     <select id="selectBanner" resultMap="BannerResult">
@@ -64,13 +69,20 @@
64 69
             LPAD(MONTH(news_date),2,0) as month ,
65 70
             LPAD(DAY(news_date),2,0) as day
66 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 86
         order by news_date desc
75 87
         <if test="limit != null">
76 88
             limit 0,#{limit}
@@ -290,6 +302,7 @@
290 302
             LPAD(DAY(bidding_date),2,0) as day
291 303
         from bidding_document
292 304
         where bidding_push_status = 1
305
+        order by bidding_date desc
293 306
         <if test="limit != null">
294 307
             limit 0,${limit}
295 308
         </if>
@@ -364,17 +377,17 @@
364 377
     </select>
365 378
 
366 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 381
         from news
369 382
         where news_push_status = 1 and news_uuid != #{uuid}
370 383
         <if test="column != null">
371 384
             and news_column = #{column}
372 385
         </if>
373 386
         <if test="date != null and type == 1">
374
-            and news_date &lt; #{date}
387
+            and news_date &lt;= #{date}
375 388
         </if>
376 389
         <if test="date != null and type == 2">
377
-            and news_date &gt; #{date}
390
+            and news_date &gt;= #{date}
378 391
         </if>
379 392
         limit 0,1
380 393
     </select>

+ 3
- 3
webstudio-modules/webstudio-modules-system/src/main/resources/mapper/system/JoinZZMapper.xml Datei anzeigen

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

+ 3
- 3
webstudio-modules/webstudio-modules-system/src/main/resources/mapper/system/PartyBuildMapper.xml Datei anzeigen

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

+ 3
- 3
webstudio-modules/webstudio-modules-system/src/main/resources/mapper/system/SocialResponMapper.xml Datei anzeigen

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

Laden…
Abbrechen
Speichern