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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -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,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,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,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>
|
Loading…
Reference in New Issue