新增门户网站以下功能:
门户网站配置类型
门户网站配置
产品信息配置
案例内容
关于我们信息
master 3.0
xs 1 month ago
parent 8bd5a00d87
commit 048475c422

@ -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<HwDevice> 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));
}
}

@ -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)

@ -94,7 +94,8 @@ public class HwDeviceServiceImpl implements IHwDeviceService {
* @return
*/
@Override
@DataScope(tenantAlias = "hd")
// @DataScope(tenantAlias = "hd")
//todo 去掉上面注释
public List<HwDevice> selectHwDeviceList(HwDevice hwDevice) {
return hwDeviceMapper.selectHwDeviceList(hwDevice);
}

@ -109,8 +109,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deviceField != null and deviceField != ''"> and device_field = #{deviceField}</if>
<if test="tenantId != null "> and tenant_id = #{tenantId}</if>
<if test="onlineStatus != null and onlineStatus != ''"> and online_status = #{onlineStatus}</if>
<if test="deviceTypeStr != null and deviceTypeStr != ''"> and device_type in (${deviceTypeStr})</if>
<!-- 租户数据范围过滤 -->
${params.tenantDataScope}
<!--${params.tenantDataScope}-->
</where>
</select>

@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-modules</artifactId>
<version>3.6.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-modules-portal</artifactId>
<description>
ruoyi-modules-portal系统模块
</description>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Swagger UI -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.fox.version}</version>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
<!-- RuoYi Common DataSource -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-datasource</artifactId>
</dependency>
<!-- RuoYi Common DataScope -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-datascope</artifactId>
</dependency>
<!-- RuoYi Common Log -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-log</artifactId>
</dependency>
<!-- RuoYi Common Swagger -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common-swagger</artifactId>
</dependency>
<!-- RuoYi Common International Language -->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>hw-common-i18n</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>hw-api-basic</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@ -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" +
" ''-' `'-' `-..-' ");
}
}

@ -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<HwAboutUsInfo> 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<HwAboutUsInfo> list = hwAboutUsInfoService.selectHwAboutUsInfoList(hwAboutUsInfo);
ExcelUtil<HwAboutUsInfo> util = new ExcelUtil<HwAboutUsInfo>(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));
}
}

@ -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<HwAboutUsInfoDetail> 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<HwAboutUsInfoDetail> list = hwAboutUsInfoDetailService.selectHwAboutUsInfoDetailList(hwAboutUsInfoDetail);
ExcelUtil<HwAboutUsInfoDetail> util = new ExcelUtil<HwAboutUsInfoDetail>(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));
}
}

@ -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<HwContactUsInfo> 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<HwContactUsInfo> list = hwContactUsInfoService.selectHwContactUsInfoList(hwContactUsInfo);
ExcelUtil<HwContactUsInfo> util = new ExcelUtil<HwContactUsInfo>(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));
}
}

@ -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<HwPortalConfig> 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<HwPortalConfig> list = hwPortalConfigService.selectHwPortalConfigList(hwPortalConfig);
ExcelUtil<HwPortalConfig> util = new ExcelUtil<HwPortalConfig>(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));
}
}

@ -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<HwPortalConfigType> 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<HwPortalConfigType> list = hwPortalConfigTypeService.selectHwPortalConfigTypeList(hwPortalConfigType);
ExcelUtil<HwPortalConfigType> util = new ExcelUtil<HwPortalConfigType>(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));
}
}

@ -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<HwProductCaseInfo> 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<HwProductCaseInfo> list = hwProductCaseInfoService.selectHwProductCaseInfoList(hwProductCaseInfo);
ExcelUtil<HwProductCaseInfo> util = new ExcelUtil<HwProductCaseInfo>(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));
}
}

@ -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<HwProductInfo> 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<HwProductInfo> list = hwProductInfoService.selectHwProductInfoList(hwProductInfo);
ExcelUtil<HwProductInfo> util = new ExcelUtil<HwProductInfo>(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));
}
}

@ -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<HwProductInfoDetail> 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<HwProductInfoDetail> list = hwProductInfoDetailService.selectHwProductInfoDetailList(hwProductInfoDetail);
ExcelUtil<HwProductInfoDetail> util = new ExcelUtil<HwProductInfoDetail>(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));
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -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<HwAboutUsInfoDetail> 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);
}

@ -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<HwAboutUsInfo> 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);
}

@ -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<HwContactUsInfo> 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);
}

@ -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<HwPortalConfig> 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);
}

@ -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<HwPortalConfigType> 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);
}

@ -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<HwProductCaseInfo> 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);
}

@ -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<HwProductInfoDetail> 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);
}

@ -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<HwProductInfo> 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);
}

@ -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<HwAboutUsInfoDetail> 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);
}

@ -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<HwAboutUsInfo> 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);
}

@ -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<HwContactUsInfo> 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);
}

@ -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<HwPortalConfig> 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);
}

@ -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<HwPortalConfigType> 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);
}

@ -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<HwProductCaseInfo> 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);
}

