add equip module
This commit is contained in:
parent
fcf70cc8b1
commit
42b72a7241
|
|
@ -14,6 +14,7 @@
|
|||
<module>sgzb-job</module>
|
||||
<module>sgzb-file</module>
|
||||
<module>zlpt-order</module>
|
||||
<module>zlpt-equip</module>
|
||||
</modules>
|
||||
|
||||
<artifactId>sgzb-modules</artifactId>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.bonus.sgzb</groupId>
|
||||
<artifactId>sgzb-modules</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.bonus.zlpt.equip</groupId>
|
||||
<artifactId>zlpt-modules-equip</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.bonus.sgzb</groupId>
|
||||
<artifactId>sgzb-common-security</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bonus.sgzb</groupId>
|
||||
<artifactId>sgzb-common-swagger</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.bonus.sgzb</groupId>
|
||||
<artifactId>sgzb-common-log</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.bonus.zlpt.equip;
|
||||
|
||||
import com.bonus.sgzb.common.security.annotation.EnableCustomConfig;
|
||||
import com.bonus.sgzb.common.security.annotation.EnableRyFeignClients;
|
||||
import com.bonus.sgzb.common.swagger.annotation.EnableCustomSwagger2;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* 设备模块
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-01
|
||||
*/
|
||||
@EnableCustomConfig
|
||||
@EnableCustomSwagger2
|
||||
@EnableRyFeignClients
|
||||
@SpringBootApplication
|
||||
public class ZlptEquipApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ZlptEquipApplication.class, args);
|
||||
System.out.println("(♥◠‿◠)ノ゙ 设备模块启动成功 ლ(´ڡ`ლ)゙ \n" +
|
||||
" .-------. ____ __ \n" +
|
||||
" | _ _ \\ \\ \\ / / \n" +
|
||||
" | ( ' ) | \\ _. / ' \n" +
|
||||
" |(_ o _) / _( )_ .' \n" +
|
||||
" | (_,_).' __ ___(_ o _)' \n" +
|
||||
" | |\\ \\ | || |(_,_)' \n" +
|
||||
" | | \\ `' /| `-' / \n" +
|
||||
" | | \\ / \\ / \n" +
|
||||
" ''-' `'-' `-..-' ");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
package com.bonus.zlpt.equip.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||
import com.bonus.sgzb.common.log.annotation.Log;
|
||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
||||
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.bonus.zlpt.equip.domain.DevInfo;
|
||||
import com.bonus.zlpt.equip.service.IDevInfoService;
|
||||
|
||||
/**
|
||||
* 设备信息Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/info")
|
||||
public class DevInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDevInfoService devInfoService;
|
||||
|
||||
/**
|
||||
* 查询设备信息列表
|
||||
*/
|
||||
@RequiresPermissions("equip:info:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DevInfo devInfo)
|
||||
{
|
||||
startPage();
|
||||
List<DevInfo> list = devInfoService.selectDevInfoList(devInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备信息列表
|
||||
*/
|
||||
@RequiresPermissions("equip:info:export")
|
||||
@Log(title = "设备信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DevInfo devInfo)
|
||||
{
|
||||
List<DevInfo> list = devInfoService.selectDevInfoList(devInfo);
|
||||
ExcelUtil<DevInfo> util = new ExcelUtil<DevInfo>(DevInfo.class);
|
||||
util.exportExcel(response, list, "设备信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备信息详细信息
|
||||
*/
|
||||
@RequiresPermissions("equip:info:query")
|
||||
@GetMapping(value = "/{maId}")
|
||||
public AjaxResult getInfo(@PathVariable("maId") Long maId)
|
||||
{
|
||||
return success(devInfoService.selectDevInfoByMaId(maId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备信息
|
||||
*/
|
||||
@RequiresPermissions("equip:info:add")
|
||||
@Log(title = "设备信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DevInfo devInfo)
|
||||
{
|
||||
return toAjax(devInfoService.insertDevInfo(devInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备信息
|
||||
*/
|
||||
@RequiresPermissions("equip:info:edit")
|
||||
@Log(title = "设备信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DevInfo devInfo)
|
||||
{
|
||||
return toAjax(devInfoService.updateDevInfo(devInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备信息
|
||||
*/
|
||||
@RequiresPermissions("equip:info:remove")
|
||||
@Log(title = "设备信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{maIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] maIds)
|
||||
{
|
||||
return toAjax(devInfoService.deleteDevInfoByMaIds(maIds));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,111 @@
|
|||
package com.bonus.zlpt.equip.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||
import com.bonus.sgzb.common.log.annotation.Log;
|
||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
||||
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.bonus.zlpt.equip.domain.FileInfo;
|
||||
import com.bonus.zlpt.equip.service.IFileInfoService;
|
||||
|
||||
/**
|
||||
* 设备附件
|
||||
Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/info")
|
||||
public class FileInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IFileInfoService fileInfoService;
|
||||
|
||||
/**
|
||||
* 查询设备附件
|
||||
列表
|
||||
*/
|
||||
@RequiresPermissions("equip:info:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(FileInfo fileInfo)
|
||||
{
|
||||
startPage();
|
||||
List<FileInfo> list = fileInfoService.selectFileInfoList(fileInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备附件
|
||||
列表
|
||||
*/
|
||||
@RequiresPermissions("equip:info:export")
|
||||
@Log(title = "设备附件", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, FileInfo fileInfo)
|
||||
{
|
||||
List<FileInfo> list = fileInfoService.selectFileInfoList(fileInfo);
|
||||
ExcelUtil<FileInfo> util = new ExcelUtil<FileInfo>(FileInfo.class);
|
||||
util.exportExcel(response, list, "设备附件数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备附件
|
||||
详细信息
|
||||
*/
|
||||
@RequiresPermissions("equip:info:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(fileInfoService.selectFileInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备附件
|
||||
|
||||
*/
|
||||
@RequiresPermissions("equip:info:add")
|
||||
@Log(title = "设备附件", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody FileInfo fileInfo)
|
||||
{
|
||||
return toAjax(fileInfoService.insertFileInfo(fileInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备附件
|
||||
|
||||
*/
|
||||
@RequiresPermissions("equip:info:edit")
|
||||
@Log(title = "设备附件", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody FileInfo fileInfo)
|
||||
{
|
||||
return toAjax(fileInfoService.updateFileInfo(fileInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备附件
|
||||
|
||||
*/
|
||||
@RequiresPermissions("equip:info:remove")
|
||||
@Log(title = "设备附件", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(fileInfoService.deleteFileInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
package com.bonus.zlpt.equip.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||
import com.bonus.sgzb.common.log.annotation.Log;
|
||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
||||
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.bonus.zlpt.equip.domain.HotSearch;
|
||||
import com.bonus.zlpt.equip.service.IHotSearchService;
|
||||
|
||||
/**
|
||||
* 热搜设备Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/search")
|
||||
public class HotSearchController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IHotSearchService hotSearchService;
|
||||
|
||||
/**
|
||||
* 查询热搜设备列表
|
||||
*/
|
||||
@RequiresPermissions("equip:search:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(HotSearch hotSearch)
|
||||
{
|
||||
startPage();
|
||||
List<HotSearch> list = hotSearchService.selectHotSearchList(hotSearch);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出热搜设备列表
|
||||
*/
|
||||
@RequiresPermissions("equip:search:export")
|
||||
@Log(title = "热搜设备", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, HotSearch hotSearch)
|
||||
{
|
||||
List<HotSearch> list = hotSearchService.selectHotSearchList(hotSearch);
|
||||
ExcelUtil<HotSearch> util = new ExcelUtil<HotSearch>(HotSearch.class);
|
||||
util.exportExcel(response, list, "热搜设备数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取热搜设备详细信息
|
||||
*/
|
||||
@RequiresPermissions("equip:search:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(hotSearchService.selectHotSearchById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增热搜设备
|
||||
*/
|
||||
@RequiresPermissions("equip:search:add")
|
||||
@Log(title = "热搜设备", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody HotSearch hotSearch)
|
||||
{
|
||||
return toAjax(hotSearchService.insertHotSearch(hotSearch));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改热搜设备
|
||||
*/
|
||||
@RequiresPermissions("equip:search:edit")
|
||||
@Log(title = "热搜设备", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody HotSearch hotSearch)
|
||||
{
|
||||
return toAjax(hotSearchService.updateHotSearch(hotSearch));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除热搜设备
|
||||
*/
|
||||
@RequiresPermissions("equip:search:remove")
|
||||
@Log(title = "热搜设备", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(hotSearchService.deleteHotSearchByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
package com.bonus.zlpt.equip.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||
import com.bonus.sgzb.common.log.annotation.Log;
|
||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
||||
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.bonus.zlpt.equip.domain.LeaseInfo;
|
||||
import com.bonus.zlpt.equip.service.ILeaseInfoService;
|
||||
|
||||
/**
|
||||
* 租赁信息Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/info")
|
||||
public class LeaseInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ILeaseInfoService leaseInfoService;
|
||||
|
||||
/**
|
||||
* 查询租赁信息列表
|
||||
*/
|
||||
@RequiresPermissions("equip:info:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(LeaseInfo leaseInfo)
|
||||
{
|
||||
startPage();
|
||||
List<LeaseInfo> list = leaseInfoService.selectLeaseInfoList(leaseInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出租赁信息列表
|
||||
*/
|
||||
@RequiresPermissions("equip:info:export")
|
||||
@Log(title = "租赁信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, LeaseInfo leaseInfo)
|
||||
{
|
||||
List<LeaseInfo> list = leaseInfoService.selectLeaseInfoList(leaseInfo);
|
||||
ExcelUtil<LeaseInfo> util = new ExcelUtil<LeaseInfo>(LeaseInfo.class);
|
||||
util.exportExcel(response, list, "租赁信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取租赁信息详细信息
|
||||
*/
|
||||
@RequiresPermissions("equip:info:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(leaseInfoService.selectLeaseInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增租赁信息
|
||||
*/
|
||||
@RequiresPermissions("equip:info:add")
|
||||
@Log(title = "租赁信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody LeaseInfo leaseInfo)
|
||||
{
|
||||
return toAjax(leaseInfoService.insertLeaseInfo(leaseInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改租赁信息
|
||||
*/
|
||||
@RequiresPermissions("equip:info:edit")
|
||||
@Log(title = "租赁信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody LeaseInfo leaseInfo)
|
||||
{
|
||||
return toAjax(leaseInfoService.updateLeaseInfo(leaseInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除租赁信息
|
||||
*/
|
||||
@RequiresPermissions("equip:info:remove")
|
||||
@Log(title = "租赁信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(leaseInfoService.deleteLeaseInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
package com.bonus.zlpt.equip.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||
import com.bonus.sgzb.common.log.annotation.Log;
|
||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
||||
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.bonus.zlpt.equip.domain.TypeInfo;
|
||||
import com.bonus.zlpt.equip.service.ITypeInfoService;
|
||||
|
||||
/**
|
||||
* 设备类型Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/info")
|
||||
public class TypeInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITypeInfoService typeInfoService;
|
||||
|
||||
/**
|
||||
* 查询设备类型列表
|
||||
*/
|
||||
@RequiresPermissions("equip:info:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TypeInfo typeInfo)
|
||||
{
|
||||
startPage();
|
||||
List<TypeInfo> list = typeInfoService.selectTypeInfoList(typeInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备类型列表
|
||||
*/
|
||||
@RequiresPermissions("equip:info:export")
|
||||
@Log(title = "设备类型", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, TypeInfo typeInfo)
|
||||
{
|
||||
List<TypeInfo> list = typeInfoService.selectTypeInfoList(typeInfo);
|
||||
ExcelUtil<TypeInfo> util = new ExcelUtil<TypeInfo>(TypeInfo.class);
|
||||
util.exportExcel(response, list, "设备类型数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备类型详细信息
|
||||
*/
|
||||
@RequiresPermissions("equip:info:query")
|
||||
@GetMapping(value = "/{typeId}")
|
||||
public AjaxResult getInfo(@PathVariable("typeId") Long typeId)
|
||||
{
|
||||
return success(typeInfoService.selectTypeInfoByTypeId(typeId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备类型
|
||||
*/
|
||||
@RequiresPermissions("equip:info:add")
|
||||
@Log(title = "设备类型", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TypeInfo typeInfo)
|
||||
{
|
||||
return toAjax(typeInfoService.insertTypeInfo(typeInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备类型
|
||||
*/
|
||||
@RequiresPermissions("equip:info:edit")
|
||||
@Log(title = "设备类型", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TypeInfo typeInfo)
|
||||
{
|
||||
return toAjax(typeInfoService.updateTypeInfo(typeInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备类型
|
||||
*/
|
||||
@RequiresPermissions("equip:info:remove")
|
||||
@Log(title = "设备类型", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{typeIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] typeIds)
|
||||
{
|
||||
return toAjax(typeInfoService.deleteTypeInfoByTypeIds(typeIds));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
package com.bonus.zlpt.equip.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||
import com.bonus.sgzb.common.log.annotation.Log;
|
||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
||||
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.bonus.zlpt.equip.domain.TypeInfoRecord;
|
||||
import com.bonus.zlpt.equip.service.ITypeInfoRecordService;
|
||||
|
||||
/**
|
||||
* 设备类型Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/record")
|
||||
public class TypeInfoRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITypeInfoRecordService typeInfoRecordService;
|
||||
|
||||
/**
|
||||
* 查询设备类型列表
|
||||
*/
|
||||
@RequiresPermissions("equip:record:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TypeInfoRecord typeInfoRecord)
|
||||
{
|
||||
startPage();
|
||||
List<TypeInfoRecord> list = typeInfoRecordService.selectTypeInfoRecordList(typeInfoRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备类型列表
|
||||
*/
|
||||
@RequiresPermissions("equip:record:export")
|
||||
@Log(title = "设备类型", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, TypeInfoRecord typeInfoRecord)
|
||||
{
|
||||
List<TypeInfoRecord> list = typeInfoRecordService.selectTypeInfoRecordList(typeInfoRecord);
|
||||
ExcelUtil<TypeInfoRecord> util = new ExcelUtil<TypeInfoRecord>(TypeInfoRecord.class);
|
||||
util.exportExcel(response, list, "设备类型数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备类型详细信息
|
||||
*/
|
||||
@RequiresPermissions("equip:record:query")
|
||||
@GetMapping(value = "/{typeId}")
|
||||
public AjaxResult getInfo(@PathVariable("typeId") Long typeId)
|
||||
{
|
||||
return success(typeInfoRecordService.selectTypeInfoRecordByTypeId(typeId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备类型
|
||||
*/
|
||||
@RequiresPermissions("equip:record:add")
|
||||
@Log(title = "设备类型", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TypeInfoRecord typeInfoRecord)
|
||||
{
|
||||
return toAjax(typeInfoRecordService.insertTypeInfoRecord(typeInfoRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备类型
|
||||
*/
|
||||
@RequiresPermissions("equip:record:edit")
|
||||
@Log(title = "设备类型", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TypeInfoRecord typeInfoRecord)
|
||||
{
|
||||
return toAjax(typeInfoRecordService.updateTypeInfoRecord(typeInfoRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备类型
|
||||
*/
|
||||
@RequiresPermissions("equip:record:remove")
|
||||
@Log(title = "设备类型", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{typeIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] typeIds)
|
||||
{
|
||||
return toAjax(typeInfoRecordService.deleteTypeInfoRecordByTypeIds(typeIds));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,111 @@
|
|||
package com.bonus.zlpt.equip.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||
import com.bonus.sgzb.common.log.annotation.Log;
|
||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
||||
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.bonus.zlpt.equip.domain.UpOff;
|
||||
import com.bonus.zlpt.equip.service.IUpOffService;
|
||||
|
||||
/**
|
||||
* 设备上下架管理
|
||||
Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/off")
|
||||
public class UpOffController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IUpOffService upOffService;
|
||||
|
||||
/**
|
||||
* 查询设备上下架管理
|
||||
列表
|
||||
*/
|
||||
@RequiresPermissions("equip:off:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(UpOff upOff)
|
||||
{
|
||||
startPage();
|
||||
List<UpOff> list = upOffService.selectUpOffList(upOff);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备上下架管理
|
||||
列表
|
||||
*/
|
||||
@RequiresPermissions("equip:off:export")
|
||||
@Log(title = "设备上下架管理", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, UpOff upOff)
|
||||
{
|
||||
List<UpOff> list = upOffService.selectUpOffList(upOff);
|
||||
ExcelUtil<UpOff> util = new ExcelUtil<UpOff>(UpOff.class);
|
||||
util.exportExcel(response, list, "设备上下架管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备上下架管理
|
||||
详细信息
|
||||
*/
|
||||
@RequiresPermissions("equip:off:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(upOffService.selectUpOffById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备上下架管理
|
||||
|
||||
*/
|
||||
@RequiresPermissions("equip:off:add")
|
||||
@Log(title = "设备上下架管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody UpOff upOff)
|
||||
{
|
||||
return toAjax(upOffService.insertUpOff(upOff));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备上下架管理
|
||||
|
||||
*/
|
||||
@RequiresPermissions("equip:off:edit")
|
||||
@Log(title = "设备上下架管理", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody UpOff upOff)
|
||||
{
|
||||
return toAjax(upOffService.updateUpOff(upOff));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备上下架管理
|
||||
|
||||
*/
|
||||
@RequiresPermissions("equip:off:remove")
|
||||
@Log(title = "设备上下架管理", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(upOffService.deleteUpOffByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,111 @@
|
|||
package com.bonus.zlpt.equip.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.common.core.web.page.TableDataInfo;
|
||||
import com.bonus.sgzb.common.log.annotation.Log;
|
||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||
import com.bonus.sgzb.common.security.annotation.RequiresPermissions;
|
||||
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.bonus.zlpt.equip.domain.UserCollect;
|
||||
import com.bonus.zlpt.equip.service.IUserCollectService;
|
||||
|
||||
/**
|
||||
* 我的收藏
|
||||
Controller
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/collect")
|
||||
public class UserCollectController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IUserCollectService userCollectService;
|
||||
|
||||
/**
|
||||
* 查询我的收藏
|
||||
列表
|
||||
*/
|
||||
@RequiresPermissions("equip:collect:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(UserCollect userCollect)
|
||||
{
|
||||
startPage();
|
||||
List<UserCollect> list = userCollectService.selectUserCollectList(userCollect);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出我的收藏
|
||||
列表
|
||||
*/
|
||||
@RequiresPermissions("equip:collect:export")
|
||||
@Log(title = "我的收藏", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, UserCollect userCollect)
|
||||
{
|
||||
List<UserCollect> list = userCollectService.selectUserCollectList(userCollect);
|
||||
ExcelUtil<UserCollect> util = new ExcelUtil<UserCollect>(UserCollect.class);
|
||||
util.exportExcel(response, list, "我的收藏数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取我的收藏
|
||||
详细信息
|
||||
*/
|
||||
@RequiresPermissions("equip:collect:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(userCollectService.selectUserCollectById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增我的收藏
|
||||
|
||||
*/
|
||||
@RequiresPermissions("equip:collect:add")
|
||||
@Log(title = "我的收藏", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody UserCollect userCollect)
|
||||
{
|
||||
return toAjax(userCollectService.insertUserCollect(userCollect));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改我的收藏
|
||||
|
||||
*/
|
||||
@RequiresPermissions("equip:collect:edit")
|
||||
@Log(title = "我的收藏", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody UserCollect userCollect)
|
||||
{
|
||||
return toAjax(userCollectService.updateUserCollect(userCollect));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除我的收藏
|
||||
|
||||
*/
|
||||
@RequiresPermissions("equip:collect:remove")
|
||||
@Log(title = "我的收藏", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(userCollectService.deleteUserCollectByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,113 @@
|
|||
package com.bonus.zlpt.equip.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import javax.annotation.sql.DataSourceDefinition;
|
||||
|
||||
/**
|
||||
* 设备信息对象 ma_dev_info
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
public class DevInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 设备id */
|
||||
@Excel(name = "设备id")
|
||||
private Long maId;
|
||||
|
||||
/** 系统编码 */
|
||||
@Excel(name = "系统编码")
|
||||
private String code;
|
||||
|
||||
/** 类型id */
|
||||
@Excel(name = "类型id")
|
||||
private Long typeId;
|
||||
|
||||
/** 设备状态(自有,待上架,上架,在租,下架)考虑数据字典 */
|
||||
@Excel(name = "设备状态(自有,待上架,上架,在租,下架)考虑数据字典")
|
||||
private String maStatus;
|
||||
|
||||
/** 租赁范围 */
|
||||
@Excel(name = "租赁范围")
|
||||
private Long leaseScope;
|
||||
|
||||
/** 设备所在地 */
|
||||
@Excel(name = "设备所在地")
|
||||
private String location;
|
||||
|
||||
/** 设备品牌 */
|
||||
@Excel(name = "设备品牌")
|
||||
private String brand;
|
||||
|
||||
/** 设备型号 */
|
||||
@Excel(name = "设备型号")
|
||||
private String modelName;
|
||||
|
||||
/** 出厂日期 */
|
||||
@Excel(name = "出厂日期")
|
||||
private String productionDate;
|
||||
|
||||
/** 工作时长 */
|
||||
@Excel(name = "工作时长")
|
||||
private String workingHours;
|
||||
|
||||
/** 整机序列号 */
|
||||
@Excel(name = "整机序列号")
|
||||
private String serialNumber;
|
||||
|
||||
/** 设备月租价 */
|
||||
@Excel(name = "设备月租价")
|
||||
private String monthLeasePrice;
|
||||
|
||||
/** 设备天租价 */
|
||||
@Excel(name = "设备天租价")
|
||||
private String dayLeasePrice;
|
||||
|
||||
/** 设备主照片 */
|
||||
@Excel(name = "设备主照片")
|
||||
private String picUrl;
|
||||
|
||||
/** 机手月租金 */
|
||||
@Excel(name = "机手月租金")
|
||||
private String jsMonthPrice;
|
||||
|
||||
/** 机手天租金 */
|
||||
@Excel(name = "机手天租金")
|
||||
private String jsDayPrice;
|
||||
|
||||
/** 详细描述 */
|
||||
@Excel(name = "详细描述")
|
||||
private String description;
|
||||
|
||||
/** gps编号 */
|
||||
@Excel(name = "gps编号")
|
||||
private String gpsCode;
|
||||
|
||||
/** 设备所属公司 */
|
||||
@Excel(name = "设备所属公司")
|
||||
private Long ownCo;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private Long creator;
|
||||
|
||||
/** 订金 */
|
||||
@Excel(name = "订金")
|
||||
private BigDecimal deposit;
|
||||
|
||||
/** 是否删除 */
|
||||
@Excel(name = "是否删除")
|
||||
private String isActive;
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.bonus.zlpt.equip.domain;
|
||||
|
||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* 设备附件
|
||||
对象 ma_file_info
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
public class FileInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 设备id */
|
||||
@Excel(name = "设备id")
|
||||
private Long maId;
|
||||
|
||||
/** 文件名称 */
|
||||
@Excel(name = "文件名称")
|
||||
private String fileName;
|
||||
|
||||
/** 文件路径 */
|
||||
@Excel(name = "文件路径")
|
||||
private String fileUrl;
|
||||
|
||||
/** 0检测信息,1保险信息,3设备照片 */
|
||||
@Excel(name = "0检测信息,1保险信息,3设备照片")
|
||||
private String type;
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.bonus.zlpt.equip.domain;
|
||||
|
||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* 热搜设备对象 ma_hot_search
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
public class HotSearch extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long maId;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long searchNum;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.bonus.zlpt.equip.domain;
|
||||
|
||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* 租赁信息对象 ma_lease_info
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
public class LeaseInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 出租信息 */
|
||||
@Excel(name = "出租信息")
|
||||
private Long czNum;
|
||||
|
||||
/** 求租信息 */
|
||||
@Excel(name = "求租信息")
|
||||
private Long qzNum;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.bonus.zlpt.equip.domain;
|
||||
|
||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* 设备类型对象 ma_type_info
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
public class TypeInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 类型id */
|
||||
@Excel(name = "类型id")
|
||||
private Long typeId;
|
||||
|
||||
/** 父级id */
|
||||
@Excel(name = "父级id")
|
||||
private Long parentId;
|
||||
|
||||
/** 类型名称 */
|
||||
@Excel(name = "类型名称")
|
||||
private String typeName;
|
||||
|
||||
/** 计量单位 */
|
||||
@Excel(name = "计量单位")
|
||||
private String unitName;
|
||||
|
||||
/** 层级 */
|
||||
@Excel(name = "层级")
|
||||
private String level;
|
||||
|
||||
/** 排序 */
|
||||
@Excel(name = "排序")
|
||||
private String sort;
|
||||
|
||||
/** 是否删除 */
|
||||
@Excel(name = "是否删除")
|
||||
private String isActive;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
package com.bonus.zlpt.equip.domain;
|
||||
|
||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* 设备类型对象 ma_type_info_record
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
public class TypeInfoRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 类型id */
|
||||
@Excel(name = "类型id")
|
||||
private Long typeId;
|
||||
|
||||
/** 父级id */
|
||||
@Excel(name = "父级id")
|
||||
private Long parentId;
|
||||
|
||||
/** 类型名称 */
|
||||
@Excel(name = "类型名称")
|
||||
private String typeName;
|
||||
|
||||
/** 层级 */
|
||||
@Excel(name = "层级")
|
||||
private String level;
|
||||
|
||||
/** 排序 */
|
||||
@Excel(name = "排序")
|
||||
private String sort;
|
||||
|
||||
/** 是否删除 */
|
||||
@Excel(name = "是否删除")
|
||||
private String isActive;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
package com.bonus.zlpt.equip.domain;
|
||||
|
||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* 设备上下架管理
|
||||
对象 ma_up_off
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
public class UpOff extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 设备id */
|
||||
@Excel(name = "设备id")
|
||||
private Long maId;
|
||||
|
||||
/** 申请时间 */
|
||||
@Excel(name = "申请时间")
|
||||
private String applyTime;
|
||||
|
||||
/** 申请人 */
|
||||
@Excel(name = "申请人")
|
||||
private String applyUser;
|
||||
|
||||
/** 申请企业 */
|
||||
@Excel(name = "申请企业")
|
||||
private String applyCompany;
|
||||
|
||||
/** 1上架,2下架 */
|
||||
@Excel(name = "1上架,2下架")
|
||||
private String type;
|
||||
|
||||
/** 审核人 */
|
||||
@Excel(name = "审核人")
|
||||
private String auditUser;
|
||||
|
||||
/** 审核时间 */
|
||||
@Excel(name = "审核时间")
|
||||
private String auditTime;
|
||||
|
||||
/** 状态(1通过,2驳回) */
|
||||
@Excel(name = "状态", readConverterExp = "1=通过,2驳回")
|
||||
private String status;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.bonus.zlpt.equip.domain;
|
||||
|
||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||
import com.bonus.sgzb.common.core.web.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* 我的收藏
|
||||
对象 ma_user_collect
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Data
|
||||
@ToString
|
||||
public class UserCollect extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 设备id */
|
||||
@Excel(name = "设备id")
|
||||
private Long maId;
|
||||
|
||||
/** 收藏时间 */
|
||||
@Excel(name = "收藏时间")
|
||||
private String time;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.bonus.zlpt.equip.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.DevInfo;
|
||||
|
||||
/**
|
||||
* 设备信息Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface DevInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备信息
|
||||
*
|
||||
* @param maId 设备信息主键
|
||||
* @return 设备信息
|
||||
*/
|
||||
public DevInfo selectDevInfoByMaId(Long maId);
|
||||
|
||||
/**
|
||||
* 查询设备信息列表
|
||||
*
|
||||
* @param devInfo 设备信息
|
||||
* @return 设备信息集合
|
||||
*/
|
||||
public List<DevInfo> selectDevInfoList(DevInfo devInfo);
|
||||
|
||||
/**
|
||||
* 新增设备信息
|
||||
*
|
||||
* @param devInfo 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevInfo(DevInfo devInfo);
|
||||
|
||||
/**
|
||||
* 修改设备信息
|
||||
*
|
||||
* @param devInfo 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevInfo(DevInfo devInfo);
|
||||
|
||||
/**
|
||||
* 删除设备信息
|
||||
*
|
||||
* @param maId 设备信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevInfoByMaId(Long maId);
|
||||
|
||||
/**
|
||||
* 批量删除设备信息
|
||||
*
|
||||
* @param maIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevInfoByMaIds(Long[] maIds);
|
||||
}
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
package com.bonus.zlpt.equip.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.FileInfo;
|
||||
|
||||
/**
|
||||
* 设备附件
|
||||
Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface FileInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备附件
|
||||
|
||||
*
|
||||
* @param id 设备附件
|
||||
主键
|
||||
* @return 设备附件
|
||||
|
||||
*/
|
||||
public FileInfo selectFileInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询设备附件
|
||||
列表
|
||||
*
|
||||
* @param fileInfo 设备附件
|
||||
|
||||
* @return 设备附件
|
||||
集合
|
||||
*/
|
||||
public List<FileInfo> selectFileInfoList(FileInfo fileInfo);
|
||||
|
||||
/**
|
||||
* 新增设备附件
|
||||
|
||||
*
|
||||
* @param fileInfo 设备附件
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFileInfo(FileInfo fileInfo);
|
||||
|
||||
/**
|
||||
* 修改设备附件
|
||||
|
||||
*
|
||||
* @param fileInfo 设备附件
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFileInfo(FileInfo fileInfo);
|
||||
|
||||
/**
|
||||
* 删除设备附件
|
||||
|
||||
*
|
||||
* @param id 设备附件
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFileInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备附件
|
||||
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFileInfoByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.bonus.zlpt.equip.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.HotSearch;
|
||||
|
||||
/**
|
||||
* 热搜设备Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface HotSearchMapper
|
||||
{
|
||||
/**
|
||||
* 查询热搜设备
|
||||
*
|
||||
* @param id 热搜设备主键
|
||||
* @return 热搜设备
|
||||
*/
|
||||
public HotSearch selectHotSearchById(Long id);
|
||||
|
||||
/**
|
||||
* 查询热搜设备列表
|
||||
*
|
||||
* @param hotSearch 热搜设备
|
||||
* @return 热搜设备集合
|
||||
*/
|
||||
public List<HotSearch> selectHotSearchList(HotSearch hotSearch);
|
||||
|
||||
/**
|
||||
* 新增热搜设备
|
||||
*
|
||||
* @param hotSearch 热搜设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHotSearch(HotSearch hotSearch);
|
||||
|
||||
/**
|
||||
* 修改热搜设备
|
||||
*
|
||||
* @param hotSearch 热搜设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHotSearch(HotSearch hotSearch);
|
||||
|
||||
/**
|
||||
* 删除热搜设备
|
||||
*
|
||||
* @param id 热搜设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotSearchById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除热搜设备
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotSearchByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.bonus.zlpt.equip.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.LeaseInfo;
|
||||
|
||||
/**
|
||||
* 租赁信息Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface LeaseInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询租赁信息
|
||||
*
|
||||
* @param id 租赁信息主键
|
||||
* @return 租赁信息
|
||||
*/
|
||||
public LeaseInfo selectLeaseInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询租赁信息列表
|
||||
*
|
||||
* @param leaseInfo 租赁信息
|
||||
* @return 租赁信息集合
|
||||
*/
|
||||
public List<LeaseInfo> selectLeaseInfoList(LeaseInfo leaseInfo);
|
||||
|
||||
/**
|
||||
* 新增租赁信息
|
||||
*
|
||||
* @param leaseInfo 租赁信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertLeaseInfo(LeaseInfo leaseInfo);
|
||||
|
||||
/**
|
||||
* 修改租赁信息
|
||||
*
|
||||
* @param leaseInfo 租赁信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateLeaseInfo(LeaseInfo leaseInfo);
|
||||
|
||||
/**
|
||||
* 删除租赁信息
|
||||
*
|
||||
* @param id 租赁信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteLeaseInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除租赁信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteLeaseInfoByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.bonus.zlpt.equip.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.TypeInfo;
|
||||
|
||||
/**
|
||||
* 设备类型Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface TypeInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备类型
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 设备类型
|
||||
*/
|
||||
public TypeInfo selectTypeInfoByTypeId(Long typeId);
|
||||
|
||||
/**
|
||||
* 查询设备类型列表
|
||||
*
|
||||
* @param typeInfo 设备类型
|
||||
* @return 设备类型集合
|
||||
*/
|
||||
public List<TypeInfo> selectTypeInfoList(TypeInfo typeInfo);
|
||||
|
||||
/**
|
||||
* 新增设备类型
|
||||
*
|
||||
* @param typeInfo 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTypeInfo(TypeInfo typeInfo);
|
||||
|
||||
/**
|
||||
* 修改设备类型
|
||||
*
|
||||
* @param typeInfo 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTypeInfo(TypeInfo typeInfo);
|
||||
|
||||
/**
|
||||
* 删除设备类型
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeInfoByTypeId(Long typeId);
|
||||
|
||||
/**
|
||||
* 批量删除设备类型
|
||||
*
|
||||
* @param typeIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeInfoByTypeIds(Long[] typeIds);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.bonus.zlpt.equip.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.TypeInfoRecord;
|
||||
|
||||
/**
|
||||
* 设备类型Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface TypeInfoRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备类型
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 设备类型
|
||||
*/
|
||||
public TypeInfoRecord selectTypeInfoRecordByTypeId(Long typeId);
|
||||
|
||||
/**
|
||||
* 查询设备类型列表
|
||||
*
|
||||
* @param typeInfoRecord 设备类型
|
||||
* @return 设备类型集合
|
||||
*/
|
||||
public List<TypeInfoRecord> selectTypeInfoRecordList(TypeInfoRecord typeInfoRecord);
|
||||
|
||||
/**
|
||||
* 新增设备类型
|
||||
*
|
||||
* @param typeInfoRecord 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTypeInfoRecord(TypeInfoRecord typeInfoRecord);
|
||||
|
||||
/**
|
||||
* 修改设备类型
|
||||
*
|
||||
* @param typeInfoRecord 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTypeInfoRecord(TypeInfoRecord typeInfoRecord);
|
||||
|
||||
/**
|
||||
* 删除设备类型
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeInfoRecordByTypeId(Long typeId);
|
||||
|
||||
/**
|
||||
* 批量删除设备类型
|
||||
*
|
||||
* @param typeIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeInfoRecordByTypeIds(Long[] typeIds);
|
||||
}
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
package com.bonus.zlpt.equip.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.UpOff;
|
||||
|
||||
/**
|
||||
* 设备上下架管理
|
||||
Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface UpOffMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备上下架管理
|
||||
|
||||
*
|
||||
* @param id 设备上下架管理
|
||||
主键
|
||||
* @return 设备上下架管理
|
||||
|
||||
*/
|
||||
public UpOff selectUpOffById(Long id);
|
||||
|
||||
/**
|
||||
* 查询设备上下架管理
|
||||
列表
|
||||
*
|
||||
* @param upOff 设备上下架管理
|
||||
|
||||
* @return 设备上下架管理
|
||||
集合
|
||||
*/
|
||||
public List<UpOff> selectUpOffList(UpOff upOff);
|
||||
|
||||
/**
|
||||
* 新增设备上下架管理
|
||||
|
||||
*
|
||||
* @param upOff 设备上下架管理
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUpOff(UpOff upOff);
|
||||
|
||||
/**
|
||||
* 修改设备上下架管理
|
||||
|
||||
*
|
||||
* @param upOff 设备上下架管理
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUpOff(UpOff upOff);
|
||||
|
||||
/**
|
||||
* 删除设备上下架管理
|
||||
|
||||
*
|
||||
* @param id 设备上下架管理
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUpOffById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备上下架管理
|
||||
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUpOffByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
package com.bonus.zlpt.equip.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.UserCollect;
|
||||
|
||||
/**
|
||||
* 我的收藏
|
||||
Mapper接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface UserCollectMapper
|
||||
{
|
||||
/**
|
||||
* 查询我的收藏
|
||||
|
||||
*
|
||||
* @param id 我的收藏
|
||||
主键
|
||||
* @return 我的收藏
|
||||
|
||||
*/
|
||||
public UserCollect selectUserCollectById(Long id);
|
||||
|
||||
/**
|
||||
* 查询我的收藏
|
||||
列表
|
||||
*
|
||||
* @param userCollect 我的收藏
|
||||
|
||||
* @return 我的收藏
|
||||
集合
|
||||
*/
|
||||
public List<UserCollect> selectUserCollectList(UserCollect userCollect);
|
||||
|
||||
/**
|
||||
* 新增我的收藏
|
||||
|
||||
*
|
||||
* @param userCollect 我的收藏
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUserCollect(UserCollect userCollect);
|
||||
|
||||
/**
|
||||
* 修改我的收藏
|
||||
|
||||
*
|
||||
* @param userCollect 我的收藏
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUserCollect(UserCollect userCollect);
|
||||
|
||||
/**
|
||||
* 删除我的收藏
|
||||
|
||||
*
|
||||
* @param id 我的收藏
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserCollectById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除我的收藏
|
||||
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserCollectByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.bonus.zlpt.equip.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.DevInfo;
|
||||
|
||||
/**
|
||||
* 设备信息Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface IDevInfoService
|
||||
{
|
||||
/**
|
||||
* 查询设备信息
|
||||
*
|
||||
* @param maId 设备信息主键
|
||||
* @return 设备信息
|
||||
*/
|
||||
public DevInfo selectDevInfoByMaId(Long maId);
|
||||
|
||||
/**
|
||||
* 查询设备信息列表
|
||||
*
|
||||
* @param devInfo 设备信息
|
||||
* @return 设备信息集合
|
||||
*/
|
||||
public List<DevInfo> selectDevInfoList(DevInfo devInfo);
|
||||
|
||||
/**
|
||||
* 新增设备信息
|
||||
*
|
||||
* @param devInfo 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevInfo(DevInfo devInfo);
|
||||
|
||||
/**
|
||||
* 修改设备信息
|
||||
*
|
||||
* @param devInfo 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevInfo(DevInfo devInfo);
|
||||
|
||||
/**
|
||||
* 批量删除设备信息
|
||||
*
|
||||
* @param maIds 需要删除的设备信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevInfoByMaIds(Long[] maIds);
|
||||
|
||||
/**
|
||||
* 删除设备信息信息
|
||||
*
|
||||
* @param maId 设备信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevInfoByMaId(Long maId);
|
||||
}
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
package com.bonus.zlpt.equip.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.FileInfo;
|
||||
|
||||
/**
|
||||
* 设备附件
|
||||
Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface IFileInfoService
|
||||
{
|
||||
/**
|
||||
* 查询设备附件
|
||||
|
||||
*
|
||||
* @param id 设备附件
|
||||
主键
|
||||
* @return 设备附件
|
||||
|
||||
*/
|
||||
public FileInfo selectFileInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询设备附件
|
||||
列表
|
||||
*
|
||||
* @param fileInfo 设备附件
|
||||
|
||||
* @return 设备附件
|
||||
集合
|
||||
*/
|
||||
public List<FileInfo> selectFileInfoList(FileInfo fileInfo);
|
||||
|
||||
/**
|
||||
* 新增设备附件
|
||||
|
||||
*
|
||||
* @param fileInfo 设备附件
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertFileInfo(FileInfo fileInfo);
|
||||
|
||||
/**
|
||||
* 修改设备附件
|
||||
|
||||
*
|
||||
* @param fileInfo 设备附件
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateFileInfo(FileInfo fileInfo);
|
||||
|
||||
/**
|
||||
* 批量删除设备附件
|
||||
|
||||
*
|
||||
* @param ids 需要删除的设备附件
|
||||
主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFileInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除设备附件
|
||||
信息
|
||||
*
|
||||
* @param id 设备附件
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteFileInfoById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.bonus.zlpt.equip.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.HotSearch;
|
||||
|
||||
/**
|
||||
* 热搜设备Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface IHotSearchService
|
||||
{
|
||||
/**
|
||||
* 查询热搜设备
|
||||
*
|
||||
* @param id 热搜设备主键
|
||||
* @return 热搜设备
|
||||
*/
|
||||
public HotSearch selectHotSearchById(Long id);
|
||||
|
||||
/**
|
||||
* 查询热搜设备列表
|
||||
*
|
||||
* @param hotSearch 热搜设备
|
||||
* @return 热搜设备集合
|
||||
*/
|
||||
public List<HotSearch> selectHotSearchList(HotSearch hotSearch);
|
||||
|
||||
/**
|
||||
* 新增热搜设备
|
||||
*
|
||||
* @param hotSearch 热搜设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHotSearch(HotSearch hotSearch);
|
||||
|
||||
/**
|
||||
* 修改热搜设备
|
||||
*
|
||||
* @param hotSearch 热搜设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHotSearch(HotSearch hotSearch);
|
||||
|
||||
/**
|
||||
* 批量删除热搜设备
|
||||
*
|
||||
* @param ids 需要删除的热搜设备主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotSearchByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除热搜设备信息
|
||||
*
|
||||
* @param id 热搜设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHotSearchById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.bonus.zlpt.equip.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.LeaseInfo;
|
||||
|
||||
/**
|
||||
* 租赁信息Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface ILeaseInfoService
|
||||
{
|
||||
/**
|
||||
* 查询租赁信息
|
||||
*
|
||||
* @param id 租赁信息主键
|
||||
* @return 租赁信息
|
||||
*/
|
||||
public LeaseInfo selectLeaseInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询租赁信息列表
|
||||
*
|
||||
* @param leaseInfo 租赁信息
|
||||
* @return 租赁信息集合
|
||||
*/
|
||||
public List<LeaseInfo> selectLeaseInfoList(LeaseInfo leaseInfo);
|
||||
|
||||
/**
|
||||
* 新增租赁信息
|
||||
*
|
||||
* @param leaseInfo 租赁信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertLeaseInfo(LeaseInfo leaseInfo);
|
||||
|
||||
/**
|
||||
* 修改租赁信息
|
||||
*
|
||||
* @param leaseInfo 租赁信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateLeaseInfo(LeaseInfo leaseInfo);
|
||||
|
||||
/**
|
||||
* 批量删除租赁信息
|
||||
*
|
||||
* @param ids 需要删除的租赁信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteLeaseInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除租赁信息信息
|
||||
*
|
||||
* @param id 租赁信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteLeaseInfoById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.bonus.zlpt.equip.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.TypeInfoRecord;
|
||||
|
||||
/**
|
||||
* 设备类型Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface ITypeInfoRecordService
|
||||
{
|
||||
/**
|
||||
* 查询设备类型
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 设备类型
|
||||
*/
|
||||
public TypeInfoRecord selectTypeInfoRecordByTypeId(Long typeId);
|
||||
|
||||
/**
|
||||
* 查询设备类型列表
|
||||
*
|
||||
* @param typeInfoRecord 设备类型
|
||||
* @return 设备类型集合
|
||||
*/
|
||||
public List<TypeInfoRecord> selectTypeInfoRecordList(TypeInfoRecord typeInfoRecord);
|
||||
|
||||
/**
|
||||
* 新增设备类型
|
||||
*
|
||||
* @param typeInfoRecord 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTypeInfoRecord(TypeInfoRecord typeInfoRecord);
|
||||
|
||||
/**
|
||||
* 修改设备类型
|
||||
*
|
||||
* @param typeInfoRecord 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTypeInfoRecord(TypeInfoRecord typeInfoRecord);
|
||||
|
||||
/**
|
||||
* 批量删除设备类型
|
||||
*
|
||||
* @param typeIds 需要删除的设备类型主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeInfoRecordByTypeIds(Long[] typeIds);
|
||||
|
||||
/**
|
||||
* 删除设备类型信息
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeInfoRecordByTypeId(Long typeId);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.bonus.zlpt.equip.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.TypeInfo;
|
||||
|
||||
/**
|
||||
* 设备类型Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface ITypeInfoService
|
||||
{
|
||||
/**
|
||||
* 查询设备类型
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 设备类型
|
||||
*/
|
||||
public TypeInfo selectTypeInfoByTypeId(Long typeId);
|
||||
|
||||
/**
|
||||
* 查询设备类型列表
|
||||
*
|
||||
* @param typeInfo 设备类型
|
||||
* @return 设备类型集合
|
||||
*/
|
||||
public List<TypeInfo> selectTypeInfoList(TypeInfo typeInfo);
|
||||
|
||||
/**
|
||||
* 新增设备类型
|
||||
*
|
||||
* @param typeInfo 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTypeInfo(TypeInfo typeInfo);
|
||||
|
||||
/**
|
||||
* 修改设备类型
|
||||
*
|
||||
* @param typeInfo 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTypeInfo(TypeInfo typeInfo);
|
||||
|
||||
/**
|
||||
* 批量删除设备类型
|
||||
*
|
||||
* @param typeIds 需要删除的设备类型主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeInfoByTypeIds(Long[] typeIds);
|
||||
|
||||
/**
|
||||
* 删除设备类型信息
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTypeInfoByTypeId(Long typeId);
|
||||
}
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
package com.bonus.zlpt.equip.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.UpOff;
|
||||
|
||||
/**
|
||||
* 设备上下架管理
|
||||
Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface IUpOffService
|
||||
{
|
||||
/**
|
||||
* 查询设备上下架管理
|
||||
|
||||
*
|
||||
* @param id 设备上下架管理
|
||||
主键
|
||||
* @return 设备上下架管理
|
||||
|
||||
*/
|
||||
public UpOff selectUpOffById(Long id);
|
||||
|
||||
/**
|
||||
* 查询设备上下架管理
|
||||
列表
|
||||
*
|
||||
* @param upOff 设备上下架管理
|
||||
|
||||
* @return 设备上下架管理
|
||||
集合
|
||||
*/
|
||||
public List<UpOff> selectUpOffList(UpOff upOff);
|
||||
|
||||
/**
|
||||
* 新增设备上下架管理
|
||||
|
||||
*
|
||||
* @param upOff 设备上下架管理
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUpOff(UpOff upOff);
|
||||
|
||||
/**
|
||||
* 修改设备上下架管理
|
||||
|
||||
*
|
||||
* @param upOff 设备上下架管理
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUpOff(UpOff upOff);
|
||||
|
||||
/**
|
||||
* 批量删除设备上下架管理
|
||||
|
||||
*
|
||||
* @param ids 需要删除的设备上下架管理
|
||||
主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUpOffByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除设备上下架管理
|
||||
信息
|
||||
*
|
||||
* @param id 设备上下架管理
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUpOffById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
package com.bonus.zlpt.equip.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.bonus.zlpt.equip.domain.UserCollect;
|
||||
|
||||
/**
|
||||
* 我的收藏
|
||||
Service接口
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
public interface IUserCollectService
|
||||
{
|
||||
/**
|
||||
* 查询我的收藏
|
||||
|
||||
*
|
||||
* @param id 我的收藏
|
||||
主键
|
||||
* @return 我的收藏
|
||||
|
||||
*/
|
||||
public UserCollect selectUserCollectById(Long id);
|
||||
|
||||
/**
|
||||
* 查询我的收藏
|
||||
列表
|
||||
*
|
||||
* @param userCollect 我的收藏
|
||||
|
||||
* @return 我的收藏
|
||||
集合
|
||||
*/
|
||||
public List<UserCollect> selectUserCollectList(UserCollect userCollect);
|
||||
|
||||
/**
|
||||
* 新增我的收藏
|
||||
|
||||
*
|
||||
* @param userCollect 我的收藏
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertUserCollect(UserCollect userCollect);
|
||||
|
||||
/**
|
||||
* 修改我的收藏
|
||||
|
||||
*
|
||||
* @param userCollect 我的收藏
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateUserCollect(UserCollect userCollect);
|
||||
|
||||
/**
|
||||
* 批量删除我的收藏
|
||||
|
||||
*
|
||||
* @param ids 需要删除的我的收藏
|
||||
主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserCollectByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除我的收藏
|
||||
信息
|
||||
*
|
||||
* @param id 我的收藏
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteUserCollectById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
package com.bonus.zlpt.equip.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.bonus.sgzb.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.zlpt.equip.mapper.DevInfoMapper;
|
||||
import com.bonus.zlpt.equip.domain.DevInfo;
|
||||
import com.bonus.zlpt.equip.service.IDevInfoService;
|
||||
|
||||
/**
|
||||
* 设备信息Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Service
|
||||
public class DevInfoServiceImpl implements IDevInfoService
|
||||
{
|
||||
@Autowired
|
||||
private DevInfoMapper devInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询设备信息
|
||||
*
|
||||
* @param maId 设备信息主键
|
||||
* @return 设备信息
|
||||
*/
|
||||
@Override
|
||||
public DevInfo selectDevInfoByMaId(Long maId)
|
||||
{
|
||||
return devInfoMapper.selectDevInfoByMaId(maId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备信息列表
|
||||
*
|
||||
* @param devInfo 设备信息
|
||||
* @return 设备信息
|
||||
*/
|
||||
@Override
|
||||
public List<DevInfo> selectDevInfoList(DevInfo devInfo)
|
||||
{
|
||||
return devInfoMapper.selectDevInfoList(devInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备信息
|
||||
*
|
||||
* @param devInfo 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDevInfo(DevInfo devInfo)
|
||||
{
|
||||
devInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return devInfoMapper.insertDevInfo(devInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备信息
|
||||
*
|
||||
* @param devInfo 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDevInfo(DevInfo devInfo)
|
||||
{
|
||||
devInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return devInfoMapper.updateDevInfo(devInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除设备信息
|
||||
*
|
||||
* @param maIds 需要删除的设备信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevInfoByMaIds(Long[] maIds)
|
||||
{
|
||||
return devInfoMapper.deleteDevInfoByMaIds(maIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备信息信息
|
||||
*
|
||||
* @param maId 设备信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDevInfoByMaId(Long maId)
|
||||
{
|
||||
return devInfoMapper.deleteDevInfoByMaId(maId);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package com.bonus.zlpt.equip.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.zlpt.equip.mapper.FileInfoMapper;
|
||||
import com.bonus.zlpt.equip.domain.FileInfo;
|
||||
import com.bonus.zlpt.equip.service.IFileInfoService;
|
||||
|
||||
/**
|
||||
* 设备附件
|
||||
Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Service
|
||||
public class FileInfoServiceImpl implements IFileInfoService
|
||||
{
|
||||
@Autowired
|
||||
private FileInfoMapper fileInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询设备附件
|
||||
|
||||
*
|
||||
* @param id 设备附件
|
||||
主键
|
||||
* @return 设备附件
|
||||
|
||||
*/
|
||||
@Override
|
||||
public FileInfo selectFileInfoById(Long id)
|
||||
{
|
||||
return fileInfoMapper.selectFileInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备附件
|
||||
列表
|
||||
*
|
||||
* @param fileInfo 设备附件
|
||||
|
||||
* @return 设备附件
|
||||
|
||||
*/
|
||||
@Override
|
||||
public List<FileInfo> selectFileInfoList(FileInfo fileInfo)
|
||||
{
|
||||
return fileInfoMapper.selectFileInfoList(fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备附件
|
||||
|
||||
*
|
||||
* @param fileInfo 设备附件
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertFileInfo(FileInfo fileInfo)
|
||||
{
|
||||
return fileInfoMapper.insertFileInfo(fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备附件
|
||||
|
||||
*
|
||||
* @param fileInfo 设备附件
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateFileInfo(FileInfo fileInfo)
|
||||
{
|
||||
return fileInfoMapper.updateFileInfo(fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除设备附件
|
||||
|
||||
*
|
||||
* @param ids 需要删除的设备附件
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteFileInfoByIds(Long[] ids)
|
||||
{
|
||||
return fileInfoMapper.deleteFileInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备附件
|
||||
信息
|
||||
*
|
||||
* @param id 设备附件
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteFileInfoById(Long id)
|
||||
{
|
||||
return fileInfoMapper.deleteFileInfoById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.bonus.zlpt.equip.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.zlpt.equip.mapper.HotSearchMapper;
|
||||
import com.bonus.zlpt.equip.domain.HotSearch;
|
||||
import com.bonus.zlpt.equip.service.IHotSearchService;
|
||||
|
||||
/**
|
||||
* 热搜设备Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Service
|
||||
public class HotSearchServiceImpl implements IHotSearchService
|
||||
{
|
||||
@Autowired
|
||||
private HotSearchMapper hotSearchMapper;
|
||||
|
||||
/**
|
||||
* 查询热搜设备
|
||||
*
|
||||
* @param id 热搜设备主键
|
||||
* @return 热搜设备
|
||||
*/
|
||||
@Override
|
||||
public HotSearch selectHotSearchById(Long id)
|
||||
{
|
||||
return hotSearchMapper.selectHotSearchById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询热搜设备列表
|
||||
*
|
||||
* @param hotSearch 热搜设备
|
||||
* @return 热搜设备
|
||||
*/
|
||||
@Override
|
||||
public List<HotSearch> selectHotSearchList(HotSearch hotSearch)
|
||||
{
|
||||
return hotSearchMapper.selectHotSearchList(hotSearch);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增热搜设备
|
||||
*
|
||||
* @param hotSearch 热搜设备
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertHotSearch(HotSearch hotSearch)
|
||||
{
|
||||
return hotSearchMapper.insertHotSearch(hotSearch);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改热搜设备
|
||||
*
|
||||
* @param hotSearch 热搜设备
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateHotSearch(HotSearch hotSearch)
|
||||
{
|
||||
return hotSearchMapper.updateHotSearch(hotSearch);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除热搜设备
|
||||
*
|
||||
* @param ids 需要删除的热搜设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteHotSearchByIds(Long[] ids)
|
||||
{
|
||||
return hotSearchMapper.deleteHotSearchByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除热搜设备信息
|
||||
*
|
||||
* @param id 热搜设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteHotSearchById(Long id)
|
||||
{
|
||||
return hotSearchMapper.deleteHotSearchById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.bonus.zlpt.equip.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.zlpt.equip.mapper.LeaseInfoMapper;
|
||||
import com.bonus.zlpt.equip.domain.LeaseInfo;
|
||||
import com.bonus.zlpt.equip.service.ILeaseInfoService;
|
||||
|
||||
/**
|
||||
* 租赁信息Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Service
|
||||
public class LeaseInfoServiceImpl implements ILeaseInfoService
|
||||
{
|
||||
@Autowired
|
||||
private LeaseInfoMapper leaseInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询租赁信息
|
||||
*
|
||||
* @param id 租赁信息主键
|
||||
* @return 租赁信息
|
||||
*/
|
||||
@Override
|
||||
public LeaseInfo selectLeaseInfoById(Long id)
|
||||
{
|
||||
return leaseInfoMapper.selectLeaseInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询租赁信息列表
|
||||
*
|
||||
* @param leaseInfo 租赁信息
|
||||
* @return 租赁信息
|
||||
*/
|
||||
@Override
|
||||
public List<LeaseInfo> selectLeaseInfoList(LeaseInfo leaseInfo)
|
||||
{
|
||||
return leaseInfoMapper.selectLeaseInfoList(leaseInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增租赁信息
|
||||
*
|
||||
* @param leaseInfo 租赁信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertLeaseInfo(LeaseInfo leaseInfo)
|
||||
{
|
||||
return leaseInfoMapper.insertLeaseInfo(leaseInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改租赁信息
|
||||
*
|
||||
* @param leaseInfo 租赁信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateLeaseInfo(LeaseInfo leaseInfo)
|
||||
{
|
||||
return leaseInfoMapper.updateLeaseInfo(leaseInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除租赁信息
|
||||
*
|
||||
* @param ids 需要删除的租赁信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteLeaseInfoByIds(Long[] ids)
|
||||
{
|
||||
return leaseInfoMapper.deleteLeaseInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除租赁信息信息
|
||||
*
|
||||
* @param id 租赁信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteLeaseInfoById(Long id)
|
||||
{
|
||||
return leaseInfoMapper.deleteLeaseInfoById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
package com.bonus.zlpt.equip.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.bonus.sgzb.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.zlpt.equip.mapper.TypeInfoRecordMapper;
|
||||
import com.bonus.zlpt.equip.domain.TypeInfoRecord;
|
||||
import com.bonus.zlpt.equip.service.ITypeInfoRecordService;
|
||||
|
||||
/**
|
||||
* 设备类型Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Service
|
||||
public class TypeInfoRecordServiceImpl implements ITypeInfoRecordService
|
||||
{
|
||||
@Autowired
|
||||
private TypeInfoRecordMapper typeInfoRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询设备类型
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 设备类型
|
||||
*/
|
||||
@Override
|
||||
public TypeInfoRecord selectTypeInfoRecordByTypeId(Long typeId)
|
||||
{
|
||||
return typeInfoRecordMapper.selectTypeInfoRecordByTypeId(typeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备类型列表
|
||||
*
|
||||
* @param typeInfoRecord 设备类型
|
||||
* @return 设备类型
|
||||
*/
|
||||
@Override
|
||||
public List<TypeInfoRecord> selectTypeInfoRecordList(TypeInfoRecord typeInfoRecord)
|
||||
{
|
||||
return typeInfoRecordMapper.selectTypeInfoRecordList(typeInfoRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备类型
|
||||
*
|
||||
* @param typeInfoRecord 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTypeInfoRecord(TypeInfoRecord typeInfoRecord)
|
||||
{
|
||||
typeInfoRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return typeInfoRecordMapper.insertTypeInfoRecord(typeInfoRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备类型
|
||||
*
|
||||
* @param typeInfoRecord 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTypeInfoRecord(TypeInfoRecord typeInfoRecord)
|
||||
{
|
||||
typeInfoRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return typeInfoRecordMapper.updateTypeInfoRecord(typeInfoRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除设备类型
|
||||
*
|
||||
* @param typeIds 需要删除的设备类型主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTypeInfoRecordByTypeIds(Long[] typeIds)
|
||||
{
|
||||
return typeInfoRecordMapper.deleteTypeInfoRecordByTypeIds(typeIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备类型信息
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTypeInfoRecordByTypeId(Long typeId)
|
||||
{
|
||||
return typeInfoRecordMapper.deleteTypeInfoRecordByTypeId(typeId);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
package com.bonus.zlpt.equip.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.bonus.sgzb.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.zlpt.equip.mapper.TypeInfoMapper;
|
||||
import com.bonus.zlpt.equip.domain.TypeInfo;
|
||||
import com.bonus.zlpt.equip.service.ITypeInfoService;
|
||||
|
||||
/**
|
||||
* 设备类型Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Service
|
||||
public class TypeInfoServiceImpl implements ITypeInfoService
|
||||
{
|
||||
@Autowired
|
||||
private TypeInfoMapper typeInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询设备类型
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 设备类型
|
||||
*/
|
||||
@Override
|
||||
public TypeInfo selectTypeInfoByTypeId(Long typeId)
|
||||
{
|
||||
return typeInfoMapper.selectTypeInfoByTypeId(typeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备类型列表
|
||||
*
|
||||
* @param typeInfo 设备类型
|
||||
* @return 设备类型
|
||||
*/
|
||||
@Override
|
||||
public List<TypeInfo> selectTypeInfoList(TypeInfo typeInfo)
|
||||
{
|
||||
return typeInfoMapper.selectTypeInfoList(typeInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备类型
|
||||
*
|
||||
* @param typeInfo 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTypeInfo(TypeInfo typeInfo)
|
||||
{
|
||||
typeInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return typeInfoMapper.insertTypeInfo(typeInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备类型
|
||||
*
|
||||
* @param typeInfo 设备类型
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTypeInfo(TypeInfo typeInfo)
|
||||
{
|
||||
typeInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return typeInfoMapper.updateTypeInfo(typeInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除设备类型
|
||||
*
|
||||
* @param typeIds 需要删除的设备类型主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTypeInfoByTypeIds(Long[] typeIds)
|
||||
{
|
||||
return typeInfoMapper.deleteTypeInfoByTypeIds(typeIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备类型信息
|
||||
*
|
||||
* @param typeId 设备类型主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTypeInfoByTypeId(Long typeId)
|
||||
{
|
||||
return typeInfoMapper.deleteTypeInfoByTypeId(typeId);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package com.bonus.zlpt.equip.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.zlpt.equip.mapper.UpOffMapper;
|
||||
import com.bonus.zlpt.equip.domain.UpOff;
|
||||
import com.bonus.zlpt.equip.service.IUpOffService;
|
||||
|
||||
/**
|
||||
* 设备上下架管理
|
||||
Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Service
|
||||
public class UpOffServiceImpl implements IUpOffService
|
||||
{
|
||||
@Autowired
|
||||
private UpOffMapper upOffMapper;
|
||||
|
||||
/**
|
||||
* 查询设备上下架管理
|
||||
|
||||
*
|
||||
* @param id 设备上下架管理
|
||||
主键
|
||||
* @return 设备上下架管理
|
||||
|
||||
*/
|
||||
@Override
|
||||
public UpOff selectUpOffById(Long id)
|
||||
{
|
||||
return upOffMapper.selectUpOffById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备上下架管理
|
||||
列表
|
||||
*
|
||||
* @param upOff 设备上下架管理
|
||||
|
||||
* @return 设备上下架管理
|
||||
|
||||
*/
|
||||
@Override
|
||||
public List<UpOff> selectUpOffList(UpOff upOff)
|
||||
{
|
||||
return upOffMapper.selectUpOffList(upOff);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备上下架管理
|
||||
|
||||
*
|
||||
* @param upOff 设备上下架管理
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertUpOff(UpOff upOff)
|
||||
{
|
||||
return upOffMapper.insertUpOff(upOff);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备上下架管理
|
||||
|
||||
*
|
||||
* @param upOff 设备上下架管理
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateUpOff(UpOff upOff)
|
||||
{
|
||||
return upOffMapper.updateUpOff(upOff);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除设备上下架管理
|
||||
|
||||
*
|
||||
* @param ids 需要删除的设备上下架管理
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteUpOffByIds(Long[] ids)
|
||||
{
|
||||
return upOffMapper.deleteUpOffByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备上下架管理
|
||||
信息
|
||||
*
|
||||
* @param id 设备上下架管理
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteUpOffById(Long id)
|
||||
{
|
||||
return upOffMapper.deleteUpOffById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package com.bonus.zlpt.equip.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.bonus.zlpt.equip.mapper.UserCollectMapper;
|
||||
import com.bonus.zlpt.equip.domain.UserCollect;
|
||||
import com.bonus.zlpt.equip.service.IUserCollectService;
|
||||
|
||||
/**
|
||||
* 我的收藏
|
||||
Service业务层处理
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2023-12-02
|
||||
*/
|
||||
@Service
|
||||
public class UserCollectServiceImpl implements IUserCollectService
|
||||
{
|
||||
@Autowired
|
||||
private UserCollectMapper userCollectMapper;
|
||||
|
||||
/**
|
||||
* 查询我的收藏
|
||||
|
||||
*
|
||||
* @param id 我的收藏
|
||||
主键
|
||||
* @return 我的收藏
|
||||
|
||||
*/
|
||||
@Override
|
||||
public UserCollect selectUserCollectById(Long id)
|
||||
{
|
||||
return userCollectMapper.selectUserCollectById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询我的收藏
|
||||
列表
|
||||
*
|
||||
* @param userCollect 我的收藏
|
||||
|
||||
* @return 我的收藏
|
||||
|
||||
*/
|
||||
@Override
|
||||
public List<UserCollect> selectUserCollectList(UserCollect userCollect)
|
||||
{
|
||||
return userCollectMapper.selectUserCollectList(userCollect);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增我的收藏
|
||||
|
||||
*
|
||||
* @param userCollect 我的收藏
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertUserCollect(UserCollect userCollect)
|
||||
{
|
||||
return userCollectMapper.insertUserCollect(userCollect);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改我的收藏
|
||||
|
||||
*
|
||||
* @param userCollect 我的收藏
|
||||
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateUserCollect(UserCollect userCollect)
|
||||
{
|
||||
return userCollectMapper.updateUserCollect(userCollect);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除我的收藏
|
||||
|
||||
*
|
||||
* @param ids 需要删除的我的收藏
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteUserCollectByIds(Long[] ids)
|
||||
{
|
||||
return userCollectMapper.deleteUserCollectByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除我的收藏
|
||||
信息
|
||||
*
|
||||
* @param id 我的收藏
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteUserCollectById(Long id)
|
||||
{
|
||||
return userCollectMapper.deleteUserCollectById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
||||
_ _ _
|
||||
(_) (_) | |
|
||||
_ __ _ _ ___ _ _ _ ______ _ ___ | |__
|
||||
| '__|| | | | / _ \ | | | || ||______| | | / _ \ | '_ \
|
||||
| | | |_| || (_) || |_| || | | || (_) || |_) |
|
||||
|_| \__,_| \___/ \__, ||_| | | \___/ |_.__/
|
||||
__/ | _/ |
|
||||
|___/ |__/
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9206
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: zlpt-equip
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: zlpt_cloud_dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: zlpt_cloud_dev
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: zlpt_cloud_dev
|
||||
# 配置文件格式
|
||||
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/zlpt-equip" />
|
||||
<!-- 日志输出格式 -->
|
||||
<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,171 @@
|
|||
<?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.bonus.zlpt.equip.mapper.DevInfoMapper">
|
||||
|
||||
<resultMap type="DevInfo" id="DevInfoResult">
|
||||
<result property="maId" column="ma_id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="typeId" column="type_id" />
|
||||
<result property="maStatus" column="ma_status" />
|
||||
<result property="leaseScope" column="lease_scope" />
|
||||
<result property="location" column="location" />
|
||||
<result property="brand" column="brand" />
|
||||
<result property="modelName" column="model_name" />
|
||||
<result property="productionDate" column="production_date" />
|
||||
<result property="workingHours" column="working_hours" />
|
||||
<result property="serialNumber" column="serial_number" />
|
||||
<result property="monthLeasePrice" column="month_lease_price" />
|
||||
<result property="dayLeasePrice" column="day_lease_price" />
|
||||
<result property="picUrl" column="pic_url" />
|
||||
<result property="jsMonthPrice" column="js_month_price" />
|
||||
<result property="jsDayPrice" column="js_day_price" />
|
||||
<result property="description" column="description" />
|
||||
<result property="gpsCode" column="gps_code" />
|
||||
<result property="ownCo" column="own_co" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="creator" column="creator" />
|
||||
<result property="deposit" column="deposit" />
|
||||
<result property="isActive" column="is_active" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevInfoVo">
|
||||
select ma_id, code, type_id, ma_status, lease_scope, location, brand, model_name, production_date, working_hours, serial_number, month_lease_price, day_lease_price, pic_url, js_month_price, js_day_price, description, gps_code, own_co, create_time, creator, deposit, is_active, update_time, update_by from ma_dev_info
|
||||
</sql>
|
||||
|
||||
<select id="selectDevInfoList" parameterType="DevInfo" resultMap="DevInfoResult">
|
||||
<include refid="selectDevInfoVo"/>
|
||||
<where>
|
||||
<if test="maId != null "> and ma_id = #{maId}</if>
|
||||
<if test="code != null and code != ''"> and code = #{code}</if>
|
||||
<if test="typeId != null "> and type_id = #{typeId}</if>
|
||||
<if test="maStatus != null and maStatus != ''"> and ma_status = #{maStatus}</if>
|
||||
<if test="leaseScope != null "> and lease_scope = #{leaseScope}</if>
|
||||
<if test="location != null and location != ''"> and location = #{location}</if>
|
||||
<if test="brand != null and brand != ''"> and brand = #{brand}</if>
|
||||
<if test="modelName != null and modelName != ''"> and model_name like concat('%', #{modelName}, '%')</if>
|
||||
<if test="productionDate != null and productionDate != ''"> and production_date = #{productionDate}</if>
|
||||
<if test="workingHours != null and workingHours != ''"> and working_hours = #{workingHours}</if>
|
||||
<if test="serialNumber != null and serialNumber != ''"> and serial_number = #{serialNumber}</if>
|
||||
<if test="monthLeasePrice != null and monthLeasePrice != ''"> and month_lease_price = #{monthLeasePrice}</if>
|
||||
<if test="dayLeasePrice != null and dayLeasePrice != ''"> and day_lease_price = #{dayLeasePrice}</if>
|
||||
<if test="picUrl != null and picUrl != ''"> and pic_url = #{picUrl}</if>
|
||||
<if test="jsMonthPrice != null and jsMonthPrice != ''"> and js_month_price = #{jsMonthPrice}</if>
|
||||
<if test="jsDayPrice != null and jsDayPrice != ''"> and js_day_price = #{jsDayPrice}</if>
|
||||
<if test="description != null and description != ''"> and description = #{description}</if>
|
||||
<if test="gpsCode != null and gpsCode != ''"> and gps_code = #{gpsCode}</if>
|
||||
<if test="ownCo != null "> and own_co = #{ownCo}</if>
|
||||
<if test="creator != null "> and creator = #{creator}</if>
|
||||
<if test="deposit != null "> and deposit = #{deposit}</if>
|
||||
<if test="isActive != null and isActive != ''"> and is_active = #{isActive}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDevInfoByMaId" parameterType="Long" resultMap="DevInfoResult">
|
||||
<include refid="selectDevInfoVo"/>
|
||||
where ma_id = #{maId}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevInfo" parameterType="DevInfo">
|
||||
insert into ma_dev_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="maId != null">ma_id,</if>
|
||||
<if test="code != null">code,</if>
|
||||
<if test="typeId != null">type_id,</if>
|
||||
<if test="maStatus != null">ma_status,</if>
|
||||
<if test="leaseScope != null">lease_scope,</if>
|
||||
<if test="location != null">location,</if>
|
||||
<if test="brand != null">brand,</if>
|
||||
<if test="modelName != null">model_name,</if>
|
||||
<if test="productionDate != null">production_date,</if>
|
||||
<if test="workingHours != null">working_hours,</if>
|
||||
<if test="serialNumber != null">serial_number,</if>
|
||||
<if test="monthLeasePrice != null">month_lease_price,</if>
|
||||
<if test="dayLeasePrice != null">day_lease_price,</if>
|
||||
<if test="picUrl != null">pic_url,</if>
|
||||
<if test="jsMonthPrice != null">js_month_price,</if>
|
||||
<if test="jsDayPrice != null">js_day_price,</if>
|
||||
<if test="description != null">description,</if>
|
||||
<if test="gpsCode != null">gps_code,</if>
|
||||
<if test="ownCo != null">own_co,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="creator != null">creator,</if>
|
||||
<if test="deposit != null">deposit,</if>
|
||||
<if test="isActive != null">is_active,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="maId != null">#{maId},</if>
|
||||
<if test="code != null">#{code},</if>
|
||||
<if test="typeId != null">#{typeId},</if>
|
||||
<if test="maStatus != null">#{maStatus},</if>
|
||||
<if test="leaseScope != null">#{leaseScope},</if>
|
||||
<if test="location != null">#{location},</if>
|
||||
<if test="brand != null">#{brand},</if>
|
||||
<if test="modelName != null">#{modelName},</if>
|
||||
<if test="productionDate != null">#{productionDate},</if>
|
||||
<if test="workingHours != null">#{workingHours},</if>
|
||||
<if test="serialNumber != null">#{serialNumber},</if>
|
||||
<if test="monthLeasePrice != null">#{monthLeasePrice},</if>
|
||||
<if test="dayLeasePrice != null">#{dayLeasePrice},</if>
|
||||
<if test="picUrl != null">#{picUrl},</if>
|
||||
<if test="jsMonthPrice != null">#{jsMonthPrice},</if>
|
||||
<if test="jsDayPrice != null">#{jsDayPrice},</if>
|
||||
<if test="description != null">#{description},</if>
|
||||
<if test="gpsCode != null">#{gpsCode},</if>
|
||||
<if test="ownCo != null">#{ownCo},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="creator != null">#{creator},</if>
|
||||
<if test="deposit != null">#{deposit},</if>
|
||||
<if test="isActive != null">#{isActive},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevInfo" parameterType="DevInfo">
|
||||
update ma_dev_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="code != null">code = #{code},</if>
|
||||
<if test="typeId != null">type_id = #{typeId},</if>
|
||||
<if test="maStatus != null">ma_status = #{maStatus},</if>
|
||||
<if test="leaseScope != null">lease_scope = #{leaseScope},</if>
|
||||
<if test="location != null">location = #{location},</if>
|
||||
<if test="brand != null">brand = #{brand},</if>
|
||||
<if test="modelName != null">model_name = #{modelName},</if>
|
||||
<if test="productionDate != null">production_date = #{productionDate},</if>
|
||||
<if test="workingHours != null">working_hours = #{workingHours},</if>
|
||||
<if test="serialNumber != null">serial_number = #{serialNumber},</if>
|
||||
<if test="monthLeasePrice != null">month_lease_price = #{monthLeasePrice},</if>
|
||||
<if test="dayLeasePrice != null">day_lease_price = #{dayLeasePrice},</if>
|
||||
<if test="picUrl != null">pic_url = #{picUrl},</if>
|
||||
<if test="jsMonthPrice != null">js_month_price = #{jsMonthPrice},</if>
|
||||
<if test="jsDayPrice != null">js_day_price = #{jsDayPrice},</if>
|
||||
<if test="description != null">description = #{description},</if>
|
||||
<if test="gpsCode != null">gps_code = #{gpsCode},</if>
|
||||
<if test="ownCo != null">own_co = #{ownCo},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="creator != null">creator = #{creator},</if>
|
||||
<if test="deposit != null">deposit = #{deposit},</if>
|
||||
<if test="isActive != null">is_active = #{isActive},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where ma_id = #{maId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDevInfoByMaId" parameterType="Long">
|
||||
delete from ma_dev_info where ma_id = #{maId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevInfoByMaIds" parameterType="String">
|
||||
delete from ma_dev_info where ma_id in
|
||||
<foreach item="maId" collection="array" open="(" separator="," close=")">
|
||||
#{maId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
<?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.bonus.zlpt.equip.mapper.FileInfoMapper">
|
||||
|
||||
<resultMap type="FileInfo" id="FileInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="maId" column="ma_id" />
|
||||
<result property="fileName" column="file_name" />
|
||||
<result property="fileUrl" column="file_url" />
|
||||
<result property="type" column="type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectFileInfoVo">
|
||||
select id, ma_id, file_name, file_url, type from ma_file_info
|
||||
</sql>
|
||||
|
||||
<select id="selectFileInfoList" parameterType="FileInfo" resultMap="FileInfoResult">
|
||||
<include refid="selectFileInfoVo"/>
|
||||
<where>
|
||||
<if test="maId != null "> and ma_id = #{maId}</if>
|
||||
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
|
||||
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
|
||||
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectFileInfoById" parameterType="Long" resultMap="FileInfoResult">
|
||||
<include refid="selectFileInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertFileInfo" parameterType="FileInfo">
|
||||
insert into ma_file_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="maId != null">ma_id,</if>
|
||||
<if test="fileName != null">file_name,</if>
|
||||
<if test="fileUrl != null">file_url,</if>
|
||||
<if test="type != null">type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="maId != null">#{maId},</if>
|
||||
<if test="fileName != null">#{fileName},</if>
|
||||
<if test="fileUrl != null">#{fileUrl},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateFileInfo" parameterType="FileInfo">
|
||||
update ma_file_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="maId != null">ma_id = #{maId},</if>
|
||||
<if test="fileName != null">file_name = #{fileName},</if>
|
||||
<if test="fileUrl != null">file_url = #{fileUrl},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteFileInfoById" parameterType="Long">
|
||||
delete from ma_file_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteFileInfoByIds" parameterType="String">
|
||||
delete from ma_file_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
<?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.bonus.zlpt.equip.mapper.HotSearchMapper">
|
||||
|
||||
<resultMap type="HotSearch" id="HotSearchResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="maId" column="ma_id" />
|
||||
<result property="searchNum" column="search_num" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHotSearchVo">
|
||||
select id, ma_id, search_num from ma_hot_search
|
||||
</sql>
|
||||
|
||||
<select id="selectHotSearchList" parameterType="HotSearch" resultMap="HotSearchResult">
|
||||
<include refid="selectHotSearchVo"/>
|
||||
<where>
|
||||
<if test="maId != null "> and ma_id = #{maId}</if>
|
||||
<if test="searchNum != null "> and search_num = #{searchNum}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectHotSearchById" parameterType="Long" resultMap="HotSearchResult">
|
||||
<include refid="selectHotSearchVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHotSearch" parameterType="HotSearch">
|
||||
insert into ma_hot_search
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="maId != null">ma_id,</if>
|
||||
<if test="searchNum != null">search_num,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="maId != null">#{maId},</if>
|
||||
<if test="searchNum != null">#{searchNum},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHotSearch" parameterType="HotSearch">
|
||||
update ma_hot_search
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="maId != null">ma_id = #{maId},</if>
|
||||
<if test="searchNum != null">search_num = #{searchNum},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHotSearchById" parameterType="Long">
|
||||
delete from ma_hot_search where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHotSearchByIds" parameterType="String">
|
||||
delete from ma_hot_search where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
<?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.bonus.zlpt.equip.mapper.LeaseInfoMapper">
|
||||
|
||||
<resultMap type="LeaseInfo" id="LeaseInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="czNum" column="cz_num" />
|
||||
<result property="qzNum" column="qz_num" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectLeaseInfoVo">
|
||||
select id, cz_num, qz_num from ma_lease_info
|
||||
</sql>
|
||||
|
||||
<select id="selectLeaseInfoList" parameterType="LeaseInfo" resultMap="LeaseInfoResult">
|
||||
<include refid="selectLeaseInfoVo"/>
|
||||
<where>
|
||||
<if test="czNum != null "> and cz_num = #{czNum}</if>
|
||||
<if test="qzNum != null "> and qz_num = #{qzNum}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectLeaseInfoById" parameterType="Long" resultMap="LeaseInfoResult">
|
||||
<include refid="selectLeaseInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertLeaseInfo" parameterType="LeaseInfo">
|
||||
insert into ma_lease_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="czNum != null">cz_num,</if>
|
||||
<if test="qzNum != null">qz_num,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="czNum != null">#{czNum},</if>
|
||||
<if test="qzNum != null">#{qzNum},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateLeaseInfo" parameterType="LeaseInfo">
|
||||
update ma_lease_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="czNum != null">cz_num = #{czNum},</if>
|
||||
<if test="qzNum != null">qz_num = #{qzNum},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteLeaseInfoById" parameterType="Long">
|
||||
delete from ma_lease_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteLeaseInfoByIds" parameterType="String">
|
||||
delete from ma_lease_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
<?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.bonus.zlpt.equip.mapper.TypeInfoMapper">
|
||||
|
||||
<resultMap type="TypeInfo" id="TypeInfoResult">
|
||||
<result property="typeId" column="type_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="typeName" column="type_name" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="level" column="level" />
|
||||
<result property="sort" column="sort" />
|
||||
<result property="isActive" column="is_active" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTypeInfoVo">
|
||||
select type_id, parent_id, type_name, unit_name, level, sort, is_active, create_time, update_time, update_by from ma_type_info
|
||||
</sql>
|
||||
|
||||
<select id="selectTypeInfoList" parameterType="TypeInfo" resultMap="TypeInfoResult">
|
||||
<include refid="selectTypeInfoVo"/>
|
||||
<where>
|
||||
<if test="typeId != null "> and type_id = #{typeId}</if>
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
<if test="typeName != null and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
|
||||
<if test="unitName != null and unitName != ''"> and unit_name like concat('%', #{unitName}, '%')</if>
|
||||
<if test="level != null and level != ''"> and level = #{level}</if>
|
||||
<if test="sort != null and sort != ''"> and sort = #{sort}</if>
|
||||
<if test="isActive != null and isActive != ''"> and is_active = #{isActive}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTypeInfoByTypeId" parameterType="Long" resultMap="TypeInfoResult">
|
||||
<include refid="selectTypeInfoVo"/>
|
||||
where type_id = #{typeId}
|
||||
</select>
|
||||
|
||||
<insert id="insertTypeInfo" parameterType="TypeInfo">
|
||||
insert into ma_type_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="typeId != null">type_id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="typeName != null">type_name,</if>
|
||||
<if test="unitName != null">unit_name,</if>
|
||||
<if test="level != null">level,</if>
|
||||
<if test="sort != null">sort,</if>
|
||||
<if test="isActive != null">is_active,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="typeId != null">#{typeId},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="typeName != null">#{typeName},</if>
|
||||
<if test="unitName != null">#{unitName},</if>
|
||||
<if test="level != null">#{level},</if>
|
||||
<if test="sort != null">#{sort},</if>
|
||||
<if test="isActive != null">#{isActive},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTypeInfo" parameterType="TypeInfo">
|
||||
update ma_type_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="typeName != null">type_name = #{typeName},</if>
|
||||
<if test="unitName != null">unit_name = #{unitName},</if>
|
||||
<if test="level != null">level = #{level},</if>
|
||||
<if test="sort != null">sort = #{sort},</if>
|
||||
<if test="isActive != null">is_active = #{isActive},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where type_id = #{typeId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTypeInfoByTypeId" parameterType="Long">
|
||||
delete from ma_type_info where type_id = #{typeId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTypeInfoByTypeIds" parameterType="String">
|
||||
delete from ma_type_info where type_id in
|
||||
<foreach item="typeId" collection="array" open="(" separator="," close=")">
|
||||
#{typeId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
<?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.bonus.zlpt.equip.mapper.TypeInfoRecordMapper">
|
||||
|
||||
<resultMap type="TypeInfoRecord" id="TypeInfoRecordResult">
|
||||
<result property="typeId" column="type_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="typeName" column="type_name" />
|
||||
<result property="level" column="level" />
|
||||
<result property="sort" column="sort" />
|
||||
<result property="isActive" column="is_active" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTypeInfoRecordVo">
|
||||
select type_id, parent_id, type_name, level, sort, is_active, create_time, update_time, update_by from ma_type_info_record
|
||||
</sql>
|
||||
|
||||
<select id="selectTypeInfoRecordList" parameterType="TypeInfoRecord" resultMap="TypeInfoRecordResult">
|
||||
<include refid="selectTypeInfoRecordVo"/>
|
||||
<where>
|
||||
<if test="typeId != null "> and type_id = #{typeId}</if>
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
<if test="typeName != null and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
|
||||
<if test="level != null and level != ''"> and level = #{level}</if>
|
||||
<if test="sort != null and sort != ''"> and sort = #{sort}</if>
|
||||
<if test="isActive != null and isActive != ''"> and is_active = #{isActive}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTypeInfoRecordByTypeId" parameterType="Long" resultMap="TypeInfoRecordResult">
|
||||
<include refid="selectTypeInfoRecordVo"/>
|
||||
where type_id = #{typeId}
|
||||
</select>
|
||||
|
||||
<insert id="insertTypeInfoRecord" parameterType="TypeInfoRecord">
|
||||
insert into ma_type_info_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="typeId != null">type_id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="typeName != null">type_name,</if>
|
||||
<if test="level != null">level,</if>
|
||||
<if test="sort != null">sort,</if>
|
||||
<if test="isActive != null">is_active,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="typeId != null">#{typeId},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="typeName != null">#{typeName},</if>
|
||||
<if test="level != null">#{level},</if>
|
||||
<if test="sort != null">#{sort},</if>
|
||||
<if test="isActive != null">#{isActive},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTypeInfoRecord" parameterType="TypeInfoRecord">
|
||||
update ma_type_info_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="typeName != null">type_name = #{typeName},</if>
|
||||
<if test="level != null">level = #{level},</if>
|
||||
<if test="sort != null">sort = #{sort},</if>
|
||||
<if test="isActive != null">is_active = #{isActive},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where type_id = #{typeId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTypeInfoRecordByTypeId" parameterType="Long">
|
||||
delete from ma_type_info_record where type_id = #{typeId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTypeInfoRecordByTypeIds" parameterType="String">
|
||||
delete from ma_type_info_record where type_id in
|
||||
<foreach item="typeId" collection="array" open="(" separator="," close=")">
|
||||
#{typeId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
<?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.bonus.zlpt.equip.mapper.UpOffMapper">
|
||||
|
||||
<resultMap type="UpOff" id="UpOffResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="maId" column="ma_id" />
|
||||
<result property="applyTime" column="apply_time" />
|
||||
<result property="applyUser" column="apply_user" />
|
||||
<result property="applyCompany" column="apply_company" />
|
||||
<result property="type" column="type" />
|
||||
<result property="auditUser" column="audit_user" />
|
||||
<result property="auditTime" column="audit_time" />
|
||||
<result property="status" column="status" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUpOffVo">
|
||||
select id, ma_id, apply_time, apply_user, apply_company, type, audit_user, audit_time, status from ma_up_off
|
||||
</sql>
|
||||
|
||||
<select id="selectUpOffList" parameterType="UpOff" resultMap="UpOffResult">
|
||||
<include refid="selectUpOffVo"/>
|
||||
<where>
|
||||
<if test="maId != null "> and ma_id = #{maId}</if>
|
||||
<if test="applyTime != null and applyTime != ''"> and apply_time = #{applyTime}</if>
|
||||
<if test="applyUser != null and applyUser != ''"> and apply_user = #{applyUser}</if>
|
||||
<if test="applyCompany != null and applyCompany != ''"> and apply_company = #{applyCompany}</if>
|
||||
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||
<if test="auditUser != null and auditUser != ''"> and audit_user = #{auditUser}</if>
|
||||
<if test="auditTime != null and auditTime != ''"> and audit_time = #{auditTime}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUpOffById" parameterType="Long" resultMap="UpOffResult">
|
||||
<include refid="selectUpOffVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertUpOff" parameterType="UpOff">
|
||||
insert into ma_up_off
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="maId != null">ma_id,</if>
|
||||
<if test="applyTime != null">apply_time,</if>
|
||||
<if test="applyUser != null">apply_user,</if>
|
||||
<if test="applyCompany != null">apply_company,</if>
|
||||
<if test="type != null">type,</if>
|
||||
<if test="auditUser != null">audit_user,</if>
|
||||
<if test="auditTime != null">audit_time,</if>
|
||||
<if test="status != null">status,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="maId != null">#{maId},</if>
|
||||
<if test="applyTime != null">#{applyTime},</if>
|
||||
<if test="applyUser != null">#{applyUser},</if>
|
||||
<if test="applyCompany != null">#{applyCompany},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="auditUser != null">#{auditUser},</if>
|
||||
<if test="auditTime != null">#{auditTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateUpOff" parameterType="UpOff">
|
||||
update ma_up_off
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="maId != null">ma_id = #{maId},</if>
|
||||
<if test="applyTime != null">apply_time = #{applyTime},</if>
|
||||
<if test="applyUser != null">apply_user = #{applyUser},</if>
|
||||
<if test="applyCompany != null">apply_company = #{applyCompany},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="auditUser != null">audit_user = #{auditUser},</if>
|
||||
<if test="auditTime != null">audit_time = #{auditTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteUpOffById" parameterType="Long">
|
||||
delete from ma_up_off where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUpOffByIds" parameterType="String">
|
||||
delete from ma_up_off where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
<?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.bonus.zlpt.equip.mapper.UserCollectMapper">
|
||||
|
||||
<resultMap type="UserCollect" id="UserCollectResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="maId" column="ma_id" />
|
||||
<result property="time" column="time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUserCollectVo">
|
||||
select id, user_id, ma_id, time from ma_user_collect
|
||||
</sql>
|
||||
|
||||
<select id="selectUserCollectList" parameterType="UserCollect" resultMap="UserCollectResult">
|
||||
<include refid="selectUserCollectVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="maId != null "> and ma_id = #{maId}</if>
|
||||
<if test="time != null and time != ''"> and time = #{time}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectUserCollectById" parameterType="Long" resultMap="UserCollectResult">
|
||||
<include refid="selectUserCollectVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertUserCollect" parameterType="UserCollect">
|
||||
insert into ma_user_collect
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="maId != null">ma_id,</if>
|
||||
<if test="time != null">time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="maId != null">#{maId},</if>
|
||||
<if test="time != null">#{time},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateUserCollect" parameterType="UserCollect">
|
||||
update ma_user_collect
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="maId != null">ma_id = #{maId},</if>
|
||||
<if test="time != null">time = #{time},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteUserCollectById" parameterType="Long">
|
||||
delete from ma_user_collect where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUserCollectByIds" parameterType="String">
|
||||
delete from ma_user_collect where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue