Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
|
39c45ddb0e | 13 hours ago |
|
777d51091e | 1 day ago |
|
31a5ce4204 | 1 day ago |
|
40bdd6ab38 | 1 day ago |
891 changed files with 141032 additions and 66 deletions
@ -1,35 +0,0 @@ |
|||
package cn.iocoder.yudao.framework.web.core.filter; |
|||
|
|||
import cn.hutool.core.util.StrUtil; |
|||
import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
|||
import cn.iocoder.yudao.framework.common.util.servlet.ServletUtils; |
|||
import cn.iocoder.yudao.framework.web.core.util.WebFrameworkUtils; |
|||
import org.springframework.web.filter.OncePerRequestFilter; |
|||
|
|||
import jakarta.servlet.FilterChain; |
|||
import jakarta.servlet.http.HttpServletRequest; |
|||
import jakarta.servlet.http.HttpServletResponse; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants.DEMO_DENY; |
|||
|
|||
/** |
|||
* 演示 Filter,禁止用户发起写操作,避免影响测试数据 |
|||
* |
|||
* @author 芋道源码 |
|||
*/ |
|||
public class DemoFilter extends OncePerRequestFilter { |
|||
|
|||
@Override |
|||
protected boolean shouldNotFilter(HttpServletRequest request) { |
|||
String method = request.getMethod(); |
|||
return !StrUtil.equalsAnyIgnoreCase(method, "POST", "PUT", "DELETE") // 写操作时,不进行过滤率
|
|||
|| WebFrameworkUtils.getLoginUserId(request) == null; // 非登录用户时,不进行过滤
|
|||
} |
|||
|
|||
@Override |
|||
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) { |
|||
// 直接返回 DEMO_DENY 的结果。即,请求不继续
|
|||
ServletUtils.writeJSON(response, CommonResult.error(DEMO_DENY)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,83 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|||
<parent> |
|||
<groupId>cn.iocoder.boot</groupId> |
|||
<artifactId>cc-admin-master</artifactId> |
|||
<version>${revision}</version> |
|||
</parent> |
|||
<modelVersion>4.0.0</modelVersion> |
|||
<artifactId>yudao-module-lock</artifactId> |
|||
<packaging>jar</packaging> |
|||
|
|||
<name>${project.artifactId}</name> |
|||
<description> |
|||
</description> |
|||
|
|||
<dependencies> |
|||
<dependency> |
|||
<groupId>cn.iocoder.boot</groupId> |
|||
<artifactId>yudao-module-infra</artifactId> |
|||
<version>${revision}</version> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>cn.iocoder.boot</groupId> |
|||
<artifactId>yudao-spring-boot-starter-web</artifactId> |
|||
</dependency> |
|||
<!-- 业务组件 --> |
|||
<dependency> |
|||
<groupId>cn.iocoder.boot</groupId> |
|||
<artifactId>yudao-spring-boot-starter-biz-data-permission</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>cn.iocoder.boot</groupId> |
|||
<artifactId>yudao-spring-boot-starter-biz-tenant</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>cn.iocoder.boot</groupId> |
|||
<artifactId>yudao-spring-boot-starter-biz-ip</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- Web 相关 --> |
|||
<dependency> |
|||
<groupId>cn.iocoder.boot</groupId> |
|||
<artifactId>yudao-spring-boot-starter-security</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-validation</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- DB 相关 --> |
|||
<dependency> |
|||
<groupId>cn.iocoder.boot</groupId> |
|||
<artifactId>yudao-spring-boot-starter-mybatis</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- 工具类相关 --> |
|||
<dependency> |
|||
<groupId>cn.iocoder.boot</groupId> |
|||
<artifactId>yudao-spring-boot-starter-excel</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-mail</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>com.anji-plus</groupId> |
|||
<artifactId>captcha-spring-boot-starter</artifactId> <!-- 验证码,一般用于登录使用 --> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.dromara.hutool</groupId> |
|||
<artifactId>hutool-extra</artifactId> <!-- 邮件 --> |
|||
</dependency> |
|||
|
|||
</dependencies> |
|||
|
|||
</project> |
@ -0,0 +1,105 @@ |
|||
package cn.iocoder.yudao.module.lock.controller.admin; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.IsolationPointDO; |
|||
import cn.iocoder.yudao.module.lock.service.IsolationPointService; |
|||
import cn.iocoder.yudao.module.lock.vo.IsolationPointPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.IsolationPointRespVO; |
|||
import cn.iocoder.yudao.module.lock.vo.IsolationPointSaveReqVO; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import jakarta.validation.*; |
|||
import jakarta.servlet.http.*; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
|||
|
|||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; |
|||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*; |
|||
|
|||
|
|||
@Tag(name = "管理后台 - 指导书与隔离点关联") |
|||
@RestController |
|||
@RequestMapping("/guide/isolation-point") |
|||
@Validated |
|||
public class IsolationPointController { |
|||
|
|||
@Resource |
|||
private IsolationPointService isolationPointService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建指导书与隔离点关联") |
|||
@PreAuthorize("@ss.hasPermission('guide:isolation-point:create')") |
|||
public CommonResult<Long> createIsolationPoint(@Valid @RequestBody IsolationPointSaveReqVO createReqVO) { |
|||
return success(isolationPointService.createIsolationPoint(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新指导书与隔离点关联") |
|||
@PreAuthorize("@ss.hasPermission('guide:isolation-point:update')") |
|||
public CommonResult<Boolean> updateIsolationPoint(@Valid @RequestBody IsolationPointSaveReqVO updateReqVO) { |
|||
isolationPointService.updateIsolationPoint(updateReqVO); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除指导书与隔离点关联") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('guide:isolation-point:delete')") |
|||
public CommonResult<Boolean> deleteIsolationPoint(@RequestParam("id") Long id) { |
|||
isolationPointService.deleteIsolationPoint(id); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete-list") |
|||
@Parameter(name = "ids", description = "编号", required = true) |
|||
@Operation(summary = "批量删除指导书与隔离点关联") |
|||
@PreAuthorize("@ss.hasPermission('guide:isolation-point:delete')") |
|||
public CommonResult<Boolean> deleteIsolationPointList(@RequestParam("ids") List<Long> ids) { |
|||
isolationPointService.deleteIsolationPointListByIds(ids); |
|||
return success(true); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得指导书与隔离点关联") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('guide:isolation-point:query')") |
|||
public CommonResult<IsolationPointRespVO> getIsolationPoint(@RequestParam("id") Long id) { |
|||
IsolationPointDO isolationPoint = isolationPointService.getIsolationPoint(id); |
|||
return success(BeanUtils.toBean(isolationPoint, IsolationPointRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得指导书与隔离点关联分页") |
|||
@PreAuthorize("@ss.hasPermission('guide:isolation-point:query')") |
|||
public CommonResult<PageResult<IsolationPointRespVO>> getIsolationPointPage(@Valid IsolationPointPageReqVO pageReqVO) { |
|||
PageResult<IsolationPointDO> pageResult = isolationPointService.getIsolationPointPage(pageReqVO); |
|||
return success(BeanUtils.toBean(pageResult, IsolationPointRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出指导书与隔离点关联 Excel") |
|||
@PreAuthorize("@ss.hasPermission('guide:isolation-point:export')") |
|||
@ApiAccessLog(operateType = EXPORT) |
|||
public void exportIsolationPointExcel(@Valid IsolationPointPageReqVO pageReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
|||
List<IsolationPointDO> list = isolationPointService.getIsolationPointPage(pageReqVO).getList(); |
|||
// 导出 Excel
|
|||
ExcelUtils.write(response, "指导书与隔离点关联.xls", "数据", IsolationPointRespVO.class, |
|||
BeanUtils.toBean(list, IsolationPointRespVO.class)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,110 @@ |
|||
package cn.iocoder.yudao.module.lock.controller.admin; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.LockDO; |
|||
import cn.iocoder.yudao.module.lock.service.LockService; |
|||
import cn.iocoder.yudao.module.lock.vo.LockPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockRespVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockSaveReqVO; |
|||
import jakarta.annotation.security.PermitAll; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import jakarta.validation.*; |
|||
import jakarta.servlet.http.*; |
|||
|
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
|||
|
|||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; |
|||
|
|||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*; |
|||
|
|||
|
|||
@Tag(name = "管理后台 - 电子锁") |
|||
@RestController |
|||
@RequestMapping("/electron/lock") |
|||
@Validated |
|||
public class LockController { |
|||
|
|||
@Resource |
|||
private LockService lockService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建电子锁") |
|||
@PreAuthorize("@ss.hasPermission('electron:lock:create')") |
|||
public CommonResult<Long> createLock(@Valid @RequestBody LockSaveReqVO createReqVO) { |
|||
return success(lockService.createLock(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新电子锁") |
|||
@PreAuthorize("@ss.hasPermission('electron:lock:update')") |
|||
public CommonResult<Boolean> updateLock(@Valid @RequestBody LockSaveReqVO updateReqVO) { |
|||
lockService.updateLock(updateReqVO); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除电子锁") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('electron:lock:delete')") |
|||
public CommonResult<Boolean> deleteLock(@RequestParam("id") Long id) { |
|||
lockService.deleteLock(id); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete-list") |
|||
@Parameter(name = "ids", description = "编号", required = true) |
|||
@Operation(summary = "批量删除电子锁") |
|||
@PreAuthorize("@ss.hasPermission('electron:lock:delete')") |
|||
public CommonResult<Boolean> deleteLockList(@RequestParam("ids") List<Long> ids) { |
|||
lockService.deleteLockListByIds(ids); |
|||
return success(true); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得电子锁") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('electron:lock:query')") |
|||
public CommonResult<LockRespVO> getLock(@RequestParam("id") Long id) { |
|||
LockDO lock = lockService.getLock(id); |
|||
return success(BeanUtils.toBean(lock, LockRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得电子锁分页") |
|||
//@PreAuthorize("@ss.hasPermission('electron:lock:query')")
|
|||
@PermitAll |
|||
public CommonResult<PageResult<LockRespVO>> getLockPage(@Valid LockPageReqVO pageReqVO) { |
|||
PageResult<LockDO> pageResult = lockService.getLockPage(pageReqVO); |
|||
return success(BeanUtils.toBean(pageResult, LockRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出电子锁 Excel") |
|||
@PreAuthorize("@ss.hasPermission('electron:lock:export')") |
|||
@ApiAccessLog(operateType = EXPORT) |
|||
public void exportLockExcel(@Valid LockPageReqVO pageReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
|||
List<LockDO> list = lockService.getLockPage(pageReqVO).getList(); |
|||
// 导出 Excel
|
|||
ExcelUtils.write(response, "电子锁.xls", "数据", LockRespVO.class, |
|||
BeanUtils.toBean(list, LockRespVO.class)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,105 @@ |
|||
package cn.iocoder.yudao.module.lock.controller.admin; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.LockGuideDO; |
|||
import cn.iocoder.yudao.module.lock.service.LockGuideService; |
|||
import cn.iocoder.yudao.module.lock.vo.LockGuidePageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockGuideRespVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockGuideSaveReqVO; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import jakarta.validation.*; |
|||
import jakarta.servlet.http.*; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
|||
|
|||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; |
|||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*; |
|||
|
|||
|
|||
@Tag(name = "管理后台 - 隔离指导书") |
|||
@RestController |
|||
@RequestMapping("/guide/lock-guide") |
|||
@Validated |
|||
public class LockGuideController { |
|||
|
|||
@Resource |
|||
private LockGuideService lockGuideService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建隔离指导书") |
|||
@PreAuthorize("@ss.hasPermission('guide:lock-guide:create')") |
|||
public CommonResult<Long> createLockGuide(@Valid @RequestBody LockGuideSaveReqVO createReqVO) { |
|||
return success(lockGuideService.createLockGuide(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新隔离指导书") |
|||
@PreAuthorize("@ss.hasPermission('guide:lock-guide:update')") |
|||
public CommonResult<Boolean> updateLockGuide(@Valid @RequestBody LockGuideSaveReqVO updateReqVO) { |
|||
lockGuideService.updateLockGuide(updateReqVO); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除隔离指导书") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('guide:lock-guide:delete')") |
|||
public CommonResult<Boolean> deleteLockGuide(@RequestParam("id") Long id) { |
|||
lockGuideService.deleteLockGuide(id); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete-list") |
|||
@Parameter(name = "ids", description = "编号", required = true) |
|||
@Operation(summary = "批量删除隔离指导书") |
|||
@PreAuthorize("@ss.hasPermission('guide:lock-guide:delete')") |
|||
public CommonResult<Boolean> deleteLockGuideList(@RequestParam("ids") List<Long> ids) { |
|||
lockGuideService.deleteLockGuideListByIds(ids); |
|||
return success(true); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得隔离指导书") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('guide:lock-guide:query')") |
|||
public CommonResult<LockGuideRespVO> getLockGuide(@RequestParam("id") Long id) { |
|||
LockGuideDO lockGuide = lockGuideService.getLockGuide(id); |
|||
return success(BeanUtils.toBean(lockGuide, LockGuideRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得隔离指导书分页") |
|||
@PreAuthorize("@ss.hasPermission('guide:lock-guide:query')") |
|||
public CommonResult<PageResult<LockGuideRespVO>> getLockGuidePage(@Valid LockGuidePageReqVO pageReqVO) { |
|||
PageResult<LockGuideDO> pageResult = lockGuideService.getLockGuidePage(pageReqVO); |
|||
return success(BeanUtils.toBean(pageResult, LockGuideRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出隔离指导书 Excel") |
|||
@PreAuthorize("@ss.hasPermission('guide:lock-guide:export')") |
|||
@ApiAccessLog(operateType = EXPORT) |
|||
public void exportLockGuideExcel(@Valid LockGuidePageReqVO pageReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
|||
List<LockGuideDO> list = lockGuideService.getLockGuidePage(pageReqVO).getList(); |
|||
// 导出 Excel
|
|||
ExcelUtils.write(response, "隔离指导书.xls", "数据", LockGuideRespVO.class, |
|||
BeanUtils.toBean(list, LockGuideRespVO.class)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,109 @@ |
|||
package cn.iocoder.yudao.module.lock.controller.admin; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.LockWorkRecordDO; |
|||
import cn.iocoder.yudao.module.lock.service.LockWorkRecordService; |
|||
import cn.iocoder.yudao.module.lock.vo.LockWorkRecordPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockWorkRecordRespVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockWorkRecordSaveReqVO; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import jakarta.validation.*; |
|||
import jakarta.servlet.http.*; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
|||
|
|||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; |
|||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*; |
|||
|
|||
|
|||
@Tag(name = "管理后台 - 电子锁操作记录") |
|||
@RestController |
|||
@RequestMapping("/electron/lock-word-record") |
|||
@Validated |
|||
public class LockWorkRecordController { |
|||
|
|||
@Resource |
|||
private LockWorkRecordService lockWorkRecordService; |
|||
|
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得电子锁操作记录分页") |
|||
@PreAuthorize("@ss.hasPermission('electron:lock-word-record:query')") |
|||
public CommonResult<PageResult<LockWorkRecordRespVO>> getLockWorkRecordPage(@Valid LockWorkRecordPageReqVO pageReqVO) { |
|||
PageResult<LockWorkRecordDO> pageResult = lockWorkRecordService.getLockWorkRecordPage(pageReqVO); |
|||
return success(BeanUtils.toBean(pageResult, LockWorkRecordRespVO.class)); |
|||
} |
|||
|
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建电子锁操作记录") |
|||
@PreAuthorize("@ss.hasPermission('electron:lock-word-record:create')") |
|||
public CommonResult<Long> createLockWorkRecord(@Valid @RequestBody LockWorkRecordSaveReqVO createReqVO) { |
|||
return success(lockWorkRecordService.createLockWorkRecord(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新电子锁操作记录") |
|||
@PreAuthorize("@ss.hasPermission('electron:lock-word-record:update')") |
|||
public CommonResult<Boolean> updateLockWorkRecord(@Valid @RequestBody LockWorkRecordSaveReqVO updateReqVO) { |
|||
lockWorkRecordService.updateLockWorkRecord(updateReqVO); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除电子锁操作记录") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('electron:lock-word-record:delete')") |
|||
public CommonResult<Boolean> deleteLockWorkRecord(@RequestParam("id") Long id) { |
|||
lockWorkRecordService.deleteLockWorkRecord(id); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete-list") |
|||
@Parameter(name = "ids", description = "编号", required = true) |
|||
@Operation(summary = "批量删除电子锁操作记录") |
|||
@PreAuthorize("@ss.hasPermission('electron:lock-word-record:delete')") |
|||
public CommonResult<Boolean> deleteLockWorkRecordList(@RequestParam("ids") List<Long> ids) { |
|||
lockWorkRecordService.deleteLockWorkRecordListByIds(ids); |
|||
return success(true); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得电子锁操作记录") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('electron:lock-word-record:query')") |
|||
public CommonResult<LockWorkRecordRespVO> getLockWorkRecord(@RequestParam("id") Long id) { |
|||
LockWorkRecordDO lockWorkRecord = lockWorkRecordService.getLockWorkRecord(id); |
|||
return success(BeanUtils.toBean(lockWorkRecord, LockWorkRecordRespVO.class)); |
|||
} |
|||
|
|||
|
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出电子锁操作记录 Excel") |
|||
@PreAuthorize("@ss.hasPermission('electron:lock-word-record:export')") |
|||
@ApiAccessLog(operateType = EXPORT) |
|||
public void exportLockWorkRecordExcel(@Valid LockWorkRecordPageReqVO pageReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
|||
List<LockWorkRecordDO> list = lockWorkRecordService.getLockWorkRecordPage(pageReqVO).getList(); |
|||
// 导出 Excel
|
|||
ExcelUtils.write(response, "电子锁操作记录.xls", "数据", LockWorkRecordRespVO.class, |
|||
BeanUtils.toBean(list, LockWorkRecordRespVO.class)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,105 @@ |
|||
package cn.iocoder.yudao.module.lock.controller.admin; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanDO; |
|||
import cn.iocoder.yudao.module.lock.service.PlanService; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanRespVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanSaveReqVO; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import jakarta.validation.*; |
|||
import jakarta.servlet.http.*; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
|||
|
|||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; |
|||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*; |
|||
|
|||
|
|||
@Tag(name = "管理后台 - 隔离计划") |
|||
@RestController |
|||
@RequestMapping("/isolation/plan") |
|||
@Validated |
|||
public class PlanController { |
|||
|
|||
@Resource |
|||
private PlanService planService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建隔离计划") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan:create')") |
|||
public CommonResult<Long> createPlan(@Valid @RequestBody PlanSaveReqVO createReqVO) { |
|||
return success(planService.createPlan(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新隔离计划") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan:update')") |
|||
public CommonResult<Boolean> updatePlan(@Valid @RequestBody PlanSaveReqVO updateReqVO) { |
|||
planService.updatePlan(updateReqVO); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除隔离计划") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan:delete')") |
|||
public CommonResult<Boolean> deletePlan(@RequestParam("id") Long id) { |
|||
planService.deletePlan(id); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete-list") |
|||
@Parameter(name = "ids", description = "编号", required = true) |
|||
@Operation(summary = "批量删除隔离计划") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan:delete')") |
|||
public CommonResult<Boolean> deletePlanList(@RequestParam("ids") List<Long> ids) { |
|||
planService.deletePlanListByIds(ids); |
|||
return success(true); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得隔离计划") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan:query')") |
|||
public CommonResult<PlanRespVO> getPlan(@RequestParam("id") Long id) { |
|||
PlanDO plan = planService.getPlan(id); |
|||
return success(BeanUtils.toBean(plan, PlanRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得隔离计划分页") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan:query')") |
|||
public CommonResult<PageResult<PlanRespVO>> getPlanPage(@Valid PlanPageReqVO pageReqVO) { |
|||
PageResult<PlanDO> pageResult = planService.getPlanPage(pageReqVO); |
|||
return success(BeanUtils.toBean(pageResult, PlanRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出隔离计划 Excel") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan:export')") |
|||
@ApiAccessLog(operateType = EXPORT) |
|||
public void exportPlanExcel(@Valid PlanPageReqVO pageReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
|||
List<PlanDO> list = planService.getPlanPage(pageReqVO).getList(); |
|||
// 导出 Excel
|
|||
ExcelUtils.write(response, "隔离计划.xls", "数据", PlanRespVO.class, |
|||
BeanUtils.toBean(list, PlanRespVO.class)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,105 @@ |
|||
package cn.iocoder.yudao.module.lock.controller.admin; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanItemDO; |
|||
import cn.iocoder.yudao.module.lock.service.PlanItemService; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemRespVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemSaveReqVO; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import jakarta.validation.*; |
|||
import jakarta.servlet.http.*; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
|||
|
|||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; |
|||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*; |
|||
|
|||
|
|||
@Tag(name = "管理后台 - 隔离计划子项") |
|||
@RestController |
|||
@RequestMapping("/isolation/plan-item") |
|||
@Validated |
|||
public class PlanItemController { |
|||
|
|||
@Resource |
|||
private PlanItemService planItemService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建隔离计划子项") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item:create')") |
|||
public CommonResult<Long> createPlanItem(@Valid @RequestBody PlanItemSaveReqVO createReqVO) { |
|||
return success(planItemService.createPlanItem(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新隔离计划子项") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item:update')") |
|||
public CommonResult<Boolean> updatePlanItem(@Valid @RequestBody PlanItemSaveReqVO updateReqVO) { |
|||
planItemService.updatePlanItem(updateReqVO); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除隔离计划子项") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item:delete')") |
|||
public CommonResult<Boolean> deletePlanItem(@RequestParam("id") Long id) { |
|||
planItemService.deletePlanItem(id); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete-list") |
|||
@Parameter(name = "ids", description = "编号", required = true) |
|||
@Operation(summary = "批量删除隔离计划子项") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item:delete')") |
|||
public CommonResult<Boolean> deletePlanItemList(@RequestParam("ids") List<Long> ids) { |
|||
planItemService.deletePlanItemListByIds(ids); |
|||
return success(true); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得隔离计划子项") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item:query')") |
|||
public CommonResult<PlanItemRespVO> getPlanItem(@RequestParam("id") Long id) { |
|||
PlanItemDO planItem = planItemService.getPlanItem(id); |
|||
return success(BeanUtils.toBean(planItem, PlanItemRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得隔离计划子项分页") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item:query')") |
|||
public CommonResult<PageResult<PlanItemRespVO>> getPlanItemPage(@Valid PlanItemPageReqVO pageReqVO) { |
|||
PageResult<PlanItemDO> pageResult = planItemService.getPlanItemPage(pageReqVO); |
|||
return success(BeanUtils.toBean(pageResult, PlanItemRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出隔离计划子项 Excel") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item:export')") |
|||
@ApiAccessLog(operateType = EXPORT) |
|||
public void exportPlanItemExcel(@Valid PlanItemPageReqVO pageReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
|||
List<PlanItemDO> list = planItemService.getPlanItemPage(pageReqVO).getList(); |
|||
// 导出 Excel
|
|||
ExcelUtils.write(response, "隔离计划子项.xls", "数据", PlanItemRespVO.class, |
|||
BeanUtils.toBean(list, PlanItemRespVO.class)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,108 @@ |
|||
package cn.iocoder.yudao.module.lock.controller.admin; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanItemDetailDO; |
|||
import cn.iocoder.yudao.module.lock.service.PlanItemDetailService; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemDetailPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemDetailRespVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemDetailSaveReqVO; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import jakarta.validation.*; |
|||
import jakarta.servlet.http.*; |
|||
|
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
|||
|
|||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; |
|||
|
|||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*; |
|||
|
|||
|
|||
@Tag(name = "管理后台 - 隔离计划子项详情") |
|||
@RestController |
|||
@RequestMapping("/isolation/plan-item-detail") |
|||
@Validated |
|||
public class PlanItemDetailController { |
|||
|
|||
@Resource |
|||
private PlanItemDetailService planItemDetailService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建隔离计划子项详情") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item-detail:create')") |
|||
public CommonResult<Long> createPlanItemDetail(@Valid @RequestBody PlanItemDetailSaveReqVO createReqVO) { |
|||
return success(planItemDetailService.createPlanItemDetail(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新隔离计划子项详情") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item-detail:update')") |
|||
public CommonResult<Boolean> updatePlanItemDetail(@Valid @RequestBody PlanItemDetailSaveReqVO updateReqVO) { |
|||
planItemDetailService.updatePlanItemDetail(updateReqVO); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除隔离计划子项详情") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item-detail:delete')") |
|||
public CommonResult<Boolean> deletePlanItemDetail(@RequestParam("id") Long id) { |
|||
planItemDetailService.deletePlanItemDetail(id); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete-list") |
|||
@Parameter(name = "ids", description = "编号", required = true) |
|||
@Operation(summary = "批量删除隔离计划子项详情") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item-detail:delete')") |
|||
public CommonResult<Boolean> deletePlanItemDetailList(@RequestParam("ids") List<Long> ids) { |
|||
planItemDetailService.deletePlanItemDetailListByIds(ids); |
|||
return success(true); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得隔离计划子项详情") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item-detail:query')") |
|||
public CommonResult<PlanItemDetailRespVO> getPlanItemDetail(@RequestParam("id") Long id) { |
|||
PlanItemDetailDO planItemDetail = planItemDetailService.getPlanItemDetail(id); |
|||
return success(BeanUtils.toBean(planItemDetail, PlanItemDetailRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得隔离计划子项详情分页") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item-detail:query')") |
|||
public CommonResult<PageResult<PlanItemDetailRespVO>> getPlanItemDetailPage(@Valid PlanItemDetailPageReqVO pageReqVO) { |
|||
PageResult<PlanItemDetailDO> pageResult = planItemDetailService.getPlanItemDetailPage(pageReqVO); |
|||
return success(BeanUtils.toBean(pageResult, PlanItemDetailRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出隔离计划子项详情 Excel") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-item-detail:export')") |
|||
@ApiAccessLog(operateType = EXPORT) |
|||
public void exportPlanItemDetailExcel(@Valid PlanItemDetailPageReqVO pageReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
|||
List<PlanItemDetailDO> list = planItemDetailService.getPlanItemDetailPage(pageReqVO).getList(); |
|||
// 导出 Excel
|
|||
ExcelUtils.write(response, "隔离计划子项详情.xls", "数据", PlanItemDetailRespVO.class, |
|||
BeanUtils.toBean(list, PlanItemDetailRespVO.class)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,105 @@ |
|||
package cn.iocoder.yudao.module.lock.controller.admin; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanLifeLockDO; |
|||
import cn.iocoder.yudao.module.lock.service.PlanLifeLockService; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanLifeLockPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanLifeLockRespVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanLifeLockSaveReqVO; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import jakarta.validation.*; |
|||
import jakarta.servlet.http.*; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
|||
|
|||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; |
|||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*; |
|||
|
|||
|
|||
@Tag(name = "管理后台 - 个人生命锁") |
|||
@RestController |
|||
@RequestMapping("/isolation/plan-life-lock") |
|||
@Validated |
|||
public class PlanLifeLockController { |
|||
|
|||
@Resource |
|||
private PlanLifeLockService planLifeLockService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建个人生命锁") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-life-lock:create')") |
|||
public CommonResult<Long> createPlanLifeLock(@Valid @RequestBody PlanLifeLockSaveReqVO createReqVO) { |
|||
return success(planLifeLockService.createPlanLifeLock(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新个人生命锁") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-life-lock:update')") |
|||
public CommonResult<Boolean> updatePlanLifeLock(@Valid @RequestBody PlanLifeLockSaveReqVO updateReqVO) { |
|||
planLifeLockService.updatePlanLifeLock(updateReqVO); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除个人生命锁") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-life-lock:delete')") |
|||
public CommonResult<Boolean> deletePlanLifeLock(@RequestParam("id") Long id) { |
|||
planLifeLockService.deletePlanLifeLock(id); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete-list") |
|||
@Parameter(name = "ids", description = "编号", required = true) |
|||
@Operation(summary = "批量删除个人生命锁") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-life-lock:delete')") |
|||
public CommonResult<Boolean> deletePlanLifeLockList(@RequestParam("ids") List<Long> ids) { |
|||
planLifeLockService.deletePlanLifeLockListByIds(ids); |
|||
return success(true); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得个人生命锁") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-life-lock:query')") |
|||
public CommonResult<PlanLifeLockRespVO> getPlanLifeLock(@RequestParam("id") Long id) { |
|||
PlanLifeLockDO planLifeLock = planLifeLockService.getPlanLifeLock(id); |
|||
return success(BeanUtils.toBean(planLifeLock, PlanLifeLockRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得个人生命锁分页") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-life-lock:query')") |
|||
public CommonResult<PageResult<PlanLifeLockRespVO>> getPlanLifeLockPage(@Valid PlanLifeLockPageReqVO pageReqVO) { |
|||
PageResult<PlanLifeLockDO> pageResult = planLifeLockService.getPlanLifeLockPage(pageReqVO); |
|||
return success(BeanUtils.toBean(pageResult, PlanLifeLockRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出个人生命锁 Excel") |
|||
@PreAuthorize("@ss.hasPermission('isolation:plan-life-lock:export')") |
|||
@ApiAccessLog(operateType = EXPORT) |
|||
public void exportPlanLifeLockExcel(@Valid PlanLifeLockPageReqVO pageReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
|||
List<PlanLifeLockDO> list = planLifeLockService.getPlanLifeLockPage(pageReqVO).getList(); |
|||
// 导出 Excel
|
|||
ExcelUtils.write(response, "个人生命锁.xls", "数据", PlanLifeLockRespVO.class, |
|||
BeanUtils.toBean(list, PlanLifeLockRespVO.class)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,105 @@ |
|||
package cn.iocoder.yudao.module.lock.controller.admin; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PointDO; |
|||
import cn.iocoder.yudao.module.lock.service.PointService; |
|||
import cn.iocoder.yudao.module.lock.vo.PointPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PointRespVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PointSaveReqVO; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import jakarta.validation.*; |
|||
import jakarta.servlet.http.*; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
|||
|
|||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; |
|||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*; |
|||
|
|||
|
|||
@Tag(name = "管理后台 - 隔离点") |
|||
@RestController |
|||
@RequestMapping("/isolation/point") |
|||
@Validated |
|||
public class PointController { |
|||
|
|||
@Resource |
|||
private PointService pointService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建隔离点") |
|||
@PreAuthorize("@ss.hasPermission('isolation:point:create')") |
|||
public CommonResult<Long> createPoint(@Valid @RequestBody PointSaveReqVO createReqVO) { |
|||
return success(pointService.createPoint(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新隔离点") |
|||
@PreAuthorize("@ss.hasPermission('isolation:point:update')") |
|||
public CommonResult<Boolean> updatePoint(@Valid @RequestBody PointSaveReqVO updateReqVO) { |
|||
pointService.updatePoint(updateReqVO); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除隔离点") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('isolation:point:delete')") |
|||
public CommonResult<Boolean> deletePoint(@RequestParam("id") Long id) { |
|||
pointService.deletePoint(id); |
|||
return success(true); |
|||
} |
|||
|
|||
@DeleteMapping("/delete-list") |
|||
@Parameter(name = "ids", description = "编号", required = true) |
|||
@Operation(summary = "批量删除隔离点") |
|||
@PreAuthorize("@ss.hasPermission('isolation:point:delete')") |
|||
public CommonResult<Boolean> deletePointList(@RequestParam("ids") List<Long> ids) { |
|||
pointService.deletePointListByIds(ids); |
|||
return success(true); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得隔离点") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('isolation:point:query')") |
|||
public CommonResult<PointRespVO> getPoint(@RequestParam("id") Long id) { |
|||
PointDO point = pointService.getPoint(id); |
|||
return success(BeanUtils.toBean(point, PointRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得隔离点分页") |
|||
@PreAuthorize("@ss.hasPermission('isolation:point:query')") |
|||
public CommonResult<PageResult<PointRespVO>> getPointPage(@Valid PointPageReqVO pageReqVO) { |
|||
PageResult<PointDO> pageResult = pointService.getPointPage(pageReqVO); |
|||
return success(BeanUtils.toBean(pageResult, PointRespVO.class)); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出隔离点 Excel") |
|||
@PreAuthorize("@ss.hasPermission('isolation:point:export')") |
|||
@ApiAccessLog(operateType = EXPORT) |
|||
public void exportPointExcel(@Valid PointPageReqVO pageReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
|||
List<PointDO> list = pointService.getPointPage(pageReqVO).getList(); |
|||
// 导出 Excel
|
|||
ExcelUtils.write(response, "隔离点.xls", "数据", PointRespVO.class, |
|||
BeanUtils.toBean(list, PointRespVO.class)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,4 @@ |
|||
/** |
|||
* infra 模块的 web 配置 |
|||
*/ |
|||
package cn.iocoder.yudao.module.lock.controller; |
@ -0,0 +1,40 @@ |
|||
package cn.iocoder.yudao.module.lock.dal; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 指导书与隔离点关联 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("guide_isolation_point") |
|||
@KeySequence("guide_isolation_point_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class IsolationPointDO extends BaseDO { |
|||
|
|||
/** |
|||
* id |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 隔离指导书ID |
|||
*/ |
|||
private Long guideId; |
|||
/** |
|||
* 隔离点ID |
|||
*/ |
|||
private Long isolationPointId; |
|||
|
|||
|
|||
} |
@ -0,0 +1,61 @@ |
|||
package cn.iocoder.yudao.module.lock.dal; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 电子锁 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("electron_lock") |
|||
@KeySequence("electron_lock_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class LockDO extends BaseDO { |
|||
|
|||
/** |
|||
* 主键ID |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 编号 |
|||
*/ |
|||
private String lockNumber; |
|||
/** |
|||
* 名称 |
|||
*/ |
|||
private String lockName; |
|||
/** |
|||
* 状态 |
|||
*/ |
|||
private String lockStatus; |
|||
/** |
|||
* 锁具类型 |
|||
*/ |
|||
private String lockType; |
|||
/** |
|||
* 启用状态: 0=未启用, 1=已启用 |
|||
*/ |
|||
private Boolean lockEnableStatus; |
|||
/** |
|||
* 上次充电时间 |
|||
*/ |
|||
private LocalDateTime lockLastChargeTime; |
|||
/** |
|||
* 蓝牙ID |
|||
*/ |
|||
private String lockBluetoothId; |
|||
|
|||
|
|||
} |
@ -0,0 +1,40 @@ |
|||
package cn.iocoder.yudao.module.lock.dal; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 隔离指导书 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("guide") |
|||
@KeySequence("guide_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class LockGuideDO extends BaseDO { |
|||
|
|||
/** |
|||
* 主键ID |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 工作内容和范围 |
|||
*/ |
|||
private String guideContent; |
|||
/** |
|||
* 所需设备锁数量 |
|||
*/ |
|||
private Integer guideLockNums; |
|||
|
|||
|
|||
} |
@ -0,0 +1,64 @@ |
|||
package cn.iocoder.yudao.module.lock.dal; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 电子锁操作记录 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("electron_lock_work_record") |
|||
@KeySequence("electron_lock_work_record_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class LockWorkRecordDO extends BaseDO { |
|||
|
|||
/** |
|||
* 主键ID |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 操作人ID |
|||
*/ |
|||
private Long operatorId; |
|||
/** |
|||
* 电子锁ID |
|||
*/ |
|||
private Long lockId; |
|||
/** |
|||
* 关联的子项详情ID (某些操作可能不关联) |
|||
*/ |
|||
private Long isolationPlanItemDetailId; |
|||
/** |
|||
* 记录类型 |
|||
*/ |
|||
private String recordType; |
|||
/** |
|||
* 操作签名 (图片路径) |
|||
*/ |
|||
private String signaturePath; |
|||
/** |
|||
* 操作前照片 (图片路径) |
|||
*/ |
|||
private String beforePhotoPath; |
|||
/** |
|||
* 操作后照片 (图片路径) |
|||
*/ |
|||
private String afterPhotoPath; |
|||
/** |
|||
* 操作GPS坐标 |
|||
*/ |
|||
private String gpsCoordinates; |
|||
|
|||
|
|||
} |
@ -0,0 +1,36 @@ |
|||
package cn.iocoder.yudao.module.lock.dal; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 隔离计划 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("isolation_plan") |
|||
@KeySequence("isolation_plan_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PlanDO extends BaseDO { |
|||
|
|||
/** |
|||
* 主键ID |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 计划名称 |
|||
*/ |
|||
private String ipName; |
|||
|
|||
|
|||
} |
@ -0,0 +1,60 @@ |
|||
package cn.iocoder.yudao.module.lock.dal; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 隔离计划子项 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("isolation_plan_item") |
|||
@KeySequence("isolation_plan_item_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PlanItemDO extends BaseDO { |
|||
|
|||
/** |
|||
* 主键ID |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 隔离计划ID |
|||
*/ |
|||
private Long isolationPlanId; |
|||
/** |
|||
* 隔离指导书ID |
|||
*/ |
|||
private Long guideId; |
|||
/** |
|||
* 集中挂牌人ID |
|||
*/ |
|||
private Long operatorId; |
|||
/** |
|||
* 集中挂牌协助人ID |
|||
*/ |
|||
private Long operatorHelperId; |
|||
/** |
|||
* 验证人ID |
|||
*/ |
|||
private Long verifierId; |
|||
/** |
|||
* 验证协助人ID |
|||
*/ |
|||
private Long verifierHelperId; |
|||
/** |
|||
* 子项状态: 0=未完成, 1=已完成 |
|||
*/ |
|||
private Boolean status; |
|||
|
|||
|
|||
} |
@ -0,0 +1,48 @@ |
|||
package cn.iocoder.yudao.module.lock.dal; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 隔离计划子项详情 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("isolation_plan_item_detail") |
|||
@KeySequence("isolation_plan_item_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PlanItemDetailDO extends BaseDO { |
|||
|
|||
/** |
|||
* 主键ID |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 隔离计划子项ID |
|||
*/ |
|||
private Long isolationPlanItemId; |
|||
/** |
|||
* 隔离点ID |
|||
*/ |
|||
private Long isolationPointId; |
|||
/** |
|||
* 电子锁ID |
|||
*/ |
|||
private Long lockId; |
|||
/** |
|||
* 锁状态: 0=未上锁, 1=已上锁, 2=已解锁 |
|||
*/ |
|||
private Boolean lockStatus; |
|||
|
|||
|
|||
} |
@ -0,0 +1,58 @@ |
|||
package cn.iocoder.yudao.module.lock.dal; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 个人生命锁 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("isolation_plan_life_lock") |
|||
@KeySequence("isolation_plan_life_lock_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PlanLifeLockDO extends BaseDO { |
|||
|
|||
/** |
|||
* 主键ID |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 子项详情ID |
|||
*/ |
|||
private Long isolationPlanItemDetailId; |
|||
/** |
|||
* 上锁人ID |
|||
*/ |
|||
private Long userId; |
|||
/** |
|||
* 生命锁类型 |
|||
*/ |
|||
private String lockType; |
|||
/** |
|||
* 锁定状态: 0=未上锁, 1=已上锁 |
|||
*/ |
|||
private Boolean lockStatus; |
|||
/** |
|||
* 上锁时间 |
|||
*/ |
|||
private LocalDateTime lockTime; |
|||
/** |
|||
* 解锁时间 |
|||
*/ |
|||
private LocalDateTime unlockTime; |
|||
|
|||
|
|||
} |
@ -0,0 +1,48 @@ |
|||
package cn.iocoder.yudao.module.lock.dal; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 隔离点 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("isolation_point") |
|||
@KeySequence("isolation_point_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PointDO extends BaseDO { |
|||
|
|||
/** |
|||
* 主键ID |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 隔离点类型 |
|||
*/ |
|||
private String ipType; |
|||
/** |
|||
* 隔离点名称 |
|||
*/ |
|||
private String ipName; |
|||
/** |
|||
* 隔离点位置 |
|||
*/ |
|||
private String ipLocation; |
|||
/** |
|||
* 隔离点编号 |
|||
*/ |
|||
private String ipNumber; |
|||
|
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package cn.iocoder.yudao.module.lock.enums; |
|||
|
|||
import cn.iocoder.yudao.framework.common.exception.ErrorCode; |
|||
|
|||
|
|||
public interface ErrorCodeConstants { |
|||
|
|||
ErrorCode LOCK_NOT_EXISTS = new ErrorCode(1_005_000_001, "电子锁不存在"); |
|||
|
|||
ErrorCode LOCK_WORD_RECORD_NOT_EXISTS = new ErrorCode(1_005_000_002, "电子锁操作记录不存在"); |
|||
|
|||
ErrorCode ISOLATION_POINT_NOT_EXISTS = new ErrorCode(1_005_000_003, "指导书与隔离点关联不存在"); |
|||
|
|||
ErrorCode PLAN_NOT_EXISTS = new ErrorCode(1_005_000_004, "隔离计划不存在"); |
|||
|
|||
ErrorCode PLAN_ITEM_NOT_EXISTS = new ErrorCode(1_005_000_005, "隔离计划子项不存在"); |
|||
|
|||
ErrorCode LOCK_GUIDE_NOT_EXISTS = new ErrorCode(1_005_000_006, "隔离指导书不存在"); |
|||
|
|||
ErrorCode PLAN_ITEM_DETAIL_NOT_EXISTS = new ErrorCode(1_005_000_007, "隔离计划子项详情不存在"); |
|||
|
|||
ErrorCode PLAN_LIFE_LOCK_NOT_EXISTS = new ErrorCode(1_005_000_008, "个人生命锁不存在"); |
|||
|
|||
ErrorCode POINT_NOT_EXISTS = new ErrorCode(1_005_000_009, "隔离点不存在"); |
|||
} |
@ -0,0 +1,6 @@ |
|||
/** |
|||
* 属于 report 模块的 framework 封装 |
|||
* |
|||
* @author 芋道源码 |
|||
*/ |
|||
package cn.iocoder.yudao.module.lock.framework; |
@ -0,0 +1,24 @@ |
|||
package cn.iocoder.yudao.module.lock.framework.web.config; |
|||
|
|||
import cn.iocoder.yudao.framework.swagger.config.YudaoSwaggerAutoConfiguration; |
|||
import org.springdoc.core.models.GroupedOpenApi; |
|||
import org.springframework.context.annotation.Bean; |
|||
import org.springframework.context.annotation.Configuration; |
|||
|
|||
/** |
|||
* infra 模块的 web 组件的 Configuration |
|||
* |
|||
* @author 芋道源码 |
|||
*/ |
|||
@Configuration(proxyBeanMethods = false) |
|||
public class LockWebConfiguration { |
|||
|
|||
/** |
|||
* infra 模块的 API 分组 |
|||
*/ |
|||
@Bean |
|||
public GroupedOpenApi lockGroupedOpenApi() { |
|||
return YudaoSwaggerAutoConfiguration.buildGroupedOpenApi("lock"); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,4 @@ |
|||
/** |
|||
* infra 模块的 web 配置 |
|||
*/ |
|||
package cn.iocoder.yudao.module.lock.framework.web; |
@ -0,0 +1,26 @@ |
|||
package cn.iocoder.yudao.module.lock.mapper; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.IsolationPointDO; |
|||
import cn.iocoder.yudao.module.lock.vo.IsolationPointPageReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 指导书与隔离点关联 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface IsolationPointMapper extends BaseMapperX<IsolationPointDO> { |
|||
|
|||
default PageResult<IsolationPointDO> selectPage(IsolationPointPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<IsolationPointDO>() |
|||
.eqIfPresent(IsolationPointDO::getGuideId, reqVO.getGuideId()) |
|||
.eqIfPresent(IsolationPointDO::getIsolationPointId, reqVO.getIsolationPointId()) |
|||
.betweenIfPresent(IsolationPointDO::getCreateTime, reqVO.getCreateTime()) |
|||
.orderByDesc(IsolationPointDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
package cn.iocoder.yudao.module.lock.mapper; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.LockGuideDO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockGuidePageReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 隔离指导书 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface LockGuideMapper extends BaseMapperX<LockGuideDO> { |
|||
|
|||
default PageResult<LockGuideDO> selectPage(LockGuidePageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<LockGuideDO>() |
|||
.eqIfPresent(LockGuideDO::getGuideContent, reqVO.getGuideContent()) |
|||
.eqIfPresent(LockGuideDO::getGuideLockNums, reqVO.getGuideLockNums()) |
|||
.betweenIfPresent(LockGuideDO::getCreateTime, reqVO.getCreateTime()) |
|||
.orderByDesc(LockGuideDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,31 @@ |
|||
package cn.iocoder.yudao.module.lock.mapper; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.LockDO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockPageReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 电子锁 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface LockMapper extends BaseMapperX<LockDO> { |
|||
|
|||
default PageResult<LockDO> selectPage(LockPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<LockDO>() |
|||
.eqIfPresent(LockDO::getLockNumber, reqVO.getLockNumber()) |
|||
.likeIfPresent(LockDO::getLockName, reqVO.getLockName()) |
|||
.eqIfPresent(LockDO::getLockStatus, reqVO.getLockStatus()) |
|||
.eqIfPresent(LockDO::getLockType, reqVO.getLockType()) |
|||
.eqIfPresent(LockDO::getLockEnableStatus, reqVO.getLockEnableStatus()) |
|||
.betweenIfPresent(LockDO::getLockLastChargeTime, reqVO.getLockLastChargeTime()) |
|||
.eqIfPresent(LockDO::getLockBluetoothId, reqVO.getLockBluetoothId()) |
|||
.betweenIfPresent(LockDO::getCreateTime, reqVO.getCreateTime()) |
|||
.orderByDesc(LockDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
package cn.iocoder.yudao.module.lock.mapper; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.LockWorkRecordDO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockWorkRecordPageReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 电子锁操作记录 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface LockWorkRecordMapper extends BaseMapperX<LockWorkRecordDO> { |
|||
|
|||
default PageResult<LockWorkRecordDO> selectPage(LockWorkRecordPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<LockWorkRecordDO>() |
|||
.eqIfPresent(LockWorkRecordDO::getOperatorId, reqVO.getOperatorId()) |
|||
.eqIfPresent(LockWorkRecordDO::getLockId, reqVO.getLockId()) |
|||
.eqIfPresent(LockWorkRecordDO::getIsolationPlanItemDetailId, reqVO.getIsolationPlanItemDetailId()) |
|||
.eqIfPresent(LockWorkRecordDO::getRecordType, reqVO.getRecordType()) |
|||
.eqIfPresent(LockWorkRecordDO::getSignaturePath, reqVO.getSignaturePath()) |
|||
.eqIfPresent(LockWorkRecordDO::getBeforePhotoPath, reqVO.getBeforePhotoPath()) |
|||
.eqIfPresent(LockWorkRecordDO::getAfterPhotoPath, reqVO.getAfterPhotoPath()) |
|||
.eqIfPresent(LockWorkRecordDO::getGpsCoordinates, reqVO.getGpsCoordinates()) |
|||
.betweenIfPresent(LockWorkRecordDO::getCreateTime, reqVO.getCreateTime()) |
|||
.orderByDesc(LockWorkRecordDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,29 @@ |
|||
package cn.iocoder.yudao.module.lock.mapper; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanItemDetailDO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemDetailPageReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
|||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
|
|||
/** |
|||
* 隔离计划子项详情 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PlanItemDetailMapper extends BaseMapperX<PlanItemDetailDO> { |
|||
|
|||
default PageResult<PlanItemDetailDO> selectPage(PlanItemDetailPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<PlanItemDetailDO>() |
|||
.eqIfPresent(PlanItemDetailDO::getIsolationPlanItemId, reqVO.getIsolationPlanItemId()) |
|||
.eqIfPresent(PlanItemDetailDO::getIsolationPointId, reqVO.getIsolationPointId()) |
|||
.eqIfPresent(PlanItemDetailDO::getLockId, reqVO.getLockId()) |
|||
.eqIfPresent(PlanItemDetailDO::getLockStatus, reqVO.getLockStatus()) |
|||
.betweenIfPresent(PlanItemDetailDO::getCreateTime, reqVO.getCreateTime()) |
|||
.orderByDesc(PlanItemDetailDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,31 @@ |
|||
package cn.iocoder.yudao.module.lock.mapper; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanItemDO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemPageReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 隔离计划子项 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PlanItemMapper extends BaseMapperX<PlanItemDO> { |
|||
|
|||
default PageResult<PlanItemDO> selectPage(PlanItemPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<PlanItemDO>() |
|||
.eqIfPresent(PlanItemDO::getIsolationPlanId, reqVO.getIsolationPlanId()) |
|||
.eqIfPresent(PlanItemDO::getGuideId, reqVO.getGuideId()) |
|||
.eqIfPresent(PlanItemDO::getOperatorId, reqVO.getOperatorId()) |
|||
.eqIfPresent(PlanItemDO::getOperatorHelperId, reqVO.getOperatorHelperId()) |
|||
.eqIfPresent(PlanItemDO::getVerifierId, reqVO.getVerifierId()) |
|||
.eqIfPresent(PlanItemDO::getVerifierHelperId, reqVO.getVerifierHelperId()) |
|||
.eqIfPresent(PlanItemDO::getStatus, reqVO.getStatus()) |
|||
.betweenIfPresent(PlanItemDO::getCreateTime, reqVO.getCreateTime()) |
|||
.orderByDesc(PlanItemDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,30 @@ |
|||
package cn.iocoder.yudao.module.lock.mapper; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanLifeLockDO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanLifeLockPageReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 个人生命锁 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PlanLifeLockMapper extends BaseMapperX<PlanLifeLockDO> { |
|||
|
|||
default PageResult<PlanLifeLockDO> selectPage(PlanLifeLockPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<PlanLifeLockDO>() |
|||
.eqIfPresent(PlanLifeLockDO::getIsolationPlanItemDetailId, reqVO.getIsolationPlanItemDetailId()) |
|||
.eqIfPresent(PlanLifeLockDO::getUserId, reqVO.getUserId()) |
|||
.eqIfPresent(PlanLifeLockDO::getLockType, reqVO.getLockType()) |
|||
.eqIfPresent(PlanLifeLockDO::getLockStatus, reqVO.getLockStatus()) |
|||
.betweenIfPresent(PlanLifeLockDO::getLockTime, reqVO.getLockTime()) |
|||
.betweenIfPresent(PlanLifeLockDO::getUnlockTime, reqVO.getUnlockTime()) |
|||
.betweenIfPresent(PlanLifeLockDO::getCreateTime, reqVO.getCreateTime()) |
|||
.orderByDesc(PlanLifeLockDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package cn.iocoder.yudao.module.lock.mapper; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanDO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanPageReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 隔离计划 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PlanMapper extends BaseMapperX<PlanDO> { |
|||
|
|||
default PageResult<PlanDO> selectPage(PlanPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<PlanDO>() |
|||
.likeIfPresent(PlanDO::getIpName, reqVO.getIpName()) |
|||
.betweenIfPresent(PlanDO::getCreateTime, reqVO.getCreateTime()) |
|||
.orderByDesc(PlanDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package cn.iocoder.yudao.module.lock.mapper; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PointDO; |
|||
import cn.iocoder.yudao.module.lock.vo.PointPageReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 隔离点 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PointMapper extends BaseMapperX<PointDO> { |
|||
|
|||
default PageResult<PointDO> selectPage(PointPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<PointDO>() |
|||
.eqIfPresent(PointDO::getIpType, reqVO.getIpType()) |
|||
.likeIfPresent(PointDO::getIpName, reqVO.getIpName()) |
|||
.eqIfPresent(PointDO::getIpLocation, reqVO.getIpLocation()) |
|||
.eqIfPresent(PointDO::getIpNumber, reqVO.getIpNumber()) |
|||
.betweenIfPresent(PointDO::getCreateTime, reqVO.getCreateTime()) |
|||
.orderByDesc(PointDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,12 @@ |
|||
<?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="cn.iocoder.yudao.module.lock.mapper.IsolationPointMapper"> |
|||
|
|||
<!-- |
|||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 |
|||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。 |
|||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。 |
|||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ |
|||
--> |
|||
|
|||
</mapper> |
@ -0,0 +1,12 @@ |
|||
<?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="cn.iocoder.yudao.module.lock.mapper.LockGuideMapper"> |
|||
|
|||
<!-- |
|||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 |
|||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。 |
|||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。 |
|||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ |
|||
--> |
|||
|
|||
</mapper> |
@ -0,0 +1,10 @@ |
|||
<?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="cn.iocoder.yudao.module.lock.mapper.LockMapper"> |
|||
|
|||
<!-- |
|||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 |
|||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。 |
|||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。 --> |
|||
|
|||
</mapper> |
@ -0,0 +1,12 @@ |
|||
<?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="cn.iocoder.yudao.module.lock.mapper.LockWorkRecordMapper"> |
|||
|
|||
<!-- |
|||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 |
|||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。 |
|||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。 |
|||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ |
|||
--> |
|||
|
|||
</mapper> |
@ -0,0 +1,12 @@ |
|||
<?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="cn.iocoder.yudao.module.lock.mapper.PlanItemDetailMapper"> |
|||
|
|||
<!-- |
|||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 |
|||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。 |
|||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。 |
|||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ |
|||
--> |
|||
|
|||
</mapper> |
@ -0,0 +1,12 @@ |
|||
<?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="cn.iocoder.yudao.module.lock.mapper.PlanItemMapper"> |
|||
|
|||
<!-- |
|||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 |
|||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。 |
|||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。 |
|||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ |
|||
--> |
|||
|
|||
</mapper> |
@ -0,0 +1,12 @@ |
|||
<?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="cn.iocoder.yudao.module.lock.mapper.PlanLifeLockMapper"> |
|||
|
|||
<!-- |
|||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 |
|||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。 |
|||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。 |
|||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ |
|||
--> |
|||
|
|||
</mapper> |
@ -0,0 +1,12 @@ |
|||
<?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="cn.iocoder.yudao.module.lock.mapper.PlanMapper"> |
|||
|
|||
<!-- |
|||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 |
|||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。 |
|||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。 |
|||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ |
|||
--> |
|||
|
|||
</mapper> |
@ -0,0 +1,12 @@ |
|||
<?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="cn.iocoder.yudao.module.lock.mapper.PointMapper"> |
|||
|
|||
<!-- |
|||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。 |
|||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。 |
|||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。 |
|||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ |
|||
--> |
|||
|
|||
</mapper> |
@ -0,0 +1,12 @@ |
|||
/** |
|||
* bpm 包下,业务流程管理(Business Process Management),我们放工作流的功能,基于 Flowable 6 版本实现。 |
|||
* 例如说:流程定义、表单配置、审核中心(我的申请、我的待办、我的已办)等等 |
|||
* |
|||
* bpm 解释:https://baike.baidu.com/item/BPM/1933
|
|||
* |
|||
* 1. Controller URL:以 /bpm/ 开头,避免和其它 Module 冲突 |
|||
* 2. DataObject 表名:以 bpm_ 开头,方便在数据库中区分 |
|||
* |
|||
* 注意,由于 Bpm 模块下,容易和其它模块重名,所以类名都加载 Bpm 的前缀~ |
|||
*/ |
|||
package cn.iocoder.yudao.module.lock; |
@ -0,0 +1,64 @@ |
|||
package cn.iocoder.yudao.module.lock.service; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.IsolationPointDO; |
|||
import cn.iocoder.yudao.module.lock.vo.IsolationPointPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.IsolationPointSaveReqVO; |
|||
import jakarta.validation.*; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 指导书与隔离点关联 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface IsolationPointService { |
|||
|
|||
/** |
|||
* 创建指导书与隔离点关联 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createIsolationPoint(@Valid IsolationPointSaveReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新指导书与隔离点关联 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
void updateIsolationPoint(@Valid IsolationPointSaveReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除指导书与隔离点关联 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
void deleteIsolationPoint(Long id); |
|||
|
|||
/** |
|||
* 批量删除指导书与隔离点关联 |
|||
* |
|||
* @param ids 编号 |
|||
*/ |
|||
void deleteIsolationPointListByIds(List<Long> ids); |
|||
|
|||
/** |
|||
* 获得指导书与隔离点关联 |
|||
* |
|||
* @param id 编号 |
|||
* @return 指导书与隔离点关联 |
|||
*/ |
|||
IsolationPointDO getIsolationPoint(Long id); |
|||
|
|||
/** |
|||
* 获得指导书与隔离点关联分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 指导书与隔离点关联分页 |
|||
*/ |
|||
PageResult<IsolationPointDO> getIsolationPointPage(IsolationPointPageReqVO pageReqVO); |
|||
|
|||
} |
@ -0,0 +1,63 @@ |
|||
package cn.iocoder.yudao.module.lock.service; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.LockGuideDO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockGuidePageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockGuideSaveReqVO; |
|||
import jakarta.validation.*; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 隔离指导书 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface LockGuideService { |
|||
|
|||
/** |
|||
* 创建隔离指导书 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createLockGuide(@Valid LockGuideSaveReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新隔离指导书 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
void updateLockGuide(@Valid LockGuideSaveReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除隔离指导书 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
void deleteLockGuide(Long id); |
|||
|
|||
/** |
|||
* 批量删除隔离指导书 |
|||
* |
|||
* @param ids 编号 |
|||
*/ |
|||
void deleteLockGuideListByIds(List<Long> ids); |
|||
|
|||
/** |
|||
* 获得隔离指导书 |
|||
* |
|||
* @param id 编号 |
|||
* @return 隔离指导书 |
|||
*/ |
|||
LockGuideDO getLockGuide(Long id); |
|||
|
|||
/** |
|||
* 获得隔离指导书分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 隔离指导书分页 |
|||
*/ |
|||
PageResult<LockGuideDO> getLockGuidePage(LockGuidePageReqVO pageReqVO); |
|||
|
|||
} |
@ -0,0 +1,63 @@ |
|||
package cn.iocoder.yudao.module.lock.service; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.LockDO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockSaveReqVO; |
|||
import jakarta.validation.*; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 电子锁 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface LockService { |
|||
|
|||
/** |
|||
* 创建电子锁 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createLock(@Valid LockSaveReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新电子锁 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
void updateLock(@Valid LockSaveReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除电子锁 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
void deleteLock(Long id); |
|||
|
|||
/** |
|||
* 批量删除电子锁 |
|||
* |
|||
* @param ids 编号 |
|||
*/ |
|||
void deleteLockListByIds(List<Long> ids); |
|||
|
|||
/** |
|||
* 获得电子锁 |
|||
* |
|||
* @param id 编号 |
|||
* @return 电子锁 |
|||
*/ |
|||
LockDO getLock(Long id); |
|||
|
|||
/** |
|||
* 获得电子锁分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 电子锁分页 |
|||
*/ |
|||
PageResult<LockDO> getLockPage(LockPageReqVO pageReqVO); |
|||
|
|||
} |
@ -0,0 +1,63 @@ |
|||
package cn.iocoder.yudao.module.lock.service; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.LockWorkRecordDO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockWorkRecordPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockWorkRecordSaveReqVO; |
|||
import jakarta.validation.*; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 电子锁操作记录 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface LockWorkRecordService { |
|||
|
|||
/** |
|||
* 创建电子锁操作记录 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createLockWorkRecord(@Valid LockWorkRecordSaveReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新电子锁操作记录 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
void updateLockWorkRecord(@Valid LockWorkRecordSaveReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除电子锁操作记录 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
void deleteLockWorkRecord(Long id); |
|||
|
|||
/** |
|||
* 批量删除电子锁操作记录 |
|||
* |
|||
* @param ids 编号 |
|||
*/ |
|||
void deleteLockWorkRecordListByIds(List<Long> ids); |
|||
|
|||
/** |
|||
* 获得电子锁操作记录 |
|||
* |
|||
* @param id 编号 |
|||
* @return 电子锁操作记录 |
|||
*/ |
|||
LockWorkRecordDO getLockWorkRecord(Long id); |
|||
|
|||
/** |
|||
* 获得电子锁操作记录分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 电子锁操作记录分页 |
|||
*/ |
|||
PageResult<LockWorkRecordDO> getLockWorkRecordPage(LockWorkRecordPageReqVO pageReqVO); |
|||
|
|||
} |
@ -0,0 +1,64 @@ |
|||
package cn.iocoder.yudao.module.lock.service; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanItemDetailDO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemDetailPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemDetailSaveReqVO; |
|||
import jakarta.validation.*; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 隔离计划子项详情 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface PlanItemDetailService { |
|||
|
|||
/** |
|||
* 创建隔离计划子项详情 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createPlanItemDetail(@Valid PlanItemDetailSaveReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新隔离计划子项详情 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
void updatePlanItemDetail(@Valid PlanItemDetailSaveReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除隔离计划子项详情 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
void deletePlanItemDetail(Long id); |
|||
|
|||
/** |
|||
* 批量删除隔离计划子项详情 |
|||
* |
|||
* @param ids 编号 |
|||
*/ |
|||
void deletePlanItemDetailListByIds(List<Long> ids); |
|||
|
|||
/** |
|||
* 获得隔离计划子项详情 |
|||
* |
|||
* @param id 编号 |
|||
* @return 隔离计划子项详情 |
|||
*/ |
|||
PlanItemDetailDO getPlanItemDetail(Long id); |
|||
|
|||
/** |
|||
* 获得隔离计划子项详情分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 隔离计划子项详情分页 |
|||
*/ |
|||
PageResult<PlanItemDetailDO> getPlanItemDetailPage(PlanItemDetailPageReqVO pageReqVO); |
|||
|
|||
} |
@ -0,0 +1,63 @@ |
|||
package cn.iocoder.yudao.module.lock.service; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanItemDO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemSaveReqVO; |
|||
import jakarta.validation.*; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 隔离计划子项 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface PlanItemService { |
|||
|
|||
/** |
|||
* 创建隔离计划子项 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createPlanItem(@Valid PlanItemSaveReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新隔离计划子项 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
void updatePlanItem(@Valid PlanItemSaveReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除隔离计划子项 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
void deletePlanItem(Long id); |
|||
|
|||
/** |
|||
* 批量删除隔离计划子项 |
|||
* |
|||
* @param ids 编号 |
|||
*/ |
|||
void deletePlanItemListByIds(List<Long> ids); |
|||
|
|||
/** |
|||
* 获得隔离计划子项 |
|||
* |
|||
* @param id 编号 |
|||
* @return 隔离计划子项 |
|||
*/ |
|||
PlanItemDO getPlanItem(Long id); |
|||
|
|||
/** |
|||
* 获得隔离计划子项分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 隔离计划子项分页 |
|||
*/ |
|||
PageResult<PlanItemDO> getPlanItemPage(PlanItemPageReqVO pageReqVO); |
|||
|
|||
} |
@ -0,0 +1,63 @@ |
|||
package cn.iocoder.yudao.module.lock.service; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanLifeLockDO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanLifeLockPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanLifeLockSaveReqVO; |
|||
import jakarta.validation.*; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 个人生命锁 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface PlanLifeLockService { |
|||
|
|||
/** |
|||
* 创建个人生命锁 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createPlanLifeLock(@Valid PlanLifeLockSaveReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新个人生命锁 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
void updatePlanLifeLock(@Valid PlanLifeLockSaveReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除个人生命锁 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
void deletePlanLifeLock(Long id); |
|||
|
|||
/** |
|||
* 批量删除个人生命锁 |
|||
* |
|||
* @param ids 编号 |
|||
*/ |
|||
void deletePlanLifeLockListByIds(List<Long> ids); |
|||
|
|||
/** |
|||
* 获得个人生命锁 |
|||
* |
|||
* @param id 编号 |
|||
* @return 个人生命锁 |
|||
*/ |
|||
PlanLifeLockDO getPlanLifeLock(Long id); |
|||
|
|||
/** |
|||
* 获得个人生命锁分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 个人生命锁分页 |
|||
*/ |
|||
PageResult<PlanLifeLockDO> getPlanLifeLockPage(PlanLifeLockPageReqVO pageReqVO); |
|||
|
|||
} |
@ -0,0 +1,63 @@ |
|||
package cn.iocoder.yudao.module.lock.service; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PlanDO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanSaveReqVO; |
|||
import jakarta.validation.*; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 隔离计划 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface PlanService { |
|||
|
|||
/** |
|||
* 创建隔离计划 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createPlan(@Valid PlanSaveReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新隔离计划 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
void updatePlan(@Valid PlanSaveReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除隔离计划 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
void deletePlan(Long id); |
|||
|
|||
/** |
|||
* 批量删除隔离计划 |
|||
* |
|||
* @param ids 编号 |
|||
*/ |
|||
void deletePlanListByIds(List<Long> ids); |
|||
|
|||
/** |
|||
* 获得隔离计划 |
|||
* |
|||
* @param id 编号 |
|||
* @return 隔离计划 |
|||
*/ |
|||
PlanDO getPlan(Long id); |
|||
|
|||
/** |
|||
* 获得隔离计划分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 隔离计划分页 |
|||
*/ |
|||
PageResult<PlanDO> getPlanPage(PlanPageReqVO pageReqVO); |
|||
|
|||
} |
@ -0,0 +1,64 @@ |
|||
package cn.iocoder.yudao.module.lock.service; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.module.lock.dal.PointDO; |
|||
import cn.iocoder.yudao.module.lock.vo.PointPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PointSaveReqVO; |
|||
import jakarta.validation.*; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 隔离点 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface PointService { |
|||
|
|||
/** |
|||
* 创建隔离点 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createPoint(@Valid PointSaveReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新隔离点 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
void updatePoint(@Valid PointSaveReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除隔离点 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
void deletePoint(Long id); |
|||
|
|||
/** |
|||
* 批量删除隔离点 |
|||
* |
|||
* @param ids 编号 |
|||
*/ |
|||
void deletePointListByIds(List<Long> ids); |
|||
|
|||
/** |
|||
* 获得隔离点 |
|||
* |
|||
* @param id 编号 |
|||
* @return 隔离点 |
|||
*/ |
|||
PointDO getPoint(Long id); |
|||
|
|||
/** |
|||
* 获得隔离点分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 隔离点分页 |
|||
*/ |
|||
PageResult<PointDO> getPointPage(PointPageReqVO pageReqVO); |
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
package cn.iocoder.yudao.module.lock.service.impl; |
|||
|
|||
import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; |
|||
import cn.iocoder.yudao.module.lock.dal.IsolationPointDO; |
|||
import cn.iocoder.yudao.module.lock.enums.ErrorCodeConstants; |
|||
import cn.iocoder.yudao.module.lock.mapper.IsolationPointMapper; |
|||
import cn.iocoder.yudao.module.lock.service.IsolationPointService; |
|||
import cn.iocoder.yudao.module.lock.vo.IsolationPointPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.IsolationPointSaveReqVO; |
|||
import org.springframework.stereotype.Service; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
|
|||
|
|||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList; |
|||
|
|||
/** |
|||
* 指导书与隔离点关联 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class IsolationPointServiceImpl implements IsolationPointService { |
|||
|
|||
@Resource |
|||
private IsolationPointMapper isolationPointMapper; |
|||
|
|||
@Override |
|||
public Long createIsolationPoint(IsolationPointSaveReqVO createReqVO) { |
|||
// 插入
|
|||
IsolationPointDO isolationPoint = BeanUtils.toBean(createReqVO, IsolationPointDO.class); |
|||
isolationPointMapper.insert(isolationPoint); |
|||
|
|||
// 返回
|
|||
return isolationPoint.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public void updateIsolationPoint(IsolationPointSaveReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validateIsolationPointExists(updateReqVO.getId()); |
|||
// 更新
|
|||
IsolationPointDO updateObj = BeanUtils.toBean(updateReqVO, IsolationPointDO.class); |
|||
isolationPointMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public void deleteIsolationPoint(Long id) { |
|||
// 校验存在
|
|||
validateIsolationPointExists(id); |
|||
// 删除
|
|||
isolationPointMapper.deleteById(id); |
|||
} |
|||
|
|||
@Override |
|||
public void deleteIsolationPointListByIds(List<Long> ids) { |
|||
// 删除
|
|||
isolationPointMapper.deleteByIds(ids); |
|||
} |
|||
|
|||
|
|||
private void validateIsolationPointExists(Long id) { |
|||
if (isolationPointMapper.selectById(id) == null) { |
|||
throw ServiceExceptionUtil.exception(ErrorCodeConstants.ISOLATION_POINT_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public IsolationPointDO getIsolationPoint(Long id) { |
|||
return isolationPointMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<IsolationPointDO> getIsolationPointPage(IsolationPointPageReqVO pageReqVO) { |
|||
return isolationPointMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,86 @@ |
|||
package cn.iocoder.yudao.module.lock.service.impl; |
|||
|
|||
import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; |
|||
import cn.iocoder.yudao.module.lock.dal.LockGuideDO; |
|||
import cn.iocoder.yudao.module.lock.enums.ErrorCodeConstants; |
|||
import cn.iocoder.yudao.module.lock.mapper.LockGuideMapper; |
|||
import cn.iocoder.yudao.module.lock.service.LockGuideService; |
|||
import cn.iocoder.yudao.module.lock.vo.LockGuidePageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockGuideSaveReqVO; |
|||
import org.springframework.stereotype.Service; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
|
|||
|
|||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList; |
|||
|
|||
|
|||
/** |
|||
* 隔离指导书 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class LockGuideServiceImpl implements LockGuideService { |
|||
|
|||
@Resource |
|||
private LockGuideMapper lockGuideMapper; |
|||
|
|||
@Override |
|||
public Long createLockGuide(LockGuideSaveReqVO createReqVO) { |
|||
// 插入
|
|||
LockGuideDO lockGuide = BeanUtils.toBean(createReqVO, LockGuideDO.class); |
|||
lockGuideMapper.insert(lockGuide); |
|||
|
|||
// 返回
|
|||
return lockGuide.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public void updateLockGuide(LockGuideSaveReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validateLockGuideExists(updateReqVO.getId()); |
|||
// 更新
|
|||
LockGuideDO updateObj = BeanUtils.toBean(updateReqVO, LockGuideDO.class); |
|||
lockGuideMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public void deleteLockGuide(Long id) { |
|||
// 校验存在
|
|||
validateLockGuideExists(id); |
|||
// 删除
|
|||
lockGuideMapper.deleteById(id); |
|||
} |
|||
|
|||
@Override |
|||
public void deleteLockGuideListByIds(List<Long> ids) { |
|||
// 删除
|
|||
lockGuideMapper.deleteByIds(ids); |
|||
} |
|||
|
|||
|
|||
private void validateLockGuideExists(Long id) { |
|||
if (lockGuideMapper.selectById(id) == null) { |
|||
throw ServiceExceptionUtil.exception(ErrorCodeConstants.LOCK_GUIDE_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public LockGuideDO getLockGuide(Long id) { |
|||
return lockGuideMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<LockGuideDO> getLockGuidePage(LockGuidePageReqVO pageReqVO) { |
|||
return lockGuideMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,85 @@ |
|||
package cn.iocoder.yudao.module.lock.service.impl; |
|||
|
|||
import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; |
|||
import cn.iocoder.yudao.module.lock.dal.LockDO; |
|||
import cn.iocoder.yudao.module.lock.enums.ErrorCodeConstants; |
|||
import cn.iocoder.yudao.module.lock.mapper.LockMapper; |
|||
import cn.iocoder.yudao.module.lock.service.LockService; |
|||
import cn.iocoder.yudao.module.lock.vo.LockPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockSaveReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import org.springframework.stereotype.Service; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
|
|||
|
|||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList; |
|||
|
|||
/** |
|||
* 电子锁 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class LockServiceImpl implements LockService { |
|||
|
|||
@Resource |
|||
private LockMapper lockMapper; |
|||
|
|||
@Override |
|||
public Long createLock(LockSaveReqVO createReqVO) { |
|||
// 插入
|
|||
LockDO lock = BeanUtils.toBean(createReqVO, LockDO.class); |
|||
lockMapper.insert(lock); |
|||
|
|||
// 返回
|
|||
return lock.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public void updateLock(LockSaveReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validateLockExists(updateReqVO.getId()); |
|||
// 更新
|
|||
LockDO updateObj = BeanUtils.toBean(updateReqVO, LockDO.class); |
|||
lockMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public void deleteLock(Long id) { |
|||
// 校验存在
|
|||
validateLockExists(id); |
|||
// 删除
|
|||
lockMapper.deleteById(id); |
|||
} |
|||
|
|||
@Override |
|||
public void deleteLockListByIds(List<Long> ids) { |
|||
// 删除
|
|||
lockMapper.deleteByIds(ids); |
|||
} |
|||
|
|||
|
|||
private void validateLockExists(Long id) { |
|||
if (lockMapper.selectById(id) == null) { |
|||
throw ServiceExceptionUtil.exception(ErrorCodeConstants.LOCK_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public LockDO getLock(Long id) { |
|||
return lockMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<LockDO> getLockPage(LockPageReqVO pageReqVO) { |
|||
return lockMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,85 @@ |
|||
package cn.iocoder.yudao.module.lock.service.impl; |
|||
|
|||
import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; |
|||
import cn.iocoder.yudao.module.lock.dal.LockWorkRecordDO; |
|||
import cn.iocoder.yudao.module.lock.enums.ErrorCodeConstants; |
|||
import cn.iocoder.yudao.module.lock.mapper.LockWorkRecordMapper; |
|||
import cn.iocoder.yudao.module.lock.service.LockWorkRecordService; |
|||
import cn.iocoder.yudao.module.lock.vo.LockWorkRecordPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.LockWorkRecordSaveReqVO; |
|||
import org.springframework.stereotype.Service; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
|
|||
|
|||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList; |
|||
|
|||
/** |
|||
* 电子锁操作记录 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class LockWorkRecordServiceImpl implements LockWorkRecordService { |
|||
|
|||
@Resource |
|||
private LockWorkRecordMapper lockWorkRecordMapper; |
|||
|
|||
@Override |
|||
public Long createLockWorkRecord(LockWorkRecordSaveReqVO createReqVO) { |
|||
// 插入
|
|||
LockWorkRecordDO lockWorkRecord = BeanUtils.toBean(createReqVO, LockWorkRecordDO.class); |
|||
lockWorkRecordMapper.insert(lockWorkRecord); |
|||
|
|||
// 返回
|
|||
return lockWorkRecord.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public void updateLockWorkRecord(LockWorkRecordSaveReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validateLockWorkRecordExists(updateReqVO.getId()); |
|||
// 更新
|
|||
LockWorkRecordDO updateObj = BeanUtils.toBean(updateReqVO, LockWorkRecordDO.class); |
|||
lockWorkRecordMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public void deleteLockWorkRecord(Long id) { |
|||
// 校验存在
|
|||
validateLockWorkRecordExists(id); |
|||
// 删除
|
|||
lockWorkRecordMapper.deleteById(id); |
|||
} |
|||
|
|||
@Override |
|||
public void deleteLockWorkRecordListByIds(List<Long> ids) { |
|||
// 删除
|
|||
lockWorkRecordMapper.deleteByIds(ids); |
|||
} |
|||
|
|||
|
|||
private void validateLockWorkRecordExists(Long id) { |
|||
if (lockWorkRecordMapper.selectById(id) == null) { |
|||
throw ServiceExceptionUtil.exception(ErrorCodeConstants.LOCK_WORD_RECORD_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public LockWorkRecordDO getLockWorkRecord(Long id) { |
|||
return lockWorkRecordMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<LockWorkRecordDO> getLockWorkRecordPage(LockWorkRecordPageReqVO pageReqVO) { |
|||
return lockWorkRecordMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
package cn.iocoder.yudao.module.lock.service.impl; |
|||
|
|||
import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; |
|||
import cn.iocoder.yudao.module.lock.dal.PlanItemDetailDO; |
|||
import cn.iocoder.yudao.module.lock.enums.ErrorCodeConstants; |
|||
import cn.iocoder.yudao.module.lock.mapper.PlanItemDetailMapper; |
|||
import cn.iocoder.yudao.module.lock.service.PlanItemDetailService; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemDetailPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemDetailSaveReqVO; |
|||
import org.springframework.stereotype.Service; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
|
|||
|
|||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList; |
|||
|
|||
/** |
|||
* 隔离计划子项详情 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class PlanItemDetailServiceImpl implements PlanItemDetailService { |
|||
|
|||
@Resource |
|||
private PlanItemDetailMapper planItemDetailMapper; |
|||
|
|||
@Override |
|||
public Long createPlanItemDetail(PlanItemDetailSaveReqVO createReqVO) { |
|||
// 插入
|
|||
PlanItemDetailDO planItemDetail = BeanUtils.toBean(createReqVO, PlanItemDetailDO.class); |
|||
planItemDetailMapper.insert(planItemDetail); |
|||
|
|||
// 返回
|
|||
return planItemDetail.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public void updatePlanItemDetail(PlanItemDetailSaveReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validatePlanItemDetailExists(updateReqVO.getId()); |
|||
// 更新
|
|||
PlanItemDetailDO updateObj = BeanUtils.toBean(updateReqVO, PlanItemDetailDO.class); |
|||
planItemDetailMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public void deletePlanItemDetail(Long id) { |
|||
// 校验存在
|
|||
validatePlanItemDetailExists(id); |
|||
// 删除
|
|||
planItemDetailMapper.deleteById(id); |
|||
} |
|||
|
|||
@Override |
|||
public void deletePlanItemDetailListByIds(List<Long> ids) { |
|||
// 删除
|
|||
planItemDetailMapper.deleteByIds(ids); |
|||
} |
|||
|
|||
|
|||
private void validatePlanItemDetailExists(Long id) { |
|||
if (planItemDetailMapper.selectById(id) == null) { |
|||
throw ServiceExceptionUtil.exception(ErrorCodeConstants.PLAN_ITEM_DETAIL_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public PlanItemDetailDO getPlanItemDetail(Long id) { |
|||
return planItemDetailMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<PlanItemDetailDO> getPlanItemDetailPage(PlanItemDetailPageReqVO pageReqVO) { |
|||
return planItemDetailMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
package cn.iocoder.yudao.module.lock.service.impl; |
|||
|
|||
import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; |
|||
import cn.iocoder.yudao.module.lock.dal.PlanItemDO; |
|||
import cn.iocoder.yudao.module.lock.enums.ErrorCodeConstants; |
|||
import cn.iocoder.yudao.module.lock.mapper.PlanItemMapper; |
|||
import cn.iocoder.yudao.module.lock.service.PlanItemService; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanItemSaveReqVO; |
|||
import org.springframework.stereotype.Service; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
|
|||
|
|||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList; |
|||
|
|||
/** |
|||
* 隔离计划子项 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class PlanItemServiceImpl implements PlanItemService { |
|||
|
|||
@Resource |
|||
private PlanItemMapper planItemMapper; |
|||
|
|||
@Override |
|||
public Long createPlanItem(PlanItemSaveReqVO createReqVO) { |
|||
// 插入
|
|||
PlanItemDO planItem = BeanUtils.toBean(createReqVO, PlanItemDO.class); |
|||
planItemMapper.insert(planItem); |
|||
|
|||
// 返回
|
|||
return planItem.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public void updatePlanItem(PlanItemSaveReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validatePlanItemExists(updateReqVO.getId()); |
|||
// 更新
|
|||
PlanItemDO updateObj = BeanUtils.toBean(updateReqVO, PlanItemDO.class); |
|||
planItemMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public void deletePlanItem(Long id) { |
|||
// 校验存在
|
|||
validatePlanItemExists(id); |
|||
// 删除
|
|||
planItemMapper.deleteById(id); |
|||
} |
|||
|
|||
@Override |
|||
public void deletePlanItemListByIds(List<Long> ids) { |
|||
// 删除
|
|||
planItemMapper.deleteByIds(ids); |
|||
} |
|||
|
|||
|
|||
private void validatePlanItemExists(Long id) { |
|||
if (planItemMapper.selectById(id) == null) { |
|||
throw ServiceExceptionUtil.exception(ErrorCodeConstants.PLAN_ITEM_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public PlanItemDO getPlanItem(Long id) { |
|||
return planItemMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<PlanItemDO> getPlanItemPage(PlanItemPageReqVO pageReqVO) { |
|||
return planItemMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
package cn.iocoder.yudao.module.lock.service.impl; |
|||
|
|||
import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; |
|||
import cn.iocoder.yudao.module.lock.dal.PlanLifeLockDO; |
|||
import cn.iocoder.yudao.module.lock.enums.ErrorCodeConstants; |
|||
import cn.iocoder.yudao.module.lock.mapper.PlanLifeLockMapper; |
|||
import cn.iocoder.yudao.module.lock.service.PlanLifeLockService; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanLifeLockPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanLifeLockSaveReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import org.springframework.stereotype.Service; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
|
|||
|
|||
/** |
|||
* 个人生命锁 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class PlanLifeLockServiceImpl implements PlanLifeLockService { |
|||
|
|||
@Resource |
|||
private PlanLifeLockMapper planLifeLockMapper; |
|||
|
|||
@Override |
|||
public Long createPlanLifeLock(PlanLifeLockSaveReqVO createReqVO) { |
|||
// 插入
|
|||
PlanLifeLockDO planLifeLock = BeanUtils.toBean(createReqVO, PlanLifeLockDO.class); |
|||
planLifeLockMapper.insert(planLifeLock); |
|||
|
|||
// 返回
|
|||
return planLifeLock.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public void updatePlanLifeLock(PlanLifeLockSaveReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validatePlanLifeLockExists(updateReqVO.getId()); |
|||
// 更新
|
|||
PlanLifeLockDO updateObj = BeanUtils.toBean(updateReqVO, PlanLifeLockDO.class); |
|||
planLifeLockMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public void deletePlanLifeLock(Long id) { |
|||
// 校验存在
|
|||
validatePlanLifeLockExists(id); |
|||
// 删除
|
|||
planLifeLockMapper.deleteById(id); |
|||
} |
|||
|
|||
@Override |
|||
public void deletePlanLifeLockListByIds(List<Long> ids) { |
|||
// 删除
|
|||
planLifeLockMapper.deleteByIds(ids); |
|||
} |
|||
|
|||
|
|||
private void validatePlanLifeLockExists(Long id) { |
|||
if (planLifeLockMapper.selectById(id) == null) { |
|||
throw ServiceExceptionUtil.exception(ErrorCodeConstants.PLAN_LIFE_LOCK_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public PlanLifeLockDO getPlanLifeLock(Long id) { |
|||
return planLifeLockMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<PlanLifeLockDO> getPlanLifeLockPage(PlanLifeLockPageReqVO pageReqVO) { |
|||
return planLifeLockMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
package cn.iocoder.yudao.module.lock.service.impl; |
|||
|
|||
import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; |
|||
import cn.iocoder.yudao.module.lock.dal.PlanDO; |
|||
import cn.iocoder.yudao.module.lock.enums.ErrorCodeConstants; |
|||
import cn.iocoder.yudao.module.lock.mapper.PlanMapper; |
|||
import cn.iocoder.yudao.module.lock.service.PlanService; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PlanSaveReqVO; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import org.springframework.stereotype.Service; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
|
|||
|
|||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
|
|||
/** |
|||
* 隔离计划 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class PlanServiceImpl implements PlanService { |
|||
|
|||
@Resource |
|||
private PlanMapper planMapper; |
|||
|
|||
@Override |
|||
public Long createPlan(PlanSaveReqVO createReqVO) { |
|||
// 插入
|
|||
PlanDO plan = BeanUtils.toBean(createReqVO, PlanDO.class); |
|||
planMapper.insert(plan); |
|||
|
|||
// 返回
|
|||
return plan.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public void updatePlan(PlanSaveReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validatePlanExists(updateReqVO.getId()); |
|||
// 更新
|
|||
PlanDO updateObj = BeanUtils.toBean(updateReqVO, PlanDO.class); |
|||
planMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public void deletePlan(Long id) { |
|||
// 校验存在
|
|||
validatePlanExists(id); |
|||
// 删除
|
|||
planMapper.deleteById(id); |
|||
} |
|||
|
|||
@Override |
|||
public void deletePlanListByIds(List<Long> ids) { |
|||
// 删除
|
|||
planMapper.deleteByIds(ids); |
|||
} |
|||
|
|||
|
|||
private void validatePlanExists(Long id) { |
|||
if (planMapper.selectById(id) == null) { |
|||
throw ServiceExceptionUtil.exception(ErrorCodeConstants.PLAN_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public PlanDO getPlan(Long id) { |
|||
return planMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<PlanDO> getPlanPage(PlanPageReqVO pageReqVO) { |
|||
return planMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
package cn.iocoder.yudao.module.lock.service.impl; |
|||
|
|||
import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; |
|||
import cn.iocoder.yudao.module.lock.dal.PointDO; |
|||
import cn.iocoder.yudao.module.lock.enums.ErrorCodeConstants; |
|||
import cn.iocoder.yudao.module.lock.mapper.PointMapper; |
|||
import cn.iocoder.yudao.module.lock.service.PointService; |
|||
import cn.iocoder.yudao.module.lock.vo.PointPageReqVO; |
|||
import cn.iocoder.yudao.module.lock.vo.PointSaveReqVO; |
|||
import org.springframework.stereotype.Service; |
|||
import jakarta.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
|
|||
import cn.iocoder.yudao.framework.common.pojo.PageResult; |
|||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
|
|||
|
|||
/** |
|||
* 隔离点 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class PointServiceImpl implements PointService { |
|||
|
|||
@Resource |
|||
private PointMapper pointMapper; |
|||
|
|||
@Override |
|||
public Long createPoint(PointSaveReqVO createReqVO) { |
|||
// 插入
|
|||
PointDO point = BeanUtils.toBean(createReqVO, PointDO.class); |
|||
pointMapper.insert(point); |
|||
|
|||
// 返回
|
|||
return point.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public void updatePoint(PointSaveReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validatePointExists(updateReqVO.getId()); |
|||
// 更新
|
|||
PointDO updateObj = BeanUtils.toBean(updateReqVO, PointDO.class); |
|||
pointMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public void deletePoint(Long id) { |
|||
// 校验存在
|
|||
validatePointExists(id); |
|||
// 删除
|
|||
pointMapper.deleteById(id); |
|||
} |
|||
|
|||
@Override |
|||
public void deletePointListByIds(List<Long> ids) { |
|||
// 删除
|
|||
pointMapper.deleteByIds(ids); |
|||
} |
|||
|
|||
|
|||
private void validatePointExists(Long id) { |
|||
if (pointMapper.selectById(id) == null) { |
|||
throw ServiceExceptionUtil.exception(ErrorCodeConstants.POINT_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public PointDO getPoint(Long id) { |
|||
return pointMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<PointDO> getPointPage(PointPageReqVO pageReqVO) { |
|||
return pointMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 指导书与隔离点关联分页 Request VO") |
|||
@Data |
|||
public class IsolationPointPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "隔离指导书ID", example = "22721") |
|||
private Long guideId; |
|||
|
|||
@Schema(description = "隔离点ID", example = "7504") |
|||
private Long isolationPointId; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
} |
@ -0,0 +1,31 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
import com.alibaba.excel.annotation.*; |
|||
|
|||
@Schema(description = "管理后台 - 指导书与隔离点关联 Response VO") |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class IsolationPointRespVO { |
|||
|
|||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11289") |
|||
@ExcelProperty("id") |
|||
private Long id; |
|||
|
|||
@Schema(description = "隔离指导书ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22721") |
|||
@ExcelProperty("隔离指导书ID") |
|||
private Long guideId; |
|||
|
|||
@Schema(description = "隔离点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7504") |
|||
@ExcelProperty("隔离点ID") |
|||
private Long isolationPointId; |
|||
|
|||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,23 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import jakarta.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 指导书与隔离点关联新增/修改 Request VO") |
|||
@Data |
|||
public class IsolationPointSaveReqVO { |
|||
|
|||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11289") |
|||
private Long id; |
|||
|
|||
@Schema(description = "隔离指导书ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22721") |
|||
@NotNull(message = "隔离指导书ID不能为空") |
|||
private Long guideId; |
|||
|
|||
@Schema(description = "隔离点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7504") |
|||
@NotNull(message = "隔离点ID不能为空") |
|||
private Long isolationPointId; |
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 隔离指导书分页 Request VO") |
|||
@Data |
|||
public class LockGuidePageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "工作内容和范围") |
|||
private String guideContent; |
|||
|
|||
@Schema(description = "所需设备锁数量") |
|||
private Integer guideLockNums; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
} |
@ -0,0 +1,31 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
import com.alibaba.excel.annotation.*; |
|||
|
|||
@Schema(description = "管理后台 - 隔离指导书 Response VO") |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class LockGuideRespVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23225") |
|||
@ExcelProperty("主键ID") |
|||
private Long id; |
|||
|
|||
@Schema(description = "工作内容和范围") |
|||
@ExcelProperty("工作内容和范围") |
|||
private String guideContent; |
|||
|
|||
@Schema(description = "所需设备锁数量", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("所需设备锁数量") |
|||
private Integer guideLockNums; |
|||
|
|||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,22 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import jakarta.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 隔离指导书新增/修改 Request VO") |
|||
@Data |
|||
public class LockGuideSaveReqVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23225") |
|||
private Long id; |
|||
|
|||
@Schema(description = "工作内容和范围") |
|||
private String guideContent; |
|||
|
|||
@Schema(description = "所需设备锁数量", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@NotNull(message = "所需设备锁数量不能为空") |
|||
private Integer guideLockNums; |
|||
|
|||
} |
@ -0,0 +1,42 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 电子锁分页 Request VO") |
|||
@Data |
|||
public class LockPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "编号") |
|||
private String lockNumber; |
|||
|
|||
@Schema(description = "名称", example = "王五") |
|||
private String lockName; |
|||
|
|||
@Schema(description = "状态", example = "2") |
|||
private String lockStatus; |
|||
|
|||
@Schema(description = "锁具类型", example = "1") |
|||
private String lockType; |
|||
|
|||
@Schema(description = "启用状态: 0=未启用, 1=已启用", example = "2") |
|||
private Boolean lockEnableStatus; |
|||
|
|||
@Schema(description = "上次充电时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] lockLastChargeTime; |
|||
|
|||
@Schema(description = "蓝牙ID", example = "15326") |
|||
private String lockBluetoothId; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
} |
@ -0,0 +1,55 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
|
|||
import java.util.*; |
|||
|
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import java.time.LocalDateTime; |
|||
|
|||
import com.alibaba.excel.annotation.*; |
|||
|
|||
@Schema(description = "管理后台 - 电子锁 Response VO") |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class LockRespVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2480") |
|||
@ExcelProperty("主键ID") |
|||
private Long id; |
|||
|
|||
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("编号") |
|||
private String lockNumber; |
|||
|
|||
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五") |
|||
@ExcelProperty("名称") |
|||
private String lockName; |
|||
|
|||
@Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|||
@ExcelProperty("状态") |
|||
private String lockStatus; |
|||
|
|||
@Schema(description = "锁具类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|||
@ExcelProperty("锁具类型") |
|||
private String lockType; |
|||
|
|||
@Schema(description = "启用状态: 0=未启用, 1=已启用", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|||
@ExcelProperty("启用状态: 0=未启用, 1=已启用") |
|||
private Boolean lockEnableStatus; |
|||
|
|||
@Schema(description = "上次充电时间") |
|||
@ExcelProperty("上次充电时间") |
|||
private LocalDateTime lockLastChargeTime; |
|||
|
|||
@Schema(description = "蓝牙ID", example = "15326") |
|||
@ExcelProperty("蓝牙ID") |
|||
private String lockBluetoothId; |
|||
|
|||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,43 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import jakarta.validation.constraints.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
@Schema(description = "管理后台 - 电子锁新增/修改 Request VO") |
|||
@Data |
|||
public class LockSaveReqVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2480") |
|||
private Long id; |
|||
|
|||
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@NotEmpty(message = "编号不能为空") |
|||
private String lockNumber; |
|||
|
|||
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五") |
|||
@NotEmpty(message = "名称不能为空") |
|||
private String lockName; |
|||
|
|||
@Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|||
@NotEmpty(message = "状态不能为空") |
|||
private String lockStatus; |
|||
|
|||
@Schema(description = "锁具类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|||
@NotEmpty(message = "锁具类型不能为空") |
|||
private String lockType; |
|||
|
|||
@Schema(description = "启用状态: 0=未启用, 1=已启用", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|||
@NotNull(message = "启用状态: 0=未启用, 1=已启用不能为空") |
|||
private Boolean lockEnableStatus; |
|||
|
|||
@Schema(description = "上次充电时间") |
|||
private LocalDateTime lockLastChargeTime; |
|||
|
|||
@Schema(description = "蓝牙ID", example = "15326") |
|||
private String lockBluetoothId; |
|||
|
|||
} |
@ -0,0 +1,44 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 电子锁操作记录分页 Request VO") |
|||
@Data |
|||
public class LockWorkRecordPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "操作人ID", example = "24074") |
|||
private Long operatorId; |
|||
|
|||
@Schema(description = "电子锁ID", example = "21680") |
|||
private Long lockId; |
|||
|
|||
@Schema(description = "关联的子项详情ID (某些操作可能不关联)", example = "29583") |
|||
private Long isolationPlanItemDetailId; |
|||
|
|||
@Schema(description = "记录类型", example = "1") |
|||
private String recordType; |
|||
|
|||
@Schema(description = "操作签名 (图片路径)") |
|||
private String signaturePath; |
|||
|
|||
@Schema(description = "操作前照片 (图片路径)") |
|||
private String beforePhotoPath; |
|||
|
|||
@Schema(description = "操作后照片 (图片路径)") |
|||
private String afterPhotoPath; |
|||
|
|||
@Schema(description = "操作GPS坐标") |
|||
private String gpsCoordinates; |
|||
|
|||
@Schema(description = "操作/记录创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
} |
@ -0,0 +1,55 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
import com.alibaba.excel.annotation.*; |
|||
|
|||
@Schema(description = "管理后台 - 电子锁操作记录 Response VO") |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class LockWorkRecordRespVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31635") |
|||
@ExcelProperty("主键ID") |
|||
private Long id; |
|||
|
|||
@Schema(description = "操作人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24074") |
|||
@ExcelProperty("操作人ID") |
|||
private Long operatorId; |
|||
|
|||
@Schema(description = "电子锁ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21680") |
|||
@ExcelProperty("电子锁ID") |
|||
private Long lockId; |
|||
|
|||
@Schema(description = "关联的子项详情ID (某些操作可能不关联)", example = "29583") |
|||
@ExcelProperty("关联的子项详情ID (某些操作可能不关联)") |
|||
private Long isolationPlanItemDetailId; |
|||
|
|||
@Schema(description = "记录类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|||
@ExcelProperty("记录类型") |
|||
private String recordType; |
|||
|
|||
@Schema(description = "操作签名 (图片路径)") |
|||
@ExcelProperty("操作签名 (图片路径)") |
|||
private String signaturePath; |
|||
|
|||
@Schema(description = "操作前照片 (图片路径)") |
|||
@ExcelProperty("操作前照片 (图片路径)") |
|||
private String beforePhotoPath; |
|||
|
|||
@Schema(description = "操作后照片 (图片路径)") |
|||
@ExcelProperty("操作后照片 (图片路径)") |
|||
private String afterPhotoPath; |
|||
|
|||
@Schema(description = "操作GPS坐标") |
|||
@ExcelProperty("操作GPS坐标") |
|||
private String gpsCoordinates; |
|||
|
|||
@Schema(description = "操作/记录创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("操作/记录创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,42 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import jakarta.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 电子锁操作记录新增/修改 Request VO") |
|||
@Data |
|||
public class LockWorkRecordSaveReqVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31635") |
|||
private Long id; |
|||
|
|||
@Schema(description = "操作人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24074") |
|||
@NotNull(message = "操作人ID不能为空") |
|||
private Long operatorId; |
|||
|
|||
@Schema(description = "电子锁ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21680") |
|||
@NotNull(message = "电子锁ID不能为空") |
|||
private Long lockId; |
|||
|
|||
@Schema(description = "关联的子项详情ID (某些操作可能不关联)", example = "29583") |
|||
private Long isolationPlanItemDetailId; |
|||
|
|||
@Schema(description = "记录类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|||
@NotEmpty(message = "记录类型不能为空") |
|||
private String recordType; |
|||
|
|||
@Schema(description = "操作签名 (图片路径)") |
|||
private String signaturePath; |
|||
|
|||
@Schema(description = "操作前照片 (图片路径)") |
|||
private String beforePhotoPath; |
|||
|
|||
@Schema(description = "操作后照片 (图片路径)") |
|||
private String afterPhotoPath; |
|||
|
|||
@Schema(description = "操作GPS坐标") |
|||
private String gpsCoordinates; |
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 隔离计划子项详情分页 Request VO") |
|||
@Data |
|||
public class PlanItemDetailPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "隔离计划子项ID", example = "31279") |
|||
private Long isolationPlanItemId; |
|||
|
|||
@Schema(description = "隔离点ID", example = "27424") |
|||
private Long isolationPointId; |
|||
|
|||
@Schema(description = "电子锁ID", example = "10317") |
|||
private Long lockId; |
|||
|
|||
@Schema(description = "锁状态: 0=未上锁, 1=已上锁, 2=已解锁", example = "1") |
|||
private Boolean lockStatus; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
} |
@ -0,0 +1,39 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
import com.alibaba.excel.annotation.*; |
|||
|
|||
@Schema(description = "管理后台 - 隔离计划子项详情 Response VO") |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class PlanItemDetailRespVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13713") |
|||
@ExcelProperty("主键ID") |
|||
private Long id; |
|||
|
|||
@Schema(description = "隔离计划子项ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31279") |
|||
@ExcelProperty("隔离计划子项ID") |
|||
private Long isolationPlanItemId; |
|||
|
|||
@Schema(description = "隔离点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27424") |
|||
@ExcelProperty("隔离点ID") |
|||
private Long isolationPointId; |
|||
|
|||
@Schema(description = "电子锁ID", example = "10317") |
|||
@ExcelProperty("电子锁ID") |
|||
private Long lockId; |
|||
|
|||
@Schema(description = "锁状态: 0=未上锁, 1=已上锁, 2=已解锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|||
@ExcelProperty("锁状态: 0=未上锁, 1=已上锁, 2=已解锁") |
|||
private Boolean lockStatus; |
|||
|
|||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,30 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import jakarta.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 隔离计划子项详情新增/修改 Request VO") |
|||
@Data |
|||
public class PlanItemDetailSaveReqVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13713") |
|||
private Long id; |
|||
|
|||
@Schema(description = "隔离计划子项ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31279") |
|||
@NotNull(message = "隔离计划子项ID不能为空") |
|||
private Long isolationPlanItemId; |
|||
|
|||
@Schema(description = "隔离点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27424") |
|||
@NotNull(message = "隔离点ID不能为空") |
|||
private Long isolationPointId; |
|||
|
|||
@Schema(description = "电子锁ID", example = "10317") |
|||
private Long lockId; |
|||
|
|||
@Schema(description = "锁状态: 0=未上锁, 1=已上锁, 2=已解锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|||
@NotNull(message = "锁状态: 0=未上锁, 1=已上锁, 2=已解锁不能为空") |
|||
private Boolean lockStatus; |
|||
|
|||
} |
@ -0,0 +1,41 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 隔离计划子项分页 Request VO") |
|||
@Data |
|||
public class PlanItemPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "隔离计划ID", example = "16895") |
|||
private Long isolationPlanId; |
|||
|
|||
@Schema(description = "隔离指导书ID", example = "23409") |
|||
private Long guideId; |
|||
|
|||
@Schema(description = "集中挂牌人ID", example = "6573") |
|||
private Long operatorId; |
|||
|
|||
@Schema(description = "集中挂牌协助人ID", example = "249") |
|||
private Long operatorHelperId; |
|||
|
|||
@Schema(description = "验证人ID", example = "19847") |
|||
private Long verifierId; |
|||
|
|||
@Schema(description = "验证协助人ID", example = "31703") |
|||
private Long verifierHelperId; |
|||
|
|||
@Schema(description = "子项状态: 0=未完成, 1=已完成", example = "2") |
|||
private Boolean status; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
} |
@ -0,0 +1,51 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
import com.alibaba.excel.annotation.*; |
|||
|
|||
@Schema(description = "管理后台 - 隔离计划子项 Response VO") |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class PlanItemRespVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28057") |
|||
@ExcelProperty("主键ID") |
|||
private Long id; |
|||
|
|||
@Schema(description = "隔离计划ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16895") |
|||
@ExcelProperty("隔离计划ID") |
|||
private Long isolationPlanId; |
|||
|
|||
@Schema(description = "隔离指导书ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23409") |
|||
@ExcelProperty("隔离指导书ID") |
|||
private Long guideId; |
|||
|
|||
@Schema(description = "集中挂牌人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6573") |
|||
@ExcelProperty("集中挂牌人ID") |
|||
private Long operatorId; |
|||
|
|||
@Schema(description = "集中挂牌协助人ID", example = "249") |
|||
@ExcelProperty("集中挂牌协助人ID") |
|||
private Long operatorHelperId; |
|||
|
|||
@Schema(description = "验证人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19847") |
|||
@ExcelProperty("验证人ID") |
|||
private Long verifierId; |
|||
|
|||
@Schema(description = "验证协助人ID", example = "31703") |
|||
@ExcelProperty("验证协助人ID") |
|||
private Long verifierHelperId; |
|||
|
|||
@Schema(description = "子项状态: 0=未完成, 1=已完成", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|||
@ExcelProperty("子项状态: 0=未完成, 1=已完成") |
|||
private Boolean status; |
|||
|
|||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,41 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import jakarta.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 隔离计划子项新增/修改 Request VO") |
|||
@Data |
|||
public class PlanItemSaveReqVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28057") |
|||
private Long id; |
|||
|
|||
@Schema(description = "隔离计划ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16895") |
|||
@NotNull(message = "隔离计划ID不能为空") |
|||
private Long isolationPlanId; |
|||
|
|||
@Schema(description = "隔离指导书ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23409") |
|||
@NotNull(message = "隔离指导书ID不能为空") |
|||
private Long guideId; |
|||
|
|||
@Schema(description = "集中挂牌人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6573") |
|||
@NotNull(message = "集中挂牌人ID不能为空") |
|||
private Long operatorId; |
|||
|
|||
@Schema(description = "集中挂牌协助人ID", example = "249") |
|||
private Long operatorHelperId; |
|||
|
|||
@Schema(description = "验证人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19847") |
|||
@NotNull(message = "验证人ID不能为空") |
|||
private Long verifierId; |
|||
|
|||
@Schema(description = "验证协助人ID", example = "31703") |
|||
private Long verifierHelperId; |
|||
|
|||
@Schema(description = "子项状态: 0=未完成, 1=已完成", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|||
@NotNull(message = "子项状态: 0=未完成, 1=已完成不能为空") |
|||
private Boolean status; |
|||
|
|||
} |
@ -0,0 +1,40 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 个人生命锁分页 Request VO") |
|||
@Data |
|||
public class PlanLifeLockPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "子项详情ID", example = "8076") |
|||
private Long isolationPlanItemDetailId; |
|||
|
|||
@Schema(description = "上锁人ID", example = "28726") |
|||
private Long userId; |
|||
|
|||
@Schema(description = "生命锁类型", example = "2") |
|||
private String lockType; |
|||
|
|||
@Schema(description = "锁定状态: 0=未上锁, 1=已上锁", example = "1") |
|||
private Boolean lockStatus; |
|||
|
|||
@Schema(description = "上锁时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] lockTime; |
|||
|
|||
@Schema(description = "解锁时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] unlockTime; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
} |
@ -0,0 +1,47 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
import com.alibaba.excel.annotation.*; |
|||
|
|||
@Schema(description = "管理后台 - 个人生命锁 Response VO") |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class PlanLifeLockRespVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24945") |
|||
@ExcelProperty("主键ID") |
|||
private Long id; |
|||
|
|||
@Schema(description = "子项详情ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8076") |
|||
@ExcelProperty("子项详情ID") |
|||
private Long isolationPlanItemDetailId; |
|||
|
|||
@Schema(description = "上锁人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28726") |
|||
@ExcelProperty("上锁人ID") |
|||
private Long userId; |
|||
|
|||
@Schema(description = "生命锁类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|||
@ExcelProperty("生命锁类型") |
|||
private String lockType; |
|||
|
|||
@Schema(description = "锁定状态: 0=未上锁, 1=已上锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|||
@ExcelProperty("锁定状态: 0=未上锁, 1=已上锁") |
|||
private Boolean lockStatus; |
|||
|
|||
@Schema(description = "上锁时间") |
|||
@ExcelProperty("上锁时间") |
|||
private LocalDateTime lockTime; |
|||
|
|||
@Schema(description = "解锁时间") |
|||
@ExcelProperty("解锁时间") |
|||
private LocalDateTime unlockTime; |
|||
|
|||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,39 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import jakarta.validation.constraints.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
@Schema(description = "管理后台 - 个人生命锁新增/修改 Request VO") |
|||
@Data |
|||
public class PlanLifeLockSaveReqVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24945") |
|||
private Long id; |
|||
|
|||
@Schema(description = "子项详情ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8076") |
|||
@NotNull(message = "子项详情ID不能为空") |
|||
private Long isolationPlanItemDetailId; |
|||
|
|||
@Schema(description = "上锁人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28726") |
|||
@NotNull(message = "上锁人ID不能为空") |
|||
private Long userId; |
|||
|
|||
@Schema(description = "生命锁类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|||
@NotEmpty(message = "生命锁类型不能为空") |
|||
private String lockType; |
|||
|
|||
@Schema(description = "锁定状态: 0=未上锁, 1=已上锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|||
@NotNull(message = "锁定状态: 0=未上锁, 1=已上锁不能为空") |
|||
private Boolean lockStatus; |
|||
|
|||
@Schema(description = "上锁时间") |
|||
private LocalDateTime lockTime; |
|||
|
|||
@Schema(description = "解锁时间") |
|||
private LocalDateTime unlockTime; |
|||
|
|||
} |
@ -0,0 +1,23 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 隔离计划分页 Request VO") |
|||
@Data |
|||
public class PlanPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "计划名称", example = "张三") |
|||
private String ipName; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
} |
@ -0,0 +1,27 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
import com.alibaba.excel.annotation.*; |
|||
|
|||
@Schema(description = "管理后台 - 隔离计划 Response VO") |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class PlanRespVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23080") |
|||
@ExcelProperty("主键ID") |
|||
private Long id; |
|||
|
|||
@Schema(description = "计划名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三") |
|||
@ExcelProperty("计划名称") |
|||
private String ipName; |
|||
|
|||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import jakarta.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 隔离计划新增/修改 Request VO") |
|||
@Data |
|||
public class PlanSaveReqVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23080") |
|||
private Long id; |
|||
|
|||
@Schema(description = "计划名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三") |
|||
@NotEmpty(message = "计划名称不能为空") |
|||
private String ipName; |
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import cn.iocoder.yudao.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 隔离点分页 Request VO") |
|||
@Data |
|||
public class PointPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "隔离点类型", example = "2") |
|||
private String ipType; |
|||
|
|||
@Schema(description = "隔离点名称", example = "李四") |
|||
private String ipName; |
|||
|
|||
@Schema(description = "隔离点位置") |
|||
private String ipLocation; |
|||
|
|||
@Schema(description = "隔离点编号") |
|||
private String ipNumber; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
} |
@ -0,0 +1,39 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
import com.alibaba.excel.annotation.*; |
|||
|
|||
@Schema(description = "管理后台 - 隔离点 Response VO") |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class PointRespVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5317") |
|||
@ExcelProperty("主键ID") |
|||
private Long id; |
|||
|
|||
@Schema(description = "隔离点类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|||
@ExcelProperty("隔离点类型") |
|||
private String ipType; |
|||
|
|||
@Schema(description = "隔离点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四") |
|||
@ExcelProperty("隔离点名称") |
|||
private String ipName; |
|||
|
|||
@Schema(description = "隔离点位置") |
|||
@ExcelProperty("隔离点位置") |
|||
private String ipLocation; |
|||
|
|||
@Schema(description = "隔离点编号", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("隔离点编号") |
|||
private String ipNumber; |
|||
|
|||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,30 @@ |
|||
package cn.iocoder.yudao.module.lock.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import jakarta.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 隔离点新增/修改 Request VO") |
|||
@Data |
|||
public class PointSaveReqVO { |
|||
|
|||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5317") |
|||
private Long id; |
|||
|
|||
@Schema(description = "隔离点类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|||
@NotEmpty(message = "隔离点类型不能为空") |
|||
private String ipType; |
|||
|
|||
@Schema(description = "隔离点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四") |
|||
@NotEmpty(message = "隔离点名称不能为空") |
|||
private String ipName; |
|||
|
|||
@Schema(description = "隔离点位置") |
|||
private String ipLocation; |
|||
|
|||
@Schema(description = "隔离点编号", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
@NotEmpty(message = "隔离点编号不能为空") |
|||
private String ipNumber; |
|||
|
|||
} |
@ -0,0 +1,12 @@ |
|||
root = true |
|||
[*.{js,ts,vue}] |
|||
charset = utf-8 # 设置文件字符集为 utf-8 |
|||
end_of_line = lf # 控制换行类型(lf | cr | crlf) |
|||
insert_final_newline = true # 始终在文件末尾插入一个新行 |
|||
indent_style = space # 缩进风格(tab | space) |
|||
indent_size = 2 # 缩进大小 |
|||
max_line_length = 100 # 最大行长度 |
|||
|
|||
[*.md] # 仅 md 文件适用以下规则 |
|||
max_line_length = off # 关闭最大行长度限制 |
|||
trim_trailing_whitespace = false # 关闭末尾空格修剪 |
@ -0,0 +1,20 @@ |
|||
# 标题 |
|||
VITE_APP_TITLE=管理系统 |
|||
|
|||
# 项目本地运行端口号 |
|||
VITE_PORT=80 |
|||
|
|||
# open 运行 npm run dev 时自动打开浏览器 |
|||
VITE_OPEN=true |
|||
|
|||
# 租户开关 |
|||
VITE_APP_TENANT_ENABLE=true |
|||
|
|||
# 验证码的开关 |
|||
VITE_APP_CAPTCHA_ENABLE=false |
|||
|
|||
|
|||
# 默认账户密码 |
|||
VITE_APP_DEFAULT_LOGIN_TENANT = 系统租户 |
|||
VITE_APP_DEFAULT_LOGIN_USERNAME = |
|||
VITE_APP_DEFAULT_LOGIN_PASSWORD = |
@ -0,0 +1,27 @@ |
|||
NODE_ENV=production |
|||
|
|||
VITE_DEV=true |
|||
|
|||
# 请求路径 |
|||
VITE_BASE_URL='http://192.168.0.129:48080' |
|||
|
|||
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务 |
|||
VITE_UPLOAD_TYPE=server |
|||
|
|||
# 接口地址 |
|||
VITE_API_URL=/admin-api |
|||
|
|||
# 是否删除debugger |
|||
VITE_DROP_DEBUGGER=false |
|||
|
|||
# 是否删除console.log |
|||
VITE_DROP_CONSOLE=false |
|||
|
|||
# 是否sourcemap |
|||
VITE_SOURCEMAP=true |
|||
|
|||
# 打包路径 |
|||
VITE_BASE_PATH=/ |
|||
|
|||
# 输出路径 |
|||
VITE_OUT_DIR=dist |
@ -0,0 +1,27 @@ |
|||
NODE_ENV=production |
|||
|
|||
VITE_DEV=false |
|||
|
|||
# 请求路径 |
|||
VITE_BASE_URL='http://localhost:48080' |
|||
|
|||
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务 |
|||
VITE_UPLOAD_TYPE=server |
|||
|
|||
# 接口地址 |
|||
VITE_API_URL=/admin-api |
|||
|
|||
# 是否删除debugger |
|||
VITE_DROP_DEBUGGER=true |
|||
|
|||
# 是否删除console.log |
|||
VITE_DROP_CONSOLE=true |
|||
|
|||
# 是否sourcemap |
|||
VITE_SOURCEMAP=false |
|||
|
|||
# 打包路径 |
|||
VITE_BASE_PATH=/ |
|||
|
|||
# 输出路径 |
|||
VITE_OUT_DIR=dist-prod |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue