Bläddra i källkod

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

单个新闻发布修改
master
zhuoyang.xing 3 månader sedan
förälder
incheckning
2a4a1a41bc

+ 1
- 1
templates/detail/header.ftl Visa fil

@@ -1,6 +1,6 @@
1 1
 <header>
2 2
     <div class="headCon"><div class="headerPC">
3
-            <div class="logo"></div>
3
+            <div class="logos"></div>
4 4
             <div class="menu">
5 5
                 <div class="menuOne">
6 6
                     <a href="../index.html">走进中泽</a>

+ 1
- 1
templates/index.ftl Visa fil

@@ -29,7 +29,7 @@
29 29
                             <video
30 30
                                     class="lazy"
31 31
                                     data-src="${banner.pcImgUrl!''}"
32
-                                    data-srcM="${banner.pcImgUrl!''}"
32
+                                    data-srcM="${banner.mImgUrl!''}"
33 33
                                     autoplay
34 34
                                     muted
35 35
                                     loop

+ 2
- 2
templates/join.ftl Visa fil

@@ -73,9 +73,9 @@
73 73
                     <div class="wow fadeInUp inLiCon">
74 74
                         <div class="title">反舞弊举报通道</div>
75 75
                         <div class="liLine"></div>
76
-                        <div><span class="iconfont icon-dianhua"></span>电话:010-65008562转619</div>
76
+                        <div><span class="iconfont icon-dianhua"></span>电话:${footer.reportPhone}</div>
77 77
                         <div class="liLine"></div>
78
-                        <div><span class="iconfont icon-youjian"></span>邮箱:wutao@Inzzgroup.com</div>
78
+                        <div><span class="iconfont icon-youjian"></span>邮箱:${footer.reportEmail}</div>
79 79
                     </div>
80 80
                 </div>
81 81
             </div>

+ 25
- 4
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/controller/StaticizeController.java Visa fil