@ -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<HwProductInfoDetail> 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);
}

@ -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<HwProductInfo> 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);
}

@ -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<HwAboutUsInfoDetail> 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);
}
}

@ -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<HwAboutUsInfo> 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);
}
}

@ -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<HwContactUsInfo> 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);
}
}

@ -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<HwPortalConfig> 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);
}
}

@ -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<HwPortalConfigType> 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);
}
}

@ -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<HwProductCaseInfo> 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);
}
}

@ -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<HwProductInfoDetail> 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);
}
}

@ -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<HwProductInfo> 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);
}
}

@ -0,0 +1,10 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
_ _
(_) | |
_ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___
| '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \
| | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | |
|_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_|
__/ | __/ |
|___/ |___/

@ -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}

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/ruoyi-portal" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.ruoyi" level="info" />
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn" />
<root level="info">
<appender-ref ref="console" />
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info" />
<appender-ref ref="file_error" />
</root>
</configuration>

@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.portal.mapper.HwAboutUsInfoDetailMapper">
<resultMap type="HwAboutUsInfoDetail" id="HwAboutUsInfoDetailResult">
<result property="usInfoDetailId" column="us_info_detail_id" />
<result property="aboutUsInfoId" column="about_us_info_id" />
<result property="usInfoDetailTitle" column="us_info_detail_title" />
<result property="usInfoDetailDesc" column="us_info_detail_desc" />
<result property="usInfoDetailOrder" column="us_info_detail_order" />
<result property="usInfoDetailPic" column="us_info_detail_pic" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectHwAboutUsInfoDetailVo">
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
</sql>
<select id="selectHwAboutUsInfoDetailList" parameterType="HwAboutUsInfoDetail" resultMap="HwAboutUsInfoDetailResult">
<include refid="selectHwAboutUsInfoDetailVo"/>
<where>
<if test="aboutUsInfoId != null "> and about_us_info_id = #{aboutUsInfoId}</if>
<if test="usInfoDetailTitle != null and usInfoDetailTitle != ''"> and us_info_detail_title = #{usInfoDetailTitle}</if>
<if test="usInfoDetailDesc != null and usInfoDetailDesc != ''"> and us_info_detail_desc = #{usInfoDetailDesc}</if>
<if test="usInfoDetailOrder != null "> and us_info_detail_order = #{usInfoDetailOrder}</if>
<if test="usInfoDetailPic != null and usInfoDetailPic != ''"> and us_info_detail_pic = #{usInfoDetailPic}</if>
</where>
</select>
<select id="selectHwAboutUsInfoDetailByUsInfoDetailId" parameterType="Long" resultMap="HwAboutUsInfoDetailResult">
<include refid="selectHwAboutUsInfoDetailVo"/>
where us_info_detail_id = #{usInfoDetailId}
</select>
<insert id="insertHwAboutUsInfoDetail" parameterType="HwAboutUsInfoDetail" useGeneratedKeys="true" keyProperty="usInfoDetailId">
insert into hw_about_us_info_detail
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="aboutUsInfoId != null">about_us_info_id,</if>
<if test="usInfoDetailTitle != null">us_info_detail_title,</if>
<if test="usInfoDetailDesc != null">us_info_detail_desc,</if>
<if test="usInfoDetailOrder != null">us_info_detail_order,</if>
<if test="usInfoDetailPic != null">us_info_detail_pic,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="aboutUsInfoId != null">#{aboutUsInfoId},</if>
<if test="usInfoDetailTitle != null">#{usInfoDetailTitle},</if>
<if test="usInfoDetailDesc != null">#{usInfoDetailDesc},</if>
<if test="usInfoDetailOrder != null">#{usInfoDetailOrder},</if>
<if test="usInfoDetailPic != null">#{usInfoDetailPic},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateHwAboutUsInfoDetail" parameterType="HwAboutUsInfoDetail">
update hw_about_us_info_detail
<trim prefix="SET" suffixOverrides=",">
<if test="aboutUsInfoId != null">about_us_info_id = #{aboutUsInfoId},</if>
<if test="usInfoDetailTitle != null">us_info_detail_title = #{usInfoDetailTitle},</if>
<if test="usInfoDetailDesc != null">us_info_detail_desc = #{usInfoDetailDesc},</if>
<if test="usInfoDetailOrder != null">us_info_detail_order = #{usInfoDetailOrder},</if>
<if test="usInfoDetailPic != null">us_info_detail_pic = #{usInfoDetailPic},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where us_info_detail_id = #{usInfoDetailId}
</update>
<delete id="deleteHwAboutUsInfoDetailByUsInfoDetailId" parameterType="Long">
delete from hw_about_us_info_detail where us_info_detail_id = #{usInfoDetailId}
</delete>
<delete id="deleteHwAboutUsInfoDetailByUsInfoDetailIds" parameterType="String">
delete from hw_about_us_info_detail where us_info_detail_id in
<foreach item="usInfoDetailId" collection="array" open="(" separator="," close=")">
#{usInfoDetailId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.portal.mapper.HwAboutUsInfoMapper">
<resultMap type="HwAboutUsInfo" id="HwAboutUsInfoResult">
<result property="aboutUsInfoId" column="about_us_info_id" />
<result property="aboutUsInfoType" column="about_us_info_type" />
<result property="aboutUsInfoEtitle" column="about_us_info_etitle" />
<result property="aboutUsInfoTitle" column="about_us_info_title" />
<result property="aboutUsInfoDesc" column="about_us_info_desc" />
<result property="aboutUsInfoOrder" column="about_us_info_order" />
<result property="displayModal" column="display_modal" />
<result property="aboutUsInfoPic" column="about_us_info_pic" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectHwAboutUsInfoVo">
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
</sql>
<select id="selectHwAboutUsInfoList" parameterType="HwAboutUsInfo" resultMap="HwAboutUsInfoResult">
<include refid="selectHwAboutUsInfoVo"/>
<where>
<if test="aboutUsInfoType != null and aboutUsInfoType != ''"> and about_us_info_type = #{aboutUsInfoType}</if>
<if test="aboutUsInfoTitle != null and aboutUsInfoTitle != ''"> and about_us_info_title = #{aboutUsInfoTitle}</if>
<if test="aboutUsInfoDesc != null and aboutUsInfoDesc != ''"> and about_us_info_desc = #{aboutUsInfoDesc}</if>
<if test="aboutUsInfoOrder != null "> and about_us_info_order = #{aboutUsInfoOrder}</if>
<if test="aboutUsInfoPic != null and aboutUsInfoPic != ''"> and about_us_info_pic = #{aboutUsInfoPic}</if>
</where>
</select>
<select id="selectHwAboutUsInfoByAboutUsInfoId" parameterType="Long" resultMap="HwAboutUsInfoResult">
<include refid="selectHwAboutUsInfoVo"/>
where about_us_info_id = #{aboutUsInfoId}
</select>
<insert id="insertHwAboutUsInfo" parameterType="HwAboutUsInfo" useGeneratedKeys="true" keyProperty="aboutUsInfoId">
insert into hw_about_us_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="aboutUsInfoType != null">about_us_info_type,</if>
<if test="aboutUsInfoEtitle != null and aboutUsInfoEtitle != ''">about_us_info_etitle,</if>
<if test="aboutUsInfoTitle != null and aboutUsInfoTitle != ''">about_us_info_title,</if>
<if test="aboutUsInfoDesc != null and aboutUsInfoDesc != ''">about_us_info_desc,</if>
<if test="aboutUsInfoOrder != null">about_us_info_order,</if>
<if test="displayModal != null and displayModal != ''">display_modal,</if>
<if test="aboutUsInfoPic != null">about_us_info_pic,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="aboutUsInfoType != null">#{aboutUsInfoType},</if>
<if test="aboutUsInfoEtitle != null and aboutUsInfoEtitle != ''">#{aboutUsInfoEtitle},</if>
<if test="aboutUsInfoTitle != null and aboutUsInfoTitle != ''">#{aboutUsInfoTitle},</if>
<if test="aboutUsInfoDesc != null and aboutUsInfoDesc != ''">#{aboutUsInfoDesc},</if>
<if test="aboutUsInfoOrder != null">#{aboutUsInfoOrder},</if>
<if test="displayModal != null and displayModal != ''">#{displayModal},</if>
<if test="aboutUsInfoPic != null">#{aboutUsInfoPic},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateHwAboutUsInfo" parameterType="HwAboutUsInfo">
update hw_about_us_info
<trim prefix="SET" suffixOverrides=",">
<if test="aboutUsInfoType != null">about_us_info_type = #{aboutUsInfoType},</if>
<if test="aboutUsInfoEtitle != null and aboutUsInfoEtitle != ''">about_us_info_etitle = #{aboutUsInfoEtitle},</if>
<if test="aboutUsInfoTitle != null and aboutUsInfoTitle != ''">about_us_info_title = #{aboutUsInfoTitle},</if>
<if test="aboutUsInfoDesc != null and aboutUsInfoDesc != ''">about_us_info_desc = #{aboutUsInfoDesc},</if>
<if test="aboutUsInfoOrder != null">about_us_info_order = #{aboutUsInfoOrder},</if>
<if test="displayModal != null and displayModal != ''">display_modal = #{displayModal},</if>
<if test="aboutUsInfoPic != null">about_us_info_pic = #{aboutUsInfoPic},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where about_us_info_id = #{aboutUsInfoId}
</update>
<delete id="deleteHwAboutUsInfoByAboutUsInfoId" parameterType="Long">
delete from hw_about_us_info where about_us_info_id = #{aboutUsInfoId}
</delete>
<delete id="deleteHwAboutUsInfoByAboutUsInfoIds" parameterType="String">
delete from hw_about_us_info where about_us_info_id in
<foreach item="aboutUsInfoId" collection="array" open="(" separator="," close=")">
#{aboutUsInfoId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.portal.mapper.HwContactUsInfoMapper">
<resultMap type="HwContactUsInfo" id="HwContactUsInfoResult">
<result property="contactUsInfoId" column="contact_us_info_id" />
<result property="userName" column="user_name" />
<result property="userEmail" column="user_email" />
<result property="userPhone" column="user_phone" />
<result property="userIp" column="user_ip" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectHwContactUsInfoVo">
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
</sql>
<select id="selectHwContactUsInfoList" parameterType="HwContactUsInfo" resultMap="HwContactUsInfoResult">
<include refid="selectHwContactUsInfoVo"/>
<where>
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
<if test="userEmail != null and userEmail != ''"> and user_email = #{userEmail}</if>
<if test="userPhone != null and userPhone != ''"> and user_phone = #{userPhone}</if>
<if test="userIp != null and userIp != ''"> and user_ip = #{userIp}</if>
</where>
</select>
<select id="selectHwContactUsInfoByContactUsInfoId" parameterType="Long" resultMap="HwContactUsInfoResult">
<include refid="selectHwContactUsInfoVo"/>
where contact_us_info_id = #{contactUsInfoId}
</select>
<insert id="insertHwContactUsInfo" parameterType="HwContactUsInfo" useGeneratedKeys="true" keyProperty="contactUsInfoId">
insert into hw_contact_us_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userName != null and userName != ''">user_name,</if>
<if test="userEmail != null">user_email,</if>
<if test="userPhone != null">user_phone,</if>
<if test="userIp != null">user_ip,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userName != null and userName != ''">#{userName},</if>
<if test="userEmail != null">#{userEmail},</if>
<if test="userPhone != null">#{userPhone},</if>
<if test="userIp != null">#{userIp},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateHwContactUsInfo" parameterType="HwContactUsInfo">
update hw_contact_us_info
<trim prefix="SET" suffixOverrides=",">
<if test="userName != null and userName != ''">user_name = #{userName},</if>
<if test="userEmail != null">user_email = #{userEmail},</if>
<if test="userPhone != null">user_phone = #{userPhone},</if>
<if test="userIp != null">user_ip = #{userIp},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where contact_us_info_id = #{contactUsInfoId}
</update>
<delete id="deleteHwContactUsInfoByContactUsInfoId" parameterType="Long">
delete from hw_contact_us_info where contact_us_info_id = #{contactUsInfoId}
</delete>
<delete id="deleteHwContactUsInfoByContactUsInfoIds" parameterType="String">
delete from hw_contact_us_info where contact_us_info_id in
<foreach item="contactUsInfoId" collection="array" open="(" separator="," close=")">
#{contactUsInfoId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.portal.mapper.HwPortalConfigMapper">
<resultMap type="HwPortalConfig" id="HwPortalConfigResult">
<result property="portalConfigId" column="portal_config_id" />
<result property="portalConfigType" column="portal_config_type" />
<result property="portalConfigTitle" column="portal_config_title" />
<result property="portalConfigOrder" column="portal_config_order" />
<result property="portalConfigDesc" column="portal_config_desc" />
<result property="buttonName" column="button_name" />
<result property="routerAddress" column="router_address" />
<result property="portalConfigPic" column="portal_config_pic" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectHwPortalConfigVo">
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
</sql>
<select id="selectHwPortalConfigList" parameterType="HwPortalConfig" resultMap="HwPortalConfigResult">
<include refid="selectHwPortalConfigVo"/>
<where>
<if test="portalConfigType != null and portalConfigType != ''"> and portal_config_type = #{portalConfigType}</if>
<if test="portalConfigTitle != null and portalConfigTitle != ''"> and portal_config_title = #{portalConfigTitle}</if>
<if test="portalConfigOrder != null "> and portal_config_order = #{portalConfigOrder}</if>
<if test="portalConfigDesc != null and portalConfigDesc != ''"> and portal_config_desc = #{portalConfigDesc}</if>
<if test="buttonName != null and buttonName != ''"> and button_name like concat('%', #{buttonName}, '%')</if>
<if test="routerAddress != null and routerAddress != ''"> and router_address = #{routerAddress}</if>
<if test="portalConfigPic != null and portalConfigPic != ''"> and portal_config_pic = #{portalConfigPic}</if>
</where>
</select>
<select id="selectHwPortalConfigByPortalConfigId" parameterType="Long" resultMap="HwPortalConfigResult">
<include refid="selectHwPortalConfigVo"/>
where portal_config_id = #{portalConfigId}
</select>
<insert id="insertHwPortalConfig" parameterType="HwPortalConfig" useGeneratedKeys="true" keyProperty="portalConfigId">
insert into hw_portal_config
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="portalConfigType != null and portalConfigType != ''">portal_config_type,</if>
<if test="portalConfigTitle != null and portalConfigTitle != ''">portal_config_title,</if>
<if test="portalConfigOrder != null">portal_config_order,</if>
<if test="portalConfigDesc != null">portal_config_desc,</if>
<if test="buttonName != null">button_name,</if>
<if test="routerAddress != null">router_address,</if>
<if test="portalConfigPic != null and portalConfigPic != ''">portal_config_pic,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="portalConfigType != null and portalConfigType != ''">#{portalConfigType},</if>
<if test="portalConfigTitle != null and portalConfigTitle != ''">#{portalConfigTitle},</if>
<if test="portalConfigOrder != null">#{portalConfigOrder},</if>
<if test="portalConfigDesc != null">#{portalConfigDesc},</if>
<if test="buttonName != null">#{buttonName},</if>
<if test="routerAddress != null">#{routerAddress},</if>
<if test="portalConfigPic != null and portalConfigPic != ''">#{portalConfigPic},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateHwPortalConfig" parameterType="HwPortalConfig">
update hw_portal_config
<trim prefix="SET" suffixOverrides=",">
<if test="portalConfigType != null and portalConfigType != ''">portal_config_type = #{portalConfigType},</if>
<if test="portalConfigTitle != null and portalConfigTitle != ''">portal_config_title = #{portalConfigTitle},</if>
<if test="portalConfigOrder != null">portal_config_order = #{portalConfigOrder},</if>
<if test="portalConfigDesc != null">portal_config_desc = #{portalConfigDesc},</if>
<if test="buttonName != null">button_name = #{buttonName},</if>
<if test="routerAddress != null">router_address = #{routerAddress},</if>
<if test="portalConfigPic != null and portalConfigPic != ''">portal_config_pic = #{portalConfigPic},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where portal_config_id = #{portalConfigId}
</update>
<delete id="deleteHwPortalConfigByPortalConfigId" parameterType="Long">
delete from hw_portal_config where portal_config_id = #{portalConfigId}
</delete>
<delete id="deleteHwPortalConfigByPortalConfigIds" parameterType="String">
delete from hw_portal_config where portal_config_id in
<foreach item="portalConfigId" collection="array" open="(" separator="," close=")">
#{portalConfigId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.portal.mapper.HwPortalConfigTypeMapper">
<resultMap type="HwPortalConfigType" id="HwPortalConfigTypeResult">
<result property="configTypeId" column="config_type_id" />
<result property="configTypeClassfication" column="config_type_classfication" />
<result property="configTypeName" column="config_type_name" />
<result property="homeConfigTypeName" column="home_config_type_name" />
<result property="configTypeDesc" column="config_type_desc" />
<result property="configTypeIcon" column="config_type_icon" />
<result property="homeConfigTypePic" column="home_config_type_pic" />
<result property="parentId" column="parent_id" />
<result property="ancestors" column="ancestors" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectHwPortalConfigTypeVo">
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
</sql>
<select id="selectHwPortalConfigTypeList" parameterType="HwPortalConfigType" resultMap="HwPortalConfigTypeResult">
<include refid="selectHwPortalConfigTypeVo"/>
<where>
<if test="configTypeClassfication != null and configTypeClassfication != ''"> and config_type_classfication = #{configTypeClassfication}</if>
<if test="configTypeName != null and configTypeName != ''"> and config_type_name like concat('%', #{configTypeName}, '%')</if>
<if test="homeConfigTypeName != null and homeConfigTypeName != ''"> and home_config_type_name like concat('%', #{homeConfigTypeName}, '%')</if>
<if test="configTypeDesc != null and configTypeDesc != ''"> and config_type_desc = #{configTypeDesc}</if>
<if test="configTypeIcon != null and configTypeIcon != ''"> and config_type_icon = #{configTypeIcon}</if>
<if test="homeConfigTypePic != null and homeConfigTypePic != ''"> and home_config_type_pic = #{homeConfigTypePic}</if>
<if test="parentId != null "> and parent_id = #{parentId}</if>
<if test="ancestors != null and ancestors != ''"> and ancestors = #{ancestors}</if>
</where>
</select>
<select id="selectHwPortalConfigTypeByConfigTypeId" parameterType="Long" resultMap="HwPortalConfigTypeResult">
<include refid="selectHwPortalConfigTypeVo"/>
where config_type_id = #{configTypeId}
</select>
<insert id="insertHwPortalConfigType" parameterType="HwPortalConfigType" useGeneratedKeys="true" keyProperty="configTypeId">
insert into hw_portal_config_type
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="configTypeClassfication != null and configTypeClassfication != ''">config_type_classfication,</if>
<if test="configTypeName != null and configTypeName != ''">config_type_name,</if>
<if test="homeConfigTypeName != null">home_config_type_name,</if>
<if test="configTypeDesc != null">config_type_desc,</if>
<if test="configTypeIcon != null">config_type_icon,</if>
<if test="homeConfigTypePic != null">home_config_type_pic,</if>
<if test="parentId != null">parent_id,</if>
<if test="ancestors != null">ancestors,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="configTypeClassfication != null and configTypeClassfication != ''">#{configTypeClassfication},</if>
<if test="configTypeName != null and configTypeName != ''">#{configTypeName},</if>
<if test="homeConfigTypeName != null">#{homeConfigTypeName},</if>
<if test="configTypeDesc != null">#{configTypeDesc},</if>
<if test="configTypeIcon != null">#{configTypeIcon},</if>
<if test="homeConfigTypePic != null">#{homeConfigTypePic},</if>
<if test="parentId != null">#{parentId},</if>
<if test="ancestors != null">#{ancestors},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateHwPortalConfigType" parameterType="HwPortalConfigType">
update hw_portal_config_type
<trim prefix="SET" suffixOverrides=",">
<if test="configTypeClassfication != null and configTypeClassfication != ''">config_type_classfication = #{configTypeClassfication},</if>
<if test="configTypeName != null and configTypeName != ''">config_type_name = #{configTypeName},</if>
<if test="homeConfigTypeName != null">home_config_type_name = #{homeConfigTypeName},</if>
<if test="configTypeDesc != null">config_type_desc = #{configTypeDesc},</if>
<if test="configTypeIcon != null">config_type_icon = #{configTypeIcon},</if>
<if test="homeConfigTypePic != null">home_config_type_pic = #{homeConfigTypePic},</if>
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="ancestors != null">ancestors = #{ancestors},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where config_type_id = #{configTypeId}
</update>
<delete id="deleteHwPortalConfigTypeByConfigTypeId" parameterType="Long">
delete from hw_portal_config_type where config_type_id = #{configTypeId}
</delete>
<delete id="deleteHwPortalConfigTypeByConfigTypeIds" parameterType="String">
delete from hw_portal_config_type where config_type_id in
<foreach item="configTypeId" collection="array" open="(" separator="," close=")">
#{configTypeId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.portal.mapper.HwProductCaseInfoMapper">
<resultMap type="HwProductCaseInfo" id="HwProductCaseInfoResult">
<result property="caseInfoId" column="case_info_id" />
<result property="caseInfoTitle" column="case_info_title" />
<result property="caseTypeId" column="case_type_id" />
<result property="typicalFlag" column="typical_flag" />
<result property="caseInfoDesc" column="case_info_desc" />
<result property="caseInfoPic" column="case_info_pic" />
<result property="caseInfoHtml" column="case_info_html" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectHwProductCaseInfoVo">
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
</sql>
<select id="selectHwProductCaseInfoList" parameterType="HwProductCaseInfo" resultMap="HwProductCaseInfoResult">
<include refid="selectHwProductCaseInfoVo"/>
<where>
<if test="caseInfoTitle != null and caseInfoTitle != ''"> and case_info_title = #{caseInfoTitle}</if>
<if test="caseTypeId != null "> and case_type_id = #{caseTypeId}</if>
<if test="typicalFlag != null and typicalFlag != ''"> and typical_flag = #{typicalFlag}</if>
<if test="caseInfoDesc != null and caseInfoDesc != ''"> and case_info_desc = #{caseInfoDesc}</if>
<if test="caseInfoPic != null and caseInfoPic != ''"> and case_info_pic = #{caseInfoPic}</if>
<if test="caseInfoHtml != null and caseInfoHtml != ''"> and case_info_html = #{caseInfoHtml}</if>
</where>
</select>
<select id="selectHwProductCaseInfoByCaseInfoId" parameterType="Long" resultMap="HwProductCaseInfoResult">
<include refid="selectHwProductCaseInfoVo"/>
where case_info_id = #{caseInfoId}
</select>
<insert id="insertHwProductCaseInfo" parameterType="HwProductCaseInfo" useGeneratedKeys="true" keyProperty="caseInfoId">
insert into hw_product_case_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="caseInfoTitle != null and caseInfoTitle != ''">case_info_title,</if>
<if test="caseTypeId != null">case_type_id,</if>
<if test="typicalFlag != null and typicalFlag != ''">typical_flag,</if>
<if test="caseInfoDesc != null and caseInfoDesc != ''">case_info_desc,</if>
<if test="caseInfoPic != null and caseInfoPic != ''">case_info_pic,</if>
<if test="caseInfoHtml != null and caseInfoHtml != ''">case_info_html,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="caseInfoTitle != null and caseInfoTitle != ''">#{caseInfoTitle},</if>
<if test="caseTypeId != null">#{caseTypeId},</if>
<if test="typicalFlag != null and typicalFlag != ''">#{typicalFlag},</if>
<if test="caseInfoDesc != null and caseInfoDesc != ''">#{caseInfoDesc},</if>
<if test="caseInfoPic != null and caseInfoPic != ''">#{caseInfoPic},</if>
<if test="caseInfoHtml != null and caseInfoHtml != ''">#{caseInfoHtml},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateHwProductCaseInfo" parameterType="HwProductCaseInfo">
update hw_product_case_info
<trim prefix="SET" suffixOverrides=",">
<if test="caseInfoTitle != null and caseInfoTitle != ''">case_info_title = #{caseInfoTitle},</if>
<if test="caseTypeId != null">case_type_id = #{caseTypeId},</if>
<if test="typicalFlag != null and typicalFlag != ''">typical_flag = #{typicalFlag},</if>
<if test="caseInfoDesc != null and caseInfoDesc != ''">case_info_desc = #{caseInfoDesc},</if>
<if test="caseInfoPic != null and caseInfoPic != ''">case_info_pic = #{caseInfoPic},</if>
<if test="caseInfoHtml != null and caseInfoHtml != ''">case_info_html = #{caseInfoHtml},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where case_info_id = #{caseInfoId}
</update>
<delete id="deleteHwProductCaseInfoByCaseInfoId" parameterType="Long">
delete from hw_product_case_info where case_info_id = #{caseInfoId}
</delete>
<delete id="deleteHwProductCaseInfoByCaseInfoIds" parameterType="String">
delete from hw_product_case_info where case_info_id in
<foreach item="caseInfoId" collection="array" open="(" separator="," close=")">
#{caseInfoId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.portal.mapper.HwProductInfoDetailMapper">
<resultMap type="HwProductInfoDetail" id="HwProductInfoDetailResult">
<result property="productInfoDetailId" column="product_info_detail_id" />
<result property="parentId" column="parent_id" />
<result property="productInfoId" column="product_info_id" />
<result property="configModal" column="config_modal" />
<result property="productInfoDetailTitle" column="product_info_detail_title" />
<result property="productInfoDetailDesc" column="product_info_detail_desc" />
<result property="productInfoDetailOrder" column="product_info_detail_order" />
<result property="productInfoDetailPic" column="product_info_detail_pic" />
<result property="ancestors" column="ancestors" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectHwProductInfoDetailVo">
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
</sql>
<select id="selectHwProductInfoDetailList" parameterType="HwProductInfoDetail" resultMap="HwProductInfoDetailResult">
<include refid="selectHwProductInfoDetailVo"/>
<where>
<if test="parentId != null and parentId != ''"> and parent_id = #{parentId}</if>
<if test="productInfoId != null "> and product_info_id = #{productInfoId}</if>
<if test="configModal != null and configModal != ''"> and config_modal = #{configModal}</if>
<if test="productInfoDetailTitle != null and productInfoDetailTitle != ''"> and product_info_detail_title = #{productInfoDetailTitle}</if>
<if test="productInfoDetailDesc != null and productInfoDetailDesc != ''"> and product_info_detail_desc = #{productInfoDetailDesc}</if>
<if test="productInfoDetailOrder != null "> and product_info_detail_order = #{productInfoDetailOrder}</if>
<if test="productInfoDetailPic != null and productInfoDetailPic != ''"> and product_info_detail_pic = #{productInfoDetailPic}</if>
<if test="ancestors != null and ancestors != ''"> and ancestors = #{ancestors}</if>
</where>
</select>
<select id="selectHwProductInfoDetailByProductInfoDetailId" parameterType="Long" resultMap="HwProductInfoDetailResult">
<include refid="selectHwProductInfoDetailVo"/>
where product_info_detail_id = #{productInfoDetailId}
</select>
<insert id="insertHwProductInfoDetail" parameterType="HwProductInfoDetail" useGeneratedKeys="true" keyProperty="productInfoDetailId">
insert into hw_product_info_detail
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="parentId != null">parent_id,</if>
<if test="productInfoId != null">product_info_id,</if>
<if test="configModal != null">config_modal,</if>
<if test="productInfoDetailTitle != null and productInfoDetailTitle != ''">product_info_detail_title,</if>
<if test="productInfoDetailDesc != null and productInfoDetailDesc != ''">product_info_detail_desc,</if>
<if test="productInfoDetailOrder != null">product_info_detail_order,</if>
<if test="productInfoDetailPic != null">product_info_detail_pic,</if>
<if test="ancestors != null and ancestors != ''">ancestors,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parentId != null">#{parentId},</if>
<if test="productInfoId != null">#{productInfoId},</if>
<if test="configModal != null">#{configModal},</if>
<if test="productInfoDetailTitle != null and productInfoDetailTitle != ''">#{productInfoDetailTitle},</if>
<if test="productInfoDetailDesc != null and productInfoDetailDesc != ''">#{productInfoDetailDesc},</if>
<if test="productInfoDetailOrder != null">#{productInfoDetailOrder},</if>
<if test="productInfoDetailPic != null">#{productInfoDetailPic},</if>
<if test="ancestors != null and ancestors != ''">#{ancestors},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateHwProductInfoDetail" parameterType="HwProductInfoDetail">
update hw_product_info_detail
<trim prefix="SET" suffixOverrides=",">
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="productInfoId != null">product_info_id = #{productInfoId},</if>
<if test="configModal != null">config_modal = #{configModal},</if>
<if test="productInfoDetailTitle != null and productInfoDetailTitle != ''">product_info_detail_title = #{productInfoDetailTitle},</if>
<if test="productInfoDetailDesc != null and productInfoDetailDesc != ''">product_info_detail_desc = #{productInfoDetailDesc},</if>
<if test="productInfoDetailOrder != null">product_info_detail_order = #{productInfoDetailOrder},</if>
<if test="productInfoDetailPic != null">product_info_detail_pic = #{productInfoDetailPic},</if>
<if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where product_info_detail_id = #{productInfoDetailId}
</update>
<delete id="deleteHwProductInfoDetailByProductInfoDetailId" parameterType="Long">
delete from hw_product_info_detail where product_info_detail_id = #{productInfoDetailId}
</delete>
<delete id="deleteHwProductInfoDetailByProductInfoDetailIds" parameterType="String">
delete from hw_product_info_detail where product_info_detail_id in
<foreach item="productInfoDetailId" collection="array" open="(" separator="," close=")">
#{productInfoDetailId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.portal.mapper.HwProductInfoMapper">
<resultMap type="HwProductInfo" id="HwProductInfoResult">
<result property="productInfoId" column="product_info_id" />
<result property="configTypeId" column="config_type_id" />
<result property="tabFlag" column="tab_flag" />
<result property="configModal" column="config_modal" />
<result property="productInfoEtitle" column="product_info_etitle" />
<result property="productInfoCtitle" column="product_info_ctitle" />
<result property="productInfoOrder" column="product_info_order" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
</resultMap>
<sql id="selectHwProductInfoVo">
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
</sql>
<select id="selectHwProductInfoList" parameterType="HwProductInfo" resultMap="HwProductInfoResult">
<include refid="selectHwProductInfoVo"/>
<where>
<if test="configTypeId != null and configTypeId != ''"> and config_type_id = #{configTypeId}</if>
<if test="tabFlag != null and tabFlag != ''"> and tab_flag = #{tabFlag}</if>
<if test="configModal != null and configModal != ''"> and config_modal = #{configModal}</if>
<if test="productInfoEtitle != null "> and product_info_etitle = #{productInfoEtitle}</if>
<if test="productInfoCtitle != null and productInfoCtitle != ''"> and product_info_ctitle = #{productInfoCtitle}</if>
<if test="productInfoOrder != null "> and product_info_order = #{productInfoOrder}</if>
</where>
</select>
<select id="selectHwProductInfoByProductInfoId" parameterType="Long" resultMap="HwProductInfoResult">
<include refid="selectHwProductInfoVo"/>
where product_info_id = #{productInfoId}
</select>
<insert id="insertHwProductInfo" parameterType="HwProductInfo" useGeneratedKeys="true" keyProperty="productInfoId">
insert into hw_product_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="configTypeId != null and configTypeId != ''">config_type_id,</if>
<if test="tabFlag != null and tabFlag != ''">tab_flag,</if>
<if test="configModal != null and configModal != ''">config_modal,</if>
<if test="productInfoEtitle != null">product_info_etitle,</if>
<if test="productInfoCtitle != null and productInfoCtitle != ''">product_info_ctitle,</if>
<if test="productInfoOrder != null">product_info_order,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="configTypeId != null and configTypeId != ''">#{configTypeId},</if>
<if test="tabFlag != null and tabFlag != ''">#{tabFlag},</if>
<if test="configModal != null and configModal != ''">#{configModal},</if>
<if test="productInfoEtitle != null">#{productInfoEtitle},</if>
<if test="productInfoCtitle != null and productInfoCtitle != ''">#{productInfoCtitle},</if>
<if test="productInfoOrder != null">#{productInfoOrder},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
</trim>
</insert>
<update id="updateHwProductInfo" parameterType="HwProductInfo">
update hw_product_info
<trim prefix="SET" suffixOverrides=",">
<if test="configTypeId != null and configTypeId != ''">config_type_id = #{configTypeId},</if>
<if test="tabFlag != null and tabFlag != ''">tab_flag = #{tabFlag},</if>
<if test="configModal != null and configModal != ''">config_modal = #{configModal},</if>
<if test="productInfoEtitle != null">product_info_etitle = #{productInfoEtitle},</if>
<if test="productInfoCtitle != null and productInfoCtitle != ''">product_info_ctitle = #{productInfoCtitle},</if>
<if test="productInfoOrder != null">product_info_order = #{productInfoOrder},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
</trim>
where product_info_id = #{productInfoId}
</update>
<delete id="deleteHwProductInfoByProductInfoId" parameterType="Long">
delete from hw_product_info where product_info_id = #{productInfoId}
</delete>
<delete id="deleteHwProductInfoByProductInfoIds" parameterType="String">
delete from hw_product_info where product_info_id in
<foreach item="productInfoId" collection="array" open="(" separator="," close=")">
#{productInfoId}
</foreach>
</delete>
</mapper>

@ -29,6 +29,7 @@
<module>hw-tdengine</module>
<module>hw-data-process</module>
<module>hw-websocket-server</module>
<module>hw-portal</module>
</modules>
<artifactId>ruoyi-modules</artifactId>

Loading…
Cancel
Save