diff --git a/sgzb-modules/pom.xml b/sgzb-modules/pom.xml index 9a1f485..fa478b0 100644 --- a/sgzb-modules/pom.xml +++ b/sgzb-modules/pom.xml @@ -14,6 +14,7 @@ sgzb-job sgzb-file zlpt-order + zlpt-equip sgzb-modules diff --git a/sgzb-modules/zlpt-equip/pom.xml b/sgzb-modules/zlpt-equip/pom.xml new file mode 100644 index 0000000..50511dd --- /dev/null +++ b/sgzb-modules/zlpt-equip/pom.xml @@ -0,0 +1,39 @@ + + + 4.0.0 + + com.bonus.sgzb + sgzb-modules + 3.6.3 + + + com.bonus.zlpt.equip + zlpt-modules-equip + + + 17 + 17 + UTF-8 + + + + com.bonus.sgzb + sgzb-common-security + + + com.bonus.sgzb + sgzb-common-swagger + + + org.projectlombok + lombok + + + com.bonus.sgzb + sgzb-common-log + + + + \ No newline at end of file diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/ZlptEquipApplication.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/ZlptEquipApplication.java new file mode 100644 index 0000000..157da77 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/ZlptEquipApplication.java @@ -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" + + " ''-' `'-' `-..-' "); + } +} \ No newline at end of file diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/DevInfoController.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/DevInfoController.java new file mode 100644 index 0000000..75ed807 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/DevInfoController.java @@ -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 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 list = devInfoService.selectDevInfoList(devInfo); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/FileInfoController.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/FileInfoController.java new file mode 100644 index 0000000..2af5922 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/FileInfoController.java @@ -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 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 list = fileInfoService.selectFileInfoList(fileInfo); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/HotSearchController.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/HotSearchController.java new file mode 100644 index 0000000..61747cc --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/HotSearchController.java @@ -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 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 list = hotSearchService.selectHotSearchList(hotSearch); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/LeaseInfoController.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/LeaseInfoController.java new file mode 100644 index 0000000..d2fb06d --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/LeaseInfoController.java @@ -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 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 list = leaseInfoService.selectLeaseInfoList(leaseInfo); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/TypeInfoController.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/TypeInfoController.java new file mode 100644 index 0000000..fecb7ed --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/TypeInfoController.java @@ -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 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 list = typeInfoService.selectTypeInfoList(typeInfo); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/TypeInfoRecordController.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/TypeInfoRecordController.java new file mode 100644 index 0000000..f3fb0b4 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/TypeInfoRecordController.java @@ -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 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 list = typeInfoRecordService.selectTypeInfoRecordList(typeInfoRecord); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/UpOffController.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/UpOffController.java new file mode 100644 index 0000000..247e02d --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/UpOffController.java @@ -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 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 list = upOffService.selectUpOffList(upOff); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/UserCollectController.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/UserCollectController.java new file mode 100644 index 0000000..27f14d5 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/controller/UserCollectController.java @@ -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 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 list = userCollectService.selectUserCollectList(userCollect); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/DevInfo.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/DevInfo.java new file mode 100644 index 0000000..bb4bbe7 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/DevInfo.java @@ -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; +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/FileInfo.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/FileInfo.java new file mode 100644 index 0000000..513d1a5 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/FileInfo.java @@ -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; +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/HotSearch.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/HotSearch.java new file mode 100644 index 0000000..45a2a7e --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/HotSearch.java @@ -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; + +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/LeaseInfo.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/LeaseInfo.java new file mode 100644 index 0000000..829b761 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/LeaseInfo.java @@ -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; + +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/TypeInfo.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/TypeInfo.java new file mode 100644 index 0000000..c147718 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/TypeInfo.java @@ -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; + +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/TypeInfoRecord.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/TypeInfoRecord.java new file mode 100644 index 0000000..b8ad643 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/TypeInfoRecord.java @@ -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; + +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/UpOff.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/UpOff.java new file mode 100644 index 0000000..c36fb43 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/UpOff.java @@ -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; + +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/UserCollect.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/UserCollect.java new file mode 100644 index 0000000..d8b1342 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/domain/UserCollect.java @@ -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; + +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/DevInfoMapper.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/DevInfoMapper.java new file mode 100644 index 0000000..9196b73 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/DevInfoMapper.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/FileInfoMapper.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/FileInfoMapper.java new file mode 100644 index 0000000..d982360 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/FileInfoMapper.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/HotSearchMapper.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/HotSearchMapper.java new file mode 100644 index 0000000..dc3a89f --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/HotSearchMapper.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/LeaseInfoMapper.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/LeaseInfoMapper.java new file mode 100644 index 0000000..1c5a457 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/LeaseInfoMapper.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/TypeInfoMapper.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/TypeInfoMapper.java new file mode 100644 index 0000000..d311167 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/TypeInfoMapper.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/TypeInfoRecordMapper.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/TypeInfoRecordMapper.java new file mode 100644 index 0000000..407c9f9 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/TypeInfoRecordMapper.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/UpOffMapper.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/UpOffMapper.java new file mode 100644 index 0000000..445707f --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/UpOffMapper.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/UserCollectMapper.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/UserCollectMapper.java new file mode 100644 index 0000000..05bd294 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/mapper/UserCollectMapper.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IDevInfoService.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IDevInfoService.java new file mode 100644 index 0000000..ae4dc61 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IDevInfoService.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IFileInfoService.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IFileInfoService.java new file mode 100644 index 0000000..49bb3a5 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IFileInfoService.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IHotSearchService.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IHotSearchService.java new file mode 100644 index 0000000..b1152c9 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IHotSearchService.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/ILeaseInfoService.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/ILeaseInfoService.java new file mode 100644 index 0000000..6662057 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/ILeaseInfoService.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/ITypeInfoRecordService.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/ITypeInfoRecordService.java new file mode 100644 index 0000000..9bb9bd3 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/ITypeInfoRecordService.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/ITypeInfoService.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/ITypeInfoService.java new file mode 100644 index 0000000..7c9ef47 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/ITypeInfoService.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IUpOffService.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IUpOffService.java new file mode 100644 index 0000000..95815d8 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IUpOffService.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IUserCollectService.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IUserCollectService.java new file mode 100644 index 0000000..f3d6a83 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/IUserCollectService.java @@ -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 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); +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/DevInfoServiceImpl.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/DevInfoServiceImpl.java new file mode 100644 index 0000000..19adf17 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/DevInfoServiceImpl.java @@ -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 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); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/FileInfoServiceImpl.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/FileInfoServiceImpl.java new file mode 100644 index 0000000..00d8c34 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/FileInfoServiceImpl.java @@ -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 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); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/HotSearchServiceImpl.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/HotSearchServiceImpl.java new file mode 100644 index 0000000..b8d7ce3 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/HotSearchServiceImpl.java @@ -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 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); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/LeaseInfoServiceImpl.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/LeaseInfoServiceImpl.java new file mode 100644 index 0000000..0eca5c6 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/LeaseInfoServiceImpl.java @@ -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 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); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/TypeInfoRecordServiceImpl.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/TypeInfoRecordServiceImpl.java new file mode 100644 index 0000000..af60379 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/TypeInfoRecordServiceImpl.java @@ -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 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); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/TypeInfoServiceImpl.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/TypeInfoServiceImpl.java new file mode 100644 index 0000000..5110016 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/TypeInfoServiceImpl.java @@ -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 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); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/UpOffServiceImpl.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/UpOffServiceImpl.java new file mode 100644 index 0000000..053c4bb --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/UpOffServiceImpl.java @@ -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 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); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/UserCollectServiceImpl.java b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/UserCollectServiceImpl.java new file mode 100644 index 0000000..ede60e4 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/java/com/bonus/zlpt/equip/service/impl/UserCollectServiceImpl.java @@ -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 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); + } +} diff --git a/sgzb-modules/zlpt-equip/src/main/resources/banner.txt b/sgzb-modules/zlpt-equip/src/main/resources/banner.txt new file mode 100644 index 0000000..0b9cd42 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/resources/banner.txt @@ -0,0 +1,10 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} + _ _ _ + (_) (_) | | + _ __ _ _ ___ _ _ _ ______ _ ___ | |__ +| '__|| | | | / _ \ | | | || ||______| | | / _ \ | '_ \ +| | | |_| || (_) || |_| || | | || (_) || |_) | +|_| \__,_| \___/ \__, ||_| | | \___/ |_.__/ + __/ | _/ | + |___/ |__/ \ No newline at end of file diff --git a/sgzb-modules/zlpt-equip/src/main/resources/bootstrap.yml b/sgzb-modules/zlpt-equip/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..0915378 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/resources/bootstrap.yml @@ -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} diff --git a/sgzb-modules/zlpt-equip/src/main/resources/logback.xml b/sgzb-modules/zlpt-equip/src/main/resources/logback.xml new file mode 100644 index 0000000..fe125c9 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/resources/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/info.log + + + + ${log.path}/info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/error.log + + + + ${log.path}/error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/DevInfoMapper.xml b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/DevInfoMapper.xml new file mode 100644 index 0000000..da874b7 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/DevInfoMapper.xml @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + insert into ma_dev_info + + 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, + + + #{maId}, + #{code}, + #{typeId}, + #{maStatus}, + #{leaseScope}, + #{location}, + #{brand}, + #{modelName}, + #{productionDate}, + #{workingHours}, + #{serialNumber}, + #{monthLeasePrice}, + #{dayLeasePrice}, + #{picUrl}, + #{jsMonthPrice}, + #{jsDayPrice}, + #{description}, + #{gpsCode}, + #{ownCo}, + #{createTime}, + #{creator}, + #{deposit}, + #{isActive}, + #{updateTime}, + #{updateBy}, + + + + + update ma_dev_info + + code = #{code}, + type_id = #{typeId}, + ma_status = #{maStatus}, + lease_scope = #{leaseScope}, + location = #{location}, + brand = #{brand}, + model_name = #{modelName}, + production_date = #{productionDate}, + working_hours = #{workingHours}, + serial_number = #{serialNumber}, + month_lease_price = #{monthLeasePrice}, + day_lease_price = #{dayLeasePrice}, + pic_url = #{picUrl}, + js_month_price = #{jsMonthPrice}, + js_day_price = #{jsDayPrice}, + description = #{description}, + gps_code = #{gpsCode}, + own_co = #{ownCo}, + create_time = #{createTime}, + creator = #{creator}, + deposit = #{deposit}, + is_active = #{isActive}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where ma_id = #{maId} + + + + delete from ma_dev_info where ma_id = #{maId} + + + + delete from ma_dev_info where ma_id in + + #{maId} + + + \ No newline at end of file diff --git a/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/FileInfoMapper.xml b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/FileInfoMapper.xml new file mode 100644 index 0000000..253d42f --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/FileInfoMapper.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + select id, ma_id, file_name, file_url, type from ma_file_info + + + + + + + + insert into ma_file_info + + id, + ma_id, + file_name, + file_url, + type, + + + #{id}, + #{maId}, + #{fileName}, + #{fileUrl}, + #{type}, + + + + + update ma_file_info + + ma_id = #{maId}, + file_name = #{fileName}, + file_url = #{fileUrl}, + type = #{type}, + + where id = #{id} + + + + delete from ma_file_info where id = #{id} + + + + delete from ma_file_info where id in + + #{id} + + + \ No newline at end of file diff --git a/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/HotSearchMapper.xml b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/HotSearchMapper.xml new file mode 100644 index 0000000..871fc05 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/HotSearchMapper.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + select id, ma_id, search_num from ma_hot_search + + + + + + + + insert into ma_hot_search + + id, + ma_id, + search_num, + + + #{id}, + #{maId}, + #{searchNum}, + + + + + update ma_hot_search + + ma_id = #{maId}, + search_num = #{searchNum}, + + where id = #{id} + + + + delete from ma_hot_search where id = #{id} + + + + delete from ma_hot_search where id in + + #{id} + + + \ No newline at end of file diff --git a/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/LeaseInfoMapper.xml b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/LeaseInfoMapper.xml new file mode 100644 index 0000000..016ab24 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/LeaseInfoMapper.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + select id, cz_num, qz_num from ma_lease_info + + + + + + + + insert into ma_lease_info + + id, + cz_num, + qz_num, + + + #{id}, + #{czNum}, + #{qzNum}, + + + + + update ma_lease_info + + cz_num = #{czNum}, + qz_num = #{qzNum}, + + where id = #{id} + + + + delete from ma_lease_info where id = #{id} + + + + delete from ma_lease_info where id in + + #{id} + + + \ No newline at end of file diff --git a/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/TypeInfoMapper.xml b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/TypeInfoMapper.xml new file mode 100644 index 0000000..9a1f641 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/TypeInfoMapper.xml @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + select type_id, parent_id, type_name, unit_name, level, sort, is_active, create_time, update_time, update_by from ma_type_info + + + + + + + + insert into ma_type_info + + type_id, + parent_id, + type_name, + unit_name, + level, + sort, + is_active, + create_time, + update_time, + update_by, + + + #{typeId}, + #{parentId}, + #{typeName}, + #{unitName}, + #{level}, + #{sort}, + #{isActive}, + #{createTime}, + #{updateTime}, + #{updateBy}, + + + + + update ma_type_info + + parent_id = #{parentId}, + type_name = #{typeName}, + unit_name = #{unitName}, + level = #{level}, + sort = #{sort}, + is_active = #{isActive}, + create_time = #{createTime}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where type_id = #{typeId} + + + + delete from ma_type_info where type_id = #{typeId} + + + + delete from ma_type_info where type_id in + + #{typeId} + + + \ No newline at end of file diff --git a/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/TypeInfoRecordMapper.xml b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/TypeInfoRecordMapper.xml new file mode 100644 index 0000000..1cfd4dc --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/TypeInfoRecordMapper.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + select type_id, parent_id, type_name, level, sort, is_active, create_time, update_time, update_by from ma_type_info_record + + + + + + + + insert into ma_type_info_record + + type_id, + parent_id, + type_name, + level, + sort, + is_active, + create_time, + update_time, + update_by, + + + #{typeId}, + #{parentId}, + #{typeName}, + #{level}, + #{sort}, + #{isActive}, + #{createTime}, + #{updateTime}, + #{updateBy}, + + + + + update ma_type_info_record + + parent_id = #{parentId}, + type_name = #{typeName}, + level = #{level}, + sort = #{sort}, + is_active = #{isActive}, + create_time = #{createTime}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where type_id = #{typeId} + + + + delete from ma_type_info_record where type_id = #{typeId} + + + + delete from ma_type_info_record where type_id in + + #{typeId} + + + \ No newline at end of file diff --git a/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/UpOffMapper.xml b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/UpOffMapper.xml new file mode 100644 index 0000000..69bbd49 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/UpOffMapper.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + select id, ma_id, apply_time, apply_user, apply_company, type, audit_user, audit_time, status from ma_up_off + + + + + + + + insert into ma_up_off + + id, + ma_id, + apply_time, + apply_user, + apply_company, + type, + audit_user, + audit_time, + status, + + + #{id}, + #{maId}, + #{applyTime}, + #{applyUser}, + #{applyCompany}, + #{type}, + #{auditUser}, + #{auditTime}, + #{status}, + + + + + update ma_up_off + + ma_id = #{maId}, + apply_time = #{applyTime}, + apply_user = #{applyUser}, + apply_company = #{applyCompany}, + type = #{type}, + audit_user = #{auditUser}, + audit_time = #{auditTime}, + status = #{status}, + + where id = #{id} + + + + delete from ma_up_off where id = #{id} + + + + delete from ma_up_off where id in + + #{id} + + + \ No newline at end of file diff --git a/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/UserCollectMapper.xml b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/UserCollectMapper.xml new file mode 100644 index 0000000..1e1b9b5 --- /dev/null +++ b/sgzb-modules/zlpt-equip/src/main/resources/mapper/equip/UserCollectMapper.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + select id, user_id, ma_id, time from ma_user_collect + + + + + + + + insert into ma_user_collect + + id, + user_id, + ma_id, + time, + + + #{id}, + #{userId}, + #{maId}, + #{time}, + + + + + update ma_user_collect + + user_id = #{userId}, + ma_id = #{maId}, + time = #{time}, + + where id = #{id} + + + + delete from ma_user_collect where id = #{id} + + + + delete from ma_user_collect where id in + + #{id} + + + \ No newline at end of file