diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalController.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalController.java
index 091c75e..c1224a8 100644
--- a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalController.java
+++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalController.java
@@ -1,5 +1,6 @@
package com.ruoyi.portal.controller;
+import com.ruoyi.common.core.utils.ip.IpUtils;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
@@ -102,6 +103,7 @@ public class HwPortalController extends BaseController
@PostMapping("/addContactUsInfo")
public AjaxResult addContactUsInfo(@RequestBody HwContactUsInfo hwContactUsInfo)
{
+ hwContactUsInfo.setUserIp(IpUtils.getIpAddr());
return toAjax(hwContactUsInfoService.insertHwContactUsInfo(hwContactUsInfo));
}
diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwContactUsInfoServiceImpl.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwContactUsInfoServiceImpl.java
index b2c3776..c647d9f 100644
--- a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwContactUsInfoServiceImpl.java
+++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwContactUsInfoServiceImpl.java
@@ -54,6 +54,7 @@ public class HwContactUsInfoServiceImpl implements IHwContactUsInfoService
@Override
public int insertHwContactUsInfo(HwContactUsInfo hwContactUsInfo)
{
+
hwContactUsInfo.setCreateTime(DateUtils.getNowDate());
return hwContactUsInfoMapper.insertHwContactUsInfo(hwContactUsInfo);
}
diff --git a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoDetailMapper.xml b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoDetailMapper.xml
index deabefe..86c769a 100644
--- a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoDetailMapper.xml
+++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoDetailMapper.xml
@@ -25,8 +25,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and about_us_info_id = #{aboutUsInfoId}
- and us_info_detail_title = #{usInfoDetailTitle}
- and us_info_detail_desc = #{usInfoDetailDesc}
+ and us_info_detail_title like concat('%', #{usInfoDetailTitle}, '%')
+ and us_info_detail_desc like concat('%', #{usInfoDetailDesc}, '%')
and us_info_detail_order = #{usInfoDetailOrder}
and us_info_detail_pic = #{usInfoDetailPic}
diff --git a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoMapper.xml b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoMapper.xml
index 5df8e47..935cf71 100644
--- a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoMapper.xml
+++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoMapper.xml
@@ -27,8 +27,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and about_us_info_type = #{aboutUsInfoType}
- and about_us_info_title = #{aboutUsInfoTitle}
- and about_us_info_desc = #{aboutUsInfoDesc}
+ and about_us_info_title like concat('%', #{aboutUsInfoTitle }, '%')
+ and about_us_info_desc like concat('%', #{aboutUsInfoDesc}, '%')
and about_us_info_order = #{aboutUsInfoOrder}
and about_us_info_pic = #{aboutUsInfoPic}
diff --git a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwContactUsInfoMapper.xml b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwContactUsInfoMapper.xml
index 055adc4..c257d97 100644
--- a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwContactUsInfoMapper.xml
+++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwContactUsInfoMapper.xml
@@ -25,9 +25,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and user_name like concat('%', #{userName}, '%')
- and user_email = #{userEmail}
- and user_phone = #{userPhone}
- and user_ip = #{userIp}
+ and user_email like concat('%', #{userEmail}, '%')
+ and user_phone like concat('%', #{userPhone}, '%')
+ and user_ip like concat('%', #{userIp}, '%')
diff --git a/ruoyi-ui/src/views/portal/aboutUsInfo/index.vue b/ruoyi-ui/src/views/portal/aboutUsInfo/index.vue
index 305729c..8da41dc 100644
--- a/ruoyi-ui/src/views/portal/aboutUsInfo/index.vue
+++ b/ruoyi-ui/src/views/portal/aboutUsInfo/index.vue
@@ -25,14 +25,6 @@
@keyup.enter.native="handleQuery"
/>
-
-
-
搜索
重置
@@ -88,13 +80,25 @@
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
搜索
重置
@@ -96,11 +81,14 @@
-
-
+
+
+
+
+
-
-
-
diff --git a/ruoyi-ui/src/views/portal/contactUsInfo/index.vue b/ruoyi-ui/src/views/portal/contactUsInfo/index.vue
index 7c41f04..f298e8d 100644
--- a/ruoyi-ui/src/views/portal/contactUsInfo/index.vue
+++ b/ruoyi-ui/src/views/portal/contactUsInfo/index.vue
@@ -40,16 +40,6 @@
-
- 新增
-
-
+