Browse Source

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

单个新闻发布修改
master
zhuoyang.xing 3 months ago
parent
commit
2a4a1a41bc

+ 1
- 1
templates/detail/header.ftl View File

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

+ 1
- 1
templates/index.ftl View File

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

+ 2
- 2
templates/join.ftl View File

73
                     <div class="wow fadeInUp inLiCon">
73
                     <div class="wow fadeInUp inLiCon">
74
                         <div class="title">反舞弊举报通道</div>
74
                         <div class="title">反舞弊举报通道</div>
75
                         <div class="liLine"></div>
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
                         <div class="liLine"></div>
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
                     </div>
79
                     </div>
80
                 </div>
80
                 </div>
81
             </div>
81
             </div>

+ 25
- 4
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/controller/StaticizeController.java View File

342
         try {
342
         try {
343
             Map map = getFooter();
343
             Map map = getFooter();
344
             //seo
344
             //seo
345
-            map.put("TDK",getSeo("intoTime"));
345
+            map.put("TDK",getSeo("joinList"));
346
             //招标文件
346
             //招标文件
347
             List<BiddingDocument> bdList1 = staticizeService.getBiddingDocument(null);
347
             List<BiddingDocument> bdList1 = staticizeService.getBiddingDocument(null);
348
             Integer totalPage = 0;//总页数
348
             Integer totalPage = 0;//总页数
408
                 map.put("article", news);
408
                 map.put("article", news);
409
                 map.put("type", "news");
409
                 map.put("type", "news");
410
                 //判断是否有上一页
410
                 //判断是否有上一页
411
+                Map otherMap = new HashMap();
411
                 if (list.size() > 1){
412
                 if (list.size() > 1){
412
-                    Map otherMap = new HashMap();
413
+
413
                     if (i == 0 && list.size() > 1){
414
                     if (i == 0 && list.size() > 1){
414
                         otherMap.put("nextNew",list.get(1));
415
                         otherMap.put("nextNew",list.get(1));
415
                     }else {
416
                     }else {
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
                 // html名字
428
                 // html名字
426
                 map.put("fileName", news.getUuid());
429
                 map.put("fileName", news.getUuid());
427
                 // 模板
430
                 // 模板
437
             return false;
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
     private boolean partyWorkDetail(String uuid){
462
     private boolean partyWorkDetail(String uuid){
442
         try {
463
         try {

+ 20
- 0
webstudio-modules/webstudio-modules-staticize/src/main/java/com/webstudio/staticize/domain/Footer.java View File

33
     private String baxx2;
33
     private String baxx2;
34
     @ApiModelProperty(value = "备案信息3")
34
     @ApiModelProperty(value = "备案信息3")
35
     private String baxx3;
35
     private String baxx3;
36
+    @ApiModelProperty(value = "反舞弊举报电话")
37
+    private String reportPhone;
38
+    @ApiModelProperty(value = "反舞弊举报邮箱")
39
+    private String reportEmail;
36
 
40
 
37
     public String getSwitchboard() {
41
     public String getSwitchboard() {
38
         return switchboard;
42
         return switchboard;
121
     public void setBaxx3(String baxx3) {
125
     public void setBaxx3(String baxx3) {
122
         this.baxx3 = baxx3;
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 View File

5
 import org.apache.ibatis.annotations.Param;
5
 import org.apache.ibatis.annotations.Param;
6
 
6
 
7
 import java.util.List;
7
 import java.util.List;
8
+import java.util.Map;
8
 
9
 
9
 public interface StaticizeMapper {
10
 public interface StaticizeMapper {
10
 
11
 
53
     List<ProductMember> getProductMemberList();
54
     List<ProductMember> getProductMemberList();
54
 
55
 
55
     Introduce selectIntroduce();
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 View File

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

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

114
         return newsList;
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
     @Override
123
     @Override
119
     public List<Map> getPartyBuilding(Integer limit) {
124
     public List<Map> getPartyBuilding(Integer limit) {

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

191
         <result property="baxx1" column="baxx1"/>
191
         <result property="baxx1" column="baxx1"/>
192
         <result property="baxx2" column="baxx2"/>
192
         <result property="baxx2" column="baxx2"/>
193
         <result property="baxx3" column="baxx3"/>
193
         <result property="baxx3" column="baxx3"/>
194
+        <result property="reportPhone" column="report_phone"/>
195
+        <result property="reportEmail" column="report_email"/>
194
     </resultMap>
196
     </resultMap>
195
 <!--    底部信息-->
197
 <!--    底部信息-->
196
     <select id="getFooter" resultMap="FooterResult">
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
         from footer
200
         from footer
199
     </select>
201
     </select>
200
     <resultMap type="com.webstudio.staticize.domain.Enterprise" id="EnterpriseResult">
202
     <resultMap type="com.webstudio.staticize.domain.Enterprise" id="EnterpriseResult">
361
         from introduce
363
         from introduce
362
     </select>
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
 </mapper>
382
 </mapper>

+ 20
- 0
webstudio-modules/webstudio-modules-system/src/main/java/com/webstudio/system/domain/Footer.java View File

33
     private String baxx2;
33
     private String baxx2;
34
     @ApiModelProperty(value = "备案信息3")
34
     @ApiModelProperty(value = "备案信息3")
35
     private String baxx3;
35
     private String baxx3;
36
+    @ApiModelProperty(value = "反舞弊举报电话")
37
+    private String reportPhone;
38
+    @ApiModelProperty(value = "反舞弊举报邮箱")
39
+    private String reportEmail;
36
 
40
 
37
     public String getSwitchboard() {
41
     public String getSwitchboard() {
38
         return switchboard;
42
         return switchboard;
121
     public void setBaxx3(String baxx3) {
125
     public void setBaxx3(String baxx3) {
122
         this.baxx3 = baxx3;
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 View File

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

+ 6
- 2
webstudio-modules/webstudio-modules-system/src/main/resources/mapper/system/OtherMapper.xml View File

47
         <result property="baxx1" column="baxx1"/>
47
         <result property="baxx1" column="baxx1"/>
48
         <result property="baxx2" column="baxx2"/>
48
         <result property="baxx2" column="baxx2"/>
49
         <result property="baxx3" column="baxx3"/>
49
         <result property="baxx3" column="baxx3"/>
50
+        <result property="reportPhone" column="report_phone"/>
51
+        <result property="reportEmail" column="report_email"/>
50
     </resultMap>
52
     </resultMap>
51
 
53
 
52
     <update id="updateFooter" parameterType="com.webstudio.system.domain.Footer">
54
     <update id="updateFooter" parameterType="com.webstudio.system.domain.Footer">
61
             <if test="wxImg != null">footer_wx_img = #{wxImg},</if>
63
             <if test="wxImg != null">footer_wx_img = #{wxImg},</if>
62
             <if test="baxx1 != null">baxx1 = #{baxx1},</if>
64
             <if test="baxx1 != null">baxx1 = #{baxx1},</if>
63
             <if test="baxx2 != null">baxx2 = #{baxx2},</if>
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
         </set>
69
         </set>
66
     </update>
70
     </update>
67
 
71
 
68
     <select id="selectFooter" resultMap="FooterResult">
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
         from footer
74
         from footer
71
     </select>
75
     </select>
72
 
76
 

Loading…
Cancel
Save