From ce2c1f8ded5871df701bd6c62067d2e5e71baa70 Mon Sep 17 00:00:00 2001 From: YY <1272464982@qq.com> Date: Mon, 14 Jul 2025 13:24:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/controller/HomePageController.java | 10 +- .../portals/dao/CoscoPortalsLinksMapper.java | 6 +- .../CoscoPortalsCustomerQandaMapper.xml | 377 ++++++++++-------- .../dao/mapper/CoscoPortalsLinksMapper.xml | 11 + .../entity/CoscoPortalsCustomerQanda.java | 2 + ...oscoPortalsLinksClassificationService.java | 7 + .../service/ICoscoPortalsLinksService.java | 6 + ...PortalsLinksClassificationServiceImpl.java | 9 + .../impl/CoscoPortalsLinksServiceImpl.java | 17 +- 9 files changed, 269 insertions(+), 176 deletions(-) diff --git a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/base/controller/HomePageController.java b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/base/controller/HomePageController.java index 27eea7a..8ae9f3e 100644 --- a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/base/controller/HomePageController.java +++ b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/base/controller/HomePageController.java @@ -132,7 +132,7 @@ public class HomePageController { } /** - * 获取所有列表 + * 友情连接 * @param * @return */ @@ -143,4 +143,12 @@ public class HomePageController { return BaseResponse.success(list); } + /** + * 友情连接12个 + */ + @GetMapping("/coscoPortalsLinks/friendshipConnections") + public BaseResponse friendshipConnections() { + return BaseResponse.success(coscoPortalsLinksClassificationService.friendshipConnections()); + } + } diff --git a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/CoscoPortalsLinksMapper.java b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/CoscoPortalsLinksMapper.java index a57dfbd..52d6ae9 100644 --- a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/CoscoPortalsLinksMapper.java +++ b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/CoscoPortalsLinksMapper.java @@ -71,5 +71,9 @@ public interface CoscoPortalsLinksMapper extends IBaseMapper */ public int deleteCoscoPortalsLinksByIds(String[] ids); - + /** + * 获取12个友情连接首页显示 + * @return + */ + List friendshipConnections(); } diff --git a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/mapper/CoscoPortalsCustomerQandaMapper.xml b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/mapper/CoscoPortalsCustomerQandaMapper.xml index 1e90111..57b5054 100644 --- a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/mapper/CoscoPortalsCustomerQandaMapper.xml +++ b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/mapper/CoscoPortalsCustomerQandaMapper.xml @@ -4,31 +4,54 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - select id, title, content, ask_time, type, full_name, company_name, user_name, contact_details, email, answer_content, answer_by, answer_time, is_answer, del_flag, create_by, create_time, update_by, update_time, last_update_time + select id, + title, + address_img, + content, + ask_time, + type, + full_name, + company_name, + user_name, + contact_details, + email, + answer_content, + answer_by, + answer_time, + is_answer, + del_flag, + create_by, + create_time, + update_by, + update_time, + last_update_time from cosco_portals_customer_qanda @@ -85,181 +108,197 @@ - - - and title = #{title} - - - and content = #{content} - - - and ask_time = #{askTime} - - - and type = #{type} - - - and full_name like concat('%', #{fullName}, '%') - - - and company_name like concat('%', #{companyName}, '%') - - - and user_name like concat('%', #{userName}, '%') - - - and contact_details = #{contactDetails} - - - and email = #{email} - - - and answer_content = #{answerContent} - - - and answer_by = #{answerBy} - - - and answer_time = #{answerTime} - - - and is_answer = #{isAnswer} - - - and last_update_time = #{lastUpdateTime} - + + and title = #{title} + + + and content = #{content} + + + and ask_time = #{askTime} + + + and type = #{type} + + + and full_name like concat('%', #{fullName}, '%') + + + and company_name like concat('%', #{companyName}, '%') + + + and user_name like concat('%', #{userName}, '%') + + + and contact_details = #{contactDetails} + + + and email = #{email} + + + and answer_content = #{answerContent} + + + and answer_by = #{answerBy} + + + and answer_time = #{answerTime} + + + and is_answer = #{isAnswer} + + + and last_update_time = #{lastUpdateTime} + - + insert into cosco_portals_customer_qanda - id, - title, - content, - ask_time, - type, - full_name, - company_name, - user_name, - contact_details, - email, - answer_content, - answer_by, - answer_time, - is_answer, - del_flag, - create_by, - create_time, - update_by, - update_time, - last_update_time, + id, + title, + content, + ask_time, + type, + full_name, + company_name, + user_name, + contact_details, + email, + answer_content, + answer_by, + answer_time, + is_answer, + del_flag, + create_by, + create_time, + update_by, + update_time, + last_update_time, + address_img, - #{id}, - #{title}, - #{content}, - #{askTime}, - #{type}, - #{fullName}, - #{companyName}, - #{userName}, - #{contactDetails}, - #{email}, - #{answerContent}, - #{answerBy}, - #{answerTime}, - #{isAnswer}, - #{delFlag}, - #{createBy}, - #{createTime}, - #{updateBy}, - #{updateTime}, - #{lastUpdateTime}, + #{id}, + #{title}, + #{content}, + #{askTime}, + #{type}, + #{fullName}, + #{companyName}, + #{userName}, + #{contactDetails}, + #{email}, + #{answerContent}, + #{answerBy}, + #{answerTime}, + #{isAnswer}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{lastUpdateTime}, + #{addressImg}, + insert into cosco_portals_customer_qanda - ( id, title, content, ask_time, type, full_name, company_name, user_name, contact_details, email, answer_content, answer_by, answer_time, is_answer, del_flag, create_by, create_time, update_by, update_time, last_update_time) + ( id, title, content, ask_time, type, full_name, company_name, user_name, contact_details, email, + answer_content, answer_by, answer_time, is_answer, del_flag, create_by, create_time, update_by, update_time, + last_update_time) values - ( #{item.id}, #{item.title}, #{item.content}, #{item.askTime}, #{item.type}, #{item.fullName}, #{item.companyName}, #{item.userName}, #{item.contactDetails}, #{item.email}, #{item.answerContent}, #{item.answerBy}, #{item.answerTime}, #{item.isAnswer}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.lastUpdateTime}) + ( #{item.id}, #{item.title}, #{item.content}, #{item.askTime}, #{item.type}, #{item.fullName}, + #{item.companyName}, #{item.userName}, #{item.contactDetails}, #{item.email}, #{item.answerContent}, + #{item.answerBy}, #{item.answerTime}, #{item.isAnswer}, #{item.delFlag}, #{item.createBy}, + #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.lastUpdateTime}) - + update cosco_portals_customer_qanda - title = - #{title}, - - content = - #{content}, - - ask_time = - #{askTime}, - - type = - #{type}, - - full_name = - #{fullName}, - - company_name = - #{companyName}, - - user_name = - #{userName}, - - contact_details = - #{contactDetails}, - - email = - #{email}, - - answer_content = - #{answerContent}, - - answer_by = - #{answerBy}, - - answer_time = - #{answerTime}, - - is_answer = - #{isAnswer}, - - del_flag = - #{delFlag}, - - create_by = - #{createBy}, - - create_time = - #{createTime}, - - update_by = - #{updateBy}, - - update_time = - #{updateTime}, - - last_update_time = - #{lastUpdateTime}, - + title = + #{title}, + + content = + #{content}, + + ask_time = + #{askTime}, + + type = + #{type}, + + full_name = + #{fullName}, + + company_name = + #{companyName}, + + user_name = + #{userName}, + + contact_details = + #{contactDetails}, + + email = + #{email}, + + answer_content = + #{answerContent}, + + answer_by = + #{answerBy}, + + answer_time = + #{answerTime}, + + is_answer = + #{isAnswer}, + + del_flag = + #{delFlag}, + + create_by = + #{createBy}, + + create_time = + #{createTime}, + + update_by = + #{updateBy}, + + update_time = + #{updateTime}, + + last_update_time = + #{lastUpdateTime}, + + address_img = + #{addressImg}, + where id = #{id} - update cosco_portals_customer_qanda set del_flag = 2 + update cosco_portals_customer_qanda + set del_flag = 2 where id = #{id} diff --git a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/mapper/CoscoPortalsLinksMapper.xml b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/mapper/CoscoPortalsLinksMapper.xml index ac975b9..ffe49f8 100644 --- a/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/mapper/CoscoPortalsLinksMapper.xml +++ b/src/main/java/com/chinaunicom/zyhy/ebtp/supplier/portals/dao/mapper/CoscoPortalsLinksMapper.xml @@ -74,6 +74,17 @@ + +