@@ -342,7 +342,7 @@ public class StaticizeController {
342 342
         try {
343 343
             Map map = getFooter();
344 344
             //seo
345
-            map.put("TDK",getSeo("intoTime"));
345
+            map.put("TDK",getSeo("joinList"));
346 346
             //招标文件
347 347
             List<BiddingDocument> bdList1 = staticizeService.getBiddingDocument(null);
348 348
             Integer totalPage = 0;//总页数
@@ -408,8 +408,9 @@ public class StaticizeController {
408 408
                 map.put("article", news);
409 409
                 map.put("type", "news");
410 410
                 //判断是否有上一页
411
+                Map otherMap = new HashMap();
411 412
                 if (list.size() > 1){
412
-                    Map otherMap = new HashMap();
413
+
413 414
                     if (i == 0 && list.size() > 1){
414 415
                         otherMap.put("nextNew",list.get(1));
415 416
                     }else {
@@ -419,9 +420,11 @@ public class StaticizeController {
419 420
                         }
420 421
 
421 422
                     }
422
-                    map.put("otherNews",otherMap);
423
-                }
424 423
 
424
+                }else if (list.size() == 1){
425
+                    getUpDownNews(news,otherMap);
426
+                }
427
+                map.put("otherNews",otherMap);
425 428
                 // html名字
426 429
                 map.put("fileName", news.getUuid());
427 430
                 // 模板
@@ -437,6 +440,24 @@ public class StaticizeController {
437 440
             return false;
438 441
         }
439 442
     }
443
+
444
+    private void getUpDownNews(News news, Map otherMap) {
445
+        Map param = new HashMap();
446
+        param.put("uuid",news.getUuid());
447
+        param.put("column",news.getColumn());
448
+        param.put("date",news.getDate());
449
+        param.put("type",1);//下一个
450
+        News next = staticizeService.getNewsByParam(param);
451
+        if (next != null){
452
+            otherMap.put("nextNew",next);
453
+        }
454
+        param.put("type",2);//上一个
455
+        News up = staticizeService.getNewsByParam(param);
456
+        if (up != null){
457
+            otherMap.put("upNew",up);
458
+        }
459
+    }
460
+
440 461
     //党建详情
441 462
     private boolean partyWorkDetail(String uuid){
442 463
         try {

+ 20
- 0
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/domain/Footer.java Visa fil

@@ -33,6 +33,10 @@ public class Footer {
33 33
     private String baxx2;
34 34
     @ApiModelProperty(value = "备案信息3")
35 35
     private String baxx3;
36
+    @ApiModelProperty(value = "反舞弊举报电话")
37
+    private String reportPhone;
38
+    @ApiModelProperty(value = "反舞弊举报邮箱")
39
+    private String reportEmail;
36 40
 
37 41
     public String getSwitchboard() {
38 42
         return switchboard;
@@ -121,4 +125,20 @@ public class Footer {
121 125
     public void setBaxx3(String baxx3) {
122 126
         this.baxx3 = baxx3;
123 127
     }
128
+
129
+    public String getReportPhone() {
130
+        return reportPhone;
131
+    }
132
+
133
+    public void setReportPhone(String reportPhone) {
134
+        this.reportPhone = reportPhone;
135
+    }
136
+
137
+    public String getReportEmail() {
138
+        return reportEmail;
139
+    }
140
+
141
+    public void setReportEmail(String reportEmail) {
142
+        this.reportEmail = reportEmail;
143
+    }
124 144
 }

+ 3
- 0
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/mapper/master/StaticizeMapper.java Visa fil

@@ -5,6 +5,7 @@ import com.webstudio.staticize.domain.vo.HonorVo;
5 5
 import org.apache.ibatis.annotations.Param;
6 6
 
7 7
 import java.util.List;
8
+import java.util.Map;
8 9
 
9 10
 public interface StaticizeMapper {
10 11
 
@@ -53,4 +54,6 @@ public interface StaticizeMapper {
53 54
     List<ProductMember> getProductMemberList();
54 55
 
55 56
     Introduce selectIntroduce();
57
+
58
+    News getNewsByParam(Map param);
56 59
 }

+ 2
- 0
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/service/StaticizeService.java Visa fil

@@ -15,6 +15,8 @@ public interface StaticizeService {
15 15
 
16 16
     List<News> getNewsByParm(String cloumn, Integer newsTop, Integer limit);
17 17
 
18
+    News getNewsByParam(Map param);
19
+
18 20
     List<Map> getNewsIndex();
19 21
 
20 22
     List<News> getNewsList(String newsDetailUuid);

+ 5
- 0
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/service/impl/StaticizeServiceImpl.java Visa fil

@@ -114,6 +114,11 @@ public class StaticizeServiceImpl implements StaticizeService {
114 114
         return newsList;
115 115
     }
116 116
 
117
+    @Override
118
+    public News getNewsByParam(Map param) {
119
+        return staticizeMapper.getNewsByParam(param);
120
+    }
121
+
117 122
     //党建工作
118 123
     @Override
119 124
     public List<Map> getPartyBuilding(Integer limit) {

+ 19
- 1
webstudio-modules/webstudio-modules-staticize/src/main/resources/mapper/system/StaticizeMapper.xml Visa fil

@@ -191,10 +191,12 @@
191 191
         <result property="baxx1" column="baxx1"/>
192 192
         <result property="baxx2" column="baxx2"/>
193 193
         <result property="baxx3" column="baxx3"/>
194
+        <result property="reportPhone" column="report_phone"/>
195
+        <result property="reportEmail" column="report_email"/>
194 196
     </resultMap>
195 197
 <!--    底部信息-->
196 198
     <select id="getFooter" resultMap="FooterResult">
197
-        select footer_switchboard,footer_fax,footer_headquarter,footer_phone,footer_email,footer_postcode,footer_wx_img,baxx1,baxx2,baxx3
199
+        select footer_switchboard,footer_fax,footer_headquarter,footer_phone,footer_email,footer_postcode,footer_wx_img,baxx1,baxx2,baxx3,report_phone,report_email
198 200
         from footer
199 201
     </select>
200 202
     <resultMap type="com.webstudio.staticize.domain.Enterprise" id="EnterpriseResult">
@@ -361,4 +363,20 @@
361 363
         from introduce
362 364
     </select>
363 365
 
366
+    <select id="getNewsByParam" parameterType="java.util.Map" resultMap="NewsResult">
367
+        select news_uuid,news_title
368
+        from news
369
+        where news_push_status = 1 and news_uuid != #{uuid}
370
+        <if test="column != null">
371
+            and news_column = #{column}
372
+        </if>
373
+        <if test="date != null and type == 1">
374
+            and news_date &lt; #{date}
375
+        </if>
376
+        <if test="date != null and type == 2">
377
+            and news_date &gt; #{date}
378
+        </if>
379
+        limit 0,1
380
+    </select>
381
+
364 382
 </mapper>

+ 20
- 0
webstudio-modules/webstudio-modules-system/src/main/java/com/webstudio/system/domain/Footer.java Visa fil

@@ -33,6 +33,10 @@ public class Footer {
33 33
     private String baxx2;
34 34
     @ApiModelProperty(value = "备案信息3")
35 35
     private String baxx3;
36
+    @ApiModelProperty(value = "反舞弊举报电话")
37
+    private String reportPhone;
38
+    @ApiModelProperty(value = "反舞弊举报邮箱")
39
+    private String reportEmail;
36 40
 
37 41
     public String getSwitchboard() {
38 42
         return switchboard;
@@ -121,4 +125,20 @@ public class Footer {
121 125
     public void setBaxx3(String baxx3) {
122 126
         this.baxx3 = baxx3;
123 127
     }
128
+
129
+    public String getReportPhone() {
130
+        return reportPhone;
131
+    }
132
+
133
+    public void setReportPhone(String reportPhone) {
134
+        this.reportPhone = reportPhone;
135
+    }
136
+
137
+    public String getReportEmail() {
138
+        return reportEmail;
139
+    }
140
+
141
+    public void setReportEmail(String reportEmail) {
142
+        this.reportEmail = reportEmail;
143
+    }
124 144
 }

+ 3
- 3
webstudio-modules/webstudio-modules-system/src/main/resources/mapper/system/NewsMapper.xml Visa fil

@@ -45,7 +45,7 @@
45 45
         <if test="vievNum != null">,news_viev_num</if>
46 46
         <if test="source != null and source != ''">,news_source</if>
47 47
         <if test="newsTop != null">,news_top</if>
48
-        ,create_time
48
+        <if test="createTime != null">,create_time</if>
49 49
         ) values (
50 50
         <if test="uuid != null and uuid != ''">#{uuid}</if>
51 51
         <if test="pushStatus != null">,#{pushStatus}</if>
@@ -59,7 +59,7 @@
59 59
         <if test="vievNum != null">,#{vievNum}</if>
60 60
         <if test="source != null and source != ''">,#{source}</if>
61 61
         <if test="newsTop != null">,#{newsTop}</if>
62
-        ,now()
62
+        <if test="createTime != null">,#{createTime}</if>
63 63
         )
64 64
     </insert>
65 65
 
@@ -77,7 +77,7 @@
77 77
             <if test="vievNum != null">news_viev_num = #{vievNum},</if>
78 78
             <if test="source != null">news_source = #{source},</if>
79 79
             <if test="newsTop != null">news_top = #{newsTop},</if>
80
-            create_time = now()
80
+            <if test="createTime != null">create_time = #{createTime},</if>
81 81
         </set>
82 82
         where news_uuid = #{uuid}
83 83
     </update>

+ 6
- 2
webstudio-modules/webstudio-modules-system/src/main/resources/mapper/system/OtherMapper.xml Visa fil

@@ -47,6 +47,8 @@
47 47
         <result property="baxx1" column="baxx1"/>
48 48
         <result property="baxx2" column="baxx2"/>
49 49
         <result property="baxx3" column="baxx3"/>
50
+        <result property="reportPhone" column="report_phone"/>
51
+        <result property="reportEmail" column="report_email"/>
50 52
     </resultMap>
51 53
 
52 54
     <update id="updateFooter" parameterType="com.webstudio.system.domain.Footer">
@@ -61,12 +63,14 @@
61 63
             <if test="wxImg != null">footer_wx_img = #{wxImg},</if>
62 64
             <if test="baxx1 != null">baxx1 = #{baxx1},</if>
63 65
             <if test="baxx2 != null">baxx2 = #{baxx2},</if>
64
-            <if test="baxx3 != null">baxx3 = #{baxx3}</if>
66
+            <if test="baxx3 != null">baxx3 = #{baxx3},</if>
67
+            <if test="reportPhone != null">report_phone = #{reportPhone},</if>
68
+            <if test="reportEmail != null">report_email = #{reportEmail}</if>
65 69
         </set>
66 70
     </update>
67 71
 
68 72
     <select id="selectFooter" resultMap="FooterResult">
69
-        select footer_switchboard,footer_fax,footer_headquarter,footer_phone,footer_email,footer_postcode,footer_wx_img,baxx1,baxx2,baxx3
73
+        select footer_switchboard,footer_fax,footer_headquarter,footer_phone,footer_email,footer_postcode,footer_wx_img,baxx1,baxx2,baxx3,report_phone,report_email
70 74
         from footer
71 75
     </select>
72 76
 

Laddar…
Avbryt
Spara