mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 01:48:47 +08:00
架构及模块接口优化
This commit is contained in:
parent
256f035dc5
commit
77d97e5c67
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.controller;
|
package org.dromara.web.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -17,21 +17,21 @@ import org.dromara.common.core.validate.AddGroup;
|
|||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
import org.dromara.common.log.enums.BusinessType;
|
import org.dromara.common.log.enums.BusinessType;
|
||||||
import org.dromara.common.excel.utils.ExcelUtil;
|
import org.dromara.common.excel.utils.ExcelUtil;
|
||||||
import org.dromara.system.domain.vo.EqAreaVo;
|
import org.dromara.web.domain.vo.EqAreaVo;
|
||||||
import org.dromara.system.domain.bo.EqAreaBo;
|
import org.dromara.web.domain.bo.EqAreaBo;
|
||||||
import org.dromara.system.service.IEqAreaService;
|
import org.dromara.web.service.IEqAreaService;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分布管理
|
* 分布管理
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/area")
|
@RequestMapping("/device/area")
|
||||||
public class EqAreaController extends BaseController {
|
public class EqAreaController extends BaseController {
|
||||||
|
|
||||||
private final IEqAreaService eqAreaService;
|
private final IEqAreaService eqAreaService;
|
||||||
@ -39,7 +39,7 @@ public class EqAreaController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 查询分布管理列表
|
* 查询分布管理列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:area:list")
|
@SaCheckPermission("device:area:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo<EqAreaVo> list(EqAreaBo bo, PageQuery pageQuery) {
|
public TableDataInfo<EqAreaVo> list(EqAreaBo bo, PageQuery pageQuery) {
|
||||||
return eqAreaService.queryPageList(bo, pageQuery);
|
return eqAreaService.queryPageList(bo, pageQuery);
|
||||||
@ -48,7 +48,7 @@ public class EqAreaController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 导出分布管理列表
|
* 导出分布管理列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:area:export")
|
@SaCheckPermission("device:area:export")
|
||||||
@Log(title = "分布管理", businessType = BusinessType.EXPORT)
|
@Log(title = "分布管理", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(EqAreaBo bo, HttpServletResponse response) {
|
public void export(EqAreaBo bo, HttpServletResponse response) {
|
||||||
@ -61,7 +61,7 @@ public class EqAreaController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param areaId 主键
|
* @param areaId 主键
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:area:query")
|
@SaCheckPermission("device:area:query")
|
||||||
@GetMapping("/{areaId}")
|
@GetMapping("/{areaId}")
|
||||||
public R<EqAreaVo> getInfo(@NotNull(message = "主键不能为空")
|
public R<EqAreaVo> getInfo(@NotNull(message = "主键不能为空")
|
||||||
@PathVariable Long areaId) {
|
@PathVariable Long areaId) {
|
||||||
@ -71,7 +71,7 @@ public class EqAreaController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 新增分布管理
|
* 新增分布管理
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:area:add")
|
@SaCheckPermission("device:area:add")
|
||||||
@Log(title = "分布管理", businessType = BusinessType.INSERT)
|
@Log(title = "分布管理", businessType = BusinessType.INSERT)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PostMapping()
|
@PostMapping()
|
||||||
@ -82,7 +82,7 @@ public class EqAreaController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 修改分布管理
|
* 修改分布管理
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:area:edit")
|
@SaCheckPermission("device:area:edit")
|
||||||
@Log(title = "分布管理", businessType = BusinessType.UPDATE)
|
@Log(title = "分布管理", businessType = BusinessType.UPDATE)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PutMapping()
|
@PutMapping()
|
||||||
@ -95,7 +95,7 @@ public class EqAreaController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param areaIds 主键串
|
* @param areaIds 主键串
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:area:remove")
|
@SaCheckPermission("device:area:remove")
|
||||||
@Log(title = "分布管理", businessType = BusinessType.DELETE)
|
@Log(title = "分布管理", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{areaIds}")
|
@DeleteMapping("/{areaIds}")
|
||||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.controller;
|
package org.dromara.web.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -17,21 +17,21 @@ import org.dromara.common.core.validate.AddGroup;
|
|||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
import org.dromara.common.log.enums.BusinessType;
|
import org.dromara.common.log.enums.BusinessType;
|
||||||
import org.dromara.common.excel.utils.ExcelUtil;
|
import org.dromara.common.excel.utils.ExcelUtil;
|
||||||
import org.dromara.system.domain.vo.EqEquipmentVo;
|
import org.dromara.web.domain.vo.EqEquipmentVo;
|
||||||
import org.dromara.system.domain.bo.EqEquipmentBo;
|
import org.dromara.web.domain.bo.EqEquipmentBo;
|
||||||
import org.dromara.system.service.IEqEquipmentService;
|
import org.dromara.web.service.IEqEquipmentService;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备信息
|
* 设备信息
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/equipment")
|
@RequestMapping("/device/equipment")
|
||||||
public class EqEquipmentController extends BaseController {
|
public class EqEquipmentController extends BaseController {
|
||||||
|
|
||||||
private final IEqEquipmentService eqEquipmentService;
|
private final IEqEquipmentService eqEquipmentService;
|
||||||
@ -39,7 +39,7 @@ public class EqEquipmentController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 查询设备信息列表
|
* 查询设备信息列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipment:list")
|
@SaCheckPermission("device:equipment:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo<EqEquipmentVo> list(EqEquipmentBo bo, PageQuery pageQuery) {
|
public TableDataInfo<EqEquipmentVo> list(EqEquipmentBo bo, PageQuery pageQuery) {
|
||||||
return eqEquipmentService.queryPageList(bo, pageQuery);
|
return eqEquipmentService.queryPageList(bo, pageQuery);
|
||||||
@ -48,7 +48,7 @@ public class EqEquipmentController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 导出设备信息列表
|
* 导出设备信息列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipment:export")
|
@SaCheckPermission("device:equipment:export")
|
||||||
@Log(title = "设备信息", businessType = BusinessType.EXPORT)
|
@Log(title = "设备信息", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(EqEquipmentBo bo, HttpServletResponse response) {
|
public void export(EqEquipmentBo bo, HttpServletResponse response) {
|
||||||
@ -61,7 +61,7 @@ public class EqEquipmentController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param equipmentId 主键
|
* @param equipmentId 主键
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipment:query")
|
@SaCheckPermission("device:equipment:query")
|
||||||
@GetMapping("/{equipmentId}")
|
@GetMapping("/{equipmentId}")
|
||||||
public R<EqEquipmentVo> getInfo(@NotNull(message = "主键不能为空")
|
public R<EqEquipmentVo> getInfo(@NotNull(message = "主键不能为空")
|
||||||
@PathVariable Long equipmentId) {
|
@PathVariable Long equipmentId) {
|
||||||
@ -71,7 +71,7 @@ public class EqEquipmentController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 新增设备信息
|
* 新增设备信息
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipment:add")
|
@SaCheckPermission("device:equipment:add")
|
||||||
@Log(title = "设备信息", businessType = BusinessType.INSERT)
|
@Log(title = "设备信息", businessType = BusinessType.INSERT)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PostMapping()
|
@PostMapping()
|
||||||
@ -82,7 +82,7 @@ public class EqEquipmentController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 修改设备信息
|
* 修改设备信息
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipment:edit")
|
@SaCheckPermission("device:equipment:edit")
|
||||||
@Log(title = "设备信息", businessType = BusinessType.UPDATE)
|
@Log(title = "设备信息", businessType = BusinessType.UPDATE)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PutMapping()
|
@PutMapping()
|
||||||
@ -95,7 +95,7 @@ public class EqEquipmentController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param equipmentIds 主键串
|
* @param equipmentIds 主键串
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipment:remove")
|
@SaCheckPermission("device:equipment:remove")
|
||||||
@Log(title = "设备信息", businessType = BusinessType.DELETE)
|
@Log(title = "设备信息", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{equipmentIds}")
|
@DeleteMapping("/{equipmentIds}")
|
||||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.controller;
|
package org.dromara.web.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -17,21 +17,21 @@ import org.dromara.common.core.validate.AddGroup;
|
|||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
import org.dromara.common.log.enums.BusinessType;
|
import org.dromara.common.log.enums.BusinessType;
|
||||||
import org.dromara.common.excel.utils.ExcelUtil;
|
import org.dromara.common.excel.utils.ExcelUtil;
|
||||||
import org.dromara.system.domain.vo.EqEquipmentLogVo;
|
import org.dromara.web.domain.vo.EqEquipmentLogVo;
|
||||||
import org.dromara.system.domain.bo.EqEquipmentLogBo;
|
import org.dromara.web.domain.bo.EqEquipmentLogBo;
|
||||||
import org.dromara.system.service.IEqEquipmentLogService;
|
import org.dromara.web.service.IEqEquipmentLogService;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备状态日志
|
* 设备状态日志
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/equipmentLog")
|
@RequestMapping("/device/equipmentLog")
|
||||||
public class EqEquipmentLogController extends BaseController {
|
public class EqEquipmentLogController extends BaseController {
|
||||||
|
|
||||||
private final IEqEquipmentLogService eqEquipmentLogService;
|
private final IEqEquipmentLogService eqEquipmentLogService;
|
||||||
@ -39,7 +39,7 @@ public class EqEquipmentLogController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 查询设备状态日志列表
|
* 查询设备状态日志列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipmentLog:list")
|
@SaCheckPermission("device:equipmentLog:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo<EqEquipmentLogVo> list(EqEquipmentLogBo bo, PageQuery pageQuery) {
|
public TableDataInfo<EqEquipmentLogVo> list(EqEquipmentLogBo bo, PageQuery pageQuery) {
|
||||||
return eqEquipmentLogService.queryPageList(bo, pageQuery);
|
return eqEquipmentLogService.queryPageList(bo, pageQuery);
|
||||||
@ -48,7 +48,7 @@ public class EqEquipmentLogController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 导出设备状态日志列表
|
* 导出设备状态日志列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipmentLog:export")
|
@SaCheckPermission("device:equipmentLog:export")
|
||||||
@Log(title = "设备状态日志", businessType = BusinessType.EXPORT)
|
@Log(title = "设备状态日志", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(EqEquipmentLogBo bo, HttpServletResponse response) {
|
public void export(EqEquipmentLogBo bo, HttpServletResponse response) {
|
||||||
@ -61,7 +61,7 @@ public class EqEquipmentLogController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param logId 主键
|
* @param logId 主键
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipmentLog:query")
|
@SaCheckPermission("device:equipmentLog:query")
|
||||||
@GetMapping("/{logId}")
|
@GetMapping("/{logId}")
|
||||||
public R<EqEquipmentLogVo> getInfo(@NotNull(message = "主键不能为空")
|
public R<EqEquipmentLogVo> getInfo(@NotNull(message = "主键不能为空")
|
||||||
@PathVariable Long logId) {
|
@PathVariable Long logId) {
|
||||||
@ -71,7 +71,7 @@ public class EqEquipmentLogController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 新增设备状态日志
|
* 新增设备状态日志
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipmentLog:add")
|
@SaCheckPermission("device:equipmentLog:add")
|
||||||
@Log(title = "设备状态日志", businessType = BusinessType.INSERT)
|
@Log(title = "设备状态日志", businessType = BusinessType.INSERT)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PostMapping()
|
@PostMapping()
|
||||||
@ -82,7 +82,7 @@ public class EqEquipmentLogController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 修改设备状态日志
|
* 修改设备状态日志
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipmentLog:edit")
|
@SaCheckPermission("device:equipmentLog:edit")
|
||||||
@Log(title = "设备状态日志", businessType = BusinessType.UPDATE)
|
@Log(title = "设备状态日志", businessType = BusinessType.UPDATE)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PutMapping()
|
@PutMapping()
|
||||||
@ -95,7 +95,7 @@ public class EqEquipmentLogController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param logIds 主键串
|
* @param logIds 主键串
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:equipmentLog:remove")
|
@SaCheckPermission("device:equipmentLog:remove")
|
||||||
@Log(title = "设备状态日志", businessType = BusinessType.DELETE)
|
@Log(title = "设备状态日志", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{logIds}")
|
@DeleteMapping("/{logIds}")
|
||||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.controller;
|
package org.dromara.web.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -17,51 +17,51 @@ import org.dromara.common.core.validate.AddGroup;
|
|||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
import org.dromara.common.log.enums.BusinessType;
|
import org.dromara.common.log.enums.BusinessType;
|
||||||
import org.dromara.common.excel.utils.ExcelUtil;
|
import org.dromara.common.excel.utils.ExcelUtil;
|
||||||
import org.dromara.system.domain.vo.EqFamilyVo;
|
import org.dromara.web.domain.vo.EqFamilyVo;
|
||||||
import org.dromara.system.domain.bo.EqFamilyBo;
|
import org.dromara.web.domain.bo.EqFamilyBo;
|
||||||
import org.dromara.system.service.IEqFamilyService;
|
import org.dromara.web.service.IEqFamilyService;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 家庭管理
|
* 我的家庭
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/family")
|
@RequestMapping("/device/family")
|
||||||
public class EqFamilyController extends BaseController {
|
public class EqFamilyController extends BaseController {
|
||||||
|
|
||||||
private final IEqFamilyService eqFamilyService;
|
private final IEqFamilyService eqFamilyService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询家庭管理列表
|
* 查询我的家庭列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:family:list")
|
@SaCheckPermission("device:family:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo<EqFamilyVo> list(EqFamilyBo bo, PageQuery pageQuery) {
|
public TableDataInfo<EqFamilyVo> list(EqFamilyBo bo, PageQuery pageQuery) {
|
||||||
return eqFamilyService.queryPageList(bo, pageQuery);
|
return eqFamilyService.queryPageList(bo, pageQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导出家庭管理列表
|
* 导出我的家庭列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:family:export")
|
@SaCheckPermission("device:family:export")
|
||||||
@Log(title = "家庭管理", businessType = BusinessType.EXPORT)
|
@Log(title = "我的家庭", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(EqFamilyBo bo, HttpServletResponse response) {
|
public void export(EqFamilyBo bo, HttpServletResponse response) {
|
||||||
List<EqFamilyVo> list = eqFamilyService.queryList(bo);
|
List<EqFamilyVo> list = eqFamilyService.queryList(bo);
|
||||||
ExcelUtil.exportExcel(list, "家庭管理", EqFamilyVo.class, response);
|
ExcelUtil.exportExcel(list, "我的家庭", EqFamilyVo.class, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取家庭管理详细信息
|
* 获取我的家庭详细信息
|
||||||
*
|
*
|
||||||
* @param familyId 主键
|
* @param familyId 主键
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:family:query")
|
@SaCheckPermission("device:family:query")
|
||||||
@GetMapping("/{familyId}")
|
@GetMapping("/{familyId}")
|
||||||
public R<EqFamilyVo> getInfo(@NotNull(message = "主键不能为空")
|
public R<EqFamilyVo> getInfo(@NotNull(message = "主键不能为空")
|
||||||
@PathVariable Long familyId) {
|
@PathVariable Long familyId) {
|
||||||
@ -69,10 +69,10 @@ public class EqFamilyController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增家庭管理
|
* 新增我的家庭
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:family:add")
|
@SaCheckPermission("device:family:add")
|
||||||
@Log(title = "家庭管理", businessType = BusinessType.INSERT)
|
@Log(title = "我的家庭", businessType = BusinessType.INSERT)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PostMapping()
|
@PostMapping()
|
||||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody EqFamilyBo bo) {
|
public R<Void> add(@Validated(AddGroup.class) @RequestBody EqFamilyBo bo) {
|
||||||
@ -80,10 +80,10 @@ public class EqFamilyController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改家庭管理
|
* 修改我的家庭
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:family:edit")
|
@SaCheckPermission("device:family:edit")
|
||||||
@Log(title = "家庭管理", businessType = BusinessType.UPDATE)
|
@Log(title = "我的家庭", businessType = BusinessType.UPDATE)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PutMapping()
|
@PutMapping()
|
||||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody EqFamilyBo bo) {
|
public R<Void> edit(@Validated(EditGroup.class) @RequestBody EqFamilyBo bo) {
|
||||||
@ -91,12 +91,12 @@ public class EqFamilyController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除家庭管理
|
* 删除我的家庭
|
||||||
*
|
*
|
||||||
* @param familyIds 主键串
|
* @param familyIds 主键串
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:family:remove")
|
@SaCheckPermission("device:family:remove")
|
||||||
@Log(title = "家庭管理", businessType = BusinessType.DELETE)
|
@Log(title = "我的家庭", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{familyIds}")
|
@DeleteMapping("/{familyIds}")
|
||||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||||
@PathVariable Long[] familyIds) {
|
@PathVariable Long[] familyIds) {
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.controller;
|
package org.dromara.web.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -17,21 +17,21 @@ import org.dromara.common.core.validate.AddGroup;
|
|||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
import org.dromara.common.log.enums.BusinessType;
|
import org.dromara.common.log.enums.BusinessType;
|
||||||
import org.dromara.common.excel.utils.ExcelUtil;
|
import org.dromara.common.excel.utils.ExcelUtil;
|
||||||
import org.dromara.system.domain.vo.EqShareVo;
|
import org.dromara.web.domain.vo.EqShareVo;
|
||||||
import org.dromara.system.domain.bo.EqShareBo;
|
import org.dromara.web.domain.bo.EqShareBo;
|
||||||
import org.dromara.system.service.IEqShareService;
|
import org.dromara.web.service.IEqShareService;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分享
|
* 分享
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/share")
|
@RequestMapping("/device/share")
|
||||||
public class EqShareController extends BaseController {
|
public class EqShareController extends BaseController {
|
||||||
|
|
||||||
private final IEqShareService eqShareService;
|
private final IEqShareService eqShareService;
|
||||||
@ -39,7 +39,7 @@ public class EqShareController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 查询分享列表
|
* 查询分享列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:share:list")
|
@SaCheckPermission("device:share:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo<EqShareVo> list(EqShareBo bo, PageQuery pageQuery) {
|
public TableDataInfo<EqShareVo> list(EqShareBo bo, PageQuery pageQuery) {
|
||||||
return eqShareService.queryPageList(bo, pageQuery);
|
return eqShareService.queryPageList(bo, pageQuery);
|
||||||
@ -48,7 +48,7 @@ public class EqShareController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 导出分享列表
|
* 导出分享列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:share:export")
|
@SaCheckPermission("device:share:export")
|
||||||
@Log(title = "分享", businessType = BusinessType.EXPORT)
|
@Log(title = "分享", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(EqShareBo bo, HttpServletResponse response) {
|
public void export(EqShareBo bo, HttpServletResponse response) {
|
||||||
@ -61,7 +61,7 @@ public class EqShareController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param shareId 主键
|
* @param shareId 主键
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:share:query")
|
@SaCheckPermission("device:share:query")
|
||||||
@GetMapping("/{shareId}")
|
@GetMapping("/{shareId}")
|
||||||
public R<EqShareVo> getInfo(@NotNull(message = "主键不能为空")
|
public R<EqShareVo> getInfo(@NotNull(message = "主键不能为空")
|
||||||
@PathVariable Long shareId) {
|
@PathVariable Long shareId) {
|
||||||
@ -71,7 +71,7 @@ public class EqShareController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 新增分享
|
* 新增分享
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:share:add")
|
@SaCheckPermission("device:share:add")
|
||||||
@Log(title = "分享", businessType = BusinessType.INSERT)
|
@Log(title = "分享", businessType = BusinessType.INSERT)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PostMapping()
|
@PostMapping()
|
||||||
@ -82,7 +82,7 @@ public class EqShareController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 修改分享
|
* 修改分享
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:share:edit")
|
@SaCheckPermission("device:share:edit")
|
||||||
@Log(title = "分享", businessType = BusinessType.UPDATE)
|
@Log(title = "分享", businessType = BusinessType.UPDATE)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PutMapping()
|
@PutMapping()
|
||||||
@ -95,7 +95,7 @@ public class EqShareController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param shareIds 主键串
|
* @param shareIds 主键串
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:share:remove")
|
@SaCheckPermission("device:share:remove")
|
||||||
@Log(title = "分享", businessType = BusinessType.DELETE)
|
@Log(title = "分享", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{shareIds}")
|
@DeleteMapping("/{shareIds}")
|
||||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.controller;
|
package org.dromara.web.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -17,21 +17,21 @@ import org.dromara.common.core.validate.AddGroup;
|
|||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
import org.dromara.common.log.enums.BusinessType;
|
import org.dromara.common.log.enums.BusinessType;
|
||||||
import org.dromara.common.excel.utils.ExcelUtil;
|
import org.dromara.common.excel.utils.ExcelUtil;
|
||||||
import org.dromara.system.domain.vo.EqUserConfigVo;
|
import org.dromara.web.domain.vo.EqUserConfigVo;
|
||||||
import org.dromara.system.domain.bo.EqUserConfigBo;
|
import org.dromara.web.domain.bo.EqUserConfigBo;
|
||||||
import org.dromara.system.service.IEqUserConfigService;
|
import org.dromara.web.service.IEqUserConfigService;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户配置
|
* 用户配置
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/userConfig")
|
@RequestMapping("/device/userConfig")
|
||||||
public class EqUserConfigController extends BaseController {
|
public class EqUserConfigController extends BaseController {
|
||||||
|
|
||||||
private final IEqUserConfigService eqUserConfigService;
|
private final IEqUserConfigService eqUserConfigService;
|
||||||
@ -39,7 +39,7 @@ public class EqUserConfigController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 查询用户配置列表
|
* 查询用户配置列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:userConfig:list")
|
@SaCheckPermission("device:userConfig:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo<EqUserConfigVo> list(EqUserConfigBo bo, PageQuery pageQuery) {
|
public TableDataInfo<EqUserConfigVo> list(EqUserConfigBo bo, PageQuery pageQuery) {
|
||||||
return eqUserConfigService.queryPageList(bo, pageQuery);
|
return eqUserConfigService.queryPageList(bo, pageQuery);
|
||||||
@ -48,7 +48,7 @@ public class EqUserConfigController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 导出用户配置列表
|
* 导出用户配置列表
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:userConfig:export")
|
@SaCheckPermission("device:userConfig:export")
|
||||||
@Log(title = "用户配置", businessType = BusinessType.EXPORT)
|
@Log(title = "用户配置", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(EqUserConfigBo bo, HttpServletResponse response) {
|
public void export(EqUserConfigBo bo, HttpServletResponse response) {
|
||||||
@ -61,7 +61,7 @@ public class EqUserConfigController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param configId 主键
|
* @param configId 主键
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:userConfig:query")
|
@SaCheckPermission("device:userConfig:query")
|
||||||
@GetMapping("/{configId}")
|
@GetMapping("/{configId}")
|
||||||
public R<EqUserConfigVo> getInfo(@NotNull(message = "主键不能为空")
|
public R<EqUserConfigVo> getInfo(@NotNull(message = "主键不能为空")
|
||||||
@PathVariable Long configId) {
|
@PathVariable Long configId) {
|
||||||
@ -71,7 +71,7 @@ public class EqUserConfigController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 新增用户配置
|
* 新增用户配置
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:userConfig:add")
|
@SaCheckPermission("device:userConfig:add")
|
||||||
@Log(title = "用户配置", businessType = BusinessType.INSERT)
|
@Log(title = "用户配置", businessType = BusinessType.INSERT)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PostMapping()
|
@PostMapping()
|
||||||
@ -82,7 +82,7 @@ public class EqUserConfigController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 修改用户配置
|
* 修改用户配置
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:userConfig:edit")
|
@SaCheckPermission("device:userConfig:edit")
|
||||||
@Log(title = "用户配置", businessType = BusinessType.UPDATE)
|
@Log(title = "用户配置", businessType = BusinessType.UPDATE)
|
||||||
@RepeatSubmit()
|
@RepeatSubmit()
|
||||||
@PutMapping()
|
@PutMapping()
|
||||||
@ -95,7 +95,7 @@ public class EqUserConfigController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @param configIds 主键串
|
* @param configIds 主键串
|
||||||
*/
|
*/
|
||||||
@SaCheckPermission("system:userConfig:remove")
|
@SaCheckPermission("device:userConfig:remove")
|
||||||
@Log(title = "用户配置", businessType = BusinessType.DELETE)
|
@Log(title = "用户配置", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{configIds}")
|
@DeleteMapping("/{configIds}")
|
||||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||||
@ -1,26 +1,18 @@
|
|||||||
package org.dromara.system.controller.app;
|
package org.dromara.web.controller.app;
|
||||||
|
|
||||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
|
||||||
import jakarta.validation.constraints.NotEmpty;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.dromara.common.core.domain.R;
|
import org.dromara.common.core.domain.R;
|
||||||
import org.dromara.common.core.domain.model.LoginUser;
|
|
||||||
import org.dromara.common.core.exception.ServiceException;
|
import org.dromara.common.core.exception.ServiceException;
|
||||||
import org.dromara.common.core.validate.AddGroup;
|
|
||||||
import org.dromara.common.core.validate.EditGroup;
|
|
||||||
import org.dromara.common.excel.utils.ExcelUtil;
|
|
||||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
||||||
import org.dromara.common.log.annotation.Log;
|
|
||||||
import org.dromara.common.log.enums.BusinessType;
|
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
import org.dromara.common.satoken.utils.LoginHelper;
|
import org.dromara.common.satoken.utils.LoginHelper;
|
||||||
import org.dromara.common.web.core.BaseController;
|
import org.dromara.common.web.core.BaseController;
|
||||||
import org.dromara.system.domain.bo.*;
|
import org.dromara.system.domain.vo.SysUserVo;
|
||||||
import org.dromara.system.domain.vo.*;
|
import org.dromara.system.service.ISysUserService;
|
||||||
import org.dromara.system.service.*;
|
import org.dromara.web.domain.bo.*;
|
||||||
|
import org.dromara.web.domain.vo.*;
|
||||||
|
import org.dromara.web.service.*;
|
||||||
|
import org.dromara.web.domain.bo.EqAppHomeBo;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@ -42,8 +34,6 @@ public class EqHomeController extends BaseController {
|
|||||||
|
|
||||||
private final IEqAreaService eqAreaService;
|
private final IEqAreaService eqAreaService;
|
||||||
|
|
||||||
private final IEqAreaEquipmentService eqAreaEquipmentService;
|
|
||||||
|
|
||||||
private final IEqEquipmentService eqEquipmentService;
|
private final IEqEquipmentService eqEquipmentService;
|
||||||
|
|
||||||
private final IEqShareService shareService;
|
private final IEqShareService shareService;
|
||||||
@ -87,15 +77,6 @@ public class EqHomeController extends BaseController {
|
|||||||
EqEquipmentBo eqEquipmentBo = new EqEquipmentBo();
|
EqEquipmentBo eqEquipmentBo = new EqEquipmentBo();
|
||||||
eqEquipmentBo.setCreateBy(bo.getUserId());
|
eqEquipmentBo.setCreateBy(bo.getUserId());
|
||||||
return eqEquipmentService.queryPageList(eqEquipmentBo, pageQuery); //在设备表中增加了分布id
|
return eqEquipmentService.queryPageList(eqEquipmentBo, pageQuery); //在设备表中增加了分布id
|
||||||
/*if (bo.getAreaId() == null){ //无设备分布
|
|
||||||
EqEquipmentBo eqEquipmentBo = new EqEquipmentBo();
|
|
||||||
eqEquipmentBo.setCreateBy(bo.getUserId());
|
|
||||||
return eqEquipmentService.queryPageList(eqEquipmentBo, pageQuery);
|
|
||||||
}else{
|
|
||||||
EqAreaEquipmentBo eqAreaEquipmentBo = new EqAreaEquipmentBo();
|
|
||||||
eqAreaEquipmentBo.setAreaId(bo.getAreaId());
|
|
||||||
return eqAreaEquipmentService.selectPageEquipmentList(bo, pageQuery);
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.domain;
|
package org.dromara.web.domain;
|
||||||
|
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
@ -10,8 +10,8 @@ import java.io.Serial;
|
|||||||
/**
|
/**
|
||||||
* 分布管理对象 eq_area
|
* 分布管理对象 eq_area
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -33,7 +33,7 @@ public class EqArea extends BaseEntity {
|
|||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分布位置名称
|
* 分布名称
|
||||||
*/
|
*/
|
||||||
private String areaName;
|
private String areaName;
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.domain;
|
package org.dromara.web.domain;
|
||||||
|
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
@ -12,8 +12,8 @@ import java.io.Serial;
|
|||||||
/**
|
/**
|
||||||
* 设备信息对象 eq_equipment
|
* 设备信息对象 eq_equipment
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -30,30 +30,45 @@ public class EqEquipment extends BaseEntity {
|
|||||||
private Long equipmentId;
|
private Long equipmentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备类型(0 卷帘门)
|
* 分布id
|
||||||
|
*/
|
||||||
|
private Long areaId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备类型
|
||||||
*/
|
*/
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 绑定账号,即登录账号
|
* 登录账号
|
||||||
*/
|
*/
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 绑定人,即登录账号昵称
|
* 账号昵称
|
||||||
*/
|
*/
|
||||||
private String nickName;
|
private String nickName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备编码,唯一
|
* 设备编码
|
||||||
*/
|
*/
|
||||||
private String equipmentCode;
|
private String equipmentCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备状态(1:开门停止 2:关门停止 3:开门故障停止 4:关门故障停止 5:开门故障反弹 6:关门故障反弹 )
|
* 设备名称
|
||||||
|
*/
|
||||||
|
private String equipmentName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备状态
|
||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 故障状态
|
||||||
|
*/
|
||||||
|
private Integer faultStatus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 离线状态
|
* 离线状态
|
||||||
*/
|
*/
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.domain;
|
package org.dromara.web.domain;
|
||||||
|
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
@ -12,8 +12,8 @@ import java.io.Serial;
|
|||||||
/**
|
/**
|
||||||
* 设备状态日志对象 eq_equipment_log
|
* 设备状态日志对象 eq_equipment_log
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -29,31 +29,46 @@ public class EqEquipmentLog extends BaseEntity {
|
|||||||
@TableId(value = "log_id")
|
@TableId(value = "log_id")
|
||||||
private Long logId;
|
private Long logId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户id
|
||||||
|
*/
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备ID
|
* 设备ID
|
||||||
*/
|
*/
|
||||||
private Long equipmentId;
|
private Long equipmentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间(年月日时分秒)
|
* 设备编码
|
||||||
*/
|
*/
|
||||||
private Date createdDatetime;
|
private String equipmentCode;
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建年月日
|
|
||||||
*/
|
|
||||||
private Date createdYearDay;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时分秒
|
|
||||||
*/
|
|
||||||
private Date createdHourSecond;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 故障状态
|
||||||
|
*/
|
||||||
|
private Integer faultStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 离线状态
|
||||||
|
*/
|
||||||
|
private Integer lineStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 年月日
|
||||||
|
*/
|
||||||
|
private Date createdYearDay;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 时分秒
|
||||||
|
*/
|
||||||
|
private Date createdHourSecond;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 星期几
|
* 星期几
|
||||||
*/
|
*/
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.domain;
|
package org.dromara.web.domain;
|
||||||
|
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
@ -8,10 +8,10 @@ import lombok.EqualsAndHashCode;
|
|||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 家庭管理对象 eq_family
|
* 我的家庭对象 eq_family
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.domain;
|
package org.dromara.web.domain;
|
||||||
|
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
@ -10,8 +10,8 @@ import java.io.Serial;
|
|||||||
/**
|
/**
|
||||||
* 分享对象 eq_share
|
* 分享对象 eq_share
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -28,22 +28,22 @@ public class EqShare extends BaseEntity {
|
|||||||
private Long shareId;
|
private Long shareId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分享者用户ID
|
* 分享者ID
|
||||||
*/
|
*/
|
||||||
private Long shareUserId;
|
private Long shareUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分享者用户名称
|
* 分享者名称
|
||||||
*/
|
*/
|
||||||
private String shareUserName;
|
private String shareUserName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 被分享者用户ID
|
* 被分享者ID
|
||||||
*/
|
*/
|
||||||
private Long sharedUserId;
|
private Long sharedUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 被分享者用户名称
|
* 被分享者名称
|
||||||
*/
|
*/
|
||||||
private String sharedUserName;
|
private String sharedUserName;
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.domain;
|
package org.dromara.web.domain;
|
||||||
|
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
@ -10,8 +10,8 @@ import java.io.Serial;
|
|||||||
/**
|
/**
|
||||||
* 用户配置对象 eq_user_config
|
* 用户配置对象 eq_user_config
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -1,12 +1,7 @@
|
|||||||
package org.dromara.system.domain.bo;
|
package org.dromara.web.domain.bo;
|
||||||
|
|
||||||
import io.github.linpeilie.annotations.AutoMapper;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import org.dromara.system.domain.EqEquipment;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName : EqAppHomeBo
|
* @ClassName : EqAppHomeBo
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package org.dromara.system.domain.bo;
|
package org.dromara.web.domain.bo;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqArea;
|
import org.dromara.web.domain.EqArea;
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import org.dromara.common.core.validate.AddGroup;
|
import org.dromara.common.core.validate.AddGroup;
|
||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
@ -12,8 +12,8 @@ import jakarta.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* 分布管理业务对象 eq_area
|
* 分布管理业务对象 eq_area
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -33,9 +33,9 @@ public class EqAreaBo extends BaseEntity {
|
|||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分布位置名称
|
* 分布名称
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "分布位置名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotBlank(message = "分布名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private String areaName;
|
private String areaName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package org.dromara.system.domain.bo;
|
package org.dromara.web.domain.bo;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqEquipment;
|
import org.dromara.web.domain.EqEquipment;
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import org.dromara.common.core.validate.AddGroup;
|
import org.dromara.common.core.validate.AddGroup;
|
||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|||||||
/**
|
/**
|
||||||
* 设备信息业务对象 eq_equipment
|
* 设备信息业务对象 eq_equipment
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -29,35 +29,53 @@ public class EqEquipmentBo extends BaseEntity {
|
|||||||
private Long equipmentId;
|
private Long equipmentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备类型(0 卷帘门)
|
* 分布id
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "设备类型(0 卷帘门)不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotNull(message = "分布id不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
|
private Long areaId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备类型
|
||||||
|
*/
|
||||||
|
@NotNull(message = "设备类型不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 绑定账号,即登录账号
|
* 登录账号
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "绑定账号,即登录账号不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotBlank(message = "登录账号不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 绑定人,即登录账号昵称
|
* 账号昵称
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "绑定人,即登录账号昵称不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotBlank(message = "账号昵称不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private String nickName;
|
private String nickName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备编码,唯一
|
* 设备编码
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "设备编码,唯一不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotBlank(message = "设备编码不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private String equipmentCode;
|
private String equipmentCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备状态(1:开门停止 2:关门停止 3:开门故障停止 4:关门故障停止 5:开门故障反弹 6:关门故障反弹 )
|
* 设备名称
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "设备状态(1:开门停止 2:关门停止 3:开门故障停止 4:关门故障停止 5:开门故障反弹 6:关门故障反弹 )不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotBlank(message = "设备名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
|
private String equipmentName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备状态
|
||||||
|
*/
|
||||||
|
@NotNull(message = "设备状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 故障状态
|
||||||
|
*/
|
||||||
|
@NotNull(message = "故障状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
|
private Integer faultStatus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 离线状态
|
* 离线状态
|
||||||
*/
|
*/
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package org.dromara.system.domain.bo;
|
package org.dromara.web.domain.bo;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqEquipmentLog;
|
import org.dromara.web.domain.EqEquipmentLog;
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import org.dromara.common.core.validate.AddGroup;
|
import org.dromara.common.core.validate.AddGroup;
|
||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|||||||
/**
|
/**
|
||||||
* 设备状态日志业务对象 eq_equipment_log
|
* 设备状态日志业务对象 eq_equipment_log
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -28,6 +28,12 @@ public class EqEquipmentLogBo extends BaseEntity {
|
|||||||
@NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
|
@NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
|
||||||
private Long logId;
|
private Long logId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户id
|
||||||
|
*/
|
||||||
|
@NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备ID
|
* 设备ID
|
||||||
*/
|
*/
|
||||||
@ -35,22 +41,10 @@ public class EqEquipmentLogBo extends BaseEntity {
|
|||||||
private Long equipmentId;
|
private Long equipmentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间(年月日时分秒)
|
* 设备编码
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "创建时间(年月日时分秒)不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotBlank(message = "设备编码不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private Date createdDatetime;
|
private String equipmentCode;
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建年月日
|
|
||||||
*/
|
|
||||||
@NotNull(message = "创建年月日不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Date createdYearDay;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时分秒
|
|
||||||
*/
|
|
||||||
@NotNull(message = "创建时分秒不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Date createdHourSecond;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
@ -58,6 +52,30 @@ public class EqEquipmentLogBo extends BaseEntity {
|
|||||||
@NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 故障状态
|
||||||
|
*/
|
||||||
|
@NotNull(message = "故障状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
|
private Integer faultStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 离线状态
|
||||||
|
*/
|
||||||
|
@NotNull(message = "离线状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
|
private Integer lineStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 年月日
|
||||||
|
*/
|
||||||
|
@NotNull(message = "年月日不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
|
private Date createdYearDay;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 时分秒
|
||||||
|
*/
|
||||||
|
@NotNull(message = "时分秒不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
|
private Date createdHourSecond;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 星期几
|
* 星期几
|
||||||
*/
|
*/
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package org.dromara.system.domain.bo;
|
package org.dromara.web.domain.bo;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqFamily;
|
import org.dromara.web.domain.EqFamily;
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import org.dromara.common.core.validate.AddGroup;
|
import org.dromara.common.core.validate.AddGroup;
|
||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
@ -10,10 +10,10 @@ import lombok.EqualsAndHashCode;
|
|||||||
import jakarta.validation.constraints.*;
|
import jakarta.validation.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 家庭管理业务对象 eq_family
|
* 我的家庭业务对象 eq_family
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package org.dromara.system.domain.bo;
|
package org.dromara.web.domain.bo;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqShare;
|
import org.dromara.web.domain.EqShare;
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import org.dromara.common.core.validate.AddGroup;
|
import org.dromara.common.core.validate.AddGroup;
|
||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
@ -12,8 +12,8 @@ import jakarta.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* 分享业务对象 eq_share
|
* 分享业务对象 eq_share
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -27,27 +27,27 @@ public class EqShareBo extends BaseEntity {
|
|||||||
private Long shareId;
|
private Long shareId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分享者用户ID
|
* 分享者ID
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "分享者用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotNull(message = "分享者ID不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private Long shareUserId;
|
private Long shareUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分享者用户名称
|
* 分享者名称
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "分享者用户名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotBlank(message = "分享者名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private String shareUserName;
|
private String shareUserName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 被分享者用户ID
|
* 被分享者ID
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "被分享者用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotNull(message = "被分享者ID不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private Long sharedUserId;
|
private Long sharedUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 被分享者用户名称
|
* 被分享者名称
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "被分享者用户名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotBlank(message = "被分享者名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private String sharedUserName;
|
private String sharedUserName;
|
||||||
|
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package org.dromara.system.domain.bo;
|
package org.dromara.web.domain.bo;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqUserConfig;
|
import org.dromara.web.domain.EqUserConfig;
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||||
import org.dromara.common.core.validate.AddGroup;
|
import org.dromara.common.core.validate.AddGroup;
|
||||||
import org.dromara.common.core.validate.EditGroup;
|
import org.dromara.common.core.validate.EditGroup;
|
||||||
@ -12,8 +12,8 @@ import jakarta.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* 用户配置业务对象 eq_user_config
|
* 用户配置业务对象 eq_user_config
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package org.dromara.system.domain.vo;
|
package org.dromara.web.domain.vo;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqArea;
|
import org.dromara.web.domain.EqArea;
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
||||||
@ -17,8 +17,8 @@ import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
* 分布管理视图对象 eq_area
|
* 分布管理视图对象 eq_area
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
@ -41,9 +41,9 @@ public class EqAreaVo implements Serializable {
|
|||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分布位置名称
|
* 分布名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "分布位置名称")
|
@ExcelProperty(value = "分布名称")
|
||||||
private String areaName;
|
private String areaName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1,8 +1,8 @@
|
|||||||
package org.dromara.system.domain.vo;
|
package org.dromara.web.domain.vo;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import org.dromara.system.domain.EqEquipmentLog;
|
import org.dromara.web.domain.EqEquipmentLog;
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
||||||
@ -19,8 +19,8 @@ import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
* 设备状态日志视图对象 eq_equipment_log
|
* 设备状态日志视图对象 eq_equipment_log
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
@ -36,6 +36,12 @@ public class EqEquipmentLogVo implements Serializable {
|
|||||||
@ExcelProperty(value = "主键ID")
|
@ExcelProperty(value = "主键ID")
|
||||||
private Long logId;
|
private Long logId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户id
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "用户id")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备ID
|
* 设备ID
|
||||||
*/
|
*/
|
||||||
@ -43,23 +49,10 @@ public class EqEquipmentLogVo implements Serializable {
|
|||||||
private Long equipmentId;
|
private Long equipmentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间(年月日时分秒)
|
* 设备编码
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "创建时间", converter = ExcelDictConvert.class)
|
@ExcelProperty(value = "设备编码")
|
||||||
@ExcelDictFormat(readConverterExp = "年=月日时分秒")
|
private String equipmentCode;
|
||||||
private Date createdDatetime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建年月日
|
|
||||||
*/
|
|
||||||
@ExcelProperty(value = "创建年月日")
|
|
||||||
private Date createdYearDay;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时分秒
|
|
||||||
*/
|
|
||||||
@ExcelProperty(value = "创建时分秒")
|
|
||||||
private Date createdHourSecond;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
@ -68,6 +61,32 @@ public class EqEquipmentLogVo implements Serializable {
|
|||||||
@ExcelDictFormat(dictType = "eq_status_type")
|
@ExcelDictFormat(dictType = "eq_status_type")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 故障状态
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "故障状态", converter = ExcelDictConvert.class)
|
||||||
|
@ExcelDictFormat(dictType = "eq_fault_status")
|
||||||
|
private Integer faultStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 离线状态
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "离线状态", converter = ExcelDictConvert.class)
|
||||||
|
@ExcelDictFormat(dictType = "eq_line_status")
|
||||||
|
private Integer lineStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 年月日
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "年月日")
|
||||||
|
private Date createdYearDay;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 时分秒
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "时分秒")
|
||||||
|
private Date createdHourSecond;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 星期几
|
* 星期几
|
||||||
*/
|
*/
|
||||||
@ -1,8 +1,8 @@
|
|||||||
package org.dromara.system.domain.vo;
|
package org.dromara.web.domain.vo;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import org.dromara.system.domain.EqEquipment;
|
import org.dromara.web.domain.EqEquipment;
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
||||||
@ -19,8 +19,8 @@ import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
* 设备信息视图对象 eq_equipment
|
* 设备信息视图对象 eq_equipment
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
@ -37,37 +37,56 @@ public class EqEquipmentVo implements Serializable {
|
|||||||
private Long equipmentId;
|
private Long equipmentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备类型(0 卷帘门)
|
* 分布id
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "设备类型(0 卷帘门)", converter = ExcelDictConvert.class)
|
@ExcelProperty(value = "分布id")
|
||||||
|
private Long areaId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备类型
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "设备类型", converter = ExcelDictConvert.class)
|
||||||
@ExcelDictFormat(dictType = "eq_equipment_type")
|
@ExcelDictFormat(dictType = "eq_equipment_type")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 绑定账号,即登录账号
|
* 登录账号
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "绑定账号,即登录账号")
|
@ExcelProperty(value = "登录账号")
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 绑定人,即登录账号昵称
|
* 账号昵称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "绑定人,即登录账号昵称")
|
@ExcelProperty(value = "账号昵称")
|
||||||
private String nickName;
|
private String nickName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备编码,唯一
|
* 设备编码
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "设备编码,唯一")
|
@ExcelProperty(value = "设备编码")
|
||||||
private String equipmentCode;
|
private String equipmentCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备状态(1:开门停止 2:关门停止 3:开门故障停止 4:关门故障停止 5:开门故障反弹 6:关门故障反弹 )
|
* 设备名称
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "设备名称")
|
||||||
|
private String equipmentName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备状态
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "设备状态", converter = ExcelDictConvert.class)
|
@ExcelProperty(value = "设备状态", converter = ExcelDictConvert.class)
|
||||||
@ExcelDictFormat(dictType = "eq_status_type")
|
@ExcelDictFormat(dictType = "eq_status_type")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 故障状态
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "故障状态", converter = ExcelDictConvert.class)
|
||||||
|
@ExcelDictFormat(dictType = "eq_fault_status")
|
||||||
|
private Integer faultStatus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 离线状态
|
* 离线状态
|
||||||
*/
|
*/
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package org.dromara.system.domain.vo;
|
package org.dromara.web.domain.vo;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqFamily;
|
import org.dromara.web.domain.EqFamily;
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
||||||
@ -15,10 +15,10 @@ import java.util.Date;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 家庭管理视图对象 eq_family
|
* 我的家庭视图对象 eq_family
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package org.dromara.system.domain.vo;
|
package org.dromara.web.domain.vo;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqShare;
|
import org.dromara.web.domain.EqShare;
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
||||||
@ -17,8 +17,8 @@ import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
* 分享视图对象 eq_share
|
* 分享视图对象 eq_share
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
@ -35,27 +35,27 @@ public class EqShareVo implements Serializable {
|
|||||||
private Long shareId;
|
private Long shareId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分享者用户ID
|
* 分享者ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "分享者用户ID")
|
@ExcelProperty(value = "分享者ID")
|
||||||
private Long shareUserId;
|
private Long shareUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分享者用户名称
|
* 分享者名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "分享者用户名称")
|
@ExcelProperty(value = "分享者名称")
|
||||||
private String shareUserName;
|
private String shareUserName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 被分享者用户ID
|
* 被分享者ID
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "被分享者用户ID")
|
@ExcelProperty(value = "被分享者ID")
|
||||||
private Long sharedUserId;
|
private Long sharedUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 被分享者用户名称
|
* 被分享者名称
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "被分享者用户名称")
|
@ExcelProperty(value = "被分享者名称")
|
||||||
private String sharedUserName;
|
private String sharedUserName;
|
||||||
|
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package org.dromara.system.domain.vo;
|
package org.dromara.web.domain.vo;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqUserConfig;
|
import org.dromara.web.domain.EqUserConfig;
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
||||||
@ -17,8 +17,8 @@ import java.util.Date;
|
|||||||
/**
|
/**
|
||||||
* 用户配置视图对象 eq_user_config
|
* 用户配置视图对象 eq_user_config
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
@ -43,19 +43,22 @@ public class EqUserConfigVo implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 时区类型
|
* 时区类型
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "时区类型")
|
@ExcelProperty(value = "时区类型", converter = ExcelDictConvert.class)
|
||||||
|
@ExcelDictFormat(dictType = "eq_timezone_type")
|
||||||
private Integer timezoneType;
|
private Integer timezoneType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 时间格式
|
* 时间格式
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "时间格式")
|
@ExcelProperty(value = "时间格式", converter = ExcelDictConvert.class)
|
||||||
|
@ExcelDictFormat(dictType = "eq_time_format_type")
|
||||||
private Integer timeFormat;
|
private Integer timeFormat;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 语言种类
|
* 语言种类
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "语言种类")
|
@ExcelProperty(value = "语言种类", converter = ExcelDictConvert.class)
|
||||||
|
@ExcelDictFormat(dictType = "eq_language_type")
|
||||||
private Integer languageType;
|
private Integer languageType;
|
||||||
|
|
||||||
|
|
||||||
@ -1,14 +1,14 @@
|
|||||||
package org.dromara.system.mapper;
|
package org.dromara.web.mapper;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqArea;
|
import org.dromara.web.domain.EqArea;
|
||||||
import org.dromara.system.domain.vo.EqAreaVo;
|
import org.dromara.web.domain.vo.EqAreaVo;
|
||||||
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分布管理Mapper接口
|
* 分布管理Mapper接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
public interface EqAreaMapper extends BaseMapperPlus<EqArea, EqAreaVo> {
|
public interface EqAreaMapper extends BaseMapperPlus<EqArea, EqAreaVo> {
|
||||||
|
|
||||||
@ -1,14 +1,14 @@
|
|||||||
package org.dromara.system.mapper;
|
package org.dromara.web.mapper;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqEquipmentLog;
|
import org.dromara.web.domain.EqEquipmentLog;
|
||||||
import org.dromara.system.domain.vo.EqEquipmentLogVo;
|
import org.dromara.web.domain.vo.EqEquipmentLogVo;
|
||||||
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备状态日志Mapper接口
|
* 设备状态日志Mapper接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
public interface EqEquipmentLogMapper extends BaseMapperPlus<EqEquipmentLog, EqEquipmentLogVo> {
|
public interface EqEquipmentLogMapper extends BaseMapperPlus<EqEquipmentLog, EqEquipmentLogVo> {
|
||||||
|
|
||||||
@ -1,14 +1,14 @@
|
|||||||
package org.dromara.system.mapper;
|
package org.dromara.web.mapper;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqEquipment;
|
import org.dromara.web.domain.EqEquipment;
|
||||||
import org.dromara.system.domain.vo.EqEquipmentVo;
|
import org.dromara.web.domain.vo.EqEquipmentVo;
|
||||||
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备信息Mapper接口
|
* 设备信息Mapper接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
public interface EqEquipmentMapper extends BaseMapperPlus<EqEquipment, EqEquipmentVo> {
|
public interface EqEquipmentMapper extends BaseMapperPlus<EqEquipment, EqEquipmentVo> {
|
||||||
|
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
package org.dromara.web.mapper;
|
||||||
|
|
||||||
|
import org.dromara.web.domain.EqFamily;
|
||||||
|
import org.dromara.web.domain.vo.EqFamilyVo;
|
||||||
|
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 我的家庭Mapper接口
|
||||||
|
*
|
||||||
|
* @author zzc
|
||||||
|
* @date 2024-07-19
|
||||||
|
*/
|
||||||
|
public interface EqFamilyMapper extends BaseMapperPlus<EqFamily, EqFamilyVo> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,14 +1,14 @@
|
|||||||
package org.dromara.system.mapper;
|
package org.dromara.web.mapper;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqShare;
|
import org.dromara.web.domain.EqShare;
|
||||||
import org.dromara.system.domain.vo.EqShareVo;
|
import org.dromara.web.domain.vo.EqShareVo;
|
||||||
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分享Mapper接口
|
* 分享Mapper接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
public interface EqShareMapper extends BaseMapperPlus<EqShare, EqShareVo> {
|
public interface EqShareMapper extends BaseMapperPlus<EqShare, EqShareVo> {
|
||||||
|
|
||||||
@ -1,14 +1,14 @@
|
|||||||
package org.dromara.system.mapper;
|
package org.dromara.web.mapper;
|
||||||
|
|
||||||
import org.dromara.system.domain.EqUserConfig;
|
import org.dromara.web.domain.EqUserConfig;
|
||||||
import org.dromara.system.domain.vo.EqUserConfigVo;
|
import org.dromara.web.domain.vo.EqUserConfigVo;
|
||||||
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户配置Mapper接口
|
* 用户配置Mapper接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
public interface EqUserConfigMapper extends BaseMapperPlus<EqUserConfig, EqUserConfigVo> {
|
public interface EqUserConfigMapper extends BaseMapperPlus<EqUserConfig, EqUserConfigVo> {
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
package org.dromara.system.service;
|
package org.dromara.web.service;
|
||||||
|
|
||||||
import org.dromara.system.domain.vo.EqAreaVo;
|
import org.dromara.web.domain.vo.EqAreaVo;
|
||||||
import org.dromara.system.domain.bo.EqAreaBo;
|
import org.dromara.web.domain.bo.EqAreaBo;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||||
|
|
||||||
@ -11,8 +11,8 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 分布管理Service接口
|
* 分布管理Service接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
public interface IEqAreaService {
|
public interface IEqAreaService {
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
package org.dromara.system.service;
|
package org.dromara.web.service;
|
||||||
|
|
||||||
import org.dromara.system.domain.vo.EqEquipmentLogVo;
|
import org.dromara.web.domain.vo.EqEquipmentLogVo;
|
||||||
import org.dromara.system.domain.bo.EqEquipmentLogBo;
|
import org.dromara.web.domain.bo.EqEquipmentLogBo;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||||
|
|
||||||
@ -11,8 +11,8 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 设备状态日志Service接口
|
* 设备状态日志Service接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
public interface IEqEquipmentLogService {
|
public interface IEqEquipmentLogService {
|
||||||
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
package org.dromara.system.service;
|
package org.dromara.web.service;
|
||||||
|
|
||||||
import org.dromara.system.domain.bo.EqAppHomeBo;
|
import org.dromara.web.domain.bo.EqAppHomeBo;
|
||||||
import org.dromara.system.domain.vo.EqEquipmentVo;
|
import org.dromara.web.domain.vo.EqEquipmentVo;
|
||||||
import org.dromara.system.domain.bo.EqEquipmentBo;
|
import org.dromara.web.domain.bo.EqEquipmentBo;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||||
|
|
||||||
@ -12,8 +12,8 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 设备信息Service接口
|
* 设备信息Service接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
public interface IEqEquipmentService {
|
public interface IEqEquipmentService {
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
package org.dromara.system.service;
|
package org.dromara.web.service;
|
||||||
|
|
||||||
import org.dromara.system.domain.vo.EqFamilyVo;
|
import org.dromara.web.domain.vo.EqFamilyVo;
|
||||||
import org.dromara.system.domain.bo.EqFamilyBo;
|
import org.dromara.web.domain.bo.EqFamilyBo;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||||
|
|
||||||
@ -9,56 +9,56 @@ import java.util.Collection;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 家庭管理Service接口
|
* 我的家庭Service接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
public interface IEqFamilyService {
|
public interface IEqFamilyService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询家庭管理
|
* 查询我的家庭
|
||||||
*
|
*
|
||||||
* @param familyId 主键
|
* @param familyId 主键
|
||||||
* @return 家庭管理
|
* @return 我的家庭
|
||||||
*/
|
*/
|
||||||
EqFamilyVo queryById(Long familyId);
|
EqFamilyVo queryById(Long familyId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询家庭管理列表
|
* 分页查询我的家庭列表
|
||||||
*
|
*
|
||||||
* @param bo 查询条件
|
* @param bo 查询条件
|
||||||
* @param pageQuery 分页参数
|
* @param pageQuery 分页参数
|
||||||
* @return 家庭管理分页列表
|
* @return 我的家庭分页列表
|
||||||
*/
|
*/
|
||||||
TableDataInfo<EqFamilyVo> queryPageList(EqFamilyBo bo, PageQuery pageQuery);
|
TableDataInfo<EqFamilyVo> queryPageList(EqFamilyBo bo, PageQuery pageQuery);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询符合条件的家庭管理列表
|
* 查询符合条件的我的家庭列表
|
||||||
*
|
*
|
||||||
* @param bo 查询条件
|
* @param bo 查询条件
|
||||||
* @return 家庭管理列表
|
* @return 我的家庭列表
|
||||||
*/
|
*/
|
||||||
List<EqFamilyVo> queryList(EqFamilyBo bo);
|
List<EqFamilyVo> queryList(EqFamilyBo bo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增家庭管理
|
* 新增我的家庭
|
||||||
*
|
*
|
||||||
* @param bo 家庭管理
|
* @param bo 我的家庭
|
||||||
* @return 是否新增成功
|
* @return 是否新增成功
|
||||||
*/
|
*/
|
||||||
Boolean insertByBo(EqFamilyBo bo);
|
Boolean insertByBo(EqFamilyBo bo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改家庭管理
|
* 修改我的家庭
|
||||||
*
|
*
|
||||||
* @param bo 家庭管理
|
* @param bo 我的家庭
|
||||||
* @return 是否修改成功
|
* @return 是否修改成功
|
||||||
*/
|
*/
|
||||||
Boolean updateByBo(EqFamilyBo bo);
|
Boolean updateByBo(EqFamilyBo bo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验并批量删除家庭管理信息
|
* 校验并批量删除我的家庭信息
|
||||||
*
|
*
|
||||||
* @param ids 待删除的主键集合
|
* @param ids 待删除的主键集合
|
||||||
* @param isValid 是否进行有效性校验
|
* @param isValid 是否进行有效性校验
|
||||||
@ -1,7 +1,7 @@
|
|||||||
package org.dromara.system.service;
|
package org.dromara.web.service;
|
||||||
|
|
||||||
import org.dromara.system.domain.vo.EqShareVo;
|
import org.dromara.web.domain.vo.EqShareVo;
|
||||||
import org.dromara.system.domain.bo.EqShareBo;
|
import org.dromara.web.domain.bo.EqShareBo;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||||
|
|
||||||
@ -11,8 +11,8 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 分享Service接口
|
* 分享Service接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
public interface IEqShareService {
|
public interface IEqShareService {
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
package org.dromara.system.service;
|
package org.dromara.web.service;
|
||||||
|
|
||||||
import org.dromara.system.domain.vo.EqUserConfigVo;
|
import org.dromara.web.domain.vo.EqUserConfigVo;
|
||||||
import org.dromara.system.domain.bo.EqUserConfigBo;
|
import org.dromara.web.domain.bo.EqUserConfigBo;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||||
|
|
||||||
@ -11,8 +11,8 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 用户配置Service接口
|
* 用户配置Service接口
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
public interface IEqUserConfigService {
|
public interface IEqUserConfigService {
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.service.impl;
|
package org.dromara.web.service.impl;
|
||||||
|
|
||||||
import org.dromara.common.core.utils.MapstructUtils;
|
import org.dromara.common.core.utils.MapstructUtils;
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
import org.dromara.common.core.utils.StringUtils;
|
||||||
@ -9,11 +9,11 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.dromara.system.domain.bo.EqAreaBo;
|
import org.dromara.web.domain.bo.EqAreaBo;
|
||||||
import org.dromara.system.domain.vo.EqAreaVo;
|
import org.dromara.web.domain.vo.EqAreaVo;
|
||||||
import org.dromara.system.domain.EqArea;
|
import org.dromara.web.domain.EqArea;
|
||||||
import org.dromara.system.mapper.EqAreaMapper;
|
import org.dromara.web.mapper.EqAreaMapper;
|
||||||
import org.dromara.system.service.IEqAreaService;
|
import org.dromara.web.service.IEqAreaService;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -22,8 +22,8 @@ import java.util.Collection;
|
|||||||
/**
|
/**
|
||||||
* 分布管理Service业务层处理
|
* 分布管理Service业务层处理
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Service
|
@Service
|
||||||
@ -73,7 +73,7 @@ public class EqAreaServiceImpl implements IEqAreaService {
|
|||||||
LambdaQueryWrapper<EqArea> lqw = Wrappers.lambdaQuery();
|
LambdaQueryWrapper<EqArea> lqw = Wrappers.lambdaQuery();
|
||||||
lqw.eq(bo.getUserId() != null, EqArea::getUserId, bo.getUserId());
|
lqw.eq(bo.getUserId() != null, EqArea::getUserId, bo.getUserId());
|
||||||
lqw.like(StringUtils.isNotBlank(bo.getAreaName()), EqArea::getAreaName, bo.getAreaName());
|
lqw.like(StringUtils.isNotBlank(bo.getAreaName()), EqArea::getAreaName, bo.getAreaName());
|
||||||
lqw.eq(StringUtils.isNotBlank(bo.getDescription()), EqArea::getDescription, bo.getDescription());
|
lqw.like(StringUtils.isNotBlank(bo.getDescription()), EqArea::getDescription, bo.getDescription());
|
||||||
return lqw;
|
return lqw;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.service.impl;
|
package org.dromara.web.service.impl;
|
||||||
|
|
||||||
import org.dromara.common.core.utils.MapstructUtils;
|
import org.dromara.common.core.utils.MapstructUtils;
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
import org.dromara.common.core.utils.StringUtils;
|
||||||
@ -9,11 +9,11 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.dromara.system.domain.bo.EqEquipmentLogBo;
|
import org.dromara.web.domain.bo.EqEquipmentLogBo;
|
||||||
import org.dromara.system.domain.vo.EqEquipmentLogVo;
|
import org.dromara.web.domain.vo.EqEquipmentLogVo;
|
||||||
import org.dromara.system.domain.EqEquipmentLog;
|
import org.dromara.web.domain.EqEquipmentLog;
|
||||||
import org.dromara.system.mapper.EqEquipmentLogMapper;
|
import org.dromara.web.mapper.EqEquipmentLogMapper;
|
||||||
import org.dromara.system.service.IEqEquipmentLogService;
|
import org.dromara.web.service.IEqEquipmentLogService;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -22,8 +22,8 @@ import java.util.Collection;
|
|||||||
/**
|
/**
|
||||||
* 设备状态日志Service业务层处理
|
* 设备状态日志Service业务层处理
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Service
|
@Service
|
||||||
@ -71,11 +71,14 @@ public class EqEquipmentLogServiceImpl implements IEqEquipmentLogService {
|
|||||||
private LambdaQueryWrapper<EqEquipmentLog> buildQueryWrapper(EqEquipmentLogBo bo) {
|
private LambdaQueryWrapper<EqEquipmentLog> buildQueryWrapper(EqEquipmentLogBo bo) {
|
||||||
Map<String, Object> params = bo.getParams();
|
Map<String, Object> params = bo.getParams();
|
||||||
LambdaQueryWrapper<EqEquipmentLog> lqw = Wrappers.lambdaQuery();
|
LambdaQueryWrapper<EqEquipmentLog> lqw = Wrappers.lambdaQuery();
|
||||||
|
lqw.eq(bo.getUserId() != null, EqEquipmentLog::getUserId, bo.getUserId());
|
||||||
lqw.eq(bo.getEquipmentId() != null, EqEquipmentLog::getEquipmentId, bo.getEquipmentId());
|
lqw.eq(bo.getEquipmentId() != null, EqEquipmentLog::getEquipmentId, bo.getEquipmentId());
|
||||||
lqw.eq(bo.getCreatedDatetime() != null, EqEquipmentLog::getCreatedDatetime, bo.getCreatedDatetime());
|
lqw.eq(StringUtils.isNotBlank(bo.getEquipmentCode()), EqEquipmentLog::getEquipmentCode, bo.getEquipmentCode());
|
||||||
|
lqw.eq(bo.getStatus() != null, EqEquipmentLog::getStatus, bo.getStatus());
|
||||||
|
lqw.eq(bo.getFaultStatus() != null, EqEquipmentLog::getFaultStatus, bo.getFaultStatus());
|
||||||
|
lqw.eq(bo.getLineStatus() != null, EqEquipmentLog::getLineStatus, bo.getLineStatus());
|
||||||
lqw.eq(bo.getCreatedYearDay() != null, EqEquipmentLog::getCreatedYearDay, bo.getCreatedYearDay());
|
lqw.eq(bo.getCreatedYearDay() != null, EqEquipmentLog::getCreatedYearDay, bo.getCreatedYearDay());
|
||||||
lqw.eq(bo.getCreatedHourSecond() != null, EqEquipmentLog::getCreatedHourSecond, bo.getCreatedHourSecond());
|
lqw.eq(bo.getCreatedHourSecond() != null, EqEquipmentLog::getCreatedHourSecond, bo.getCreatedHourSecond());
|
||||||
lqw.eq(bo.getStatus() != null, EqEquipmentLog::getStatus, bo.getStatus());
|
|
||||||
lqw.eq(bo.getDayOfWeek() != null, EqEquipmentLog::getDayOfWeek, bo.getDayOfWeek());
|
lqw.eq(bo.getDayOfWeek() != null, EqEquipmentLog::getDayOfWeek, bo.getDayOfWeek());
|
||||||
return lqw;
|
return lqw;
|
||||||
}
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.service.impl;
|
package org.dromara.web.service.impl;
|
||||||
|
|
||||||
import org.dromara.common.core.utils.MapstructUtils;
|
import org.dromara.common.core.utils.MapstructUtils;
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
import org.dromara.common.core.utils.StringUtils;
|
||||||
@ -8,13 +8,13 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.dromara.system.domain.bo.EqAppHomeBo;
|
import org.dromara.web.domain.bo.EqAppHomeBo;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.dromara.system.domain.bo.EqEquipmentBo;
|
import org.dromara.web.domain.bo.EqEquipmentBo;
|
||||||
import org.dromara.system.domain.vo.EqEquipmentVo;
|
import org.dromara.web.domain.vo.EqEquipmentVo;
|
||||||
import org.dromara.system.domain.EqEquipment;
|
import org.dromara.web.domain.EqEquipment;
|
||||||
import org.dromara.system.mapper.EqEquipmentMapper;
|
import org.dromara.web.mapper.EqEquipmentMapper;
|
||||||
import org.dromara.system.service.IEqEquipmentService;
|
import org.dromara.web.service.IEqEquipmentService;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -23,8 +23,8 @@ import java.util.Collection;
|
|||||||
/**
|
/**
|
||||||
* 设备信息Service业务层处理
|
* 设备信息Service业务层处理
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Service
|
@Service
|
||||||
@ -72,14 +72,15 @@ public class EqEquipmentServiceImpl implements IEqEquipmentService {
|
|||||||
private LambdaQueryWrapper<EqEquipment> buildQueryWrapper(EqEquipmentBo bo) {
|
private LambdaQueryWrapper<EqEquipment> buildQueryWrapper(EqEquipmentBo bo) {
|
||||||
Map<String, Object> params = bo.getParams();
|
Map<String, Object> params = bo.getParams();
|
||||||
LambdaQueryWrapper<EqEquipment> lqw = Wrappers.lambdaQuery();
|
LambdaQueryWrapper<EqEquipment> lqw = Wrappers.lambdaQuery();
|
||||||
|
lqw.eq(bo.getAreaId() != null, EqEquipment::getAreaId, bo.getAreaId());
|
||||||
lqw.eq(bo.getType() != null, EqEquipment::getType, bo.getType());
|
lqw.eq(bo.getType() != null, EqEquipment::getType, bo.getType());
|
||||||
lqw.like(StringUtils.isNotBlank(bo.getUserName()), EqEquipment::getUserName, bo.getUserName());
|
lqw.like(StringUtils.isNotBlank(bo.getUserName()), EqEquipment::getUserName, bo.getUserName());
|
||||||
lqw.like(StringUtils.isNotBlank(bo.getNickName()), EqEquipment::getNickName, bo.getNickName());
|
lqw.like(StringUtils.isNotBlank(bo.getNickName()), EqEquipment::getNickName, bo.getNickName());
|
||||||
lqw.like(StringUtils.isNotBlank(bo.getSearchValue()), EqEquipment::getEquipmentCode, bo.getSearchValue());
|
lqw.eq(StringUtils.isNotBlank(bo.getEquipmentCode()), EqEquipment::getEquipmentCode, bo.getEquipmentCode());
|
||||||
lqw.like(StringUtils.isNotBlank(bo.getEquipmentCode()), EqEquipment::getEquipmentCode, bo.getEquipmentCode());
|
lqw.like(StringUtils.isNotBlank(bo.getEquipmentName()), EqEquipment::getEquipmentName, bo.getEquipmentName());
|
||||||
lqw.eq(bo.getStatus() != null, EqEquipment::getStatus, bo.getStatus());
|
lqw.eq(bo.getStatus() != null, EqEquipment::getStatus, bo.getStatus());
|
||||||
|
lqw.eq(bo.getFaultStatus() != null, EqEquipment::getFaultStatus, bo.getFaultStatus());
|
||||||
lqw.eq(bo.getLineStatus() != null, EqEquipment::getLineStatus, bo.getLineStatus());
|
lqw.eq(bo.getLineStatus() != null, EqEquipment::getLineStatus, bo.getLineStatus());
|
||||||
lqw.eq(bo.getCreateBy() != null, EqEquipment::getCreateBy, bo.getCreateBy());
|
|
||||||
return lqw;
|
return lqw;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,4 +156,5 @@ public class EqEquipmentServiceImpl implements IEqEquipmentService {
|
|||||||
//增加操作次数 更新到设备表中
|
//增加操作次数 更新到设备表中
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.service.impl;
|
package org.dromara.web.service.impl;
|
||||||
|
|
||||||
import org.dromara.common.core.utils.MapstructUtils;
|
import org.dromara.common.core.utils.MapstructUtils;
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
import org.dromara.common.core.utils.StringUtils;
|
||||||
@ -9,21 +9,21 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.dromara.system.domain.bo.EqFamilyBo;
|
import org.dromara.web.domain.bo.EqFamilyBo;
|
||||||
import org.dromara.system.domain.vo.EqFamilyVo;
|
import org.dromara.web.domain.vo.EqFamilyVo;
|
||||||
import org.dromara.system.domain.EqFamily;
|
import org.dromara.web.domain.EqFamily;
|
||||||
import org.dromara.system.mapper.EqFamilyMapper;
|
import org.dromara.web.mapper.EqFamilyMapper;
|
||||||
import org.dromara.system.service.IEqFamilyService;
|
import org.dromara.web.service.IEqFamilyService;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 家庭管理Service业务层处理
|
* 我的家庭Service业务层处理
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Service
|
@Service
|
||||||
@ -32,10 +32,10 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
private final EqFamilyMapper baseMapper;
|
private final EqFamilyMapper baseMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询家庭管理
|
* 查询我的家庭
|
||||||
*
|
*
|
||||||
* @param familyId 主键
|
* @param familyId 主键
|
||||||
* @return 家庭管理
|
* @return 我的家庭
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public EqFamilyVo queryById(Long familyId){
|
public EqFamilyVo queryById(Long familyId){
|
||||||
@ -43,11 +43,11 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询家庭管理列表
|
* 分页查询我的家庭列表
|
||||||
*
|
*
|
||||||
* @param bo 查询条件
|
* @param bo 查询条件
|
||||||
* @param pageQuery 分页参数
|
* @param pageQuery 分页参数
|
||||||
* @return 家庭管理分页列表
|
* @return 我的家庭分页列表
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public TableDataInfo<EqFamilyVo> queryPageList(EqFamilyBo bo, PageQuery pageQuery) {
|
public TableDataInfo<EqFamilyVo> queryPageList(EqFamilyBo bo, PageQuery pageQuery) {
|
||||||
@ -57,10 +57,10 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询符合条件的家庭管理列表
|
* 查询符合条件的我的家庭列表
|
||||||
*
|
*
|
||||||
* @param bo 查询条件
|
* @param bo 查询条件
|
||||||
* @return 家庭管理列表
|
* @return 我的家庭列表
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<EqFamilyVo> queryList(EqFamilyBo bo) {
|
public List<EqFamilyVo> queryList(EqFamilyBo bo) {
|
||||||
@ -77,9 +77,9 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增家庭管理
|
* 新增我的家庭
|
||||||
*
|
*
|
||||||
* @param bo 家庭管理
|
* @param bo 我的家庭
|
||||||
* @return 是否新增成功
|
* @return 是否新增成功
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@ -94,9 +94,9 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改家庭管理
|
* 修改我的家庭
|
||||||
*
|
*
|
||||||
* @param bo 家庭管理
|
* @param bo 我的家庭
|
||||||
* @return 是否修改成功
|
* @return 是否修改成功
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@ -114,7 +114,7 @@ public class EqFamilyServiceImpl implements IEqFamilyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验并批量删除家庭管理信息
|
* 校验并批量删除我的家庭信息
|
||||||
*
|
*
|
||||||
* @param ids 待删除的主键集合
|
* @param ids 待删除的主键集合
|
||||||
* @param isValid 是否进行有效性校验
|
* @param isValid 是否进行有效性校验
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.service.impl;
|
package org.dromara.web.service.impl;
|
||||||
|
|
||||||
import org.dromara.common.core.utils.MapstructUtils;
|
import org.dromara.common.core.utils.MapstructUtils;
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
import org.dromara.common.core.utils.StringUtils;
|
||||||
@ -9,11 +9,11 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.dromara.system.domain.bo.EqShareBo;
|
import org.dromara.web.domain.bo.EqShareBo;
|
||||||
import org.dromara.system.domain.vo.EqShareVo;
|
import org.dromara.web.domain.vo.EqShareVo;
|
||||||
import org.dromara.system.domain.EqShare;
|
import org.dromara.web.domain.EqShare;
|
||||||
import org.dromara.system.mapper.EqShareMapper;
|
import org.dromara.web.mapper.EqShareMapper;
|
||||||
import org.dromara.system.service.IEqShareService;
|
import org.dromara.web.service.IEqShareService;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -22,8 +22,8 @@ import java.util.Collection;
|
|||||||
/**
|
/**
|
||||||
* 分享Service业务层处理
|
* 分享Service业务层处理
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Service
|
@Service
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package org.dromara.system.service.impl;
|
package org.dromara.web.service.impl;
|
||||||
|
|
||||||
import org.dromara.common.core.utils.MapstructUtils;
|
import org.dromara.common.core.utils.MapstructUtils;
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
import org.dromara.common.core.utils.StringUtils;
|
||||||
@ -9,11 +9,11 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.dromara.system.domain.bo.EqUserConfigBo;
|
import org.dromara.web.domain.bo.EqUserConfigBo;
|
||||||
import org.dromara.system.domain.vo.EqUserConfigVo;
|
import org.dromara.web.domain.vo.EqUserConfigVo;
|
||||||
import org.dromara.system.domain.EqUserConfig;
|
import org.dromara.web.domain.EqUserConfig;
|
||||||
import org.dromara.system.mapper.EqUserConfigMapper;
|
import org.dromara.web.mapper.EqUserConfigMapper;
|
||||||
import org.dromara.system.service.IEqUserConfigService;
|
import org.dromara.web.service.IEqUserConfigService;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -22,8 +22,8 @@ import java.util.Collection;
|
|||||||
/**
|
/**
|
||||||
* 用户配置Service业务层处理
|
* 用户配置Service业务层处理
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author zzc
|
||||||
* @date 2024-07-14
|
* @date 2024-07-19
|
||||||
*/
|
*/
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Service
|
@Service
|
||||||
@ -42,9 +42,9 @@ spring:
|
|||||||
driverClassName: com.mysql.cj.jdbc.Driver
|
driverClassName: com.mysql.cj.jdbc.Driver
|
||||||
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
||||||
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
|
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
|
||||||
url: jdbc:mysql://localhost:3306/ry-vue-plus?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
url: jdbc:mysql://124.223.36.143:3306/ry-vue-plus?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
||||||
username: root
|
username: root
|
||||||
password: root
|
password: 8hifXZpjLdhmD1wq6wsi
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
slave:
|
slave:
|
||||||
lazy: true
|
lazy: true
|
||||||
|
|||||||
@ -2,6 +2,6 @@
|
|||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="org.dromara.system.mapper.EqAreaMapper">
|
<mapper namespace="org.dromara.web.mapper.EqAreaMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -2,6 +2,6 @@
|
|||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="org.dromara.system.mapper.EqEquipmentMapper">
|
<mapper namespace="org.dromara.web.mapper.EqEquipmentLogMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
<?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="org.dromara.web.mapper.EqEquipmentMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -2,6 +2,6 @@
|
|||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="org.dromara.system.mapper.EqFamilyMapper">
|
<mapper namespace="org.dromara.web.mapper.EqFamilyMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -2,6 +2,6 @@
|
|||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="org.dromara.system.mapper.EqShareMapper">
|
<mapper namespace="org.dromara.web.mapper.EqShareMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
<?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="org.dromara.web.mapper.EqUserConfigMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -1,105 +0,0 @@
|
|||||||
package org.dromara.system.controller;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
|
||||||
import jakarta.validation.constraints.*;
|
|
||||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
|
||||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
||||||
import org.dromara.common.log.annotation.Log;
|
|
||||||
import org.dromara.common.web.core.BaseController;
|
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
||||||
import org.dromara.common.core.domain.R;
|
|
||||||
import org.dromara.common.core.validate.AddGroup;
|
|
||||||
import org.dromara.common.core.validate.EditGroup;
|
|
||||||
import org.dromara.common.log.enums.BusinessType;
|
|
||||||
import org.dromara.common.excel.utils.ExcelUtil;
|
|
||||||
import org.dromara.system.domain.vo.EqAreaEquipmentVo;
|
|
||||||
import org.dromara.system.domain.bo.EqAreaEquipmentBo;
|
|
||||||
import org.dromara.system.service.IEqAreaEquipmentService;
|
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户分布设备关联
|
|
||||||
*
|
|
||||||
* @author Lion Li
|
|
||||||
* @date 2024-07-14
|
|
||||||
*/
|
|
||||||
@Validated
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/system/areaEquipment")
|
|
||||||
public class EqAreaEquipmentController extends BaseController {
|
|
||||||
|
|
||||||
private final IEqAreaEquipmentService eqAreaEquipmentService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询用户分布设备关联列表
|
|
||||||
*/
|
|
||||||
@SaCheckPermission("system:areaEquipment:list")
|
|
||||||
@GetMapping("/list")
|
|
||||||
public TableDataInfo<EqAreaEquipmentVo> list(EqAreaEquipmentBo bo, PageQuery pageQuery) {
|
|
||||||
return eqAreaEquipmentService.queryPageList(bo, pageQuery);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出用户分布设备关联列表
|
|
||||||
*/
|
|
||||||
@SaCheckPermission("system:areaEquipment:export")
|
|
||||||
@Log(title = "用户分布设备关联", businessType = BusinessType.EXPORT)
|
|
||||||
@PostMapping("/export")
|
|
||||||
public void export(EqAreaEquipmentBo bo, HttpServletResponse response) {
|
|
||||||
List<EqAreaEquipmentVo> list = eqAreaEquipmentService.queryList(bo);
|
|
||||||
ExcelUtil.exportExcel(list, "用户分布设备关联", EqAreaEquipmentVo.class, response);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取用户分布设备关联详细信息
|
|
||||||
*
|
|
||||||
* @param id 主键
|
|
||||||
*/
|
|
||||||
@SaCheckPermission("system:areaEquipment:query")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
public R<EqAreaEquipmentVo> getInfo(@NotNull(message = "主键不能为空")
|
|
||||||
@PathVariable Long id) {
|
|
||||||
return R.ok(eqAreaEquipmentService.queryById(id));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增用户分布设备关联
|
|
||||||
*/
|
|
||||||
@SaCheckPermission("system:areaEquipment:add")
|
|
||||||
@Log(title = "用户分布设备关联", businessType = BusinessType.INSERT)
|
|
||||||
@RepeatSubmit()
|
|
||||||
@PostMapping()
|
|
||||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody EqAreaEquipmentBo bo) {
|
|
||||||
return toAjax(eqAreaEquipmentService.insertByBo(bo));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改用户分布设备关联
|
|
||||||
*/
|
|
||||||
@SaCheckPermission("system:areaEquipment:edit")
|
|
||||||
@Log(title = "用户分布设备关联", businessType = BusinessType.UPDATE)
|
|
||||||
@RepeatSubmit()
|
|
||||||
@PutMapping()
|
|
||||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody EqAreaEquipmentBo bo) {
|
|
||||||
return toAjax(eqAreaEquipmentService.updateByBo(bo));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除用户分布设备关联
|
|
||||||
*
|
|
||||||
* @param ids 主键串
|
|
||||||
*/
|
|
||||||
@SaCheckPermission("system:areaEquipment:remove")
|
|
||||||
@Log(title = "用户分布设备关联", businessType = BusinessType.DELETE)
|
|
||||||
@DeleteMapping("/{ids}")
|
|
||||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
|
||||||
@PathVariable Long[] ids) {
|
|
||||||
return toAjax(eqAreaEquipmentService.deleteWithValidByIds(List.of(ids), true));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,46 +0,0 @@
|
|||||||
package org.dromara.system.domain;
|
|
||||||
|
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
|
|
||||||
import java.io.Serial;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户分布设备关联对象 eq_area_equipment
|
|
||||||
*
|
|
||||||
* @author Lion Li
|
|
||||||
* @date 2024-07-14
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@EqualsAndHashCode(callSuper = true)
|
|
||||||
@TableName("eq_area_equipment")
|
|
||||||
public class EqAreaEquipment extends BaseEntity {
|
|
||||||
|
|
||||||
@Serial
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主键ID
|
|
||||||
*/
|
|
||||||
@TableId(value = "id")
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分布位置ID
|
|
||||||
*/
|
|
||||||
private Long areaId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备ID
|
|
||||||
*/
|
|
||||||
private Long equipmentId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 排序
|
|
||||||
*/
|
|
||||||
private Integer sort;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
package org.dromara.system.domain.bo;
|
|
||||||
|
|
||||||
import org.dromara.system.domain.EqAreaEquipment;
|
|
||||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
|
||||||
import org.dromara.common.core.validate.AddGroup;
|
|
||||||
import org.dromara.common.core.validate.EditGroup;
|
|
||||||
import io.github.linpeilie.annotations.AutoMapper;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import jakarta.validation.constraints.*;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户分布设备关联业务对象 eq_area_equipment
|
|
||||||
*
|
|
||||||
* @author Lion Li
|
|
||||||
* @date 2024-07-14
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@EqualsAndHashCode(callSuper = true)
|
|
||||||
@AutoMapper(target = EqAreaEquipment.class, reverseConvertGenerate = false)
|
|
||||||
public class EqAreaEquipmentBo extends BaseEntity {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主键ID
|
|
||||||
*/
|
|
||||||
@NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分布位置ID
|
|
||||||
*/
|
|
||||||
@NotNull(message = "分布位置ID不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Long areaId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备ID
|
|
||||||
*/
|
|
||||||
@NotNull(message = "设备ID不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Long equipmentId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 排序
|
|
||||||
*/
|
|
||||||
private Integer sort;
|
|
||||||
}
|
|
||||||
@ -1,54 +0,0 @@
|
|||||||
package org.dromara.system.domain.vo;
|
|
||||||
|
|
||||||
import org.dromara.system.domain.EqAreaEquipment;
|
|
||||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
|
||||||
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
|
||||||
import org.dromara.common.excel.convert.ExcelDictConvert;
|
|
||||||
import io.github.linpeilie.annotations.AutoMapper;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serial;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户分布设备关联视图对象 eq_area_equipment
|
|
||||||
*
|
|
||||||
* @author Lion Li
|
|
||||||
* @date 2024-07-14
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@ExcelIgnoreUnannotated
|
|
||||||
@AutoMapper(target = EqAreaEquipment.class)
|
|
||||||
public class EqAreaEquipmentVo implements Serializable {
|
|
||||||
|
|
||||||
@Serial
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主键ID
|
|
||||||
*/
|
|
||||||
@ExcelProperty(value = "主键ID")
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分布位置ID
|
|
||||||
*/
|
|
||||||
@ExcelProperty(value = "分布位置ID")
|
|
||||||
private Long areaId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备ID
|
|
||||||
*/
|
|
||||||
@ExcelProperty(value = "设备ID")
|
|
||||||
private Long equipmentId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 排序
|
|
||||||
*/
|
|
||||||
private Integer sort;
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
package org.dromara.system.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.dromara.common.mybatis.annotation.DataColumn;
|
|
||||||
import org.dromara.common.mybatis.annotation.DataPermission;
|
|
||||||
import org.dromara.system.domain.EqAreaEquipment;
|
|
||||||
import org.dromara.system.domain.EqEquipment;
|
|
||||||
import org.dromara.system.domain.SysUser;
|
|
||||||
import org.dromara.system.domain.vo.EqAreaEquipmentVo;
|
|
||||||
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
|
||||||
import org.dromara.system.domain.vo.EqEquipmentVo;
|
|
||||||
import org.dromara.system.domain.vo.SysUserVo;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户分布设备关联Mapper接口
|
|
||||||
*
|
|
||||||
* @author Lion Li
|
|
||||||
* @date 2024-07-14
|
|
||||||
*/
|
|
||||||
public interface EqAreaEquipmentMapper extends BaseMapperPlus<EqAreaEquipment, EqAreaEquipmentVo> {
|
|
||||||
|
|
||||||
Page<EqEquipmentVo> selectPageEquipmentList(@Param("page") Page<EqEquipment> page,@Param(Constants.WRAPPER) Wrapper<EqEquipment> queryWrapper);
|
|
||||||
}
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
package org.dromara.system.mapper;
|
|
||||||
|
|
||||||
import org.dromara.system.domain.EqFamily;
|
|
||||||
import org.dromara.system.domain.vo.EqFamilyVo;
|
|
||||||
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 家庭管理Mapper接口
|
|
||||||
*
|
|
||||||
* @author Lion Li
|
|
||||||
* @date 2024-07-14
|
|
||||||
*/
|
|
||||||
public interface EqFamilyMapper extends BaseMapperPlus<EqFamily, EqFamilyVo> {
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,78 +0,0 @@
|
|||||||
package org.dromara.system.service;
|
|
||||||
|
|
||||||
import org.dromara.system.domain.bo.EqAppHomeBo;
|
|
||||||
import org.dromara.system.domain.vo.EqAreaEquipmentVo;
|
|
||||||
import org.dromara.system.domain.bo.EqAreaEquipmentBo;
|
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
||||||
import org.dromara.system.domain.vo.EqEquipmentVo;
|
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户分布设备关联Service接口
|
|
||||||
*
|
|
||||||
* @author Lion Li
|
|
||||||
* @date 2024-07-14
|
|
||||||
*/
|
|
||||||
public interface IEqAreaEquipmentService {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询用户分布设备关联
|
|
||||||
*
|
|
||||||
* @param id 主键
|
|
||||||
* @return 用户分布设备关联
|
|
||||||
*/
|
|
||||||
EqAreaEquipmentVo queryById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页查询用户分布设备关联列表
|
|
||||||
*
|
|
||||||
* @param bo 查询条件
|
|
||||||
* @param pageQuery 分页参数
|
|
||||||
* @return 用户分布设备关联分页列表
|
|
||||||
*/
|
|
||||||
TableDataInfo<EqAreaEquipmentVo> queryPageList(EqAreaEquipmentBo bo, PageQuery pageQuery);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询用户分布设备关联列表详情
|
|
||||||
* @param bo
|
|
||||||
* @param pageQuery
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
TableDataInfo<EqEquipmentVo> selectPageEquipmentList(EqAppHomeBo bo, PageQuery pageQuery);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询符合条件的用户分布设备关联列表
|
|
||||||
*
|
|
||||||
* @param bo 查询条件
|
|
||||||
* @return 用户分布设备关联列表
|
|
||||||
*/
|
|
||||||
List<EqAreaEquipmentVo> queryList(EqAreaEquipmentBo bo);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增用户分布设备关联
|
|
||||||
*
|
|
||||||
* @param bo 用户分布设备关联
|
|
||||||
* @return 是否新增成功
|
|
||||||
*/
|
|
||||||
Boolean insertByBo(EqAreaEquipmentBo bo);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改用户分布设备关联
|
|
||||||
*
|
|
||||||
* @param bo 用户分布设备关联
|
|
||||||
* @return 是否修改成功
|
|
||||||
*/
|
|
||||||
Boolean updateByBo(EqAreaEquipmentBo bo);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 校验并批量删除用户分布设备关联信息
|
|
||||||
*
|
|
||||||
* @param ids 待删除的主键集合
|
|
||||||
* @param isValid 是否进行有效性校验
|
|
||||||
* @return 是否删除成功
|
|
||||||
*/
|
|
||||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
|
||||||
}
|
|
||||||
@ -1,148 +0,0 @@
|
|||||||
package org.dromara.system.service.impl;
|
|
||||||
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
||||||
import org.dromara.common.core.utils.MapstructUtils;
|
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import org.dromara.system.domain.EqEquipment;
|
|
||||||
import org.dromara.system.domain.bo.EqAppHomeBo;
|
|
||||||
import org.dromara.system.domain.vo.EqEquipmentVo;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import org.dromara.system.domain.bo.EqAreaEquipmentBo;
|
|
||||||
import org.dromara.system.domain.vo.EqAreaEquipmentVo;
|
|
||||||
import org.dromara.system.domain.EqAreaEquipment;
|
|
||||||
import org.dromara.system.mapper.EqAreaEquipmentMapper;
|
|
||||||
import org.dromara.system.service.IEqAreaEquipmentService;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户分布设备关联Service业务层处理
|
|
||||||
*
|
|
||||||
* @author Lion Li
|
|
||||||
* @date 2024-07-14
|
|
||||||
*/
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
@Service
|
|
||||||
public class EqAreaEquipmentServiceImpl implements IEqAreaEquipmentService {
|
|
||||||
|
|
||||||
private final EqAreaEquipmentMapper baseMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询用户分布设备关联
|
|
||||||
*
|
|
||||||
* @param id 主键
|
|
||||||
* @return 用户分布设备关联
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public EqAreaEquipmentVo queryById(Long id){
|
|
||||||
return baseMapper.selectVoById(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 分页查询用户分布设备关联列表
|
|
||||||
*
|
|
||||||
* @param bo 查询条件
|
|
||||||
* @param pageQuery 分页参数
|
|
||||||
* @return 用户分布设备关联分页列表
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public TableDataInfo<EqAreaEquipmentVo> queryPageList(EqAreaEquipmentBo bo, PageQuery pageQuery) {
|
|
||||||
LambdaQueryWrapper<EqAreaEquipment> lqw = buildQueryWrapper(bo);
|
|
||||||
Page<EqAreaEquipmentVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
|
||||||
return TableDataInfo.build(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public TableDataInfo<EqEquipmentVo> selectPageEquipmentList(EqAppHomeBo bo, PageQuery pageQuery) {
|
|
||||||
QueryWrapper<EqEquipment> lqw = buildQueryEquipmentWrapper(bo);
|
|
||||||
Page<EqEquipmentVo> result = baseMapper.selectPageEquipmentList(pageQuery.build(), lqw);
|
|
||||||
return TableDataInfo.build(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询符合条件的用户分布设备关联列表
|
|
||||||
*
|
|
||||||
* @param bo 查询条件
|
|
||||||
* @return 用户分布设备关联列表
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public List<EqAreaEquipmentVo> queryList(EqAreaEquipmentBo bo) {
|
|
||||||
LambdaQueryWrapper<EqAreaEquipment> lqw = buildQueryWrapper(bo);
|
|
||||||
return baseMapper.selectVoList(lqw);
|
|
||||||
}
|
|
||||||
|
|
||||||
private LambdaQueryWrapper<EqAreaEquipment> buildQueryWrapper(EqAreaEquipmentBo bo) {
|
|
||||||
Map<String, Object> params = bo.getParams();
|
|
||||||
LambdaQueryWrapper<EqAreaEquipment> lqw = Wrappers.lambdaQuery();
|
|
||||||
lqw.eq(bo.getAreaId() != null, EqAreaEquipment::getAreaId, bo.getAreaId());
|
|
||||||
lqw.eq(bo.getEquipmentId() != null, EqAreaEquipment::getEquipmentId, bo.getEquipmentId());
|
|
||||||
return lqw;
|
|
||||||
}
|
|
||||||
|
|
||||||
private QueryWrapper<EqEquipment> buildQueryEquipmentWrapper(EqAppHomeBo bo) {
|
|
||||||
QueryWrapper<EqEquipment> queryWrapper = Wrappers.query();
|
|
||||||
queryWrapper.eq(ObjectUtil.isNotNull(bo.getAreaId()), "ae.area_id", bo.getAreaId());
|
|
||||||
return queryWrapper;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增用户分布设备关联
|
|
||||||
*
|
|
||||||
* @param bo 用户分布设备关联
|
|
||||||
* @return 是否新增成功
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public Boolean insertByBo(EqAreaEquipmentBo bo) {
|
|
||||||
EqAreaEquipment add = MapstructUtils.convert(bo, EqAreaEquipment.class);
|
|
||||||
validEntityBeforeSave(add);
|
|
||||||
boolean flag = baseMapper.insert(add) > 0;
|
|
||||||
if (flag) {
|
|
||||||
bo.setId(add.getId());
|
|
||||||
}
|
|
||||||
return flag;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改用户分布设备关联
|
|
||||||
*
|
|
||||||
* @param bo 用户分布设备关联
|
|
||||||
* @return 是否修改成功
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public Boolean updateByBo(EqAreaEquipmentBo bo) {
|
|
||||||
EqAreaEquipment update = MapstructUtils.convert(bo, EqAreaEquipment.class);
|
|
||||||
validEntityBeforeSave(update);
|
|
||||||
return baseMapper.updateById(update) > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 保存前的数据校验
|
|
||||||
*/
|
|
||||||
private void validEntityBeforeSave(EqAreaEquipment entity){
|
|
||||||
//TODO 做一些数据校验,如唯一约束
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 校验并批量删除用户分布设备关联信息
|
|
||||||
*
|
|
||||||
* @param ids 待删除的主键集合
|
|
||||||
* @param isValid 是否进行有效性校验
|
|
||||||
* @return 是否删除成功
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
|
||||||
if(isValid){
|
|
||||||
//TODO 做一些业务上的校验,判断是否需要校验
|
|
||||||
}
|
|
||||||
return baseMapper.deleteByIds(ids) > 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
<?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="org.dromara.system.mapper.EqAreaEquipmentMapper">
|
|
||||||
|
|
||||||
|
|
||||||
<select id="selectPageEquipmentList" resultType="org.dromara.system.domain.vo.EqEquipmentVo">
|
|
||||||
SELECT e.* FROM eq_area_equipment ae
|
|
||||||
LEFT JOIN eq_equipment e
|
|
||||||
ON ae.equipment_id = e.equipment_id
|
|
||||||
${ew.getCustomSqlSegment}
|
|
||||||
</select>
|
|
||||||
</mapper>
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
<?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="org.dromara.system.mapper.EqEquipmentLogMapper">
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
<?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="org.dromara.system.mapper.EqUserConfigMapper">
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
Loading…
Reference in New Issue
Block a user