From 048475c422cba24a4249e48da5228addf5e647e6 Mon Sep 17 00:00:00 2001 From: xs Date: Thu, 12 Dec 2024 18:30:20 +0800 Subject: [PATCH] =?UTF-8?q?3.0=20=E6=96=B0=E5=A2=9E=E9=97=A8=E6=88=B7?= =?UTF-8?q?=E7=BD=91=E7=AB=99=E4=BB=A5=E4=B8=8B=E5=8A=9F=E8=83=BD=EF=BC=9A?= =?UTF-8?q?=20=E9=97=A8=E6=88=B7=E7=BD=91=E7=AB=99=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=20=E9=97=A8=E6=88=B7=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=20=E4=BA=A7=E5=93=81=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=20=E6=A1=88=E4=BE=8B=E5=86=85=E5=AE=B9=20?= =?UTF-8?q?=E5=85=B3=E4=BA=8E=E6=88=91=E4=BB=AC=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/HwSceneConfigController.java | 68 +++++++++ .../com/ruoyi/business/domain/HwDevice.java | 11 ++ .../service/impl/HwDeviceServiceImpl.java | 3 +- .../mapper/business/HwDeviceMapper.xml | 3 +- ruoyi-modules/hw-portal/pom.xml | 115 +++++++++++++++ .../ruoyi/portal/RuoYiPortalApplication.java | 37 +++++ .../controller/HwAboutUsInfoController.java | 105 +++++++++++++ .../HwAboutUsInfoDetailController.java | 105 +++++++++++++ .../controller/HwContactUsInfoController.java | 105 +++++++++++++ .../controller/HwPortalConfigController.java | 105 +++++++++++++ .../HwPortalConfigTypeController.java | 103 +++++++++++++ .../HwProductCaseInfoController.java | 105 +++++++++++++ .../controller/HwProductInfoController.java | 105 +++++++++++++ .../HwProductInfoDetailController.java | 103 +++++++++++++ .../ruoyi/portal/domain/HwAboutUsInfo.java | 138 +++++++++++++++++ .../portal/domain/HwAboutUsInfoDetail.java | 111 ++++++++++++++ .../ruoyi/portal/domain/HwContactUsInfo.java | 97 ++++++++++++ .../ruoyi/portal/domain/HwPortalConfig.java | 139 ++++++++++++++++++ .../portal/domain/HwPortalConfigType.java | 127 ++++++++++++++++ .../portal/domain/HwProductCaseInfo.java | 125 ++++++++++++++++ .../ruoyi/portal/domain/HwProductInfo.java | 125 ++++++++++++++++ .../portal/domain/HwProductInfoDetail.java | 127 ++++++++++++++++ .../mapper/HwAboutUsInfoDetailMapper.java | 61 ++++++++ .../portal/mapper/HwAboutUsInfoMapper.java | 61 ++++++++ .../portal/mapper/HwContactUsInfoMapper.java | 61 ++++++++ .../portal/mapper/HwPortalConfigMapper.java | 61 ++++++++ .../mapper/HwPortalConfigTypeMapper.java | 61 ++++++++ .../mapper/HwProductCaseInfoMapper.java | 61 ++++++++ .../mapper/HwProductInfoDetailMapper.java | 61 ++++++++ .../portal/mapper/HwProductInfoMapper.java | 61 ++++++++ .../service/IHwAboutUsInfoDetailService.java | 61 ++++++++ .../portal/service/IHwAboutUsInfoService.java | 61 ++++++++ .../service/IHwContactUsInfoService.java | 61 ++++++++ .../service/IHwPortalConfigService.java | 61 ++++++++ .../service/IHwPortalConfigTypeService.java | 61 ++++++++ .../service/IHwProductCaseInfoService.java | 61 ++++++++ .../service/IHwProductInfoDetailService.java | 61 ++++++++ .../portal/service/IHwProductInfoService.java | 61 ++++++++ .../impl/HwAboutUsInfoDetailServiceImpl.java | 96 ++++++++++++ .../impl/HwAboutUsInfoServiceImpl.java | 96 ++++++++++++ .../impl/HwContactUsInfoServiceImpl.java | 96 ++++++++++++ .../impl/HwPortalConfigServiceImpl.java | 96 ++++++++++++ .../impl/HwPortalConfigTypeServiceImpl.java | 96 ++++++++++++ .../impl/HwProductCaseInfoServiceImpl.java | 96 ++++++++++++ .../impl/HwProductInfoDetailServiceImpl.java | 96 ++++++++++++ .../impl/HwProductInfoServiceImpl.java | 96 ++++++++++++ .../hw-portal/src/main/resources/banner.txt | 10 ++ .../src/main/resources/bootstrap.yml | 60 ++++++++ .../hw-portal/src/main/resources/logback.xml | 74 ++++++++++ .../portal/HwAboutUsInfoDetailMapper.xml | 92 ++++++++++++ .../mapper/portal/HwAboutUsInfoMapper.xml | 100 +++++++++++++ .../mapper/portal/HwContactUsInfoMapper.xml | 87 +++++++++++ .../mapper/portal/HwPortalConfigMapper.xml | 102 +++++++++++++ .../portal/HwPortalConfigTypeMapper.xml | 107 ++++++++++++++ .../mapper/portal/HwProductCaseInfoMapper.xml | 97 ++++++++++++ .../portal/HwProductInfoDetailMapper.xml | 107 ++++++++++++++ .../mapper/portal/HwProductInfoMapper.xml | 97 ++++++++++++ ruoyi-modules/pom.xml | 1 + 58 files changed, 4738 insertions(+), 2 deletions(-) create mode 100644 ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwSceneConfigController.java create mode 100644 ruoyi-modules/hw-portal/pom.xml create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/RuoYiPortalApplication.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwAboutUsInfoController.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwAboutUsInfoDetailController.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwContactUsInfoController.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalConfigController.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalConfigTypeController.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductCaseInfoController.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductInfoController.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductInfoDetailController.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwAboutUsInfo.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwAboutUsInfoDetail.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwContactUsInfo.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwPortalConfig.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwPortalConfigType.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductCaseInfo.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductInfo.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductInfoDetail.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwAboutUsInfoDetailMapper.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwAboutUsInfoMapper.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwContactUsInfoMapper.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwPortalConfigMapper.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwPortalConfigTypeMapper.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductCaseInfoMapper.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductInfoDetailMapper.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductInfoMapper.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwAboutUsInfoDetailService.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwAboutUsInfoService.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwContactUsInfoService.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwPortalConfigService.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwPortalConfigTypeService.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductCaseInfoService.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductInfoDetailService.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductInfoService.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwAboutUsInfoDetailServiceImpl.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwAboutUsInfoServiceImpl.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwContactUsInfoServiceImpl.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwPortalConfigServiceImpl.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwPortalConfigTypeServiceImpl.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductCaseInfoServiceImpl.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductInfoDetailServiceImpl.java create mode 100644 ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductInfoServiceImpl.java create mode 100644 ruoyi-modules/hw-portal/src/main/resources/banner.txt create mode 100644 ruoyi-modules/hw-portal/src/main/resources/bootstrap.yml create mode 100644 ruoyi-modules/hw-portal/src/main/resources/logback.xml create mode 100644 ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoDetailMapper.xml create mode 100644 ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoMapper.xml create mode 100644 ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwContactUsInfoMapper.xml create mode 100644 ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwPortalConfigMapper.xml create mode 100644 ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwPortalConfigTypeMapper.xml create mode 100644 ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductCaseInfoMapper.xml create mode 100644 ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductInfoDetailMapper.xml create mode 100644 ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductInfoMapper.xml diff --git a/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwSceneConfigController.java b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwSceneConfigController.java new file mode 100644 index 0000000..4ea9181 --- /dev/null +++ b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwSceneConfigController.java @@ -0,0 +1,68 @@ +package com.ruoyi.business.controller; + +import com.ruoyi.business.domain.*; +import com.ruoyi.business.domain.VO.DeviceControlVo; +import com.ruoyi.business.domain.VO.HwDeviceImportVo; +import com.ruoyi.business.service.IHwDeviceModeService; +import com.ruoyi.business.service.IHwDeviceService; +import com.ruoyi.business.service.IHwMonitorUnitService; +import com.ruoyi.business.service.IHwSceneService; +import com.ruoyi.common.core.constant.HwDictConstants; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.web.page.TableDataInfo; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.InnerAuth; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.common.security.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 设备信息Controller + * + * @author xins + * @date 2023-08-24 + */ +@RestController +@RequestMapping("/sceneConfig") +public class HwSceneConfigController extends BaseController { + @Autowired + private IHwDeviceService hwDeviceService; + + @Autowired + private IHwDeviceModeService hwDeviceModeService; + + + /** + * 查询设备信息列表 + */ + @GetMapping("/getDeviceList") + public TableDataInfo getDeviceList(HwDevice hwDevice) { + startPage(); + hwDevice.setDeviceTypeStr(HwDictConstants.DEVICE_TYPE_GATEWAY_SUB_EQUIPMENT+","+HwDictConstants.DEVICE_TYPE_DIRECT_CONNECT_DEVICE); + List list = hwDeviceService.selectHwDeviceList(hwDevice); + return getDataTable(list); + } + + + + @GetMapping(value = {"/getDeviceFunctions/{deviceModeId}"}) + public AjaxResult getDeviceFunctions(@PathVariable Long deviceModeId) { + HwDeviceModeFunction queryDeviceModeFunction = new HwDeviceModeFunction(); + queryDeviceModeFunction.setDeviceModeId(deviceModeId); + return success(hwDeviceModeService.selectHwDeviceModeFunctionList(queryDeviceModeFunction)); + } + + + +} diff --git a/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/domain/HwDevice.java b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/domain/HwDevice.java index 3f736a1..ee0ee63 100644 --- a/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/domain/HwDevice.java +++ b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/domain/HwDevice.java @@ -180,6 +180,9 @@ public class HwDevice extends BaseEntity { private Long offlineRuleId; + private String deviceTypeStr; + + public void setDeviceId(Long deviceId) { this.deviceId = deviceId; } @@ -428,6 +431,14 @@ public class HwDevice extends BaseEntity { this.offlineRuleId = offlineRuleId; } + public String getDeviceTypeStr() { + return deviceTypeStr; + } + + public void setDeviceTypeStr(String deviceTypeStr) { + this.deviceTypeStr = deviceTypeStr; + } + @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) diff --git a/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/service/impl/HwDeviceServiceImpl.java b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/service/impl/HwDeviceServiceImpl.java index 7fed586..865eb83 100644 --- a/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/service/impl/HwDeviceServiceImpl.java +++ b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/service/impl/HwDeviceServiceImpl.java @@ -94,7 +94,8 @@ public class HwDeviceServiceImpl implements IHwDeviceService { * @return 设备信息 */ @Override - @DataScope(tenantAlias = "hd") +// @DataScope(tenantAlias = "hd") + //todo 去掉上面注释 public List selectHwDeviceList(HwDevice hwDevice) { return hwDeviceMapper.selectHwDeviceList(hwDevice); } diff --git a/ruoyi-modules/hw-business/src/main/resources/mapper/business/HwDeviceMapper.xml b/ruoyi-modules/hw-business/src/main/resources/mapper/business/HwDeviceMapper.xml index c981a02..e09fdc4 100644 --- a/ruoyi-modules/hw-business/src/main/resources/mapper/business/HwDeviceMapper.xml +++ b/ruoyi-modules/hw-business/src/main/resources/mapper/business/HwDeviceMapper.xml @@ -109,8 +109,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and device_field = #{deviceField} and tenant_id = #{tenantId} and online_status = #{onlineStatus} + and device_type in (${deviceTypeStr}) - ${params.tenantDataScope} + diff --git a/ruoyi-modules/hw-portal/pom.xml b/ruoyi-modules/hw-portal/pom.xml new file mode 100644 index 0000000..e03e320 --- /dev/null +++ b/ruoyi-modules/hw-portal/pom.xml @@ -0,0 +1,115 @@ + + + + com.ruoyi + ruoyi-modules + 3.6.3 + + 4.0.0 + + ruoyi-modules-portal + + + ruoyi-modules-portal系统模块 + + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + + io.springfox + springfox-swagger-ui + ${swagger.fox.version} + + + + + com.mysql + mysql-connector-j + + + + + com.ruoyi + ruoyi-common-datasource + + + + + com.ruoyi + ruoyi-common-datascope + + + + + com.ruoyi + ruoyi-common-log + + + + + com.ruoyi + ruoyi-common-swagger + + + + + com.ruoyi + hw-common-i18n + + + org.springframework.boot + spring-boot-starter-web + + + + + com.ruoyi + hw-api-basic + + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + + \ No newline at end of file diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/RuoYiPortalApplication.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/RuoYiPortalApplication.java new file mode 100644 index 0000000..064c2d6 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/RuoYiPortalApplication.java @@ -0,0 +1,37 @@ +package com.ruoyi.portal; + +import com.ruoyi.common.security.annotation.EnableCustomConfig; +import com.ruoyi.common.security.annotation.EnableRyFeignClients; +import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * 系统模块 + * + * @author ruoyi + */ +@EnableCustomConfig +@EnableCustomSwagger2 +@EnableRyFeignClients +@SpringBootApplication +public class RuoYiPortalApplication +{ +// @Value("${spring.nacos.config.server-addr}") +// public static String dd; + public static void main(String[] args) + { + + SpringApplication.run(RuoYiPortalApplication.class, args); + System.out.println("(♥◠‿◠)ノ゙ 门户模块启动成功 ლ(´ڡ`ლ)゙ \n" + + " .-------. ____ __ \n" + + " | _ _ \\ \\ \\ / / \n" + + " | ( ' ) | \\ _. / ' \n" + + " |(_ o _) / _( )_ .' \n" + + " | (_,_).' __ ___(_ o _)' \n" + + " | |\\ \\ | || |(_,_)' \n" + + " | | \\ `' /| `-' / \n" + + " | | \\ / \\ / \n" + + " ''-' `'-' `-..-' "); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwAboutUsInfoController.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwAboutUsInfoController.java new file mode 100644 index 0000000..0b6b00e --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwAboutUsInfoController.java @@ -0,0 +1,105 @@ +package com.ruoyi.portal.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.portal.domain.HwAboutUsInfo; +import com.ruoyi.portal.service.IHwAboutUsInfoService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 关于我们信息Controller + * + * @author xins + * @date 2024-12-01 + */ +@RestController +@RequestMapping("/aboutUsInfo") +public class HwAboutUsInfoController extends BaseController +{ + @Autowired + private IHwAboutUsInfoService hwAboutUsInfoService; + + /** + * 查询关于我们信息列表 + */ + @RequiresPermissions("portal:aboutUsInfo:list") + @GetMapping("/list") + public TableDataInfo list(HwAboutUsInfo hwAboutUsInfo) + { + startPage(); + List list = hwAboutUsInfoService.selectHwAboutUsInfoList(hwAboutUsInfo); + return getDataTable(list); + } + + /** + * 导出关于我们信息列表 + */ + @RequiresPermissions("portal:aboutUsInfo:export") + @Log(title = "关于我们信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HwAboutUsInfo hwAboutUsInfo) + { + List list = hwAboutUsInfoService.selectHwAboutUsInfoList(hwAboutUsInfo); + ExcelUtil util = new ExcelUtil(HwAboutUsInfo.class); + util.exportExcel(response, list, "关于我们信息数据"); + } + + /** + * 获取关于我们信息详细信息 + */ + @RequiresPermissions("portal:aboutUsInfo:query") + @GetMapping(value = "/{aboutUsInfoId}") + public AjaxResult getInfo(@PathVariable("aboutUsInfoId") Long aboutUsInfoId) + { + return success(hwAboutUsInfoService.selectHwAboutUsInfoByAboutUsInfoId(aboutUsInfoId)); + } + + /** + * 新增关于我们信息 + */ + @RequiresPermissions("portal:aboutUsInfo:add") + @Log(title = "关于我们信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HwAboutUsInfo hwAboutUsInfo) + { + return toAjax(hwAboutUsInfoService.insertHwAboutUsInfo(hwAboutUsInfo)); + } + + /** + * 修改关于我们信息 + */ + @RequiresPermissions("portal:aboutUsInfo:edit") + @Log(title = "关于我们信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HwAboutUsInfo hwAboutUsInfo) + { + return toAjax(hwAboutUsInfoService.updateHwAboutUsInfo(hwAboutUsInfo)); + } + + /** + * 删除关于我们信息 + */ + @RequiresPermissions("portal:aboutUsInfo:remove") + @Log(title = "关于我们信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{aboutUsInfoIds}") + public AjaxResult remove(@PathVariable Long[] aboutUsInfoIds) + { + return toAjax(hwAboutUsInfoService.deleteHwAboutUsInfoByAboutUsInfoIds(aboutUsInfoIds)); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwAboutUsInfoDetailController.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwAboutUsInfoDetailController.java new file mode 100644 index 0000000..abf2b81 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwAboutUsInfoDetailController.java @@ -0,0 +1,105 @@ +package com.ruoyi.portal.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.portal.domain.HwAboutUsInfoDetail; +import com.ruoyi.portal.service.IHwAboutUsInfoDetailService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 关于我们信息明细Controller + * + * @author ruoyi + * @date 2024-12-01 + */ +@RestController +@RequestMapping("/aboutUsInfoDetail") +public class HwAboutUsInfoDetailController extends BaseController +{ + @Autowired + private IHwAboutUsInfoDetailService hwAboutUsInfoDetailService; + + /** + * 查询关于我们信息明细列表 + */ + @RequiresPermissions("portal:aboutUsInfoDetail:list") + @GetMapping("/list") + public TableDataInfo list(HwAboutUsInfoDetail hwAboutUsInfoDetail) + { + startPage(); + List list = hwAboutUsInfoDetailService.selectHwAboutUsInfoDetailList(hwAboutUsInfoDetail); + return getDataTable(list); + } + + /** + * 导出关于我们信息明细列表 + */ + @RequiresPermissions("portal:aboutUsInfoDetail:export") + @Log(title = "关于我们信息明细", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HwAboutUsInfoDetail hwAboutUsInfoDetail) + { + List list = hwAboutUsInfoDetailService.selectHwAboutUsInfoDetailList(hwAboutUsInfoDetail); + ExcelUtil util = new ExcelUtil(HwAboutUsInfoDetail.class); + util.exportExcel(response, list, "关于我们信息明细数据"); + } + + /** + * 获取关于我们信息明细详细信息 + */ + @RequiresPermissions("portal:aboutUsInfoDetail:query") + @GetMapping(value = "/{usInfoDetailId}") + public AjaxResult getInfo(@PathVariable("usInfoDetailId") Long usInfoDetailId) + { + return success(hwAboutUsInfoDetailService.selectHwAboutUsInfoDetailByUsInfoDetailId(usInfoDetailId)); + } + + /** + * 新增关于我们信息明细 + */ + @RequiresPermissions("portal:aboutUsInfoDetail:add") + @Log(title = "关于我们信息明细", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HwAboutUsInfoDetail hwAboutUsInfoDetail) + { + return toAjax(hwAboutUsInfoDetailService.insertHwAboutUsInfoDetail(hwAboutUsInfoDetail)); + } + + /** + * 修改关于我们信息明细 + */ + @RequiresPermissions("portal:aboutUsInfoDetail:edit") + @Log(title = "关于我们信息明细", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HwAboutUsInfoDetail hwAboutUsInfoDetail) + { + return toAjax(hwAboutUsInfoDetailService.updateHwAboutUsInfoDetail(hwAboutUsInfoDetail)); + } + + /** + * 删除关于我们信息明细 + */ + @RequiresPermissions("portal:aboutUsInfoDetail:remove") + @Log(title = "关于我们信息明细", businessType = BusinessType.DELETE) + @DeleteMapping("/{usInfoDetailIds}") + public AjaxResult remove(@PathVariable Long[] usInfoDetailIds) + { + return toAjax(hwAboutUsInfoDetailService.deleteHwAboutUsInfoDetailByUsInfoDetailIds(usInfoDetailIds)); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwContactUsInfoController.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwContactUsInfoController.java new file mode 100644 index 0000000..62b7b68 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwContactUsInfoController.java @@ -0,0 +1,105 @@ +package com.ruoyi.portal.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.portal.domain.HwContactUsInfo; +import com.ruoyi.portal.service.IHwContactUsInfoService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 联系我们信息Controller + * + * @author xins + * @date 2024-12-01 + */ +@RestController +@RequestMapping("/contactUsInfo") +public class HwContactUsInfoController extends BaseController +{ + @Autowired + private IHwContactUsInfoService hwContactUsInfoService; + + /** + * 查询联系我们信息列表 + */ + @RequiresPermissions("portal:contactUsInfo:list") + @GetMapping("/list") + public TableDataInfo list(HwContactUsInfo hwContactUsInfo) + { + startPage(); + List list = hwContactUsInfoService.selectHwContactUsInfoList(hwContactUsInfo); + return getDataTable(list); + } + + /** + * 导出联系我们信息列表 + */ + @RequiresPermissions("portal:contactUsInfo:export") + @Log(title = "联系我们信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HwContactUsInfo hwContactUsInfo) + { + List list = hwContactUsInfoService.selectHwContactUsInfoList(hwContactUsInfo); + ExcelUtil util = new ExcelUtil(HwContactUsInfo.class); + util.exportExcel(response, list, "联系我们信息数据"); + } + + /** + * 获取联系我们信息详细信息 + */ + @RequiresPermissions("portal:contactUsInfo:query") + @GetMapping(value = "/{contactUsInfoId}") + public AjaxResult getInfo(@PathVariable("contactUsInfoId") Long contactUsInfoId) + { + return success(hwContactUsInfoService.selectHwContactUsInfoByContactUsInfoId(contactUsInfoId)); + } + + /** + * 新增联系我们信息 + */ + @RequiresPermissions("portal:contactUsInfo:add") + @Log(title = "联系我们信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HwContactUsInfo hwContactUsInfo) + { + return toAjax(hwContactUsInfoService.insertHwContactUsInfo(hwContactUsInfo)); + } + + /** + * 修改联系我们信息 + */ + @RequiresPermissions("portal:contactUsInfo:edit") + @Log(title = "联系我们信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HwContactUsInfo hwContactUsInfo) + { + return toAjax(hwContactUsInfoService.updateHwContactUsInfo(hwContactUsInfo)); + } + + /** + * 删除联系我们信息 + */ + @RequiresPermissions("portal:contactUsInfo:remove") + @Log(title = "联系我们信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{contactUsInfoIds}") + public AjaxResult remove(@PathVariable Long[] contactUsInfoIds) + { + return toAjax(hwContactUsInfoService.deleteHwContactUsInfoByContactUsInfoIds(contactUsInfoIds)); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalConfigController.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalConfigController.java new file mode 100644 index 0000000..29c96fd --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalConfigController.java @@ -0,0 +1,105 @@ +package com.ruoyi.portal.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.portal.domain.HwPortalConfig; +import com.ruoyi.portal.service.IHwPortalConfigService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 门户网站配置Controller + * + * @author xins + * @date 2024-12-01 + */ +@RestController +@RequestMapping("/portalConfig") +public class HwPortalConfigController extends BaseController +{ + @Autowired + private IHwPortalConfigService hwPortalConfigService; + + /** + * 查询门户网站配置列表 + */ + @RequiresPermissions("portal:portalConfig:list") + @GetMapping("/list") + public TableDataInfo list(HwPortalConfig hwPortalConfig) + { + startPage(); + List list = hwPortalConfigService.selectHwPortalConfigList(hwPortalConfig); + return getDataTable(list); + } + + /** + * 导出门户网站配置列表 + */ + @RequiresPermissions("portal:portalConfig:export") + @Log(title = "门户网站配置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HwPortalConfig hwPortalConfig) + { + List list = hwPortalConfigService.selectHwPortalConfigList(hwPortalConfig); + ExcelUtil util = new ExcelUtil(HwPortalConfig.class); + util.exportExcel(response, list, "门户网站配置数据"); + } + + /** + * 获取门户网站配置详细信息 + */ + @RequiresPermissions("portal:portalConfig:query") + @GetMapping(value = "/{portalConfigId}") + public AjaxResult getInfo(@PathVariable("portalConfigId") Long portalConfigId) + { + return success(hwPortalConfigService.selectHwPortalConfigByPortalConfigId(portalConfigId)); + } + + /** + * 新增门户网站配置 + */ + @RequiresPermissions("portal:portalConfig:add") + @Log(title = "门户网站配置", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HwPortalConfig hwPortalConfig) + { + return toAjax(hwPortalConfigService.insertHwPortalConfig(hwPortalConfig)); + } + + /** + * 修改门户网站配置 + */ + @RequiresPermissions("portal:portalConfig:edit") + @Log(title = "门户网站配置", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HwPortalConfig hwPortalConfig) + { + return toAjax(hwPortalConfigService.updateHwPortalConfig(hwPortalConfig)); + } + + /** + * 删除门户网站配置 + */ + @RequiresPermissions("portal:portalConfig:remove") + @Log(title = "门户网站配置", businessType = BusinessType.DELETE) + @DeleteMapping("/{portalConfigIds}") + public AjaxResult remove(@PathVariable Long[] portalConfigIds) + { + return toAjax(hwPortalConfigService.deleteHwPortalConfigByPortalConfigIds(portalConfigIds)); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalConfigTypeController.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalConfigTypeController.java new file mode 100644 index 0000000..2af2c42 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwPortalConfigTypeController.java @@ -0,0 +1,103 @@ +package com.ruoyi.portal.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.portal.domain.HwPortalConfigType; +import com.ruoyi.portal.service.IHwPortalConfigTypeService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; + +/** + * 门户网站配置类型Controller + * + * @author xins + * @date 2024-12-11 + */ +@RestController +@RequestMapping("/portalConfigType") +public class HwPortalConfigTypeController extends BaseController +{ + @Autowired + private IHwPortalConfigTypeService hwPortalConfigTypeService; + + /** + * 查询门户网站配置类型列表 + */ + @RequiresPermissions("portal:portalConfigType:list") + @GetMapping("/list") + public AjaxResult list(HwPortalConfigType hwPortalConfigType) + { + List list = hwPortalConfigTypeService.selectHwPortalConfigTypeList(hwPortalConfigType); + return success(list); + } + + /** + * 导出门户网站配置类型列表 + */ + @RequiresPermissions("portal:portalConfigType:export") + @Log(title = "门户网站配置类型", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HwPortalConfigType hwPortalConfigType) + { + List list = hwPortalConfigTypeService.selectHwPortalConfigTypeList(hwPortalConfigType); + ExcelUtil util = new ExcelUtil(HwPortalConfigType.class); + util.exportExcel(response, list, "门户网站配置类型数据"); + } + + /** + * 获取门户网站配置类型详细信息 + */ + @RequiresPermissions("portal:portalConfigType:query") + @GetMapping(value = "/{configTypeId}") + public AjaxResult getInfo(@PathVariable("configTypeId") Long configTypeId) + { + return success(hwPortalConfigTypeService.selectHwPortalConfigTypeByConfigTypeId(configTypeId)); + } + + /** + * 新增门户网站配置类型 + */ + @RequiresPermissions("portal:portalConfigType:add") + @Log(title = "门户网站配置类型", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HwPortalConfigType hwPortalConfigType) + { + return toAjax(hwPortalConfigTypeService.insertHwPortalConfigType(hwPortalConfigType)); + } + + /** + * 修改门户网站配置类型 + */ + @RequiresPermissions("portal:portalConfigType:edit") + @Log(title = "门户网站配置类型", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HwPortalConfigType hwPortalConfigType) + { + return toAjax(hwPortalConfigTypeService.updateHwPortalConfigType(hwPortalConfigType)); + } + + /** + * 删除门户网站配置类型 + */ + @RequiresPermissions("portal:portalConfigType:remove") + @Log(title = "门户网站配置类型", businessType = BusinessType.DELETE) + @DeleteMapping("/{configTypeIds}") + public AjaxResult remove(@PathVariable Long[] configTypeIds) + { + return toAjax(hwPortalConfigTypeService.deleteHwPortalConfigTypeByConfigTypeIds(configTypeIds)); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductCaseInfoController.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductCaseInfoController.java new file mode 100644 index 0000000..7abde7a --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductCaseInfoController.java @@ -0,0 +1,105 @@ +package com.ruoyi.portal.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.portal.domain.HwProductCaseInfo; +import com.ruoyi.portal.service.IHwProductCaseInfoService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 案例内容Controller + * + * @author xins + * @date 2024-12-01 + */ +@RestController +@RequestMapping("/productCaseInfo") +public class HwProductCaseInfoController extends BaseController +{ + @Autowired + private IHwProductCaseInfoService hwProductCaseInfoService; + + /** + * 查询案例内容列表 + */ + @RequiresPermissions("portal:productCaseInfo:list") + @GetMapping("/list") + public TableDataInfo list(HwProductCaseInfo hwProductCaseInfo) + { + startPage(); + List list = hwProductCaseInfoService.selectHwProductCaseInfoList(hwProductCaseInfo); + return getDataTable(list); + } + + /** + * 导出案例内容列表 + */ + @RequiresPermissions("portal:productCaseInfo:export") + @Log(title = "案例内容", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HwProductCaseInfo hwProductCaseInfo) + { + List list = hwProductCaseInfoService.selectHwProductCaseInfoList(hwProductCaseInfo); + ExcelUtil util = new ExcelUtil(HwProductCaseInfo.class); + util.exportExcel(response, list, "案例内容数据"); + } + + /** + * 获取案例内容详细信息 + */ + @RequiresPermissions("portal:productCaseInfo:query") + @GetMapping(value = "/{caseInfoId}") + public AjaxResult getInfo(@PathVariable("caseInfoId") Long caseInfoId) + { + return success(hwProductCaseInfoService.selectHwProductCaseInfoByCaseInfoId(caseInfoId)); + } + + /** + * 新增案例内容 + */ + @RequiresPermissions("portal:productCaseInfo:add") + @Log(title = "案例内容", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HwProductCaseInfo hwProductCaseInfo) + { + return toAjax(hwProductCaseInfoService.insertHwProductCaseInfo(hwProductCaseInfo)); + } + + /** + * 修改案例内容 + */ + @RequiresPermissions("portal:productCaseInfo:edit") + @Log(title = "案例内容", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HwProductCaseInfo hwProductCaseInfo) + { + return toAjax(hwProductCaseInfoService.updateHwProductCaseInfo(hwProductCaseInfo)); + } + + /** + * 删除案例内容 + */ + @RequiresPermissions("portal:productCaseInfo:remove") + @Log(title = "案例内容", businessType = BusinessType.DELETE) + @DeleteMapping("/{caseInfoIds}") + public AjaxResult remove(@PathVariable Long[] caseInfoIds) + { + return toAjax(hwProductCaseInfoService.deleteHwProductCaseInfoByCaseInfoIds(caseInfoIds)); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductInfoController.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductInfoController.java new file mode 100644 index 0000000..5c3e721 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductInfoController.java @@ -0,0 +1,105 @@ +package com.ruoyi.portal.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.portal.domain.HwProductInfo; +import com.ruoyi.portal.service.IHwProductInfoService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 产品信息配置Controller + * + * @author xins + * @date 2024-12-01 + */ +@RestController +@RequestMapping("/productInfo") +public class HwProductInfoController extends BaseController +{ + @Autowired + private IHwProductInfoService hwProductInfoService; + + /** + * 查询产品信息配置列表 + */ + @RequiresPermissions("portal:productInfo:list") + @GetMapping("/list") + public TableDataInfo list(HwProductInfo hwProductInfo) + { + startPage(); + List list = hwProductInfoService.selectHwProductInfoList(hwProductInfo); + return getDataTable(list); + } + + /** + * 导出产品信息配置列表 + */ + @RequiresPermissions("portal:productInfo:export") + @Log(title = "产品信息配置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HwProductInfo hwProductInfo) + { + List list = hwProductInfoService.selectHwProductInfoList(hwProductInfo); + ExcelUtil util = new ExcelUtil(HwProductInfo.class); + util.exportExcel(response, list, "产品信息配置数据"); + } + + /** + * 获取产品信息配置详细信息 + */ + @RequiresPermissions("portal:productInfo:query") + @GetMapping(value = "/{productInfoId}") + public AjaxResult getInfo(@PathVariable("productInfoId") Long productInfoId) + { + return success(hwProductInfoService.selectHwProductInfoByProductInfoId(productInfoId)); + } + + /** + * 新增产品信息配置 + */ + @RequiresPermissions("portal:productInfo:add") + @Log(title = "产品信息配置", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HwProductInfo hwProductInfo) + { + return toAjax(hwProductInfoService.insertHwProductInfo(hwProductInfo)); + } + + /** + * 修改产品信息配置 + */ + @RequiresPermissions("portal:productInfo:edit") + @Log(title = "产品信息配置", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HwProductInfo hwProductInfo) + { + return toAjax(hwProductInfoService.updateHwProductInfo(hwProductInfo)); + } + + /** + * 删除产品信息配置 + */ + @RequiresPermissions("portal:productInfo:remove") + @Log(title = "产品信息配置", businessType = BusinessType.DELETE) + @DeleteMapping("/{productInfoIds}") + public AjaxResult remove(@PathVariable Long[] productInfoIds) + { + return toAjax(hwProductInfoService.deleteHwProductInfoByProductInfoIds(productInfoIds)); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductInfoDetailController.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductInfoDetailController.java new file mode 100644 index 0000000..605ecf3 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/controller/HwProductInfoDetailController.java @@ -0,0 +1,103 @@ +package com.ruoyi.portal.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.portal.domain.HwProductInfoDetail; +import com.ruoyi.portal.service.IHwProductInfoDetailService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; + +/** + * 产品信息明细配置Controller + * + * @author xins + * @date 2024-12-11 + */ +@RestController +@RequestMapping("/productInfoDetail") +public class HwProductInfoDetailController extends BaseController +{ + @Autowired + private IHwProductInfoDetailService hwProductInfoDetailService; + + /** + * 查询产品信息明细配置列表 + */ + @RequiresPermissions("portal:productInfoDetail:list") + @GetMapping("/list") + public AjaxResult list(HwProductInfoDetail hwProductInfoDetail) + { + List list = hwProductInfoDetailService.selectHwProductInfoDetailList(hwProductInfoDetail); + return success(list); + } + + /** + * 导出产品信息明细配置列表 + */ + @RequiresPermissions("portal:productInfoDetail:export") + @Log(title = "产品信息明细配置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HwProductInfoDetail hwProductInfoDetail) + { + List list = hwProductInfoDetailService.selectHwProductInfoDetailList(hwProductInfoDetail); + ExcelUtil util = new ExcelUtil(HwProductInfoDetail.class); + util.exportExcel(response, list, "产品信息明细配置数据"); + } + + /** + * 获取产品信息明细配置详细信息 + */ + @RequiresPermissions("portal:productInfoDetail:query") + @GetMapping(value = "/{productInfoDetailId}") + public AjaxResult getInfo(@PathVariable("productInfoDetailId") Long productInfoDetailId) + { + return success(hwProductInfoDetailService.selectHwProductInfoDetailByProductInfoDetailId(productInfoDetailId)); + } + + /** + * 新增产品信息明细配置 + */ + @RequiresPermissions("portal:productInfoDetail:add") + @Log(title = "产品信息明细配置", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HwProductInfoDetail hwProductInfoDetail) + { + return toAjax(hwProductInfoDetailService.insertHwProductInfoDetail(hwProductInfoDetail)); + } + + /** + * 修改产品信息明细配置 + */ + @RequiresPermissions("portal:productInfoDetail:edit") + @Log(title = "产品信息明细配置", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HwProductInfoDetail hwProductInfoDetail) + { + return toAjax(hwProductInfoDetailService.updateHwProductInfoDetail(hwProductInfoDetail)); + } + + /** + * 删除产品信息明细配置 + */ + @RequiresPermissions("portal:productInfoDetail:remove") + @Log(title = "产品信息明细配置", businessType = BusinessType.DELETE) + @DeleteMapping("/{productInfoDetailIds}") + public AjaxResult remove(@PathVariable Long[] productInfoDetailIds) + { + return toAjax(hwProductInfoDetailService.deleteHwProductInfoDetailByProductInfoDetailIds(productInfoDetailIds)); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwAboutUsInfo.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwAboutUsInfo.java new file mode 100644 index 0000000..528f73d --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwAboutUsInfo.java @@ -0,0 +1,138 @@ +package com.ruoyi.portal.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 关于我们信息对象 hw_about_us_info + * + * @author xins + * @date 2024-12-01 + */ +public class HwAboutUsInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键标识 */ + private Long aboutUsInfoId; + + /** 类型(1关于我们页面上大图2公司简介3企业资质4认证证书5团队风貌) */ + @Excel(name = "类型", readConverterExp = "1=关于我们页面上大图2公司简介3企业资质4认证证书5团队风貌") + private String aboutUsInfoType; + + /** 英文标题 */ + @Excel(name = "英文标题") + private String aboutUsInfoEtitle; + + + /** 中文标题 */ + @Excel(name = "中文标题") + private String aboutUsInfoTitle; + + /** 内容 */ + @Excel(name = "内容") + private String aboutUsInfoDesc; + + /** 顺序 */ + @Excel(name = "顺序") + private Long aboutUsInfoOrder; + + /** 显示模式 */ + @Excel(name = "显示模式") + private String displayModal; + + /** 图片地址 */ + @Excel(name = "图片地址") + private String aboutUsInfoPic; + + public void setAboutUsInfoId(Long aboutUsInfoId) + { + this.aboutUsInfoId = aboutUsInfoId; + } + + public Long getAboutUsInfoId() + { + return aboutUsInfoId; + } + public void setAboutUsInfoType(String aboutUsInfoType) + { + this.aboutUsInfoType = aboutUsInfoType; + } + + public String getAboutUsInfoType() + { + return aboutUsInfoType; + } + + public String getAboutUsInfoEtitle() { + return aboutUsInfoEtitle; + } + + public void setAboutUsInfoEtitle(String aboutUsInfoEtitle) { + this.aboutUsInfoEtitle = aboutUsInfoEtitle; + } + + public void setAboutUsInfoTitle(String aboutUsInfoTitle) + { + this.aboutUsInfoTitle = aboutUsInfoTitle; + } + + public String getAboutUsInfoTitle() + { + return aboutUsInfoTitle; + } + public void setAboutUsInfoDesc(String aboutUsInfoDesc) + { + this.aboutUsInfoDesc = aboutUsInfoDesc; + } + + public String getAboutUsInfoDesc() + { + return aboutUsInfoDesc; + } + public void setAboutUsInfoOrder(Long aboutUsInfoOrder) + { + this.aboutUsInfoOrder = aboutUsInfoOrder; + } + + public Long getAboutUsInfoOrder() + { + return aboutUsInfoOrder; + } + + public String getDisplayModal() { + return displayModal; + } + + public void setDisplayModal(String displayModal) { + this.displayModal = displayModal; + } + + public void setAboutUsInfoPic(String aboutUsInfoPic) + { + this.aboutUsInfoPic = aboutUsInfoPic; + } + + public String getAboutUsInfoPic() + { + return aboutUsInfoPic; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("aboutUsInfoId", getAboutUsInfoId()) + .append("aboutUsInfoType", getAboutUsInfoType()) + .append("aboutUsInfoTitle", getAboutUsInfoTitle()) + .append("aboutUsInfoDesc", getAboutUsInfoDesc()) + .append("aboutUsInfoOrder", getAboutUsInfoOrder()) + .append("aboutUsInfoPic", getAboutUsInfoPic()) + .append("createTime", getCreateTime()) + .append("createBy", getCreateBy()) + .append("updateTime", getUpdateTime()) + .append("updateBy", getUpdateBy()) + .toString(); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwAboutUsInfoDetail.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwAboutUsInfoDetail.java new file mode 100644 index 0000000..ee32ecb --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwAboutUsInfoDetail.java @@ -0,0 +1,111 @@ +package com.ruoyi.portal.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 关于我们信息明细对象 hw_about_us_info_detail + * + * @author ruoyi + * @date 2024-12-01 + */ +public class HwAboutUsInfoDetail extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键标识 */ + private Long usInfoDetailId; + + /** 关于我们信息ID */ + @Excel(name = "关于我们信息ID") + private Long aboutUsInfoId; + + /** 标题 */ + @Excel(name = "标题") + private String usInfoDetailTitle; + + /** 内容 */ + @Excel(name = "内容") + private String usInfoDetailDesc; + + /** 顺序 */ + @Excel(name = "顺序") + private Long usInfoDetailOrder; + + /** 图片地址 */ + @Excel(name = "图片地址") + private String usInfoDetailPic; + + public void setUsInfoDetailId(Long usInfoDetailId) + { + this.usInfoDetailId = usInfoDetailId; + } + + public Long getUsInfoDetailId() + { + return usInfoDetailId; + } + public void setAboutUsInfoId(Long aboutUsInfoId) + { + this.aboutUsInfoId = aboutUsInfoId; + } + + public Long getAboutUsInfoId() + { + return aboutUsInfoId; + } + public void setUsInfoDetailTitle(String usInfoDetailTitle) + { + this.usInfoDetailTitle = usInfoDetailTitle; + } + + public String getUsInfoDetailTitle() + { + return usInfoDetailTitle; + } + public void setUsInfoDetailDesc(String usInfoDetailDesc) + { + this.usInfoDetailDesc = usInfoDetailDesc; + } + + public String getUsInfoDetailDesc() + { + return usInfoDetailDesc; + } + public void setUsInfoDetailOrder(Long usInfoDetailOrder) + { + this.usInfoDetailOrder = usInfoDetailOrder; + } + + public Long getUsInfoDetailOrder() + { + return usInfoDetailOrder; + } + public void setUsInfoDetailPic(String usInfoDetailPic) + { + this.usInfoDetailPic = usInfoDetailPic; + } + + public String getUsInfoDetailPic() + { + return usInfoDetailPic; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("usInfoDetailId", getUsInfoDetailId()) + .append("aboutUsInfoId", getAboutUsInfoId()) + .append("usInfoDetailTitle", getUsInfoDetailTitle()) + .append("usInfoDetailDesc", getUsInfoDetailDesc()) + .append("usInfoDetailOrder", getUsInfoDetailOrder()) + .append("usInfoDetailPic", getUsInfoDetailPic()) + .append("createTime", getCreateTime()) + .append("createBy", getCreateBy()) + .append("updateTime", getUpdateTime()) + .append("updateBy", getUpdateBy()) + .toString(); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwContactUsInfo.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwContactUsInfo.java new file mode 100644 index 0000000..cf06a57 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwContactUsInfo.java @@ -0,0 +1,97 @@ +package com.ruoyi.portal.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 联系我们信息对象 hw_contact_us_info + * + * @author xins + * @date 2024-12-01 + */ +public class HwContactUsInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键标识 */ + private Long contactUsInfoId; + + /** 用户姓名 */ + @Excel(name = "用户姓名") + private String userName; + + /** 邮箱 */ + @Excel(name = "邮箱") + private String userEmail; + + /** 手机号 */ + @Excel(name = "手机号") + private String userPhone; + + /** IP地址 */ + @Excel(name = "IP地址") + private String userIp; + + public void setContactUsInfoId(Long contactUsInfoId) + { + this.contactUsInfoId = contactUsInfoId; + } + + public Long getContactUsInfoId() + { + return contactUsInfoId; + } + public void setUserName(String userName) + { + this.userName = userName; + } + + public String getUserName() + { + return userName; + } + public void setUserEmail(String userEmail) + { + this.userEmail = userEmail; + } + + public String getUserEmail() + { + return userEmail; + } + public void setUserPhone(String userPhone) + { + this.userPhone = userPhone; + } + + public String getUserPhone() + { + return userPhone; + } + public void setUserIp(String userIp) + { + this.userIp = userIp; + } + + public String getUserIp() + { + return userIp; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("contactUsInfoId", getContactUsInfoId()) + .append("userName", getUserName()) + .append("userEmail", getUserEmail()) + .append("userPhone", getUserPhone()) + .append("userIp", getUserIp()) + .append("createTime", getCreateTime()) + .append("createBy", getCreateBy()) + .append("updateTime", getUpdateTime()) + .append("updateBy", getUpdateBy()) + .toString(); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwPortalConfig.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwPortalConfig.java new file mode 100644 index 0000000..586ee9d --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwPortalConfig.java @@ -0,0 +1,139 @@ +package com.ruoyi.portal.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 门户网站配置对象 hw_portal_config + * + * @author xins + * @date 2024-12-01 + */ +public class HwPortalConfig extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键标识 */ + private Long portalConfigId; + + /** 类型(1首页大图 2产品中心大图) */ + @Excel(name = "类型(1首页大图 2产品中心大图)") + private String portalConfigType; + + /** 标题 */ + @Excel(name = "标题") + private String portalConfigTitle; + + /** 顺序 */ + @Excel(name = "顺序") + private Long portalConfigOrder; + + /** 内容 */ + @Excel(name = "内容") + private String portalConfigDesc; + + /** 按钮名称 */ + @Excel(name = "按钮名称") + private String buttonName; + + /** 按钮跳转地址 */ + @Excel(name = "按钮跳转地址") + private String routerAddress; + + /** 主图地址 */ + @Excel(name = "主图地址") + private String portalConfigPic; + + public void setPortalConfigId(Long portalConfigId) + { + this.portalConfigId = portalConfigId; + } + + public Long getPortalConfigId() + { + return portalConfigId; + } + public void setPortalConfigType(String portalConfigType) + { + this.portalConfigType = portalConfigType; + } + + public String getPortalConfigType() + { + return portalConfigType; + } + public void setPortalConfigTitle(String portalConfigTitle) + { + this.portalConfigTitle = portalConfigTitle; + } + + public String getPortalConfigTitle() + { + return portalConfigTitle; + } + public void setPortalConfigOrder(Long portalConfigOrder) + { + this.portalConfigOrder = portalConfigOrder; + } + + public Long getPortalConfigOrder() + { + return portalConfigOrder; + } + public void setPortalConfigDesc(String portalConfigDesc) + { + this.portalConfigDesc = portalConfigDesc; + } + + public String getPortalConfigDesc() + { + return portalConfigDesc; + } + public void setButtonName(String buttonName) + { + this.buttonName = buttonName; + } + + public String getButtonName() + { + return buttonName; + } + public void setRouterAddress(String routerAddress) + { + this.routerAddress = routerAddress; + } + + public String getRouterAddress() + { + return routerAddress; + } + public void setPortalConfigPic(String portalConfigPic) + { + this.portalConfigPic = portalConfigPic; + } + + public String getPortalConfigPic() + { + return portalConfigPic; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("portalConfigId", getPortalConfigId()) + .append("portalConfigType", getPortalConfigType()) + .append("portalConfigTitle", getPortalConfigTitle()) + .append("portalConfigOrder", getPortalConfigOrder()) + .append("portalConfigDesc", getPortalConfigDesc()) + .append("buttonName", getButtonName()) + .append("routerAddress", getRouterAddress()) + .append("portalConfigPic", getPortalConfigPic()) + .append("createTime", getCreateTime()) + .append("createBy", getCreateBy()) + .append("updateTime", getUpdateTime()) + .append("updateBy", getUpdateBy()) + .toString(); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwPortalConfigType.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwPortalConfigType.java new file mode 100644 index 0000000..deb8247 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwPortalConfigType.java @@ -0,0 +1,127 @@ +package com.ruoyi.portal.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.TreeEntity; + +/** + * 门户网站配置类型对象 hw_portal_config_type + * + * @author xins + * @date 2024-12-11 + */ +public class HwPortalConfigType extends TreeEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键标识 */ + private Long configTypeId; + + /** 大类(1产品中心,2案例) */ + @Excel(name = "大类(1产品中心,2案例)") + private String configTypeClassfication; + + /** 名称 */ + @Excel(name = "名称") + private String configTypeName; + + /** 首页名称 */ + @Excel(name = "首页名称") + private String homeConfigTypeName; + + /** 备注 */ + @Excel(name = "备注") + private String configTypeDesc; + + /** 图标地址 */ + @Excel(name = "图标地址") + private String configTypeIcon; + + /** 首页图片地址 */ + @Excel(name = "首页图片地址") + private String homeConfigTypePic; + + public void setConfigTypeId(Long configTypeId) + { + this.configTypeId = configTypeId; + } + + public Long getConfigTypeId() + { + return configTypeId; + } + public void setConfigTypeClassfication(String configTypeClassfication) + { + this.configTypeClassfication = configTypeClassfication; + } + + public String getConfigTypeClassfication() + { + return configTypeClassfication; + } + public void setConfigTypeName(String configTypeName) + { + this.configTypeName = configTypeName; + } + + public String getConfigTypeName() + { + return configTypeName; + } + public void setHomeConfigTypeName(String homeConfigTypeName) + { + this.homeConfigTypeName = homeConfigTypeName; + } + + public String getHomeConfigTypeName() + { + return homeConfigTypeName; + } + public void setConfigTypeDesc(String configTypeDesc) + { + this.configTypeDesc = configTypeDesc; + } + + public String getConfigTypeDesc() + { + return configTypeDesc; + } + public void setConfigTypeIcon(String configTypeIcon) + { + this.configTypeIcon = configTypeIcon; + } + + public String getConfigTypeIcon() + { + return configTypeIcon; + } + public void setHomeConfigTypePic(String homeConfigTypePic) + { + this.homeConfigTypePic = homeConfigTypePic; + } + + public String getHomeConfigTypePic() + { + return homeConfigTypePic; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("configTypeId", getConfigTypeId()) + .append("configTypeClassfication", getConfigTypeClassfication()) + .append("configTypeName", getConfigTypeName()) + .append("homeConfigTypeName", getHomeConfigTypeName()) + .append("configTypeDesc", getConfigTypeDesc()) + .append("configTypeIcon", getConfigTypeIcon()) + .append("homeConfigTypePic", getHomeConfigTypePic()) + .append("parentId", getParentId()) + .append("ancestors", getAncestors()) + .append("createTime", getCreateTime()) + .append("createBy", getCreateBy()) + .append("updateTime", getUpdateTime()) + .append("updateBy", getUpdateBy()) + .toString(); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductCaseInfo.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductCaseInfo.java new file mode 100644 index 0000000..2d9d773 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductCaseInfo.java @@ -0,0 +1,125 @@ +package com.ruoyi.portal.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 案例内容对象 hw_product_case_info + * + * @author xins + * @date 2024-12-01 + */ +public class HwProductCaseInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键标识 */ + private Long caseInfoId; + + /** 案例标题 */ + @Excel(name = "案例标题") + private String caseInfoTitle; + + /** 配置类型ID */ + @Excel(name = "配置类型ID") + private Long caseTypeId; + + /** 典型案例标识(1是0否) */ + @Excel(name = "典型案例标识(1是0否)") + private String typicalFlag; + + /** 案例内容 */ + @Excel(name = "案例内容") + private String caseInfoDesc; + + /** 案例内容图片 */ + @Excel(name = "案例内容图片") + private String caseInfoPic; + + /** 案例详情 */ + @Excel(name = "案例详情") + private String caseInfoHtml; + + public void setCaseInfoId(Long caseInfoId) + { + this.caseInfoId = caseInfoId; + } + + public Long getCaseInfoId() + { + return caseInfoId; + } + public void setCaseInfoTitle(String caseInfoTitle) + { + this.caseInfoTitle = caseInfoTitle; + } + + public String getCaseInfoTitle() + { + return caseInfoTitle; + } + public void setCaseTypeId(Long caseTypeId) + { + this.caseTypeId = caseTypeId; + } + + public Long getCaseTypeId() + { + return caseTypeId; + } + public void setTypicalFlag(String typicalFlag) + { + this.typicalFlag = typicalFlag; + } + + public String getTypicalFlag() + { + return typicalFlag; + } + public void setCaseInfoDesc(String caseInfoDesc) + { + this.caseInfoDesc = caseInfoDesc; + } + + public String getCaseInfoDesc() + { + return caseInfoDesc; + } + public void setCaseInfoPic(String caseInfoPic) + { + this.caseInfoPic = caseInfoPic; + } + + public String getCaseInfoPic() + { + return caseInfoPic; + } + public void setCaseInfoHtml(String caseInfoHtml) + { + this.caseInfoHtml = caseInfoHtml; + } + + public String getCaseInfoHtml() + { + return caseInfoHtml; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("caseInfoId", getCaseInfoId()) + .append("caseInfoTitle", getCaseInfoTitle()) + .append("caseTypeId", getCaseTypeId()) + .append("typicalFlag", getTypicalFlag()) + .append("caseInfoDesc", getCaseInfoDesc()) + .append("caseInfoPic", getCaseInfoPic()) + .append("caseInfoHtml", getCaseInfoHtml()) + .append("createTime", getCreateTime()) + .append("createBy", getCreateBy()) + .append("updateTime", getUpdateTime()) + .append("updateBy", getUpdateBy()) + .toString(); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductInfo.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductInfo.java new file mode 100644 index 0000000..f021f4b --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductInfo.java @@ -0,0 +1,125 @@ +package com.ruoyi.portal.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 产品信息配置对象 hw_product_info + * + * @author xins + * @date 2024-12-01 + */ +public class HwProductInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键标识 */ + private Long productInfoId; + + /** 配置类型(例如物联网解决方案下的物联网平台和物联网硬件产品系列) */ + @Excel(name = "配置类型", readConverterExp = "例=如物联网解决方案下的物联网平台和物联网硬件产品系列") + private String configTypeId; + + /** 是否按tab显示(1是0否) */ + @Excel(name = "是否按tab显示", readConverterExp = "1=是0否") + private String tabFlag; + + /** 配置模式(1图标 +文字+内容横铺4个2左标题+内容,右图片;3左图标,右标题+内容,一行2个;4左大图右标题+内容,一行2个;5上标题+下图片,6上标题+内容,下图片;7图标标题内容,一行3个,8左图右图9上图下内容,一行4个) */ + @Excel(name = "配置模式(1图标 +文字+内容横铺4个2左标题+内容,右图片;3左图标,右标题+内容,一行2个;4左大图右标题+内容,一行2个;5上标题+下图片,6上标题+内容,下图片;7图标标题内容,一行3个,8左图右图9上图下内容,一行4个)") + private String configModal; + + /** 英文标题 */ + @Excel(name = "英文标题") + private String productInfoEtitle; + + /** 中文标题 */ + @Excel(name = "中文标题") + private String productInfoCtitle; + + /** 顺序 */ + @Excel(name = "顺序") + private Long productInfoOrder; + + public void setProductInfoId(Long productInfoId) + { + this.productInfoId = productInfoId; + } + + public Long getProductInfoId() + { + return productInfoId; + } + public void setConfigTypeId(String configTypeId) + { + this.configTypeId = configTypeId; + } + + public String getConfigTypeId() + { + return configTypeId; + } + public void setTabFlag(String tabFlag) + { + this.tabFlag = tabFlag; + } + + public String getTabFlag() + { + return tabFlag; + } + public void setConfigModal(String configModal) + { + this.configModal = configModal; + } + + public String getConfigModal() + { + return configModal; + } + public void setProductInfoEtitle(String productInfoEtitle) + { + this.productInfoEtitle = productInfoEtitle; + } + + public String getProductInfoEtitle() + { + return productInfoEtitle; + } + public void setProductInfoCtitle(String productInfoCtitle) + { + this.productInfoCtitle = productInfoCtitle; + } + + public String getProductInfoCtitle() + { + return productInfoCtitle; + } + public void setProductInfoOrder(Long productInfoOrder) + { + this.productInfoOrder = productInfoOrder; + } + + public Long getProductInfoOrder() + { + return productInfoOrder; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("productInfoId", getProductInfoId()) + .append("configTypeId", getConfigTypeId()) + .append("tabFlag", getTabFlag()) + .append("configModal", getConfigModal()) + .append("productInfoEtitle", getProductInfoEtitle()) + .append("productInfoCtitle", getProductInfoCtitle()) + .append("productInfoOrder", getProductInfoOrder()) + .append("createTime", getCreateTime()) + .append("createBy", getCreateBy()) + .append("updateTime", getUpdateTime()) + .append("updateBy", getUpdateBy()) + .toString(); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductInfoDetail.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductInfoDetail.java new file mode 100644 index 0000000..80bde59 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/domain/HwProductInfoDetail.java @@ -0,0 +1,127 @@ +package com.ruoyi.portal.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.TreeEntity; + +/** + * 产品信息明细配置对象 hw_product_info_detail + * + * @author xins + * @date 2024-12-11 + */ +public class HwProductInfoDetail extends TreeEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键标识 */ + private Long productInfoDetailId; + + /** 产品信息配置ID */ + @Excel(name = "产品信息配置ID") + private Long productInfoId; + + /** 配置模式(1图标 +文字+内容横铺4个2左标题+内容,右图片;3左图标,右标题+内容,一行2个;4左大图右标题+内容,一行2个;5上标题+下图片,6上标题+内容,下图片;7图标标题内容,一行3个,8一张图9上图下内容,一行4个);针对右children时配置的 */ + @Excel(name = "配置模式(1图标 +文字+内容横铺4个2左标题+内容,右图片;3左图标,右标题+内容,一行2个;4左大图右标题+内容,一行2个;5上标题+下图片,6上标题+内容,下图片;7图标标题内容,一行3个,8一张图9上图下内容,一行4个);针对右children时配置的") + private String configModal; + + /** 标题 */ + @Excel(name = "标题") + private String productInfoDetailTitle; + + /** 内容 */ + @Excel(name = "内容") + private String productInfoDetailDesc; + + /** 顺序 */ + @Excel(name = "顺序") + private Long productInfoDetailOrder; + + /** 图片地址 */ + @Excel(name = "图片地址") + private String productInfoDetailPic; + + public void setProductInfoDetailId(Long productInfoDetailId) + { + this.productInfoDetailId = productInfoDetailId; + } + + public Long getProductInfoDetailId() + { + return productInfoDetailId; + } + public void setProductInfoId(Long productInfoId) + { + this.productInfoId = productInfoId; + } + + public Long getProductInfoId() + { + return productInfoId; + } + public void setConfigModal(String configModal) + { + this.configModal = configModal; + } + + public String getConfigModal() + { + return configModal; + } + public void setProductInfoDetailTitle(String productInfoDetailTitle) + { + this.productInfoDetailTitle = productInfoDetailTitle; + } + + public String getProductInfoDetailTitle() + { + return productInfoDetailTitle; + } + public void setProductInfoDetailDesc(String productInfoDetailDesc) + { + this.productInfoDetailDesc = productInfoDetailDesc; + } + + public String getProductInfoDetailDesc() + { + return productInfoDetailDesc; + } + public void setProductInfoDetailOrder(Long productInfoDetailOrder) + { + this.productInfoDetailOrder = productInfoDetailOrder; + } + + public Long getProductInfoDetailOrder() + { + return productInfoDetailOrder; + } + public void setProductInfoDetailPic(String productInfoDetailPic) + { + this.productInfoDetailPic = productInfoDetailPic; + } + + public String getProductInfoDetailPic() + { + return productInfoDetailPic; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("productInfoDetailId", getProductInfoDetailId()) + .append("parentId", getParentId()) + .append("productInfoId", getProductInfoId()) + .append("configModal", getConfigModal()) + .append("productInfoDetailTitle", getProductInfoDetailTitle()) + .append("productInfoDetailDesc", getProductInfoDetailDesc()) + .append("productInfoDetailOrder", getProductInfoDetailOrder()) + .append("productInfoDetailPic", getProductInfoDetailPic()) + .append("ancestors", getAncestors()) + .append("createTime", getCreateTime()) + .append("createBy", getCreateBy()) + .append("updateTime", getUpdateTime()) + .append("updateBy", getUpdateBy()) + .toString(); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwAboutUsInfoDetailMapper.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwAboutUsInfoDetailMapper.java new file mode 100644 index 0000000..12bf14d --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwAboutUsInfoDetailMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.mapper; + +import java.util.List; +import com.ruoyi.portal.domain.HwAboutUsInfoDetail; + +/** + * 关于我们信息明细Mapper接口 + * + * @author ruoyi + * @date 2024-12-01 + */ +public interface HwAboutUsInfoDetailMapper +{ + /** + * 查询关于我们信息明细 + * + * @param usInfoDetailId 关于我们信息明细主键 + * @return 关于我们信息明细 + */ + public HwAboutUsInfoDetail selectHwAboutUsInfoDetailByUsInfoDetailId(Long usInfoDetailId); + + /** + * 查询关于我们信息明细列表 + * + * @param hwAboutUsInfoDetail 关于我们信息明细 + * @return 关于我们信息明细集合 + */ + public List selectHwAboutUsInfoDetailList(HwAboutUsInfoDetail hwAboutUsInfoDetail); + + /** + * 新增关于我们信息明细 + * + * @param hwAboutUsInfoDetail 关于我们信息明细 + * @return 结果 + */ + public int insertHwAboutUsInfoDetail(HwAboutUsInfoDetail hwAboutUsInfoDetail); + + /** + * 修改关于我们信息明细 + * + * @param hwAboutUsInfoDetail 关于我们信息明细 + * @return 结果 + */ + public int updateHwAboutUsInfoDetail(HwAboutUsInfoDetail hwAboutUsInfoDetail); + + /** + * 删除关于我们信息明细 + * + * @param usInfoDetailId 关于我们信息明细主键 + * @return 结果 + */ + public int deleteHwAboutUsInfoDetailByUsInfoDetailId(Long usInfoDetailId); + + /** + * 批量删除关于我们信息明细 + * + * @param usInfoDetailIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHwAboutUsInfoDetailByUsInfoDetailIds(Long[] usInfoDetailIds); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwAboutUsInfoMapper.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwAboutUsInfoMapper.java new file mode 100644 index 0000000..8460df5 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwAboutUsInfoMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.mapper; + +import java.util.List; +import com.ruoyi.portal.domain.HwAboutUsInfo; + +/** + * 关于我们信息Mapper接口 + * + * @author xins + * @date 2024-12-01 + */ +public interface HwAboutUsInfoMapper +{ + /** + * 查询关于我们信息 + * + * @param aboutUsInfoId 关于我们信息主键 + * @return 关于我们信息 + */ + public HwAboutUsInfo selectHwAboutUsInfoByAboutUsInfoId(Long aboutUsInfoId); + + /** + * 查询关于我们信息列表 + * + * @param hwAboutUsInfo 关于我们信息 + * @return 关于我们信息集合 + */ + public List selectHwAboutUsInfoList(HwAboutUsInfo hwAboutUsInfo); + + /** + * 新增关于我们信息 + * + * @param hwAboutUsInfo 关于我们信息 + * @return 结果 + */ + public int insertHwAboutUsInfo(HwAboutUsInfo hwAboutUsInfo); + + /** + * 修改关于我们信息 + * + * @param hwAboutUsInfo 关于我们信息 + * @return 结果 + */ + public int updateHwAboutUsInfo(HwAboutUsInfo hwAboutUsInfo); + + /** + * 删除关于我们信息 + * + * @param aboutUsInfoId 关于我们信息主键 + * @return 结果 + */ + public int deleteHwAboutUsInfoByAboutUsInfoId(Long aboutUsInfoId); + + /** + * 批量删除关于我们信息 + * + * @param aboutUsInfoIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHwAboutUsInfoByAboutUsInfoIds(Long[] aboutUsInfoIds); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwContactUsInfoMapper.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwContactUsInfoMapper.java new file mode 100644 index 0000000..8d03dfc --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwContactUsInfoMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.mapper; + +import java.util.List; +import com.ruoyi.portal.domain.HwContactUsInfo; + +/** + * 联系我们信息Mapper接口 + * + * @author xins + * @date 2024-12-01 + */ +public interface HwContactUsInfoMapper +{ + /** + * 查询联系我们信息 + * + * @param contactUsInfoId 联系我们信息主键 + * @return 联系我们信息 + */ + public HwContactUsInfo selectHwContactUsInfoByContactUsInfoId(Long contactUsInfoId); + + /** + * 查询联系我们信息列表 + * + * @param hwContactUsInfo 联系我们信息 + * @return 联系我们信息集合 + */ + public List selectHwContactUsInfoList(HwContactUsInfo hwContactUsInfo); + + /** + * 新增联系我们信息 + * + * @param hwContactUsInfo 联系我们信息 + * @return 结果 + */ + public int insertHwContactUsInfo(HwContactUsInfo hwContactUsInfo); + + /** + * 修改联系我们信息 + * + * @param hwContactUsInfo 联系我们信息 + * @return 结果 + */ + public int updateHwContactUsInfo(HwContactUsInfo hwContactUsInfo); + + /** + * 删除联系我们信息 + * + * @param contactUsInfoId 联系我们信息主键 + * @return 结果 + */ + public int deleteHwContactUsInfoByContactUsInfoId(Long contactUsInfoId); + + /** + * 批量删除联系我们信息 + * + * @param contactUsInfoIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHwContactUsInfoByContactUsInfoIds(Long[] contactUsInfoIds); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwPortalConfigMapper.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwPortalConfigMapper.java new file mode 100644 index 0000000..b08acb1 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwPortalConfigMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.mapper; + +import java.util.List; +import com.ruoyi.portal.domain.HwPortalConfig; + +/** + * 门户网站配置Mapper接口 + * + * @author xins + * @date 2024-12-01 + */ +public interface HwPortalConfigMapper +{ + /** + * 查询门户网站配置 + * + * @param portalConfigId 门户网站配置主键 + * @return 门户网站配置 + */ + public HwPortalConfig selectHwPortalConfigByPortalConfigId(Long portalConfigId); + + /** + * 查询门户网站配置列表 + * + * @param hwPortalConfig 门户网站配置 + * @return 门户网站配置集合 + */ + public List selectHwPortalConfigList(HwPortalConfig hwPortalConfig); + + /** + * 新增门户网站配置 + * + * @param hwPortalConfig 门户网站配置 + * @return 结果 + */ + public int insertHwPortalConfig(HwPortalConfig hwPortalConfig); + + /** + * 修改门户网站配置 + * + * @param hwPortalConfig 门户网站配置 + * @return 结果 + */ + public int updateHwPortalConfig(HwPortalConfig hwPortalConfig); + + /** + * 删除门户网站配置 + * + * @param portalConfigId 门户网站配置主键 + * @return 结果 + */ + public int deleteHwPortalConfigByPortalConfigId(Long portalConfigId); + + /** + * 批量删除门户网站配置 + * + * @param portalConfigIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHwPortalConfigByPortalConfigIds(Long[] portalConfigIds); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwPortalConfigTypeMapper.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwPortalConfigTypeMapper.java new file mode 100644 index 0000000..a32de85 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwPortalConfigTypeMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.mapper; + +import java.util.List; +import com.ruoyi.portal.domain.HwPortalConfigType; + +/** + * 门户网站配置类型Mapper接口 + * + * @author xins + * @date 2024-12-11 + */ +public interface HwPortalConfigTypeMapper +{ + /** + * 查询门户网站配置类型 + * + * @param configTypeId 门户网站配置类型主键 + * @return 门户网站配置类型 + */ + public HwPortalConfigType selectHwPortalConfigTypeByConfigTypeId(Long configTypeId); + + /** + * 查询门户网站配置类型列表 + * + * @param hwPortalConfigType 门户网站配置类型 + * @return 门户网站配置类型集合 + */ + public List selectHwPortalConfigTypeList(HwPortalConfigType hwPortalConfigType); + + /** + * 新增门户网站配置类型 + * + * @param hwPortalConfigType 门户网站配置类型 + * @return 结果 + */ + public int insertHwPortalConfigType(HwPortalConfigType hwPortalConfigType); + + /** + * 修改门户网站配置类型 + * + * @param hwPortalConfigType 门户网站配置类型 + * @return 结果 + */ + public int updateHwPortalConfigType(HwPortalConfigType hwPortalConfigType); + + /** + * 删除门户网站配置类型 + * + * @param configTypeId 门户网站配置类型主键 + * @return 结果 + */ + public int deleteHwPortalConfigTypeByConfigTypeId(Long configTypeId); + + /** + * 批量删除门户网站配置类型 + * + * @param configTypeIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHwPortalConfigTypeByConfigTypeIds(Long[] configTypeIds); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductCaseInfoMapper.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductCaseInfoMapper.java new file mode 100644 index 0000000..f22aa2c --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductCaseInfoMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.mapper; + +import java.util.List; +import com.ruoyi.portal.domain.HwProductCaseInfo; + +/** + * 案例内容Mapper接口 + * + * @author xins + * @date 2024-12-01 + */ +public interface HwProductCaseInfoMapper +{ + /** + * 查询案例内容 + * + * @param caseInfoId 案例内容主键 + * @return 案例内容 + */ + public HwProductCaseInfo selectHwProductCaseInfoByCaseInfoId(Long caseInfoId); + + /** + * 查询案例内容列表 + * + * @param hwProductCaseInfo 案例内容 + * @return 案例内容集合 + */ + public List selectHwProductCaseInfoList(HwProductCaseInfo hwProductCaseInfo); + + /** + * 新增案例内容 + * + * @param hwProductCaseInfo 案例内容 + * @return 结果 + */ + public int insertHwProductCaseInfo(HwProductCaseInfo hwProductCaseInfo); + + /** + * 修改案例内容 + * + * @param hwProductCaseInfo 案例内容 + * @return 结果 + */ + public int updateHwProductCaseInfo(HwProductCaseInfo hwProductCaseInfo); + + /** + * 删除案例内容 + * + * @param caseInfoId 案例内容主键 + * @return 结果 + */ + public int deleteHwProductCaseInfoByCaseInfoId(Long caseInfoId); + + /** + * 批量删除案例内容 + * + * @param caseInfoIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHwProductCaseInfoByCaseInfoIds(Long[] caseInfoIds); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductInfoDetailMapper.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductInfoDetailMapper.java new file mode 100644 index 0000000..1a97e09 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductInfoDetailMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.mapper; + +import java.util.List; +import com.ruoyi.portal.domain.HwProductInfoDetail; + +/** + * 产品信息明细配置Mapper接口 + * + * @author xins + * @date 2024-12-11 + */ +public interface HwProductInfoDetailMapper +{ + /** + * 查询产品信息明细配置 + * + * @param productInfoDetailId 产品信息明细配置主键 + * @return 产品信息明细配置 + */ + public HwProductInfoDetail selectHwProductInfoDetailByProductInfoDetailId(Long productInfoDetailId); + + /** + * 查询产品信息明细配置列表 + * + * @param hwProductInfoDetail 产品信息明细配置 + * @return 产品信息明细配置集合 + */ + public List selectHwProductInfoDetailList(HwProductInfoDetail hwProductInfoDetail); + + /** + * 新增产品信息明细配置 + * + * @param hwProductInfoDetail 产品信息明细配置 + * @return 结果 + */ + public int insertHwProductInfoDetail(HwProductInfoDetail hwProductInfoDetail); + + /** + * 修改产品信息明细配置 + * + * @param hwProductInfoDetail 产品信息明细配置 + * @return 结果 + */ + public int updateHwProductInfoDetail(HwProductInfoDetail hwProductInfoDetail); + + /** + * 删除产品信息明细配置 + * + * @param productInfoDetailId 产品信息明细配置主键 + * @return 结果 + */ + public int deleteHwProductInfoDetailByProductInfoDetailId(Long productInfoDetailId); + + /** + * 批量删除产品信息明细配置 + * + * @param productInfoDetailIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHwProductInfoDetailByProductInfoDetailIds(Long[] productInfoDetailIds); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductInfoMapper.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductInfoMapper.java new file mode 100644 index 0000000..6ccd7e1 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/mapper/HwProductInfoMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.mapper; + +import java.util.List; +import com.ruoyi.portal.domain.HwProductInfo; + +/** + * 产品信息配置Mapper接口 + * + * @author xins + * @date 2024-12-01 + */ +public interface HwProductInfoMapper +{ + /** + * 查询产品信息配置 + * + * @param productInfoId 产品信息配置主键 + * @return 产品信息配置 + */ + public HwProductInfo selectHwProductInfoByProductInfoId(Long productInfoId); + + /** + * 查询产品信息配置列表 + * + * @param hwProductInfo 产品信息配置 + * @return 产品信息配置集合 + */ + public List selectHwProductInfoList(HwProductInfo hwProductInfo); + + /** + * 新增产品信息配置 + * + * @param hwProductInfo 产品信息配置 + * @return 结果 + */ + public int insertHwProductInfo(HwProductInfo hwProductInfo); + + /** + * 修改产品信息配置 + * + * @param hwProductInfo 产品信息配置 + * @return 结果 + */ + public int updateHwProductInfo(HwProductInfo hwProductInfo); + + /** + * 删除产品信息配置 + * + * @param productInfoId 产品信息配置主键 + * @return 结果 + */ + public int deleteHwProductInfoByProductInfoId(Long productInfoId); + + /** + * 批量删除产品信息配置 + * + * @param productInfoIds 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHwProductInfoByProductInfoIds(Long[] productInfoIds); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwAboutUsInfoDetailService.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwAboutUsInfoDetailService.java new file mode 100644 index 0000000..29f94cd --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwAboutUsInfoDetailService.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.service; + +import java.util.List; +import com.ruoyi.portal.domain.HwAboutUsInfoDetail; + +/** + * 关于我们信息明细Service接口 + * + * @author ruoyi + * @date 2024-12-01 + */ +public interface IHwAboutUsInfoDetailService +{ + /** + * 查询关于我们信息明细 + * + * @param usInfoDetailId 关于我们信息明细主键 + * @return 关于我们信息明细 + */ + public HwAboutUsInfoDetail selectHwAboutUsInfoDetailByUsInfoDetailId(Long usInfoDetailId); + + /** + * 查询关于我们信息明细列表 + * + * @param hwAboutUsInfoDetail 关于我们信息明细 + * @return 关于我们信息明细集合 + */ + public List selectHwAboutUsInfoDetailList(HwAboutUsInfoDetail hwAboutUsInfoDetail); + + /** + * 新增关于我们信息明细 + * + * @param hwAboutUsInfoDetail 关于我们信息明细 + * @return 结果 + */ + public int insertHwAboutUsInfoDetail(HwAboutUsInfoDetail hwAboutUsInfoDetail); + + /** + * 修改关于我们信息明细 + * + * @param hwAboutUsInfoDetail 关于我们信息明细 + * @return 结果 + */ + public int updateHwAboutUsInfoDetail(HwAboutUsInfoDetail hwAboutUsInfoDetail); + + /** + * 批量删除关于我们信息明细 + * + * @param usInfoDetailIds 需要删除的关于我们信息明细主键集合 + * @return 结果 + */ + public int deleteHwAboutUsInfoDetailByUsInfoDetailIds(Long[] usInfoDetailIds); + + /** + * 删除关于我们信息明细信息 + * + * @param usInfoDetailId 关于我们信息明细主键 + * @return 结果 + */ + public int deleteHwAboutUsInfoDetailByUsInfoDetailId(Long usInfoDetailId); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwAboutUsInfoService.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwAboutUsInfoService.java new file mode 100644 index 0000000..8435265 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwAboutUsInfoService.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.service; + +import java.util.List; +import com.ruoyi.portal.domain.HwAboutUsInfo; + +/** + * 关于我们信息Service接口 + * + * @author xins + * @date 2024-12-01 + */ +public interface IHwAboutUsInfoService +{ + /** + * 查询关于我们信息 + * + * @param aboutUsInfoId 关于我们信息主键 + * @return 关于我们信息 + */ + public HwAboutUsInfo selectHwAboutUsInfoByAboutUsInfoId(Long aboutUsInfoId); + + /** + * 查询关于我们信息列表 + * + * @param hwAboutUsInfo 关于我们信息 + * @return 关于我们信息集合 + */ + public List selectHwAboutUsInfoList(HwAboutUsInfo hwAboutUsInfo); + + /** + * 新增关于我们信息 + * + * @param hwAboutUsInfo 关于我们信息 + * @return 结果 + */ + public int insertHwAboutUsInfo(HwAboutUsInfo hwAboutUsInfo); + + /** + * 修改关于我们信息 + * + * @param hwAboutUsInfo 关于我们信息 + * @return 结果 + */ + public int updateHwAboutUsInfo(HwAboutUsInfo hwAboutUsInfo); + + /** + * 批量删除关于我们信息 + * + * @param aboutUsInfoIds 需要删除的关于我们信息主键集合 + * @return 结果 + */ + public int deleteHwAboutUsInfoByAboutUsInfoIds(Long[] aboutUsInfoIds); + + /** + * 删除关于我们信息信息 + * + * @param aboutUsInfoId 关于我们信息主键 + * @return 结果 + */ + public int deleteHwAboutUsInfoByAboutUsInfoId(Long aboutUsInfoId); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwContactUsInfoService.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwContactUsInfoService.java new file mode 100644 index 0000000..382f843 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwContactUsInfoService.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.service; + +import java.util.List; +import com.ruoyi.portal.domain.HwContactUsInfo; + +/** + * 联系我们信息Service接口 + * + * @author xins + * @date 2024-12-01 + */ +public interface IHwContactUsInfoService +{ + /** + * 查询联系我们信息 + * + * @param contactUsInfoId 联系我们信息主键 + * @return 联系我们信息 + */ + public HwContactUsInfo selectHwContactUsInfoByContactUsInfoId(Long contactUsInfoId); + + /** + * 查询联系我们信息列表 + * + * @param hwContactUsInfo 联系我们信息 + * @return 联系我们信息集合 + */ + public List selectHwContactUsInfoList(HwContactUsInfo hwContactUsInfo); + + /** + * 新增联系我们信息 + * + * @param hwContactUsInfo 联系我们信息 + * @return 结果 + */ + public int insertHwContactUsInfo(HwContactUsInfo hwContactUsInfo); + + /** + * 修改联系我们信息 + * + * @param hwContactUsInfo 联系我们信息 + * @return 结果 + */ + public int updateHwContactUsInfo(HwContactUsInfo hwContactUsInfo); + + /** + * 批量删除联系我们信息 + * + * @param contactUsInfoIds 需要删除的联系我们信息主键集合 + * @return 结果 + */ + public int deleteHwContactUsInfoByContactUsInfoIds(Long[] contactUsInfoIds); + + /** + * 删除联系我们信息信息 + * + * @param contactUsInfoId 联系我们信息主键 + * @return 结果 + */ + public int deleteHwContactUsInfoByContactUsInfoId(Long contactUsInfoId); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwPortalConfigService.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwPortalConfigService.java new file mode 100644 index 0000000..361b67d --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwPortalConfigService.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.service; + +import java.util.List; +import com.ruoyi.portal.domain.HwPortalConfig; + +/** + * 门户网站配置Service接口 + * + * @author xins + * @date 2024-12-01 + */ +public interface IHwPortalConfigService +{ + /** + * 查询门户网站配置 + * + * @param portalConfigId 门户网站配置主键 + * @return 门户网站配置 + */ + public HwPortalConfig selectHwPortalConfigByPortalConfigId(Long portalConfigId); + + /** + * 查询门户网站配置列表 + * + * @param hwPortalConfig 门户网站配置 + * @return 门户网站配置集合 + */ + public List selectHwPortalConfigList(HwPortalConfig hwPortalConfig); + + /** + * 新增门户网站配置 + * + * @param hwPortalConfig 门户网站配置 + * @return 结果 + */ + public int insertHwPortalConfig(HwPortalConfig hwPortalConfig); + + /** + * 修改门户网站配置 + * + * @param hwPortalConfig 门户网站配置 + * @return 结果 + */ + public int updateHwPortalConfig(HwPortalConfig hwPortalConfig); + + /** + * 批量删除门户网站配置 + * + * @param portalConfigIds 需要删除的门户网站配置主键集合 + * @return 结果 + */ + public int deleteHwPortalConfigByPortalConfigIds(Long[] portalConfigIds); + + /** + * 删除门户网站配置信息 + * + * @param portalConfigId 门户网站配置主键 + * @return 结果 + */ + public int deleteHwPortalConfigByPortalConfigId(Long portalConfigId); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwPortalConfigTypeService.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwPortalConfigTypeService.java new file mode 100644 index 0000000..bc1afb8 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwPortalConfigTypeService.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.service; + +import java.util.List; +import com.ruoyi.portal.domain.HwPortalConfigType; + +/** + * 门户网站配置类型Service接口 + * + * @author xins + * @date 2024-12-11 + */ +public interface IHwPortalConfigTypeService +{ + /** + * 查询门户网站配置类型 + * + * @param configTypeId 门户网站配置类型主键 + * @return 门户网站配置类型 + */ + public HwPortalConfigType selectHwPortalConfigTypeByConfigTypeId(Long configTypeId); + + /** + * 查询门户网站配置类型列表 + * + * @param hwPortalConfigType 门户网站配置类型 + * @return 门户网站配置类型集合 + */ + public List selectHwPortalConfigTypeList(HwPortalConfigType hwPortalConfigType); + + /** + * 新增门户网站配置类型 + * + * @param hwPortalConfigType 门户网站配置类型 + * @return 结果 + */ + public int insertHwPortalConfigType(HwPortalConfigType hwPortalConfigType); + + /** + * 修改门户网站配置类型 + * + * @param hwPortalConfigType 门户网站配置类型 + * @return 结果 + */ + public int updateHwPortalConfigType(HwPortalConfigType hwPortalConfigType); + + /** + * 批量删除门户网站配置类型 + * + * @param configTypeIds 需要删除的门户网站配置类型主键集合 + * @return 结果 + */ + public int deleteHwPortalConfigTypeByConfigTypeIds(Long[] configTypeIds); + + /** + * 删除门户网站配置类型信息 + * + * @param configTypeId 门户网站配置类型主键 + * @return 结果 + */ + public int deleteHwPortalConfigTypeByConfigTypeId(Long configTypeId); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductCaseInfoService.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductCaseInfoService.java new file mode 100644 index 0000000..e1cfa59 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductCaseInfoService.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.service; + +import java.util.List; +import com.ruoyi.portal.domain.HwProductCaseInfo; + +/** + * 案例内容Service接口 + * + * @author xins + * @date 2024-12-01 + */ +public interface IHwProductCaseInfoService +{ + /** + * 查询案例内容 + * + * @param caseInfoId 案例内容主键 + * @return 案例内容 + */ + public HwProductCaseInfo selectHwProductCaseInfoByCaseInfoId(Long caseInfoId); + + /** + * 查询案例内容列表 + * + * @param hwProductCaseInfo 案例内容 + * @return 案例内容集合 + */ + public List selectHwProductCaseInfoList(HwProductCaseInfo hwProductCaseInfo); + + /** + * 新增案例内容 + * + * @param hwProductCaseInfo 案例内容 + * @return 结果 + */ + public int insertHwProductCaseInfo(HwProductCaseInfo hwProductCaseInfo); + + /** + * 修改案例内容 + * + * @param hwProductCaseInfo 案例内容 + * @return 结果 + */ + public int updateHwProductCaseInfo(HwProductCaseInfo hwProductCaseInfo); + + /** + * 批量删除案例内容 + * + * @param caseInfoIds 需要删除的案例内容主键集合 + * @return 结果 + */ + public int deleteHwProductCaseInfoByCaseInfoIds(Long[] caseInfoIds); + + /** + * 删除案例内容信息 + * + * @param caseInfoId 案例内容主键 + * @return 结果 + */ + public int deleteHwProductCaseInfoByCaseInfoId(Long caseInfoId); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductInfoDetailService.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductInfoDetailService.java new file mode 100644 index 0000000..e56ab4b --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductInfoDetailService.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.service; + +import java.util.List; +import com.ruoyi.portal.domain.HwProductInfoDetail; + +/** + * 产品信息明细配置Service接口 + * + * @author xins + * @date 2024-12-11 + */ +public interface IHwProductInfoDetailService +{ + /** + * 查询产品信息明细配置 + * + * @param productInfoDetailId 产品信息明细配置主键 + * @return 产品信息明细配置 + */ + public HwProductInfoDetail selectHwProductInfoDetailByProductInfoDetailId(Long productInfoDetailId); + + /** + * 查询产品信息明细配置列表 + * + * @param hwProductInfoDetail 产品信息明细配置 + * @return 产品信息明细配置集合 + */ + public List selectHwProductInfoDetailList(HwProductInfoDetail hwProductInfoDetail); + + /** + * 新增产品信息明细配置 + * + * @param hwProductInfoDetail 产品信息明细配置 + * @return 结果 + */ + public int insertHwProductInfoDetail(HwProductInfoDetail hwProductInfoDetail); + + /** + * 修改产品信息明细配置 + * + * @param hwProductInfoDetail 产品信息明细配置 + * @return 结果 + */ + public int updateHwProductInfoDetail(HwProductInfoDetail hwProductInfoDetail); + + /** + * 批量删除产品信息明细配置 + * + * @param productInfoDetailIds 需要删除的产品信息明细配置主键集合 + * @return 结果 + */ + public int deleteHwProductInfoDetailByProductInfoDetailIds(Long[] productInfoDetailIds); + + /** + * 删除产品信息明细配置信息 + * + * @param productInfoDetailId 产品信息明细配置主键 + * @return 结果 + */ + public int deleteHwProductInfoDetailByProductInfoDetailId(Long productInfoDetailId); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductInfoService.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductInfoService.java new file mode 100644 index 0000000..0bd2f1c --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/IHwProductInfoService.java @@ -0,0 +1,61 @@ +package com.ruoyi.portal.service; + +import java.util.List; +import com.ruoyi.portal.domain.HwProductInfo; + +/** + * 产品信息配置Service接口 + * + * @author xins + * @date 2024-12-01 + */ +public interface IHwProductInfoService +{ + /** + * 查询产品信息配置 + * + * @param productInfoId 产品信息配置主键 + * @return 产品信息配置 + */ + public HwProductInfo selectHwProductInfoByProductInfoId(Long productInfoId); + + /** + * 查询产品信息配置列表 + * + * @param hwProductInfo 产品信息配置 + * @return 产品信息配置集合 + */ + public List selectHwProductInfoList(HwProductInfo hwProductInfo); + + /** + * 新增产品信息配置 + * + * @param hwProductInfo 产品信息配置 + * @return 结果 + */ + public int insertHwProductInfo(HwProductInfo hwProductInfo); + + /** + * 修改产品信息配置 + * + * @param hwProductInfo 产品信息配置 + * @return 结果 + */ + public int updateHwProductInfo(HwProductInfo hwProductInfo); + + /** + * 批量删除产品信息配置 + * + * @param productInfoIds 需要删除的产品信息配置主键集合 + * @return 结果 + */ + public int deleteHwProductInfoByProductInfoIds(Long[] productInfoIds); + + /** + * 删除产品信息配置信息 + * + * @param productInfoId 产品信息配置主键 + * @return 结果 + */ + public int deleteHwProductInfoByProductInfoId(Long productInfoId); +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwAboutUsInfoDetailServiceImpl.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwAboutUsInfoDetailServiceImpl.java new file mode 100644 index 0000000..479221e --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwAboutUsInfoDetailServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.portal.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.portal.mapper.HwAboutUsInfoDetailMapper; +import com.ruoyi.portal.domain.HwAboutUsInfoDetail; +import com.ruoyi.portal.service.IHwAboutUsInfoDetailService; + +/** + * 关于我们信息明细Service业务层处理 + * + * @author ruoyi + * @date 2024-12-01 + */ +@Service +public class HwAboutUsInfoDetailServiceImpl implements IHwAboutUsInfoDetailService +{ + @Autowired + private HwAboutUsInfoDetailMapper hwAboutUsInfoDetailMapper; + + /** + * 查询关于我们信息明细 + * + * @param usInfoDetailId 关于我们信息明细主键 + * @return 关于我们信息明细 + */ + @Override + public HwAboutUsInfoDetail selectHwAboutUsInfoDetailByUsInfoDetailId(Long usInfoDetailId) + { + return hwAboutUsInfoDetailMapper.selectHwAboutUsInfoDetailByUsInfoDetailId(usInfoDetailId); + } + + /** + * 查询关于我们信息明细列表 + * + * @param hwAboutUsInfoDetail 关于我们信息明细 + * @return 关于我们信息明细 + */ + @Override + public List selectHwAboutUsInfoDetailList(HwAboutUsInfoDetail hwAboutUsInfoDetail) + { + return hwAboutUsInfoDetailMapper.selectHwAboutUsInfoDetailList(hwAboutUsInfoDetail); + } + + /** + * 新增关于我们信息明细 + * + * @param hwAboutUsInfoDetail 关于我们信息明细 + * @return 结果 + */ + @Override + public int insertHwAboutUsInfoDetail(HwAboutUsInfoDetail hwAboutUsInfoDetail) + { + hwAboutUsInfoDetail.setCreateTime(DateUtils.getNowDate()); + return hwAboutUsInfoDetailMapper.insertHwAboutUsInfoDetail(hwAboutUsInfoDetail); + } + + /** + * 修改关于我们信息明细 + * + * @param hwAboutUsInfoDetail 关于我们信息明细 + * @return 结果 + */ + @Override + public int updateHwAboutUsInfoDetail(HwAboutUsInfoDetail hwAboutUsInfoDetail) + { + hwAboutUsInfoDetail.setUpdateTime(DateUtils.getNowDate()); + return hwAboutUsInfoDetailMapper.updateHwAboutUsInfoDetail(hwAboutUsInfoDetail); + } + + /** + * 批量删除关于我们信息明细 + * + * @param usInfoDetailIds 需要删除的关于我们信息明细主键 + * @return 结果 + */ + @Override + public int deleteHwAboutUsInfoDetailByUsInfoDetailIds(Long[] usInfoDetailIds) + { + return hwAboutUsInfoDetailMapper.deleteHwAboutUsInfoDetailByUsInfoDetailIds(usInfoDetailIds); + } + + /** + * 删除关于我们信息明细信息 + * + * @param usInfoDetailId 关于我们信息明细主键 + * @return 结果 + */ + @Override + public int deleteHwAboutUsInfoDetailByUsInfoDetailId(Long usInfoDetailId) + { + return hwAboutUsInfoDetailMapper.deleteHwAboutUsInfoDetailByUsInfoDetailId(usInfoDetailId); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwAboutUsInfoServiceImpl.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwAboutUsInfoServiceImpl.java new file mode 100644 index 0000000..5c24391 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwAboutUsInfoServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.portal.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.portal.mapper.HwAboutUsInfoMapper; +import com.ruoyi.portal.domain.HwAboutUsInfo; +import com.ruoyi.portal.service.IHwAboutUsInfoService; + +/** + * 关于我们信息Service业务层处理 + * + * @author xins + * @date 2024-12-01 + */ +@Service +public class HwAboutUsInfoServiceImpl implements IHwAboutUsInfoService +{ + @Autowired + private HwAboutUsInfoMapper hwAboutUsInfoMapper; + + /** + * 查询关于我们信息 + * + * @param aboutUsInfoId 关于我们信息主键 + * @return 关于我们信息 + */ + @Override + public HwAboutUsInfo selectHwAboutUsInfoByAboutUsInfoId(Long aboutUsInfoId) + { + return hwAboutUsInfoMapper.selectHwAboutUsInfoByAboutUsInfoId(aboutUsInfoId); + } + + /** + * 查询关于我们信息列表 + * + * @param hwAboutUsInfo 关于我们信息 + * @return 关于我们信息 + */ + @Override + public List selectHwAboutUsInfoList(HwAboutUsInfo hwAboutUsInfo) + { + return hwAboutUsInfoMapper.selectHwAboutUsInfoList(hwAboutUsInfo); + } + + /** + * 新增关于我们信息 + * + * @param hwAboutUsInfo 关于我们信息 + * @return 结果 + */ + @Override + public int insertHwAboutUsInfo(HwAboutUsInfo hwAboutUsInfo) + { + hwAboutUsInfo.setCreateTime(DateUtils.getNowDate()); + return hwAboutUsInfoMapper.insertHwAboutUsInfo(hwAboutUsInfo); + } + + /** + * 修改关于我们信息 + * + * @param hwAboutUsInfo 关于我们信息 + * @return 结果 + */ + @Override + public int updateHwAboutUsInfo(HwAboutUsInfo hwAboutUsInfo) + { + hwAboutUsInfo.setUpdateTime(DateUtils.getNowDate()); + return hwAboutUsInfoMapper.updateHwAboutUsInfo(hwAboutUsInfo); + } + + /** + * 批量删除关于我们信息 + * + * @param aboutUsInfoIds 需要删除的关于我们信息主键 + * @return 结果 + */ + @Override + public int deleteHwAboutUsInfoByAboutUsInfoIds(Long[] aboutUsInfoIds) + { + return hwAboutUsInfoMapper.deleteHwAboutUsInfoByAboutUsInfoIds(aboutUsInfoIds); + } + + /** + * 删除关于我们信息信息 + * + * @param aboutUsInfoId 关于我们信息主键 + * @return 结果 + */ + @Override + public int deleteHwAboutUsInfoByAboutUsInfoId(Long aboutUsInfoId) + { + return hwAboutUsInfoMapper.deleteHwAboutUsInfoByAboutUsInfoId(aboutUsInfoId); + } +} 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 new file mode 100644 index 0000000..1ff9677 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwContactUsInfoServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.portal.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.portal.mapper.HwContactUsInfoMapper; +import com.ruoyi.portal.domain.HwContactUsInfo; +import com.ruoyi.portal.service.IHwContactUsInfoService; + +/** + * 联系我们信息Service业务层处理 + * + * @author xins + * @date 2024-12-01 + */ +@Service +public class HwContactUsInfoServiceImpl implements IHwContactUsInfoService +{ + @Autowired + private HwContactUsInfoMapper hwContactUsInfoMapper; + + /** + * 查询联系我们信息 + * + * @param contactUsInfoId 联系我们信息主键 + * @return 联系我们信息 + */ + @Override + public HwContactUsInfo selectHwContactUsInfoByContactUsInfoId(Long contactUsInfoId) + { + return hwContactUsInfoMapper.selectHwContactUsInfoByContactUsInfoId(contactUsInfoId); + } + + /** + * 查询联系我们信息列表 + * + * @param hwContactUsInfo 联系我们信息 + * @return 联系我们信息 + */ + @Override + public List selectHwContactUsInfoList(HwContactUsInfo hwContactUsInfo) + { + return hwContactUsInfoMapper.selectHwContactUsInfoList(hwContactUsInfo); + } + + /** + * 新增联系我们信息 + * + * @param hwContactUsInfo 联系我们信息 + * @return 结果 + */ + @Override + public int insertHwContactUsInfo(HwContactUsInfo hwContactUsInfo) + { + hwContactUsInfo.setCreateTime(DateUtils.getNowDate()); + return hwContactUsInfoMapper.insertHwContactUsInfo(hwContactUsInfo); + } + + /** + * 修改联系我们信息 + * + * @param hwContactUsInfo 联系我们信息 + * @return 结果 + */ + @Override + public int updateHwContactUsInfo(HwContactUsInfo hwContactUsInfo) + { + hwContactUsInfo.setUpdateTime(DateUtils.getNowDate()); + return hwContactUsInfoMapper.updateHwContactUsInfo(hwContactUsInfo); + } + + /** + * 批量删除联系我们信息 + * + * @param contactUsInfoIds 需要删除的联系我们信息主键 + * @return 结果 + */ + @Override + public int deleteHwContactUsInfoByContactUsInfoIds(Long[] contactUsInfoIds) + { + return hwContactUsInfoMapper.deleteHwContactUsInfoByContactUsInfoIds(contactUsInfoIds); + } + + /** + * 删除联系我们信息信息 + * + * @param contactUsInfoId 联系我们信息主键 + * @return 结果 + */ + @Override + public int deleteHwContactUsInfoByContactUsInfoId(Long contactUsInfoId) + { + return hwContactUsInfoMapper.deleteHwContactUsInfoByContactUsInfoId(contactUsInfoId); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwPortalConfigServiceImpl.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwPortalConfigServiceImpl.java new file mode 100644 index 0000000..6b4a5e0 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwPortalConfigServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.portal.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.portal.mapper.HwPortalConfigMapper; +import com.ruoyi.portal.domain.HwPortalConfig; +import com.ruoyi.portal.service.IHwPortalConfigService; + +/** + * 门户网站配置Service业务层处理 + * + * @author xins + * @date 2024-12-01 + */ +@Service +public class HwPortalConfigServiceImpl implements IHwPortalConfigService +{ + @Autowired + private HwPortalConfigMapper hwPortalConfigMapper; + + /** + * 查询门户网站配置 + * + * @param portalConfigId 门户网站配置主键 + * @return 门户网站配置 + */ + @Override + public HwPortalConfig selectHwPortalConfigByPortalConfigId(Long portalConfigId) + { + return hwPortalConfigMapper.selectHwPortalConfigByPortalConfigId(portalConfigId); + } + + /** + * 查询门户网站配置列表 + * + * @param hwPortalConfig 门户网站配置 + * @return 门户网站配置 + */ + @Override + public List selectHwPortalConfigList(HwPortalConfig hwPortalConfig) + { + return hwPortalConfigMapper.selectHwPortalConfigList(hwPortalConfig); + } + + /** + * 新增门户网站配置 + * + * @param hwPortalConfig 门户网站配置 + * @return 结果 + */ + @Override + public int insertHwPortalConfig(HwPortalConfig hwPortalConfig) + { + hwPortalConfig.setCreateTime(DateUtils.getNowDate()); + return hwPortalConfigMapper.insertHwPortalConfig(hwPortalConfig); + } + + /** + * 修改门户网站配置 + * + * @param hwPortalConfig 门户网站配置 + * @return 结果 + */ + @Override + public int updateHwPortalConfig(HwPortalConfig hwPortalConfig) + { + hwPortalConfig.setUpdateTime(DateUtils.getNowDate()); + return hwPortalConfigMapper.updateHwPortalConfig(hwPortalConfig); + } + + /** + * 批量删除门户网站配置 + * + * @param portalConfigIds 需要删除的门户网站配置主键 + * @return 结果 + */ + @Override + public int deleteHwPortalConfigByPortalConfigIds(Long[] portalConfigIds) + { + return hwPortalConfigMapper.deleteHwPortalConfigByPortalConfigIds(portalConfigIds); + } + + /** + * 删除门户网站配置信息 + * + * @param portalConfigId 门户网站配置主键 + * @return 结果 + */ + @Override + public int deleteHwPortalConfigByPortalConfigId(Long portalConfigId) + { + return hwPortalConfigMapper.deleteHwPortalConfigByPortalConfigId(portalConfigId); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwPortalConfigTypeServiceImpl.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwPortalConfigTypeServiceImpl.java new file mode 100644 index 0000000..e42a62a --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwPortalConfigTypeServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.portal.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.portal.mapper.HwPortalConfigTypeMapper; +import com.ruoyi.portal.domain.HwPortalConfigType; +import com.ruoyi.portal.service.IHwPortalConfigTypeService; + +/** + * 门户网站配置类型Service业务层处理 + * + * @author xins + * @date 2024-12-11 + */ +@Service +public class HwPortalConfigTypeServiceImpl implements IHwPortalConfigTypeService +{ + @Autowired + private HwPortalConfigTypeMapper hwPortalConfigTypeMapper; + + /** + * 查询门户网站配置类型 + * + * @param configTypeId 门户网站配置类型主键 + * @return 门户网站配置类型 + */ + @Override + public HwPortalConfigType selectHwPortalConfigTypeByConfigTypeId(Long configTypeId) + { + return hwPortalConfigTypeMapper.selectHwPortalConfigTypeByConfigTypeId(configTypeId); + } + + /** + * 查询门户网站配置类型列表 + * + * @param hwPortalConfigType 门户网站配置类型 + * @return 门户网站配置类型 + */ + @Override + public List selectHwPortalConfigTypeList(HwPortalConfigType hwPortalConfigType) + { + return hwPortalConfigTypeMapper.selectHwPortalConfigTypeList(hwPortalConfigType); + } + + /** + * 新增门户网站配置类型 + * + * @param hwPortalConfigType 门户网站配置类型 + * @return 结果 + */ + @Override + public int insertHwPortalConfigType(HwPortalConfigType hwPortalConfigType) + { + hwPortalConfigType.setCreateTime(DateUtils.getNowDate()); + return hwPortalConfigTypeMapper.insertHwPortalConfigType(hwPortalConfigType); + } + + /** + * 修改门户网站配置类型 + * + * @param hwPortalConfigType 门户网站配置类型 + * @return 结果 + */ + @Override + public int updateHwPortalConfigType(HwPortalConfigType hwPortalConfigType) + { + hwPortalConfigType.setUpdateTime(DateUtils.getNowDate()); + return hwPortalConfigTypeMapper.updateHwPortalConfigType(hwPortalConfigType); + } + + /** + * 批量删除门户网站配置类型 + * + * @param configTypeIds 需要删除的门户网站配置类型主键 + * @return 结果 + */ + @Override + public int deleteHwPortalConfigTypeByConfigTypeIds(Long[] configTypeIds) + { + return hwPortalConfigTypeMapper.deleteHwPortalConfigTypeByConfigTypeIds(configTypeIds); + } + + /** + * 删除门户网站配置类型信息 + * + * @param configTypeId 门户网站配置类型主键 + * @return 结果 + */ + @Override + public int deleteHwPortalConfigTypeByConfigTypeId(Long configTypeId) + { + return hwPortalConfigTypeMapper.deleteHwPortalConfigTypeByConfigTypeId(configTypeId); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductCaseInfoServiceImpl.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductCaseInfoServiceImpl.java new file mode 100644 index 0000000..829aaa6 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductCaseInfoServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.portal.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.portal.mapper.HwProductCaseInfoMapper; +import com.ruoyi.portal.domain.HwProductCaseInfo; +import com.ruoyi.portal.service.IHwProductCaseInfoService; + +/** + * 案例内容Service业务层处理 + * + * @author xins + * @date 2024-12-01 + */ +@Service +public class HwProductCaseInfoServiceImpl implements IHwProductCaseInfoService +{ + @Autowired + private HwProductCaseInfoMapper hwProductCaseInfoMapper; + + /** + * 查询案例内容 + * + * @param caseInfoId 案例内容主键 + * @return 案例内容 + */ + @Override + public HwProductCaseInfo selectHwProductCaseInfoByCaseInfoId(Long caseInfoId) + { + return hwProductCaseInfoMapper.selectHwProductCaseInfoByCaseInfoId(caseInfoId); + } + + /** + * 查询案例内容列表 + * + * @param hwProductCaseInfo 案例内容 + * @return 案例内容 + */ + @Override + public List selectHwProductCaseInfoList(HwProductCaseInfo hwProductCaseInfo) + { + return hwProductCaseInfoMapper.selectHwProductCaseInfoList(hwProductCaseInfo); + } + + /** + * 新增案例内容 + * + * @param hwProductCaseInfo 案例内容 + * @return 结果 + */ + @Override + public int insertHwProductCaseInfo(HwProductCaseInfo hwProductCaseInfo) + { + hwProductCaseInfo.setCreateTime(DateUtils.getNowDate()); + return hwProductCaseInfoMapper.insertHwProductCaseInfo(hwProductCaseInfo); + } + + /** + * 修改案例内容 + * + * @param hwProductCaseInfo 案例内容 + * @return 结果 + */ + @Override + public int updateHwProductCaseInfo(HwProductCaseInfo hwProductCaseInfo) + { + hwProductCaseInfo.setUpdateTime(DateUtils.getNowDate()); + return hwProductCaseInfoMapper.updateHwProductCaseInfo(hwProductCaseInfo); + } + + /** + * 批量删除案例内容 + * + * @param caseInfoIds 需要删除的案例内容主键 + * @return 结果 + */ + @Override + public int deleteHwProductCaseInfoByCaseInfoIds(Long[] caseInfoIds) + { + return hwProductCaseInfoMapper.deleteHwProductCaseInfoByCaseInfoIds(caseInfoIds); + } + + /** + * 删除案例内容信息 + * + * @param caseInfoId 案例内容主键 + * @return 结果 + */ + @Override + public int deleteHwProductCaseInfoByCaseInfoId(Long caseInfoId) + { + return hwProductCaseInfoMapper.deleteHwProductCaseInfoByCaseInfoId(caseInfoId); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductInfoDetailServiceImpl.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductInfoDetailServiceImpl.java new file mode 100644 index 0000000..b3ca46f --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductInfoDetailServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.portal.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.portal.mapper.HwProductInfoDetailMapper; +import com.ruoyi.portal.domain.HwProductInfoDetail; +import com.ruoyi.portal.service.IHwProductInfoDetailService; + +/** + * 产品信息明细配置Service业务层处理 + * + * @author xins + * @date 2024-12-11 + */ +@Service +public class HwProductInfoDetailServiceImpl implements IHwProductInfoDetailService +{ + @Autowired + private HwProductInfoDetailMapper hwProductInfoDetailMapper; + + /** + * 查询产品信息明细配置 + * + * @param productInfoDetailId 产品信息明细配置主键 + * @return 产品信息明细配置 + */ + @Override + public HwProductInfoDetail selectHwProductInfoDetailByProductInfoDetailId(Long productInfoDetailId) + { + return hwProductInfoDetailMapper.selectHwProductInfoDetailByProductInfoDetailId(productInfoDetailId); + } + + /** + * 查询产品信息明细配置列表 + * + * @param hwProductInfoDetail 产品信息明细配置 + * @return 产品信息明细配置 + */ + @Override + public List selectHwProductInfoDetailList(HwProductInfoDetail hwProductInfoDetail) + { + return hwProductInfoDetailMapper.selectHwProductInfoDetailList(hwProductInfoDetail); + } + + /** + * 新增产品信息明细配置 + * + * @param hwProductInfoDetail 产品信息明细配置 + * @return 结果 + */ + @Override + public int insertHwProductInfoDetail(HwProductInfoDetail hwProductInfoDetail) + { + hwProductInfoDetail.setCreateTime(DateUtils.getNowDate()); + return hwProductInfoDetailMapper.insertHwProductInfoDetail(hwProductInfoDetail); + } + + /** + * 修改产品信息明细配置 + * + * @param hwProductInfoDetail 产品信息明细配置 + * @return 结果 + */ + @Override + public int updateHwProductInfoDetail(HwProductInfoDetail hwProductInfoDetail) + { + hwProductInfoDetail.setUpdateTime(DateUtils.getNowDate()); + return hwProductInfoDetailMapper.updateHwProductInfoDetail(hwProductInfoDetail); + } + + /** + * 批量删除产品信息明细配置 + * + * @param productInfoDetailIds 需要删除的产品信息明细配置主键 + * @return 结果 + */ + @Override + public int deleteHwProductInfoDetailByProductInfoDetailIds(Long[] productInfoDetailIds) + { + return hwProductInfoDetailMapper.deleteHwProductInfoDetailByProductInfoDetailIds(productInfoDetailIds); + } + + /** + * 删除产品信息明细配置信息 + * + * @param productInfoDetailId 产品信息明细配置主键 + * @return 结果 + */ + @Override + public int deleteHwProductInfoDetailByProductInfoDetailId(Long productInfoDetailId) + { + return hwProductInfoDetailMapper.deleteHwProductInfoDetailByProductInfoDetailId(productInfoDetailId); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductInfoServiceImpl.java b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductInfoServiceImpl.java new file mode 100644 index 0000000..b89915c --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/java/com/ruoyi/portal/service/impl/HwProductInfoServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.portal.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.portal.mapper.HwProductInfoMapper; +import com.ruoyi.portal.domain.HwProductInfo; +import com.ruoyi.portal.service.IHwProductInfoService; + +/** + * 产品信息配置Service业务层处理 + * + * @author xins + * @date 2024-12-01 + */ +@Service +public class HwProductInfoServiceImpl implements IHwProductInfoService +{ + @Autowired + private HwProductInfoMapper hwProductInfoMapper; + + /** + * 查询产品信息配置 + * + * @param productInfoId 产品信息配置主键 + * @return 产品信息配置 + */ + @Override + public HwProductInfo selectHwProductInfoByProductInfoId(Long productInfoId) + { + return hwProductInfoMapper.selectHwProductInfoByProductInfoId(productInfoId); + } + + /** + * 查询产品信息配置列表 + * + * @param hwProductInfo 产品信息配置 + * @return 产品信息配置 + */ + @Override + public List selectHwProductInfoList(HwProductInfo hwProductInfo) + { + return hwProductInfoMapper.selectHwProductInfoList(hwProductInfo); + } + + /** + * 新增产品信息配置 + * + * @param hwProductInfo 产品信息配置 + * @return 结果 + */ + @Override + public int insertHwProductInfo(HwProductInfo hwProductInfo) + { + hwProductInfo.setCreateTime(DateUtils.getNowDate()); + return hwProductInfoMapper.insertHwProductInfo(hwProductInfo); + } + + /** + * 修改产品信息配置 + * + * @param hwProductInfo 产品信息配置 + * @return 结果 + */ + @Override + public int updateHwProductInfo(HwProductInfo hwProductInfo) + { + hwProductInfo.setUpdateTime(DateUtils.getNowDate()); + return hwProductInfoMapper.updateHwProductInfo(hwProductInfo); + } + + /** + * 批量删除产品信息配置 + * + * @param productInfoIds 需要删除的产品信息配置主键 + * @return 结果 + */ + @Override + public int deleteHwProductInfoByProductInfoIds(Long[] productInfoIds) + { + return hwProductInfoMapper.deleteHwProductInfoByProductInfoIds(productInfoIds); + } + + /** + * 删除产品信息配置信息 + * + * @param productInfoId 产品信息配置主键 + * @return 结果 + */ + @Override + public int deleteHwProductInfoByProductInfoId(Long productInfoId) + { + return hwProductInfoMapper.deleteHwProductInfoByProductInfoId(productInfoId); + } +} diff --git a/ruoyi-modules/hw-portal/src/main/resources/banner.txt b/ruoyi-modules/hw-portal/src/main/resources/banner.txt new file mode 100644 index 0000000..fbd45f5 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/resources/banner.txt @@ -0,0 +1,10 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} + _ _ + (_) | | + _ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___ +| '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \ +| | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | | +|_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_| + __/ | __/ | + |___/ |___/ \ No newline at end of file diff --git a/ruoyi-modules/hw-portal/src/main/resources/bootstrap.yml b/ruoyi-modules/hw-portal/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..a23b87e --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/resources/bootstrap.yml @@ -0,0 +1,60 @@ +# Tomcat +server: + port: 9669 + +# Spring +spring: + application: + # 应用名称 + name: hw-portal + profiles: + # 环境配置 + active: dev + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 127.0.0.1:8848 + namespace: hwsaas-xs92 + group: DEFAULT_GROUP + config: + # 配置中心地址 + server-addr: 127.0.0.1:8848 + namespace: hwsaas-xs92 + group: DEFAULT_GROUP + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} + + +## Tomcat +#server: +# port: 9669 +# +## Spring +#spring: +# application: +# # 应用名称 +# name: hw-portal +# profiles: +# # 环境配置 +# active: dev +# cloud: +# nacos: +# discovery: +# # 服务注册地址 +# server-addr: 175.27.215.92:8848 +# namespace: hwsaas-xs +# group: DEFAULT_GROUP +# config: +# # 配置中心地址 +# server-addr: 175.27.215.92:8848 +# namespace: hwsaas-xs +# group: DEFAULT_GROUP +# # 配置文件格式 +# file-extension: yml +# # 共享配置 +# shared-configs: +# - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} diff --git a/ruoyi-modules/hw-portal/src/main/resources/logback.xml b/ruoyi-modules/hw-portal/src/main/resources/logback.xml new file mode 100644 index 0000000..d89e726 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/resources/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/info.log + + + + ${log.path}/info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/error.log + + + + ${log.path}/error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + + + + + + + + + + + + + \ No newline at end of file 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 new file mode 100644 index 0000000..deabefe --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoDetailMapper.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + select us_info_detail_id, about_us_info_id, us_info_detail_title, us_info_detail_desc, us_info_detail_order, us_info_detail_pic, create_time, create_by, update_time, update_by from hw_about_us_info_detail + + + + + + + + insert into hw_about_us_info_detail + + about_us_info_id, + us_info_detail_title, + us_info_detail_desc, + us_info_detail_order, + us_info_detail_pic, + create_time, + create_by, + update_time, + update_by, + + + #{aboutUsInfoId}, + #{usInfoDetailTitle}, + #{usInfoDetailDesc}, + #{usInfoDetailOrder}, + #{usInfoDetailPic}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + + + + + update hw_about_us_info_detail + + about_us_info_id = #{aboutUsInfoId}, + us_info_detail_title = #{usInfoDetailTitle}, + us_info_detail_desc = #{usInfoDetailDesc}, + us_info_detail_order = #{usInfoDetailOrder}, + us_info_detail_pic = #{usInfoDetailPic}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where us_info_detail_id = #{usInfoDetailId} + + + + delete from hw_about_us_info_detail where us_info_detail_id = #{usInfoDetailId} + + + + delete from hw_about_us_info_detail where us_info_detail_id in + + #{usInfoDetailId} + + + \ No newline at end of file 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 new file mode 100644 index 0000000..5df8e47 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwAboutUsInfoMapper.xml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + select about_us_info_id, about_us_info_type, about_us_info_title, about_us_info_etitle,about_us_info_desc, about_us_info_order,display_modal, about_us_info_pic, create_time, create_by, update_time, update_by from hw_about_us_info + + + + + + + + insert into hw_about_us_info + + about_us_info_type, + about_us_info_etitle, + about_us_info_title, + about_us_info_desc, + about_us_info_order, + display_modal, + about_us_info_pic, + create_time, + create_by, + update_time, + update_by, + + + #{aboutUsInfoType}, + #{aboutUsInfoEtitle}, + #{aboutUsInfoTitle}, + #{aboutUsInfoDesc}, + #{aboutUsInfoOrder}, + #{displayModal}, + #{aboutUsInfoPic}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + + + + + update hw_about_us_info + + about_us_info_type = #{aboutUsInfoType}, + about_us_info_etitle = #{aboutUsInfoEtitle}, + about_us_info_title = #{aboutUsInfoTitle}, + about_us_info_desc = #{aboutUsInfoDesc}, + about_us_info_order = #{aboutUsInfoOrder}, + display_modal = #{displayModal}, + about_us_info_pic = #{aboutUsInfoPic}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where about_us_info_id = #{aboutUsInfoId} + + + + delete from hw_about_us_info where about_us_info_id = #{aboutUsInfoId} + + + + delete from hw_about_us_info where about_us_info_id in + + #{aboutUsInfoId} + + + \ No newline at end of file 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 new file mode 100644 index 0000000..5b42004 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwContactUsInfoMapper.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + select contact_us_info_id, user_name, user_email, user_phone, user_ip, create_time, create_by, update_time, update_by from hw_contact_us_info + + + + + + + + insert into hw_contact_us_info + + user_name, + user_email, + user_phone, + user_ip, + create_time, + create_by, + update_time, + update_by, + + + #{userName}, + #{userEmail}, + #{userPhone}, + #{userIp}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + + + + + update hw_contact_us_info + + user_name = #{userName}, + user_email = #{userEmail}, + user_phone = #{userPhone}, + user_ip = #{userIp}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where contact_us_info_id = #{contactUsInfoId} + + + + delete from hw_contact_us_info where contact_us_info_id = #{contactUsInfoId} + + + + delete from hw_contact_us_info where contact_us_info_id in + + #{contactUsInfoId} + + + \ No newline at end of file diff --git a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwPortalConfigMapper.xml b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwPortalConfigMapper.xml new file mode 100644 index 0000000..87d2234 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwPortalConfigMapper.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + select portal_config_id, portal_config_type, portal_config_title, portal_config_order, portal_config_desc, button_name, router_address, portal_config_pic, create_time, create_by, update_time, update_by from hw_portal_config + + + + + + + + insert into hw_portal_config + + portal_config_type, + portal_config_title, + portal_config_order, + portal_config_desc, + button_name, + router_address, + portal_config_pic, + create_time, + create_by, + update_time, + update_by, + + + #{portalConfigType}, + #{portalConfigTitle}, + #{portalConfigOrder}, + #{portalConfigDesc}, + #{buttonName}, + #{routerAddress}, + #{portalConfigPic}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + + + + + update hw_portal_config + + portal_config_type = #{portalConfigType}, + portal_config_title = #{portalConfigTitle}, + portal_config_order = #{portalConfigOrder}, + portal_config_desc = #{portalConfigDesc}, + button_name = #{buttonName}, + router_address = #{routerAddress}, + portal_config_pic = #{portalConfigPic}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where portal_config_id = #{portalConfigId} + + + + delete from hw_portal_config where portal_config_id = #{portalConfigId} + + + + delete from hw_portal_config where portal_config_id in + + #{portalConfigId} + + + \ No newline at end of file diff --git a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwPortalConfigTypeMapper.xml b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwPortalConfigTypeMapper.xml new file mode 100644 index 0000000..76eb01c --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwPortalConfigTypeMapper.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + select config_type_id, config_type_classfication, config_type_name, home_config_type_name, config_type_desc, config_type_icon, home_config_type_pic, parent_id, ancestors, create_time, create_by, update_time, update_by from hw_portal_config_type + + + + + + + + insert into hw_portal_config_type + + config_type_classfication, + config_type_name, + home_config_type_name, + config_type_desc, + config_type_icon, + home_config_type_pic, + parent_id, + ancestors, + create_time, + create_by, + update_time, + update_by, + + + #{configTypeClassfication}, + #{configTypeName}, + #{homeConfigTypeName}, + #{configTypeDesc}, + #{configTypeIcon}, + #{homeConfigTypePic}, + #{parentId}, + #{ancestors}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + + + + + update hw_portal_config_type + + config_type_classfication = #{configTypeClassfication}, + config_type_name = #{configTypeName}, + home_config_type_name = #{homeConfigTypeName}, + config_type_desc = #{configTypeDesc}, + config_type_icon = #{configTypeIcon}, + home_config_type_pic = #{homeConfigTypePic}, + parent_id = #{parentId}, + ancestors = #{ancestors}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where config_type_id = #{configTypeId} + + + + delete from hw_portal_config_type where config_type_id = #{configTypeId} + + + + delete from hw_portal_config_type where config_type_id in + + #{configTypeId} + + + \ No newline at end of file diff --git a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductCaseInfoMapper.xml b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductCaseInfoMapper.xml new file mode 100644 index 0000000..deb78b2 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductCaseInfoMapper.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + select case_info_id, case_info_title, case_type_id, typical_flag, case_info_desc, case_info_pic, case_info_html, create_time, create_by, update_time, update_by from hw_product_case_info + + + + + + + + insert into hw_product_case_info + + case_info_title, + case_type_id, + typical_flag, + case_info_desc, + case_info_pic, + case_info_html, + create_time, + create_by, + update_time, + update_by, + + + #{caseInfoTitle}, + #{caseTypeId}, + #{typicalFlag}, + #{caseInfoDesc}, + #{caseInfoPic}, + #{caseInfoHtml}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + + + + + update hw_product_case_info + + case_info_title = #{caseInfoTitle}, + case_type_id = #{caseTypeId}, + typical_flag = #{typicalFlag}, + case_info_desc = #{caseInfoDesc}, + case_info_pic = #{caseInfoPic}, + case_info_html = #{caseInfoHtml}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where case_info_id = #{caseInfoId} + + + + delete from hw_product_case_info where case_info_id = #{caseInfoId} + + + + delete from hw_product_case_info where case_info_id in + + #{caseInfoId} + + + \ No newline at end of file diff --git a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductInfoDetailMapper.xml b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductInfoDetailMapper.xml new file mode 100644 index 0000000..a36e983 --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductInfoDetailMapper.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + select product_info_detail_id, parent_id, product_info_id, config_modal, product_info_detail_title, product_info_detail_desc, product_info_detail_order, product_info_detail_pic, ancestors, create_time, create_by, update_time, update_by from hw_product_info_detail + + + + + + + + insert into hw_product_info_detail + + parent_id, + product_info_id, + config_modal, + product_info_detail_title, + product_info_detail_desc, + product_info_detail_order, + product_info_detail_pic, + ancestors, + create_time, + create_by, + update_time, + update_by, + + + #{parentId}, + #{productInfoId}, + #{configModal}, + #{productInfoDetailTitle}, + #{productInfoDetailDesc}, + #{productInfoDetailOrder}, + #{productInfoDetailPic}, + #{ancestors}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + + + + + update hw_product_info_detail + + parent_id = #{parentId}, + product_info_id = #{productInfoId}, + config_modal = #{configModal}, + product_info_detail_title = #{productInfoDetailTitle}, + product_info_detail_desc = #{productInfoDetailDesc}, + product_info_detail_order = #{productInfoDetailOrder}, + product_info_detail_pic = #{productInfoDetailPic}, + ancestors = #{ancestors}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where product_info_detail_id = #{productInfoDetailId} + + + + delete from hw_product_info_detail where product_info_detail_id = #{productInfoDetailId} + + + + delete from hw_product_info_detail where product_info_detail_id in + + #{productInfoDetailId} + + + \ No newline at end of file diff --git a/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductInfoMapper.xml b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductInfoMapper.xml new file mode 100644 index 0000000..5d248bc --- /dev/null +++ b/ruoyi-modules/hw-portal/src/main/resources/mapper/portal/HwProductInfoMapper.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + select product_info_id, config_type_id, tab_flag, config_modal, product_info_etitle, product_info_ctitle, product_info_order, create_time, create_by, update_time, update_by from hw_product_info + + + + + + + + insert into hw_product_info + + config_type_id, + tab_flag, + config_modal, + product_info_etitle, + product_info_ctitle, + product_info_order, + create_time, + create_by, + update_time, + update_by, + + + #{configTypeId}, + #{tabFlag}, + #{configModal}, + #{productInfoEtitle}, + #{productInfoCtitle}, + #{productInfoOrder}, + #{createTime}, + #{createBy}, + #{updateTime}, + #{updateBy}, + + + + + update hw_product_info + + config_type_id = #{configTypeId}, + tab_flag = #{tabFlag}, + config_modal = #{configModal}, + product_info_etitle = #{productInfoEtitle}, + product_info_ctitle = #{productInfoCtitle}, + product_info_order = #{productInfoOrder}, + create_time = #{createTime}, + create_by = #{createBy}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where product_info_id = #{productInfoId} + + + + delete from hw_product_info where product_info_id = #{productInfoId} + + + + delete from hw_product_info where product_info_id in + + #{productInfoId} + + + \ No newline at end of file diff --git a/ruoyi-modules/pom.xml b/ruoyi-modules/pom.xml index 2fc130f..0643b73 100644 --- a/ruoyi-modules/pom.xml +++ b/ruoyi-modules/pom.xml @@ -29,6 +29,7 @@ hw-tdengine hw-data-process hw-websocket-server + hw-portal ruoyi-modules