安全环保检查
parent
8c82151134
commit
c5a655e5f7
|
|
@ -0,0 +1,82 @@
|
||||||
|
package com.zcloud.key.project.web.inspection;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.MultiResponse;
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.Response;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||||
|
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||||
|
import com.zcloud.key.project.api.inspection.SafetyEnvironmentalInspectionContentServiceI;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionContentCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentUpdateCmd;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-adapter
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Api(tags = "安全环保检查内容表")
|
||||||
|
@RequestMapping("/${application.gateway}/safetyEnvironmentalInspectionContent")
|
||||||
|
@RestController
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionContentController {
|
||||||
|
private final SafetyEnvironmentalInspectionContentServiceI safetyEnvironmentalInspectionContentService;
|
||||||
|
|
||||||
|
@ApiOperation("新增")
|
||||||
|
@PostMapping("/save")
|
||||||
|
public SingleResponse<SafetyEnvironmentalInspectionContentCO> add(@Validated @RequestBody SafetyEnvironmentalInspectionContentAddCmd cmd) {
|
||||||
|
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||||
|
return safetyEnvironmentalInspectionContentService.add(cmd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("分页")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionContentCO> page(@RequestBody SafetyEnvironmentalInspectionContentPageQry qry) {
|
||||||
|
return safetyEnvironmentalInspectionContentService.listPage(qry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("所有数据")
|
||||||
|
@GetMapping("/listAll")
|
||||||
|
public MultiResponse<SafetyEnvironmentalInspectionContentCO> listAll() {
|
||||||
|
return MultiResponse.of(new ArrayList<SafetyEnvironmentalInspectionContentCO>());
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("详情")
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
public SingleResponse<SafetyEnvironmentalInspectionContentCO> getInfoById(@PathVariable("id") Long id) {
|
||||||
|
return SingleResponse.of(safetyEnvironmentalInspectionContentService.queryById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除")
|
||||||
|
@DeleteMapping("/{id}")
|
||||||
|
public Response remove(@PathVariable("id") Long id) {
|
||||||
|
safetyEnvironmentalInspectionContentService.remove(id);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除多个")
|
||||||
|
@DeleteMapping("/ids")
|
||||||
|
public Response removeBatch(@RequestParam Long[] ids) {
|
||||||
|
safetyEnvironmentalInspectionContentService.removeBatch(ids);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("修改")
|
||||||
|
@PutMapping("/edit")
|
||||||
|
public SingleResponse edit(@Validated @RequestBody SafetyEnvironmentalInspectionContentUpdateCmd safetyEnvironmentalInspectionContentUpdateCmd) {
|
||||||
|
safetyEnvironmentalInspectionContentService.edit(safetyEnvironmentalInspectionContentUpdateCmd);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,82 @@
|
||||||
|
package com.zcloud.key.project.web.inspection;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.MultiResponse;
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.Response;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||||
|
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||||
|
import com.zcloud.key.project.api.inspection.SafetyEnvironmentalInspectionServiceI;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUpdateCmd;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-adapter
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:04
|
||||||
|
*/
|
||||||
|
@Api(tags = "安全环保检查表")
|
||||||
|
@RequestMapping("/${application.gateway}/safetyEnvironmentalInspection")
|
||||||
|
@RestController
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionController {
|
||||||
|
private final SafetyEnvironmentalInspectionServiceI safetyEnvironmentalInspectionService;
|
||||||
|
|
||||||
|
@ApiOperation("新增")
|
||||||
|
@PostMapping("/save")
|
||||||
|
public SingleResponse<SafetyEnvironmentalInspectionCO> add(@Validated @RequestBody SafetyEnvironmentalInspectionAddCmd cmd) {
|
||||||
|
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||||
|
return safetyEnvironmentalInspectionService.add(cmd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("分页")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionCO> page(@RequestBody SafetyEnvironmentalInspectionPageQry qry) {
|
||||||
|
return safetyEnvironmentalInspectionService.listPage(qry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("所有数据")
|
||||||
|
@GetMapping("/listAll")
|
||||||
|
public MultiResponse<SafetyEnvironmentalInspectionCO> listAll() {
|
||||||
|
return MultiResponse.of(new ArrayList<SafetyEnvironmentalInspectionCO>());
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("详情")
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
public SingleResponse<SafetyEnvironmentalInspectionCO> getInfoById(@PathVariable("id") Long id) {
|
||||||
|
return SingleResponse.of(safetyEnvironmentalInspectionService.queryById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除")
|
||||||
|
@DeleteMapping("/{id}")
|
||||||
|
public Response remove(@PathVariable("id") Long id) {
|
||||||
|
safetyEnvironmentalInspectionService.remove(id);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除多个")
|
||||||
|
@DeleteMapping("/ids")
|
||||||
|
public Response removeBatch(@RequestParam Long[] ids) {
|
||||||
|
safetyEnvironmentalInspectionService.removeBatch(ids);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("修改")
|
||||||
|
@PutMapping("/edit")
|
||||||
|
public SingleResponse edit(@Validated @RequestBody SafetyEnvironmentalInspectionUpdateCmd safetyEnvironmentalInspectionUpdateCmd) {
|
||||||
|
safetyEnvironmentalInspectionService.edit(safetyEnvironmentalInspectionUpdateCmd);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,82 @@
|
||||||
|
package com.zcloud.key.project.web.inspection;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.MultiResponse;
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.Response;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||||
|
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||||
|
import com.zcloud.key.project.api.inspection.SafetyEnvironmentalInspectionDefendServiceI;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionDefendCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendUpdateCmd;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-adapter
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:11
|
||||||
|
*/
|
||||||
|
@Api(tags = "安全环保检查申辩表")
|
||||||
|
@RequestMapping("/${application.gateway}/safetyEnvironmentalInspectionDefend")
|
||||||
|
@RestController
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionDefendController {
|
||||||
|
private final SafetyEnvironmentalInspectionDefendServiceI safetyEnvironmentalInspectionDefendService;
|
||||||
|
|
||||||
|
@ApiOperation("新增")
|
||||||
|
@PostMapping("/save")
|
||||||
|
public SingleResponse<SafetyEnvironmentalInspectionDefendCO> add(@Validated @RequestBody SafetyEnvironmentalInspectionDefendAddCmd cmd) {
|
||||||
|
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||||
|
return safetyEnvironmentalInspectionDefendService.add(cmd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("分页")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionDefendCO> page(@RequestBody SafetyEnvironmentalInspectionDefendPageQry qry) {
|
||||||
|
return safetyEnvironmentalInspectionDefendService.listPage(qry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("所有数据")
|
||||||
|
@GetMapping("/listAll")
|
||||||
|
public MultiResponse<SafetyEnvironmentalInspectionDefendCO> listAll() {
|
||||||
|
return MultiResponse.of(new ArrayList<SafetyEnvironmentalInspectionDefendCO>());
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("详情")
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
public SingleResponse<SafetyEnvironmentalInspectionDefendCO> getInfoById(@PathVariable("id") Long id) {
|
||||||
|
return SingleResponse.of(safetyEnvironmentalInspectionDefendService.queryById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除")
|
||||||
|
@DeleteMapping("/{id}")
|
||||||
|
public Response remove(@PathVariable("id") Long id) {
|
||||||
|
safetyEnvironmentalInspectionDefendService.remove(id);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除多个")
|
||||||
|
@DeleteMapping("/ids")
|
||||||
|
public Response removeBatch(@RequestParam Long[] ids) {
|
||||||
|
safetyEnvironmentalInspectionDefendService.removeBatch(ids);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("修改")
|
||||||
|
@PutMapping("/edit")
|
||||||
|
public SingleResponse edit(@Validated @RequestBody SafetyEnvironmentalInspectionDefendUpdateCmd safetyEnvironmentalInspectionDefendUpdateCmd) {
|
||||||
|
safetyEnvironmentalInspectionDefendService.edit(safetyEnvironmentalInspectionDefendUpdateCmd);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,82 @@
|
||||||
|
package com.zcloud.key.project.web.inspection;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.MultiResponse;
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.Response;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||||
|
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||||
|
import com.zcloud.key.project.api.inspection.SafetyEnvironmentalInspectionUserServiceI;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionUserCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserUpdateCmd;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-adapter
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:52
|
||||||
|
*/
|
||||||
|
@Api(tags = "安全环保检查人员表")
|
||||||
|
@RequestMapping("/${application.gateway}/safetyEnvironmentalInspectionUser")
|
||||||
|
@RestController
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUserController {
|
||||||
|
private final SafetyEnvironmentalInspectionUserServiceI safetyEnvironmentalInspectionUserService;
|
||||||
|
|
||||||
|
@ApiOperation("新增")
|
||||||
|
@PostMapping("/save")
|
||||||
|
public SingleResponse<SafetyEnvironmentalInspectionUserCO> add(@Validated @RequestBody SafetyEnvironmentalInspectionUserAddCmd cmd) {
|
||||||
|
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||||
|
return safetyEnvironmentalInspectionUserService.add(cmd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("分页")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionUserCO> page(@RequestBody SafetyEnvironmentalInspectionUserPageQry qry) {
|
||||||
|
return safetyEnvironmentalInspectionUserService.listPage(qry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("所有数据")
|
||||||
|
@GetMapping("/listAll")
|
||||||
|
public MultiResponse<SafetyEnvironmentalInspectionUserCO> listAll() {
|
||||||
|
return MultiResponse.of(new ArrayList<SafetyEnvironmentalInspectionUserCO>());
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("详情")
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
public SingleResponse<SafetyEnvironmentalInspectionUserCO> getInfoById(@PathVariable("id") Long id) {
|
||||||
|
return SingleResponse.of(safetyEnvironmentalInspectionUserService.queryById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除")
|
||||||
|
@DeleteMapping("/{id}")
|
||||||
|
public Response remove(@PathVariable("id") Long id) {
|
||||||
|
safetyEnvironmentalInspectionUserService.remove(id);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除多个")
|
||||||
|
@DeleteMapping("/ids")
|
||||||
|
public Response removeBatch(@RequestParam Long[] ids) {
|
||||||
|
safetyEnvironmentalInspectionUserService.removeBatch(ids);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("修改")
|
||||||
|
@PutMapping("/edit")
|
||||||
|
public SingleResponse edit(@Validated @RequestBody SafetyEnvironmentalInspectionUserUpdateCmd safetyEnvironmentalInspectionUserUpdateCmd) {
|
||||||
|
safetyEnvironmentalInspectionUserService.edit(safetyEnvironmentalInspectionUserUpdateCmd);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.zcloud.key.project.command.convertor.inspection;
|
||||||
|
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionCO;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDO;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:04
|
||||||
|
*/
|
||||||
|
@Mapper(componentModel = "spring")
|
||||||
|
public interface SafetyEnvironmentalInspectionCoConvertor {
|
||||||
|
/**
|
||||||
|
* @param safetyEnvironmentalInspectionDOs
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<SafetyEnvironmentalInspectionCO> converDOsToCOs(List<SafetyEnvironmentalInspectionDO> safetyEnvironmentalInspectionDOs);
|
||||||
|
|
||||||
|
SafetyEnvironmentalInspectionCO converDOToCO(SafetyEnvironmentalInspectionDO safetyEnvironmentalInspectionDO);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.zcloud.key.project.command.convertor.inspection;
|
||||||
|
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionContentCO;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionContentDO;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Mapper(componentModel = "spring")
|
||||||
|
public interface SafetyEnvironmentalInspectionContentCoConvertor {
|
||||||
|
/**
|
||||||
|
* @param safetyEnvironmentalInspectionContentDOs
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<SafetyEnvironmentalInspectionContentCO> converDOsToCOs(List<SafetyEnvironmentalInspectionContentDO> safetyEnvironmentalInspectionContentDOs);
|
||||||
|
|
||||||
|
SafetyEnvironmentalInspectionContentCO converDOToCO(SafetyEnvironmentalInspectionContentDO safetyEnvironmentalInspectionContentDO);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.zcloud.key.project.command.convertor.inspection;
|
||||||
|
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionDefendCO;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDefendDO;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:11
|
||||||
|
*/
|
||||||
|
@Mapper(componentModel = "spring")
|
||||||
|
public interface SafetyEnvironmentalInspectionDefendCoConvertor {
|
||||||
|
/**
|
||||||
|
* @param safetyEnvironmentalInspectionDefendDOs
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<SafetyEnvironmentalInspectionDefendCO> converDOsToCOs(List<SafetyEnvironmentalInspectionDefendDO> safetyEnvironmentalInspectionDefendDOs);
|
||||||
|
|
||||||
|
SafetyEnvironmentalInspectionDefendCO converDOToCO(SafetyEnvironmentalInspectionDefendDO safetyEnvironmentalInspectionDefendDO);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.zcloud.key.project.command.convertor.inspection;
|
||||||
|
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionUserCO;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionUserDO;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
@Mapper(componentModel = "spring")
|
||||||
|
public interface SafetyEnvironmentalInspectionUserCoConvertor {
|
||||||
|
/**
|
||||||
|
* @param safetyEnvironmentalInspectionUserDOs
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<SafetyEnvironmentalInspectionUserCO> converDOsToCOs(List<SafetyEnvironmentalInspectionUserDO> safetyEnvironmentalInspectionUserDOs);
|
||||||
|
|
||||||
|
SafetyEnvironmentalInspectionUserCO converDOToCO(SafetyEnvironmentalInspectionUserDO safetyEnvironmentalInspectionUserDO);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionE;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionAddCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:04
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionAddExe {
|
||||||
|
private final SafetyEnvironmentalInspectionGateway safetyEnvironmentalInspectionGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(SafetyEnvironmentalInspectionAddCmd cmd) {
|
||||||
|
SafetyEnvironmentalInspectionE safetyEnvironmentalInspectionE = new SafetyEnvironmentalInspectionE();
|
||||||
|
BeanUtils.copyProperties(cmd, safetyEnvironmentalInspectionE);
|
||||||
|
boolean res = false;
|
||||||
|
try {
|
||||||
|
res = safetyEnvironmentalInspectionGateway.add(safetyEnvironmentalInspectionE);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("保存失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionContentGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionContentE;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentAddCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionContentAddExe {
|
||||||
|
private final SafetyEnvironmentalInspectionContentGateway safetyEnvironmentalInspectionContentGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(SafetyEnvironmentalInspectionContentAddCmd cmd) {
|
||||||
|
SafetyEnvironmentalInspectionContentE safetyEnvironmentalInspectionContentE = new SafetyEnvironmentalInspectionContentE();
|
||||||
|
BeanUtils.copyProperties(cmd, safetyEnvironmentalInspectionContentE);
|
||||||
|
boolean res = false;
|
||||||
|
try {
|
||||||
|
res = safetyEnvironmentalInspectionContentGateway.add(safetyEnvironmentalInspectionContentE);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("保存失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionContentGateway;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionContentRemoveExe {
|
||||||
|
private final SafetyEnvironmentalInspectionContentGateway safetyEnvironmentalInspectionContentGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(Long id) {
|
||||||
|
boolean res = safetyEnvironmentalInspectionContentGateway.deletedSafetyEnvironmentalInspectionContentById(id);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("删除失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(Long[] ids) {
|
||||||
|
boolean res = safetyEnvironmentalInspectionContentGateway.deletedSafetyEnvironmentalInspectionContentByIds(ids);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("删除失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionContentGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionContentE;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentUpdateCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:23
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionContentUpdateExe {
|
||||||
|
private final SafetyEnvironmentalInspectionContentGateway safetyEnvironmentalInspectionContentGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public void execute(SafetyEnvironmentalInspectionContentUpdateCmd safetyEnvironmentalInspectionContentUpdateCmd) {
|
||||||
|
SafetyEnvironmentalInspectionContentE safetyEnvironmentalInspectionContentE = new SafetyEnvironmentalInspectionContentE();
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionContentUpdateCmd, safetyEnvironmentalInspectionContentE);
|
||||||
|
boolean res = safetyEnvironmentalInspectionContentGateway.update(safetyEnvironmentalInspectionContentE);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("修改失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionDefendGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionDefendE;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendAddCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:11
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionDefendAddExe {
|
||||||
|
private final SafetyEnvironmentalInspectionDefendGateway safetyEnvironmentalInspectionDefendGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(SafetyEnvironmentalInspectionDefendAddCmd cmd) {
|
||||||
|
SafetyEnvironmentalInspectionDefendE safetyEnvironmentalInspectionDefendE = new SafetyEnvironmentalInspectionDefendE();
|
||||||
|
BeanUtils.copyProperties(cmd, safetyEnvironmentalInspectionDefendE);
|
||||||
|
boolean res = false;
|
||||||
|
try {
|
||||||
|
res = safetyEnvironmentalInspectionDefendGateway.add(safetyEnvironmentalInspectionDefendE);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("保存失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionDefendGateway;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:12
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionDefendRemoveExe {
|
||||||
|
private final SafetyEnvironmentalInspectionDefendGateway safetyEnvironmentalInspectionDefendGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(Long id) {
|
||||||
|
boolean res = safetyEnvironmentalInspectionDefendGateway.deletedSafetyEnvironmentalInspectionDefendById(id);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("删除失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(Long[] ids) {
|
||||||
|
boolean res = safetyEnvironmentalInspectionDefendGateway.deletedSafetyEnvironmentalInspectionDefendByIds(ids);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("删除失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionDefendGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionDefendE;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendUpdateCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:12
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionDefendUpdateExe {
|
||||||
|
private final SafetyEnvironmentalInspectionDefendGateway safetyEnvironmentalInspectionDefendGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public void execute(SafetyEnvironmentalInspectionDefendUpdateCmd safetyEnvironmentalInspectionDefendUpdateCmd) {
|
||||||
|
SafetyEnvironmentalInspectionDefendE safetyEnvironmentalInspectionDefendE = new SafetyEnvironmentalInspectionDefendE();
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionDefendUpdateCmd, safetyEnvironmentalInspectionDefendE);
|
||||||
|
boolean res = safetyEnvironmentalInspectionDefendGateway.update(safetyEnvironmentalInspectionDefendE);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("修改失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionGateway;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionRemoveExe {
|
||||||
|
private final SafetyEnvironmentalInspectionGateway safetyEnvironmentalInspectionGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(Long id) {
|
||||||
|
boolean res = safetyEnvironmentalInspectionGateway.deletedSafetyEnvironmentalInspectionById(id);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("删除失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(Long[] ids) {
|
||||||
|
boolean res = safetyEnvironmentalInspectionGateway.deletedSafetyEnvironmentalInspectionByIds(ids);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("删除失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionE;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUpdateCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUpdateExe {
|
||||||
|
private final SafetyEnvironmentalInspectionGateway safetyEnvironmentalInspectionGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public void execute(SafetyEnvironmentalInspectionUpdateCmd safetyEnvironmentalInspectionUpdateCmd) {
|
||||||
|
SafetyEnvironmentalInspectionE safetyEnvironmentalInspectionE = new SafetyEnvironmentalInspectionE();
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionUpdateCmd, safetyEnvironmentalInspectionE);
|
||||||
|
boolean res = safetyEnvironmentalInspectionGateway.update(safetyEnvironmentalInspectionE);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("修改失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionUserGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionUserE;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserAddCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:52
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUserAddExe {
|
||||||
|
private final SafetyEnvironmentalInspectionUserGateway safetyEnvironmentalInspectionUserGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(SafetyEnvironmentalInspectionUserAddCmd cmd) {
|
||||||
|
SafetyEnvironmentalInspectionUserE safetyEnvironmentalInspectionUserE = new SafetyEnvironmentalInspectionUserE();
|
||||||
|
BeanUtils.copyProperties(cmd, safetyEnvironmentalInspectionUserE);
|
||||||
|
boolean res = false;
|
||||||
|
try {
|
||||||
|
res = safetyEnvironmentalInspectionUserGateway.add(safetyEnvironmentalInspectionUserE);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("保存失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionUserGateway;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUserRemoveExe {
|
||||||
|
private final SafetyEnvironmentalInspectionUserGateway safetyEnvironmentalInspectionUserGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(Long id) {
|
||||||
|
boolean res = safetyEnvironmentalInspectionUserGateway.deletedSafetyEnvironmentalInspectionUserById(id);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("删除失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public boolean execute(Long[] ids) {
|
||||||
|
boolean res = safetyEnvironmentalInspectionUserGateway.deletedSafetyEnvironmentalInspectionUserByIds(ids);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("删除失败");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.zcloud.key.project.command.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.exception.BizException;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionUserGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionUserE;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserUpdateCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:54
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUserUpdateExe {
|
||||||
|
private final SafetyEnvironmentalInspectionUserGateway safetyEnvironmentalInspectionUserGateway;
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public void execute(SafetyEnvironmentalInspectionUserUpdateCmd safetyEnvironmentalInspectionUserUpdateCmd) {
|
||||||
|
SafetyEnvironmentalInspectionUserE safetyEnvironmentalInspectionUserE = new SafetyEnvironmentalInspectionUserE();
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionUserUpdateCmd, safetyEnvironmentalInspectionUserE);
|
||||||
|
boolean res = safetyEnvironmentalInspectionUserGateway.update(safetyEnvironmentalInspectionUserE);
|
||||||
|
if (!res) {
|
||||||
|
throw new BizException("修改失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,52 @@
|
||||||
|
package com.zcloud.key.project.command.query.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||||
|
import com.zcloud.key.project.command.convertor.inspection.SafetyEnvironmentalInspectionContentCoConvertor;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionContentCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentPageQry;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionContentDO;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionContentRepository;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionContentQueryExe {
|
||||||
|
private final SafetyEnvironmentalInspectionContentRepository safetyEnvironmentalInspectionContentRepository;
|
||||||
|
private final SafetyEnvironmentalInspectionContentCoConvertor safetyEnvironmentalInspectionContentCoConvertor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据id查询
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public SafetyEnvironmentalInspectionContentCO queryById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionContentCoConvertor.converDOToCO(safetyEnvironmentalInspectionContentRepository.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页
|
||||||
|
*
|
||||||
|
* @param safetyEnvironmentalInspectionContentPageQry
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionContentCO> execute(SafetyEnvironmentalInspectionContentPageQry safetyEnvironmentalInspectionContentPageQry) {
|
||||||
|
Map<String, Object> params = PageQueryHelper.toHashMap(safetyEnvironmentalInspectionContentPageQry);
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionContentDO> pageResponse = safetyEnvironmentalInspectionContentRepository.listPage(params);
|
||||||
|
List<SafetyEnvironmentalInspectionContentCO> examCenterCOS = safetyEnvironmentalInspectionContentCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||||
|
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,52 @@
|
||||||
|
package com.zcloud.key.project.command.query.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||||
|
import com.zcloud.key.project.command.convertor.inspection.SafetyEnvironmentalInspectionDefendCoConvertor;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionDefendCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendPageQry;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDefendDO;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionDefendRepository;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:12
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionDefendQueryExe {
|
||||||
|
private final SafetyEnvironmentalInspectionDefendRepository safetyEnvironmentalInspectionDefendRepository;
|
||||||
|
private final SafetyEnvironmentalInspectionDefendCoConvertor safetyEnvironmentalInspectionDefendCoConvertor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据id查询
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public SafetyEnvironmentalInspectionDefendCO queryById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionDefendCoConvertor.converDOToCO(safetyEnvironmentalInspectionDefendRepository.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页
|
||||||
|
*
|
||||||
|
* @param safetyEnvironmentalInspectionDefendPageQry
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionDefendCO> execute(SafetyEnvironmentalInspectionDefendPageQry safetyEnvironmentalInspectionDefendPageQry) {
|
||||||
|
Map<String, Object> params = PageQueryHelper.toHashMap(safetyEnvironmentalInspectionDefendPageQry);
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionDefendDO> pageResponse = safetyEnvironmentalInspectionDefendRepository.listPage(params);
|
||||||
|
List<SafetyEnvironmentalInspectionDefendCO> examCenterCOS = safetyEnvironmentalInspectionDefendCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||||
|
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,52 @@
|
||||||
|
package com.zcloud.key.project.command.query.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||||
|
import com.zcloud.key.project.command.convertor.inspection.SafetyEnvironmentalInspectionCoConvertor;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionPageQry;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDO;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionRepository;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionQueryExe {
|
||||||
|
private final SafetyEnvironmentalInspectionRepository safetyEnvironmentalInspectionRepository;
|
||||||
|
private final SafetyEnvironmentalInspectionCoConvertor safetyEnvironmentalInspectionCoConvertor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据id查询
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public SafetyEnvironmentalInspectionCO queryById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionCoConvertor.converDOToCO(safetyEnvironmentalInspectionRepository.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页
|
||||||
|
*
|
||||||
|
* @param safetyEnvironmentalInspectionPageQry
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionCO> execute(SafetyEnvironmentalInspectionPageQry safetyEnvironmentalInspectionPageQry) {
|
||||||
|
Map<String, Object> params = PageQueryHelper.toHashMap(safetyEnvironmentalInspectionPageQry);
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionDO> pageResponse = safetyEnvironmentalInspectionRepository.listPage(params);
|
||||||
|
List<SafetyEnvironmentalInspectionCO> examCenterCOS = safetyEnvironmentalInspectionCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||||
|
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,52 @@
|
||||||
|
package com.zcloud.key.project.command.query.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||||
|
import com.zcloud.key.project.command.convertor.inspection.SafetyEnvironmentalInspectionUserCoConvertor;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionUserCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserPageQry;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionUserDO;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionUserRepository;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUserQueryExe {
|
||||||
|
private final SafetyEnvironmentalInspectionUserRepository safetyEnvironmentalInspectionUserRepository;
|
||||||
|
private final SafetyEnvironmentalInspectionUserCoConvertor safetyEnvironmentalInspectionUserCoConvertor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据id查询
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public SafetyEnvironmentalInspectionUserCO queryById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionUserCoConvertor.converDOToCO(safetyEnvironmentalInspectionUserRepository.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页
|
||||||
|
*
|
||||||
|
* @param safetyEnvironmentalInspectionUserPageQry
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionUserCO> execute(SafetyEnvironmentalInspectionUserPageQry safetyEnvironmentalInspectionUserPageQry) {
|
||||||
|
Map<String, Object> params = PageQueryHelper.toHashMap(safetyEnvironmentalInspectionUserPageQry);
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionUserDO> pageResponse = safetyEnvironmentalInspectionUserRepository.listPage(params);
|
||||||
|
List<SafetyEnvironmentalInspectionUserCO> examCenterCOS = safetyEnvironmentalInspectionUserCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||||
|
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,64 @@
|
||||||
|
package com.zcloud.key.project.service.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.zcloud.key.project.api.inspection.SafetyEnvironmentalInspectionContentServiceI;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionContentAddExe;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionContentRemoveExe;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionContentUpdateExe;
|
||||||
|
import com.zcloud.key.project.command.query.inspection.SafetyEnvironmentalInspectionContentQueryExe;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionContentCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentUpdateCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:23
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionContentServiceImpl implements SafetyEnvironmentalInspectionContentServiceI {
|
||||||
|
private final SafetyEnvironmentalInspectionContentAddExe safetyEnvironmentalInspectionContentAddExe;
|
||||||
|
private final SafetyEnvironmentalInspectionContentUpdateExe safetyEnvironmentalInspectionContentUpdateExe;
|
||||||
|
private final SafetyEnvironmentalInspectionContentRemoveExe safetyEnvironmentalInspectionContentRemoveExe;
|
||||||
|
private final SafetyEnvironmentalInspectionContentQueryExe safetyEnvironmentalInspectionContentQueryExe;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SafetyEnvironmentalInspectionContentCO queryById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionContentQueryExe.queryById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionContentCO> listPage(SafetyEnvironmentalInspectionContentPageQry qry) {
|
||||||
|
|
||||||
|
return safetyEnvironmentalInspectionContentQueryExe.execute(qry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SingleResponse add(SafetyEnvironmentalInspectionContentAddCmd cmd) {
|
||||||
|
|
||||||
|
safetyEnvironmentalInspectionContentAddExe.execute(cmd);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void edit(SafetyEnvironmentalInspectionContentUpdateCmd safetyEnvironmentalInspectionContentUpdateCmd) {
|
||||||
|
safetyEnvironmentalInspectionContentUpdateExe.execute(safetyEnvironmentalInspectionContentUpdateCmd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove(Long id) {
|
||||||
|
safetyEnvironmentalInspectionContentRemoveExe.execute(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removeBatch(Long[] ids) {
|
||||||
|
safetyEnvironmentalInspectionContentRemoveExe.execute(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,64 @@
|
||||||
|
package com.zcloud.key.project.service.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.zcloud.key.project.api.inspection.SafetyEnvironmentalInspectionDefendServiceI;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionDefendAddExe;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionDefendRemoveExe;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionDefendUpdateExe;
|
||||||
|
import com.zcloud.key.project.command.query.inspection.SafetyEnvironmentalInspectionDefendQueryExe;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionDefendCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendUpdateCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:12
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionDefendServiceImpl implements SafetyEnvironmentalInspectionDefendServiceI {
|
||||||
|
private final SafetyEnvironmentalInspectionDefendAddExe safetyEnvironmentalInspectionDefendAddExe;
|
||||||
|
private final SafetyEnvironmentalInspectionDefendUpdateExe safetyEnvironmentalInspectionDefendUpdateExe;
|
||||||
|
private final SafetyEnvironmentalInspectionDefendRemoveExe safetyEnvironmentalInspectionDefendRemoveExe;
|
||||||
|
private final SafetyEnvironmentalInspectionDefendQueryExe safetyEnvironmentalInspectionDefendQueryExe;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SafetyEnvironmentalInspectionDefendCO queryById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionDefendQueryExe.queryById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionDefendCO> listPage(SafetyEnvironmentalInspectionDefendPageQry qry) {
|
||||||
|
|
||||||
|
return safetyEnvironmentalInspectionDefendQueryExe.execute(qry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SingleResponse add(SafetyEnvironmentalInspectionDefendAddCmd cmd) {
|
||||||
|
|
||||||
|
safetyEnvironmentalInspectionDefendAddExe.execute(cmd);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void edit(SafetyEnvironmentalInspectionDefendUpdateCmd safetyEnvironmentalInspectionDefendUpdateCmd) {
|
||||||
|
safetyEnvironmentalInspectionDefendUpdateExe.execute(safetyEnvironmentalInspectionDefendUpdateCmd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove(Long id) {
|
||||||
|
safetyEnvironmentalInspectionDefendRemoveExe.execute(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removeBatch(Long[] ids) {
|
||||||
|
safetyEnvironmentalInspectionDefendRemoveExe.execute(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,64 @@
|
||||||
|
package com.zcloud.key.project.service.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.zcloud.key.project.api.inspection.SafetyEnvironmentalInspectionServiceI;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionAddExe;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionRemoveExe;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionUpdateExe;
|
||||||
|
import com.zcloud.key.project.command.query.inspection.SafetyEnvironmentalInspectionQueryExe;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUpdateCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionServiceImpl implements SafetyEnvironmentalInspectionServiceI {
|
||||||
|
private final SafetyEnvironmentalInspectionAddExe safetyEnvironmentalInspectionAddExe;
|
||||||
|
private final SafetyEnvironmentalInspectionUpdateExe safetyEnvironmentalInspectionUpdateExe;
|
||||||
|
private final SafetyEnvironmentalInspectionRemoveExe safetyEnvironmentalInspectionRemoveExe;
|
||||||
|
private final SafetyEnvironmentalInspectionQueryExe safetyEnvironmentalInspectionQueryExe;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SafetyEnvironmentalInspectionCO queryById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionQueryExe.queryById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionCO> listPage(SafetyEnvironmentalInspectionPageQry qry) {
|
||||||
|
|
||||||
|
return safetyEnvironmentalInspectionQueryExe.execute(qry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SingleResponse add(SafetyEnvironmentalInspectionAddCmd cmd) {
|
||||||
|
|
||||||
|
safetyEnvironmentalInspectionAddExe.execute(cmd);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void edit(SafetyEnvironmentalInspectionUpdateCmd safetyEnvironmentalInspectionUpdateCmd) {
|
||||||
|
safetyEnvironmentalInspectionUpdateExe.execute(safetyEnvironmentalInspectionUpdateCmd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove(Long id) {
|
||||||
|
safetyEnvironmentalInspectionRemoveExe.execute(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removeBatch(Long[] ids) {
|
||||||
|
safetyEnvironmentalInspectionRemoveExe.execute(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,64 @@
|
||||||
|
package com.zcloud.key.project.service.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.zcloud.key.project.api.inspection.SafetyEnvironmentalInspectionUserServiceI;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionUserAddExe;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionUserRemoveExe;
|
||||||
|
import com.zcloud.key.project.command.inspection.SafetyEnvironmentalInspectionUserUpdateExe;
|
||||||
|
import com.zcloud.key.project.command.query.inspection.SafetyEnvironmentalInspectionUserQueryExe;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionUserCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserUpdateCmd;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-app
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUserServiceImpl implements SafetyEnvironmentalInspectionUserServiceI {
|
||||||
|
private final SafetyEnvironmentalInspectionUserAddExe safetyEnvironmentalInspectionUserAddExe;
|
||||||
|
private final SafetyEnvironmentalInspectionUserUpdateExe safetyEnvironmentalInspectionUserUpdateExe;
|
||||||
|
private final SafetyEnvironmentalInspectionUserRemoveExe safetyEnvironmentalInspectionUserRemoveExe;
|
||||||
|
private final SafetyEnvironmentalInspectionUserQueryExe safetyEnvironmentalInspectionUserQueryExe;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SafetyEnvironmentalInspectionUserCO queryById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionUserQueryExe.queryById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionUserCO> listPage(SafetyEnvironmentalInspectionUserPageQry qry) {
|
||||||
|
|
||||||
|
return safetyEnvironmentalInspectionUserQueryExe.execute(qry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SingleResponse add(SafetyEnvironmentalInspectionUserAddCmd cmd) {
|
||||||
|
|
||||||
|
safetyEnvironmentalInspectionUserAddExe.execute(cmd);
|
||||||
|
return SingleResponse.buildSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void edit(SafetyEnvironmentalInspectionUserUpdateCmd safetyEnvironmentalInspectionUserUpdateCmd) {
|
||||||
|
safetyEnvironmentalInspectionUserUpdateExe.execute(safetyEnvironmentalInspectionUserUpdateCmd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove(Long id) {
|
||||||
|
safetyEnvironmentalInspectionUserRemoveExe.execute(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removeBatch(Long[] ids) {
|
||||||
|
safetyEnvironmentalInspectionUserRemoveExe.execute(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zcloud.key.project.api.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionContentCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionContentUpdateCmd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:23
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionContentServiceI {
|
||||||
|
SafetyEnvironmentalInspectionContentCO queryById(Long id);
|
||||||
|
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionContentCO> listPage(SafetyEnvironmentalInspectionContentPageQry qry);
|
||||||
|
|
||||||
|
SingleResponse<SafetyEnvironmentalInspectionContentCO> add(SafetyEnvironmentalInspectionContentAddCmd cmd);
|
||||||
|
|
||||||
|
void edit(SafetyEnvironmentalInspectionContentUpdateCmd cmd);
|
||||||
|
|
||||||
|
void remove(Long id);
|
||||||
|
|
||||||
|
void removeBatch(Long[] ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zcloud.key.project.api.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionDefendCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionDefendUpdateCmd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:12
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionDefendServiceI {
|
||||||
|
SafetyEnvironmentalInspectionDefendCO queryById(Long id);
|
||||||
|
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionDefendCO> listPage(SafetyEnvironmentalInspectionDefendPageQry qry);
|
||||||
|
|
||||||
|
SingleResponse<SafetyEnvironmentalInspectionDefendCO> add(SafetyEnvironmentalInspectionDefendAddCmd cmd);
|
||||||
|
|
||||||
|
void edit(SafetyEnvironmentalInspectionDefendUpdateCmd cmd);
|
||||||
|
|
||||||
|
void remove(Long id);
|
||||||
|
|
||||||
|
void removeBatch(Long[] ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zcloud.key.project.api.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUpdateCmd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionServiceI {
|
||||||
|
SafetyEnvironmentalInspectionCO queryById(Long id);
|
||||||
|
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionCO> listPage(SafetyEnvironmentalInspectionPageQry qry);
|
||||||
|
|
||||||
|
SingleResponse<SafetyEnvironmentalInspectionCO> add(SafetyEnvironmentalInspectionAddCmd cmd);
|
||||||
|
|
||||||
|
void edit(SafetyEnvironmentalInspectionUpdateCmd cmd);
|
||||||
|
|
||||||
|
void remove(Long id);
|
||||||
|
|
||||||
|
void removeBatch(Long[] ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zcloud.key.project.api.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.alibaba.cola.dto.SingleResponse;
|
||||||
|
import com.zcloud.key.project.dto.clientobject.inspection.SafetyEnvironmentalInspectionUserCO;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserAddCmd;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserPageQry;
|
||||||
|
import com.zcloud.key.project.dto.inspection.SafetyEnvironmentalInspectionUserUpdateCmd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionUserServiceI {
|
||||||
|
SafetyEnvironmentalInspectionUserCO queryById(Long id);
|
||||||
|
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionUserCO> listPage(SafetyEnvironmentalInspectionUserPageQry qry);
|
||||||
|
|
||||||
|
SingleResponse<SafetyEnvironmentalInspectionUserCO> add(SafetyEnvironmentalInspectionUserAddCmd cmd);
|
||||||
|
|
||||||
|
void edit(SafetyEnvironmentalInspectionUserUpdateCmd cmd);
|
||||||
|
|
||||||
|
void remove(Long id);
|
||||||
|
|
||||||
|
void removeBatch(Long[] ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,109 @@
|
||||||
|
package com.zcloud.key.project.dto.clientobject.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.ClientObject;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.sql.Date;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:04
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionCO extends ClientObject {
|
||||||
|
//主键
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private Long id;
|
||||||
|
//安全环保检查ID(业务ID)
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID(业务ID)")
|
||||||
|
private String inspectionId;
|
||||||
|
//辖区单位
|
||||||
|
@ApiModelProperty(value = "辖区单位")
|
||||||
|
private Long departmentId;
|
||||||
|
//被检查单位
|
||||||
|
@ApiModelProperty(value = "被检查单位")
|
||||||
|
private Long inspectedCorpinfoId;
|
||||||
|
//重点作业id
|
||||||
|
@ApiModelProperty(value = "重点作业id")
|
||||||
|
private String keyProjectId;
|
||||||
|
//被检查单位现场负责人
|
||||||
|
@ApiModelProperty(value = "被检查单位现场负责人")
|
||||||
|
private Long xgfMasterUserId;
|
||||||
|
//检查来源(1-监管端 2-企业端)
|
||||||
|
@ApiModelProperty(value = "检查来源(1-监管端 2-企业端)")
|
||||||
|
private Integer source;
|
||||||
|
//检查类型
|
||||||
|
@ApiModelProperty(value = "检查类型")
|
||||||
|
private String type;
|
||||||
|
//检查类型名称
|
||||||
|
@ApiModelProperty(value = "检查类型名称")
|
||||||
|
private String typeName;
|
||||||
|
//检查场所
|
||||||
|
@ApiModelProperty(value = "检查场所")
|
||||||
|
private String place;
|
||||||
|
//检查开始时间
|
||||||
|
@ApiModelProperty(value = "检查开始时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime timeStart;
|
||||||
|
//检查结束时间
|
||||||
|
@ApiModelProperty(value = "检查结束时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime timeEnd;
|
||||||
|
//状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)
|
||||||
|
@ApiModelProperty(value = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)")
|
||||||
|
private Integer status;
|
||||||
|
//关联隐患数
|
||||||
|
@ApiModelProperty(value = "关联隐患数")
|
||||||
|
private Integer hiddenNumber;
|
||||||
|
//企业ID
|
||||||
|
@ApiModelProperty(value = "企业ID")
|
||||||
|
private Long corpId;
|
||||||
|
//企业名称
|
||||||
|
@ApiModelProperty(value = "企业名称")
|
||||||
|
private String corpName;
|
||||||
|
//创建时间
|
||||||
|
@ApiModelProperty(value = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
//更新时间
|
||||||
|
@ApiModelProperty(value = "更新时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
//创建人ID
|
||||||
|
@ApiModelProperty(value = "创建人ID")
|
||||||
|
private Long createId;
|
||||||
|
//更新人ID
|
||||||
|
@ApiModelProperty(value = "更新人ID")
|
||||||
|
private Long updateId;
|
||||||
|
//环境标识
|
||||||
|
@ApiModelProperty(value = "环境标识")
|
||||||
|
private String env;
|
||||||
|
//删除标识
|
||||||
|
@ApiModelProperty(value = "删除标识")
|
||||||
|
private String deleteEnum;
|
||||||
|
//备注
|
||||||
|
@ApiModelProperty(value = "备注")
|
||||||
|
private String remarks;
|
||||||
|
//创建人姓名
|
||||||
|
@ApiModelProperty(value = "创建人姓名")
|
||||||
|
private String createName;
|
||||||
|
//更新人姓名
|
||||||
|
@ApiModelProperty(value = "更新人姓名")
|
||||||
|
private String updateName;
|
||||||
|
//租户ID
|
||||||
|
@ApiModelProperty(value = "租户ID")
|
||||||
|
private Long tenantId;
|
||||||
|
//组织ID
|
||||||
|
@ApiModelProperty(value = "组织ID")
|
||||||
|
private Long orgId;
|
||||||
|
//版本号
|
||||||
|
@ApiModelProperty(value = "版本号")
|
||||||
|
private Integer version;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,71 @@
|
||||||
|
package com.zcloud.key.project.dto.clientobject.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.ClientObject;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.sql.Date;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionContentCO extends ClientObject {
|
||||||
|
//主键
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private Long id;
|
||||||
|
//内容id(业务id)
|
||||||
|
@ApiModelProperty(value = "内容id(业务id)")
|
||||||
|
private String contentId;
|
||||||
|
//安全环保检查ID
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID")
|
||||||
|
private String inspectionId;
|
||||||
|
//检查情况内容
|
||||||
|
@ApiModelProperty(value = "检查情况内容")
|
||||||
|
private String content;
|
||||||
|
//创建时间
|
||||||
|
@ApiModelProperty(value = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
//更新时间
|
||||||
|
@ApiModelProperty(value = "更新时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
//创建人ID
|
||||||
|
@ApiModelProperty(value = "创建人ID")
|
||||||
|
private Long createId;
|
||||||
|
//更新人ID
|
||||||
|
@ApiModelProperty(value = "更新人ID")
|
||||||
|
private Long updateId;
|
||||||
|
//环境标识
|
||||||
|
@ApiModelProperty(value = "环境标识")
|
||||||
|
private String env;
|
||||||
|
//删除标识
|
||||||
|
@ApiModelProperty(value = "删除标识")
|
||||||
|
private String deleteEnum;
|
||||||
|
//备注
|
||||||
|
@ApiModelProperty(value = "备注")
|
||||||
|
private String remarks;
|
||||||
|
//创建人姓名
|
||||||
|
@ApiModelProperty(value = "创建人姓名")
|
||||||
|
private String createName;
|
||||||
|
//更新人姓名
|
||||||
|
@ApiModelProperty(value = "更新人姓名")
|
||||||
|
private String updateName;
|
||||||
|
//租户ID
|
||||||
|
@ApiModelProperty(value = "租户ID")
|
||||||
|
private Long tenantId;
|
||||||
|
//组织ID
|
||||||
|
@ApiModelProperty(value = "组织ID")
|
||||||
|
private Long orgId;
|
||||||
|
//版本号
|
||||||
|
@ApiModelProperty(value = "版本号")
|
||||||
|
private Integer version;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,90 @@
|
||||||
|
package com.zcloud.key.project.dto.clientobject.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.ClientObject;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.sql.Date;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:11
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionDefendCO extends ClientObject {
|
||||||
|
//主键
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private Long id;
|
||||||
|
//申辩id(业务id)
|
||||||
|
@ApiModelProperty(value = "申辩id(业务id)")
|
||||||
|
private String defendId;
|
||||||
|
//安全环保检查ID
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID")
|
||||||
|
private String inspectionId;
|
||||||
|
//申辩说明
|
||||||
|
@ApiModelProperty(value = "申辩说明")
|
||||||
|
private String content;
|
||||||
|
//申辩附件
|
||||||
|
@ApiModelProperty(value = "申辩附件")
|
||||||
|
private String fileUrl;
|
||||||
|
//申辩人签字
|
||||||
|
@ApiModelProperty(value = "申辩人签字")
|
||||||
|
private String defendantSign;
|
||||||
|
//是否通过0:未审批、1:通过、2:未通过
|
||||||
|
@ApiModelProperty(value = "是否通过0:未审批、1:通过、2:未通过")
|
||||||
|
private Integer isPass;
|
||||||
|
//驳回理由内容
|
||||||
|
@ApiModelProperty(value = "驳回理由内容")
|
||||||
|
private String rejectContent;
|
||||||
|
//检查人签字
|
||||||
|
@ApiModelProperty(value = "检查人签字")
|
||||||
|
private String checkSign;
|
||||||
|
//检查人签字时间
|
||||||
|
@ApiModelProperty(value = "检查人签字时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime checkSignTime;
|
||||||
|
//创建时间(申辩时间)
|
||||||
|
@ApiModelProperty(value = "创建时间(申辩时间)")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
//更新时间
|
||||||
|
@ApiModelProperty(value = "更新时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
//创建人ID
|
||||||
|
@ApiModelProperty(value = "创建人ID")
|
||||||
|
private Long createId;
|
||||||
|
//更新人ID
|
||||||
|
@ApiModelProperty(value = "更新人ID")
|
||||||
|
private Long updateId;
|
||||||
|
//环境标识
|
||||||
|
@ApiModelProperty(value = "环境标识")
|
||||||
|
private String env;
|
||||||
|
//删除标识
|
||||||
|
@ApiModelProperty(value = "删除标识")
|
||||||
|
private String deleteEnum;
|
||||||
|
//备注
|
||||||
|
@ApiModelProperty(value = "备注")
|
||||||
|
private String remarks;
|
||||||
|
//创建人姓名
|
||||||
|
@ApiModelProperty(value = "创建人姓名")
|
||||||
|
private String createName;
|
||||||
|
//更新人姓名
|
||||||
|
@ApiModelProperty(value = "更新人姓名")
|
||||||
|
private String updateName;
|
||||||
|
//租户ID
|
||||||
|
@ApiModelProperty(value = "租户ID")
|
||||||
|
private Long tenantId;
|
||||||
|
//组织ID
|
||||||
|
@ApiModelProperty(value = "组织ID")
|
||||||
|
private Long orgId;
|
||||||
|
//版本号
|
||||||
|
@ApiModelProperty(value = "版本号")
|
||||||
|
private Integer version;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,93 @@
|
||||||
|
package com.zcloud.key.project.dto.clientobject.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.ClientObject;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.sql.Date;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:52
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionUserCO extends ClientObject {
|
||||||
|
//主键
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private Long id;
|
||||||
|
//检查人表id(业务id)
|
||||||
|
@ApiModelProperty(value = "检查人表id(业务id)")
|
||||||
|
private String inspectionUserId;
|
||||||
|
//安全环保检查ID
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID")
|
||||||
|
private String inspectionId;
|
||||||
|
//检查人企业id
|
||||||
|
@ApiModelProperty(value = "检查人企业id")
|
||||||
|
private Long corpId;
|
||||||
|
//检查人部门id
|
||||||
|
@ApiModelProperty(value = "检查人部门id")
|
||||||
|
private Long departmentId;
|
||||||
|
//检查人人员id
|
||||||
|
@ApiModelProperty(value = "检查人人员id")
|
||||||
|
private Long userId;
|
||||||
|
//检查人意见(有异议时必填)
|
||||||
|
@ApiModelProperty(value = "检查人意见(有异议时必填)")
|
||||||
|
private String userRemarks;
|
||||||
|
//0-未审批,1-通过,2-不通过
|
||||||
|
@ApiModelProperty(value = "0-未审批,1-通过,2-不通过")
|
||||||
|
private Integer status;
|
||||||
|
//状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)
|
||||||
|
@ApiModelProperty(value = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)")
|
||||||
|
private Integer type;
|
||||||
|
//签字
|
||||||
|
@ApiModelProperty(value = "签字")
|
||||||
|
private String signature;
|
||||||
|
//核实时间
|
||||||
|
@ApiModelProperty(value = "核实时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime signatureTime;
|
||||||
|
//创建时间
|
||||||
|
@ApiModelProperty(value = "创建时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
//更新时间
|
||||||
|
@ApiModelProperty(value = "更新时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
//创建人ID
|
||||||
|
@ApiModelProperty(value = "创建人ID")
|
||||||
|
private Long createId;
|
||||||
|
//更新人ID
|
||||||
|
@ApiModelProperty(value = "更新人ID")
|
||||||
|
private Long updateId;
|
||||||
|
//环境标识
|
||||||
|
@ApiModelProperty(value = "环境标识")
|
||||||
|
private String env;
|
||||||
|
//删除标识
|
||||||
|
@ApiModelProperty(value = "删除标识")
|
||||||
|
private String deleteEnum;
|
||||||
|
//备注
|
||||||
|
@ApiModelProperty(value = "备注")
|
||||||
|
private String remarks;
|
||||||
|
//创建人姓名
|
||||||
|
@ApiModelProperty(value = "创建人姓名")
|
||||||
|
private String createName;
|
||||||
|
//更新人姓名
|
||||||
|
@ApiModelProperty(value = "更新人姓名")
|
||||||
|
private String updateName;
|
||||||
|
//租户ID
|
||||||
|
@ApiModelProperty(value = "租户ID")
|
||||||
|
private Long tenantId;
|
||||||
|
//组织ID
|
||||||
|
@ApiModelProperty(value = "组织ID")
|
||||||
|
private Long orgId;
|
||||||
|
//版本号
|
||||||
|
@ApiModelProperty(value = "版本号")
|
||||||
|
private Integer version;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,89 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.Command;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:04
|
||||||
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionAddCmd extends Command {
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID(业务ID)", name = "inspectionId", required = true)
|
||||||
|
@NotEmpty(message = "安全环保检查ID(业务ID)不能为空")
|
||||||
|
private String inspectionId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "辖区单位", name = "departmentId", required = true)
|
||||||
|
@NotNull(message = "辖区单位不能为空")
|
||||||
|
private Long departmentId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "被检查单位", name = "inspectedCorpinfoId", required = true)
|
||||||
|
@NotNull(message = "被检查单位不能为空")
|
||||||
|
private Long inspectedCorpinfoId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "重点作业id", name = "keyProjectId", required = true)
|
||||||
|
@NotEmpty(message = "重点作业id不能为空")
|
||||||
|
private String keyProjectId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "被检查单位现场负责人", name = "xgfMasterUserId", required = true)
|
||||||
|
@NotNull(message = "被检查单位现场负责人不能为空")
|
||||||
|
private Long xgfMasterUserId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查来源(1-监管端 2-企业端)", name = "source", required = true)
|
||||||
|
@NotNull(message = "检查来源(1-监管端 2-企业端)不能为空")
|
||||||
|
private Integer source;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查类型", name = "type", required = true)
|
||||||
|
@NotEmpty(message = "检查类型不能为空")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查类型名称", name = "typeName", required = true)
|
||||||
|
@NotEmpty(message = "检查类型名称不能为空")
|
||||||
|
private String typeName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查场所", name = "place", required = true)
|
||||||
|
@NotEmpty(message = "检查场所不能为空")
|
||||||
|
private String place;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查开始时间", name = "timeStart", required = true)
|
||||||
|
@NotNull(message = "检查开始时间不能为空")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime timeStart;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查结束时间", name = "timeEnd", required = true)
|
||||||
|
@NotNull(message = "检查结束时间不能为空")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime timeEnd;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)", name = "status", required = true)
|
||||||
|
@NotNull(message = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)不能为空")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "关联隐患数", name = "hiddenNumber", required = true)
|
||||||
|
@NotNull(message = "关联隐患数不能为空")
|
||||||
|
private Integer hiddenNumber;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "企业ID", name = "corpId", required = true)
|
||||||
|
@NotNull(message = "企业ID不能为空")
|
||||||
|
private Long corpId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "企业名称", name = "corpName", required = true)
|
||||||
|
@NotEmpty(message = "企业名称不能为空")
|
||||||
|
private String corpName;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.Command;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionContentAddCmd extends Command {
|
||||||
|
@ApiModelProperty(value = "内容id(业务id)", name = "contentId", required = true)
|
||||||
|
@NotEmpty(message = "内容id(业务id)不能为空")
|
||||||
|
private String contentId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID", name = "inspectionId", required = true)
|
||||||
|
@NotEmpty(message = "安全环保检查ID不能为空")
|
||||||
|
private String inspectionId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查情况内容", name = "content", required = true)
|
||||||
|
@NotEmpty(message = "检查情况内容不能为空")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageQuery;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionContentPageQry extends PageQuery {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||||
|
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||||
|
* - `eq`: 等值查询,对应SQL的=操作符
|
||||||
|
* - `gt`: 大于比较查询
|
||||||
|
* - `lt`: 小于比较查询
|
||||||
|
* - `ge`: 大于等于比较查询
|
||||||
|
* - `le`: 小于等于比较查询
|
||||||
|
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||||
|
*/
|
||||||
|
private String likeContentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,37 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.Command;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:23
|
||||||
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionContentUpdateCmd extends Command {
|
||||||
|
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||||
|
@NotNull(message = "主键不能为空")
|
||||||
|
private Long id;
|
||||||
|
@ApiModelProperty(value = "内容id(业务id)", name = "contentId", required = true)
|
||||||
|
@NotEmpty(message = "内容id(业务id)不能为空")
|
||||||
|
private String contentId;
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID", name = "inspectionId", required = true)
|
||||||
|
@NotEmpty(message = "安全环保检查ID不能为空")
|
||||||
|
private String inspectionId;
|
||||||
|
@ApiModelProperty(value = "检查情况内容", name = "content", required = true)
|
||||||
|
@NotEmpty(message = "检查情况内容不能为空")
|
||||||
|
private String content;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,64 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.Command;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:11
|
||||||
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionDefendAddCmd extends Command {
|
||||||
|
@ApiModelProperty(value = "申辩id(业务id)", name = "defendId", required = true)
|
||||||
|
@NotEmpty(message = "申辩id(业务id)不能为空")
|
||||||
|
private String defendId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID", name = "inspectionId", required = true)
|
||||||
|
@NotEmpty(message = "安全环保检查ID不能为空")
|
||||||
|
private String inspectionId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "申辩说明", name = "content", required = true)
|
||||||
|
@NotEmpty(message = "申辩说明不能为空")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "申辩附件", name = "fileUrl", required = true)
|
||||||
|
@NotEmpty(message = "申辩附件不能为空")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "申辩人签字", name = "defendantSign", required = true)
|
||||||
|
@NotEmpty(message = "申辩人签字不能为空")
|
||||||
|
private String defendantSign;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否通过0:未审批、1:通过、2:未通过", name = "isPass", required = true)
|
||||||
|
@NotNull(message = "是否通过0:未审批、1:通过、2:未通过不能为空")
|
||||||
|
private Integer isPass;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "驳回理由内容", name = "rejectContent", required = true)
|
||||||
|
@NotEmpty(message = "驳回理由内容不能为空")
|
||||||
|
private String rejectContent;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查人签字", name = "checkSign", required = true)
|
||||||
|
@NotEmpty(message = "检查人签字不能为空")
|
||||||
|
private String checkSign;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查人签字时间", name = "checkSignTime", required = true)
|
||||||
|
@NotNull(message = "检查人签字时间不能为空")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime checkSignTime;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageQuery;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:12
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionDefendPageQry extends PageQuery {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||||
|
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||||
|
* - `eq`: 等值查询,对应SQL的=操作符
|
||||||
|
* - `gt`: 大于比较查询
|
||||||
|
* - `lt`: 小于比较查询
|
||||||
|
* - `ge`: 大于等于比较查询
|
||||||
|
* - `le`: 小于等于比较查询
|
||||||
|
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||||
|
*/
|
||||||
|
private String likeDefendId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.Command;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:12
|
||||||
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionDefendUpdateCmd extends Command {
|
||||||
|
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||||
|
@NotNull(message = "主键不能为空")
|
||||||
|
private Long id;
|
||||||
|
@ApiModelProperty(value = "申辩id(业务id)", name = "defendId", required = true)
|
||||||
|
@NotEmpty(message = "申辩id(业务id)不能为空")
|
||||||
|
private String defendId;
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID", name = "inspectionId", required = true)
|
||||||
|
@NotEmpty(message = "安全环保检查ID不能为空")
|
||||||
|
private String inspectionId;
|
||||||
|
@ApiModelProperty(value = "申辩说明", name = "content", required = true)
|
||||||
|
@NotEmpty(message = "申辩说明不能为空")
|
||||||
|
private String content;
|
||||||
|
@ApiModelProperty(value = "申辩附件", name = "fileUrl", required = true)
|
||||||
|
@NotEmpty(message = "申辩附件不能为空")
|
||||||
|
private String fileUrl;
|
||||||
|
@ApiModelProperty(value = "申辩人签字", name = "defendantSign", required = true)
|
||||||
|
@NotEmpty(message = "申辩人签字不能为空")
|
||||||
|
private String defendantSign;
|
||||||
|
@ApiModelProperty(value = "是否通过0:未审批、1:通过、2:未通过", name = "isPass", required = true)
|
||||||
|
@NotNull(message = "是否通过0:未审批、1:通过、2:未通过不能为空")
|
||||||
|
private Integer isPass;
|
||||||
|
@ApiModelProperty(value = "驳回理由内容", name = "rejectContent", required = true)
|
||||||
|
@NotEmpty(message = "驳回理由内容不能为空")
|
||||||
|
private String rejectContent;
|
||||||
|
@ApiModelProperty(value = "检查人签字", name = "checkSign", required = true)
|
||||||
|
@NotEmpty(message = "检查人签字不能为空")
|
||||||
|
private String checkSign;
|
||||||
|
@ApiModelProperty(value = "检查人签字时间", name = "checkSignTime", required = true)
|
||||||
|
@NotNull(message = "检查人签字时间不能为空")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime checkSignTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageQuery;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionPageQry extends PageQuery {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||||
|
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||||
|
* - `eq`: 等值查询,对应SQL的=操作符
|
||||||
|
* - `gt`: 大于比较查询
|
||||||
|
* - `lt`: 小于比较查询
|
||||||
|
* - `ge`: 大于等于比较查询
|
||||||
|
* - `le`: 小于等于比较查询
|
||||||
|
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||||
|
*/
|
||||||
|
private String likeInspectionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,77 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.Command;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUpdateCmd extends Command {
|
||||||
|
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||||
|
@NotNull(message = "主键不能为空")
|
||||||
|
private Long id;
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID(业务ID)", name = "inspectionId", required = true)
|
||||||
|
@NotEmpty(message = "安全环保检查ID(业务ID)不能为空")
|
||||||
|
private String inspectionId;
|
||||||
|
@ApiModelProperty(value = "辖区单位", name = "departmentId", required = true)
|
||||||
|
@NotNull(message = "辖区单位不能为空")
|
||||||
|
private Long departmentId;
|
||||||
|
@ApiModelProperty(value = "被检查单位", name = "inspectedCorpinfoId", required = true)
|
||||||
|
@NotNull(message = "被检查单位不能为空")
|
||||||
|
private Long inspectedCorpinfoId;
|
||||||
|
@ApiModelProperty(value = "重点作业id", name = "keyProjectId", required = true)
|
||||||
|
@NotEmpty(message = "重点作业id不能为空")
|
||||||
|
private String keyProjectId;
|
||||||
|
@ApiModelProperty(value = "被检查单位现场负责人", name = "xgfMasterUserId", required = true)
|
||||||
|
@NotNull(message = "被检查单位现场负责人不能为空")
|
||||||
|
private Long xgfMasterUserId;
|
||||||
|
@ApiModelProperty(value = "检查来源(1-监管端 2-企业端)", name = "source", required = true)
|
||||||
|
@NotNull(message = "检查来源(1-监管端 2-企业端)不能为空")
|
||||||
|
private Integer source;
|
||||||
|
@ApiModelProperty(value = "检查类型", name = "type", required = true)
|
||||||
|
@NotEmpty(message = "检查类型不能为空")
|
||||||
|
private String type;
|
||||||
|
@ApiModelProperty(value = "检查类型名称", name = "typeName", required = true)
|
||||||
|
@NotEmpty(message = "检查类型名称不能为空")
|
||||||
|
private String typeName;
|
||||||
|
@ApiModelProperty(value = "检查场所", name = "place", required = true)
|
||||||
|
@NotEmpty(message = "检查场所不能为空")
|
||||||
|
private String place;
|
||||||
|
@ApiModelProperty(value = "检查开始时间", name = "timeStart", required = true)
|
||||||
|
@NotNull(message = "检查开始时间不能为空")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime timeStart;
|
||||||
|
@ApiModelProperty(value = "检查结束时间", name = "timeEnd", required = true)
|
||||||
|
@NotNull(message = "检查结束时间不能为空")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime timeEnd;
|
||||||
|
@ApiModelProperty(value = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)", name = "status", required = true)
|
||||||
|
@NotNull(message = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)不能为空")
|
||||||
|
private Integer status;
|
||||||
|
@ApiModelProperty(value = "关联隐患数", name = "hiddenNumber", required = true)
|
||||||
|
@NotNull(message = "关联隐患数不能为空")
|
||||||
|
private Integer hiddenNumber;
|
||||||
|
@ApiModelProperty(value = "企业ID", name = "corpId", required = true)
|
||||||
|
@NotNull(message = "企业ID不能为空")
|
||||||
|
private Long corpId;
|
||||||
|
@ApiModelProperty(value = "企业名称", name = "corpName", required = true)
|
||||||
|
@NotEmpty(message = "企业名称不能为空")
|
||||||
|
private String corpName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,68 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.Command;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:52
|
||||||
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUserAddCmd extends Command {
|
||||||
|
@ApiModelProperty(value = "检查人表id(业务id)", name = "inspectionUserId", required = true)
|
||||||
|
@NotEmpty(message = "检查人表id(业务id)不能为空")
|
||||||
|
private String inspectionUserId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID", name = "inspectionId", required = true)
|
||||||
|
@NotEmpty(message = "安全环保检查ID不能为空")
|
||||||
|
private String inspectionId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查人企业id", name = "corpId", required = true)
|
||||||
|
@NotNull(message = "检查人企业id不能为空")
|
||||||
|
private Long corpId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查人部门id", name = "departmentId", required = true)
|
||||||
|
@NotNull(message = "检查人部门id不能为空")
|
||||||
|
private Long departmentId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查人人员id", name = "userId", required = true)
|
||||||
|
@NotNull(message = "检查人人员id不能为空")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "检查人意见(有异议时必填)", name = "userRemarks", required = true)
|
||||||
|
@NotEmpty(message = "检查人意见(有异议时必填)不能为空")
|
||||||
|
private String userRemarks;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "0-未审批,1-通过,2-不通过", name = "status", required = true)
|
||||||
|
@NotNull(message = "0-未审批,1-通过,2-不通过不能为空")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)", name = "type", required = true)
|
||||||
|
@NotNull(message = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)不能为空")
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "签字", name = "signature", required = true)
|
||||||
|
@NotEmpty(message = "签字不能为空")
|
||||||
|
private String signature;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "核实时间", name = "signatureTime", required = true)
|
||||||
|
@NotNull(message = "核实时间不能为空")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime signatureTime;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageQuery;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionUserPageQry extends PageQuery {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||||
|
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||||
|
* - `eq`: 等值查询,对应SQL的=操作符
|
||||||
|
* - `gt`: 大于比较查询
|
||||||
|
* - `lt`: 小于比较查询
|
||||||
|
* - `ge`: 大于等于比较查询
|
||||||
|
* - `le`: 小于等于比较查询
|
||||||
|
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||||
|
*/
|
||||||
|
private String likeInspectionUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.zcloud.key.project.dto.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.Command;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-client
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUserUpdateCmd extends Command {
|
||||||
|
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||||
|
@NotNull(message = "主键不能为空")
|
||||||
|
private Long id;
|
||||||
|
@ApiModelProperty(value = "检查人表id(业务id)", name = "inspectionUserId", required = true)
|
||||||
|
@NotEmpty(message = "检查人表id(业务id)不能为空")
|
||||||
|
private String inspectionUserId;
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID", name = "inspectionId", required = true)
|
||||||
|
@NotEmpty(message = "安全环保检查ID不能为空")
|
||||||
|
private String inspectionId;
|
||||||
|
@ApiModelProperty(value = "检查人企业id", name = "corpId", required = true)
|
||||||
|
@NotNull(message = "检查人企业id不能为空")
|
||||||
|
private Long corpId;
|
||||||
|
@ApiModelProperty(value = "检查人部门id", name = "departmentId", required = true)
|
||||||
|
@NotNull(message = "检查人部门id不能为空")
|
||||||
|
private Long departmentId;
|
||||||
|
@ApiModelProperty(value = "检查人人员id", name = "userId", required = true)
|
||||||
|
@NotNull(message = "检查人人员id不能为空")
|
||||||
|
private Long userId;
|
||||||
|
@ApiModelProperty(value = "检查人意见(有异议时必填)", name = "userRemarks", required = true)
|
||||||
|
@NotEmpty(message = "检查人意见(有异议时必填)不能为空")
|
||||||
|
private String userRemarks;
|
||||||
|
@ApiModelProperty(value = "0-未审批,1-通过,2-不通过", name = "status", required = true)
|
||||||
|
@NotNull(message = "0-未审批,1-通过,2-不通过不能为空")
|
||||||
|
private Integer status;
|
||||||
|
@ApiModelProperty(value = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)", name = "type", required = true)
|
||||||
|
@NotNull(message = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)不能为空")
|
||||||
|
private Integer type;
|
||||||
|
@ApiModelProperty(value = "签字", name = "signature", required = true)
|
||||||
|
@NotEmpty(message = "签字不能为空")
|
||||||
|
private String signature;
|
||||||
|
@ApiModelProperty(value = "核实时间", name = "signatureTime", required = true)
|
||||||
|
@NotNull(message = "核实时间不能为空")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private LocalDateTime signatureTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.zcloud.key.project.domain.gateway.inspection;
|
||||||
|
|
||||||
|
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionContentE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-domain
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionContentGateway {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增
|
||||||
|
*/
|
||||||
|
Boolean add(SafetyEnvironmentalInspectionContentE safetyEnvironmentalInspectionContentE);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
Boolean update(SafetyEnvironmentalInspectionContentE safetyEnvironmentalInspectionContentE);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
Boolean deletedSafetyEnvironmentalInspectionContentById(Long id);
|
||||||
|
|
||||||
|
Boolean deletedSafetyEnvironmentalInspectionContentByIds(Long[] id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.zcloud.key.project.domain.gateway.inspection;
|
||||||
|
|
||||||
|
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionDefendE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-domain
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:11
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionDefendGateway {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增
|
||||||
|
*/
|
||||||
|
Boolean add(SafetyEnvironmentalInspectionDefendE safetyEnvironmentalInspectionDefendE);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
Boolean update(SafetyEnvironmentalInspectionDefendE safetyEnvironmentalInspectionDefendE);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
Boolean deletedSafetyEnvironmentalInspectionDefendById(Long id);
|
||||||
|
|
||||||
|
Boolean deletedSafetyEnvironmentalInspectionDefendByIds(Long[] id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.zcloud.key.project.domain.gateway.inspection;
|
||||||
|
|
||||||
|
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-domain
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionGateway {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增
|
||||||
|
*/
|
||||||
|
Boolean add(SafetyEnvironmentalInspectionE safetyEnvironmentalInspectionE);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
Boolean update(SafetyEnvironmentalInspectionE safetyEnvironmentalInspectionE);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
Boolean deletedSafetyEnvironmentalInspectionById(Long id);
|
||||||
|
|
||||||
|
Boolean deletedSafetyEnvironmentalInspectionByIds(Long[] id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.zcloud.key.project.domain.gateway.inspection;
|
||||||
|
|
||||||
|
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionUserE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-domain
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionUserGateway {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增
|
||||||
|
*/
|
||||||
|
Boolean add(SafetyEnvironmentalInspectionUserE safetyEnvironmentalInspectionUserE);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
Boolean update(SafetyEnvironmentalInspectionUserE safetyEnvironmentalInspectionUserE);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
Boolean deletedSafetyEnvironmentalInspectionUserById(Long id);
|
||||||
|
|
||||||
|
Boolean deletedSafetyEnvironmentalInspectionUserByIds(Long[] id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
package com.zcloud.key.project.domain.model.inspection;
|
||||||
|
|
||||||
|
import com.jjb.saas.framework.domain.model.BaseE;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-domain
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionContentE extends BaseE {
|
||||||
|
//内容id(业务id)
|
||||||
|
private String contentId;
|
||||||
|
//安全环保检查ID
|
||||||
|
private String inspectionId;
|
||||||
|
//检查情况内容
|
||||||
|
private String content;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
package com.zcloud.key.project.domain.model.inspection;
|
||||||
|
|
||||||
|
import com.jjb.saas.framework.domain.model.BaseE;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-domain
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:11
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionDefendE extends BaseE {
|
||||||
|
//申辩id(业务id)
|
||||||
|
private String defendId;
|
||||||
|
//安全环保检查ID
|
||||||
|
private String inspectionId;
|
||||||
|
//申辩说明
|
||||||
|
private String content;
|
||||||
|
//申辩附件
|
||||||
|
private String fileUrl;
|
||||||
|
//申辩人签字
|
||||||
|
private String defendantSign;
|
||||||
|
//是否通过0:未审批、1:通过、2:未通过
|
||||||
|
private Integer isPass;
|
||||||
|
//驳回理由内容
|
||||||
|
private String rejectContent;
|
||||||
|
//检查人签字
|
||||||
|
private String checkSign;
|
||||||
|
//检查人签字时间
|
||||||
|
private LocalDateTime checkSignTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,47 @@
|
||||||
|
package com.zcloud.key.project.domain.model.inspection;
|
||||||
|
|
||||||
|
import com.jjb.saas.framework.domain.model.BaseE;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-domain
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:04
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionE extends BaseE {
|
||||||
|
//安全环保检查ID(业务ID)
|
||||||
|
private String inspectionId;
|
||||||
|
//辖区单位
|
||||||
|
private Long departmentId;
|
||||||
|
//被检查单位
|
||||||
|
private Long inspectedCorpinfoId;
|
||||||
|
//重点作业id
|
||||||
|
private String keyProjectId;
|
||||||
|
//被检查单位现场负责人
|
||||||
|
private Long xgfMasterUserId;
|
||||||
|
//检查来源(1-监管端 2-企业端)
|
||||||
|
private Integer source;
|
||||||
|
//检查类型
|
||||||
|
private String type;
|
||||||
|
//检查类型名称
|
||||||
|
private String typeName;
|
||||||
|
//检查场所
|
||||||
|
private String place;
|
||||||
|
//检查开始时间
|
||||||
|
private LocalDateTime timeStart;
|
||||||
|
//检查结束时间
|
||||||
|
private LocalDateTime timeEnd;
|
||||||
|
//状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)
|
||||||
|
private Integer status;
|
||||||
|
//关联隐患数
|
||||||
|
private Integer hiddenNumber;
|
||||||
|
//企业ID
|
||||||
|
private Long corpId;
|
||||||
|
//企业名称
|
||||||
|
private String corpName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,37 @@
|
||||||
|
package com.zcloud.key.project.domain.model.inspection;
|
||||||
|
|
||||||
|
import com.jjb.saas.framework.domain.model.BaseE;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-domain
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class SafetyEnvironmentalInspectionUserE extends BaseE {
|
||||||
|
//检查人表id(业务id)
|
||||||
|
private String inspectionUserId;
|
||||||
|
//安全环保检查ID
|
||||||
|
private String inspectionId;
|
||||||
|
//检查人企业id
|
||||||
|
private Long corpId;
|
||||||
|
//检查人部门id
|
||||||
|
private Long departmentId;
|
||||||
|
//检查人人员id
|
||||||
|
private Long userId;
|
||||||
|
//检查人意见(有异议时必填)
|
||||||
|
private String userRemarks;
|
||||||
|
//0-未审批,1-通过,2-不通过
|
||||||
|
private Integer status;
|
||||||
|
//状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)
|
||||||
|
private Integer type;
|
||||||
|
//签字
|
||||||
|
private String signature;
|
||||||
|
//核实时间
|
||||||
|
private LocalDateTime signatureTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,51 @@
|
||||||
|
package com.zcloud.key.project.gatewayimpl.inspection;
|
||||||
|
|
||||||
|
import com.zcloud.gbscommon.utils.Tools;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionContentGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionContentE;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionContentDO;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionContentRepository;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionContentGatewayImpl implements SafetyEnvironmentalInspectionContentGateway {
|
||||||
|
private final SafetyEnvironmentalInspectionContentRepository safetyEnvironmentalInspectionContentRepository;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean add(SafetyEnvironmentalInspectionContentE safetyEnvironmentalInspectionContentE) {
|
||||||
|
SafetyEnvironmentalInspectionContentDO d = new SafetyEnvironmentalInspectionContentDO(Tools.get32UUID());
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionContentE, d, "${uuid}");
|
||||||
|
safetyEnvironmentalInspectionContentRepository.save(d);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean update(SafetyEnvironmentalInspectionContentE safetyEnvironmentalInspectionContentE) {
|
||||||
|
SafetyEnvironmentalInspectionContentDO d = new SafetyEnvironmentalInspectionContentDO();
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionContentE, d);
|
||||||
|
safetyEnvironmentalInspectionContentRepository.updateById(d);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean deletedSafetyEnvironmentalInspectionContentById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionContentRepository.removeById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean deletedSafetyEnvironmentalInspectionContentByIds(Long[] ids) {
|
||||||
|
return safetyEnvironmentalInspectionContentRepository.removeByIds(Collections.singletonList(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,51 @@
|
||||||
|
package com.zcloud.key.project.gatewayimpl.inspection;
|
||||||
|
|
||||||
|
import com.zcloud.gbscommon.utils.Tools;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionDefendGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionDefendE;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDefendDO;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionDefendRepository;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:11
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionDefendGatewayImpl implements SafetyEnvironmentalInspectionDefendGateway {
|
||||||
|
private final SafetyEnvironmentalInspectionDefendRepository safetyEnvironmentalInspectionDefendRepository;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean add(SafetyEnvironmentalInspectionDefendE safetyEnvironmentalInspectionDefendE) {
|
||||||
|
SafetyEnvironmentalInspectionDefendDO d = new SafetyEnvironmentalInspectionDefendDO(Tools.get32UUID());
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionDefendE, d, "${uuid}");
|
||||||
|
safetyEnvironmentalInspectionDefendRepository.save(d);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean update(SafetyEnvironmentalInspectionDefendE safetyEnvironmentalInspectionDefendE) {
|
||||||
|
SafetyEnvironmentalInspectionDefendDO d = new SafetyEnvironmentalInspectionDefendDO();
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionDefendE, d);
|
||||||
|
safetyEnvironmentalInspectionDefendRepository.updateById(d);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean deletedSafetyEnvironmentalInspectionDefendById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionDefendRepository.removeById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean deletedSafetyEnvironmentalInspectionDefendByIds(Long[] ids) {
|
||||||
|
return safetyEnvironmentalInspectionDefendRepository.removeByIds(Collections.singletonList(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,51 @@
|
||||||
|
package com.zcloud.key.project.gatewayimpl.inspection;
|
||||||
|
|
||||||
|
import com.zcloud.gbscommon.utils.Tools;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionE;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDO;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionRepository;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionGatewayImpl implements SafetyEnvironmentalInspectionGateway {
|
||||||
|
private final SafetyEnvironmentalInspectionRepository safetyEnvironmentalInspectionRepository;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean add(SafetyEnvironmentalInspectionE safetyEnvironmentalInspectionE) {
|
||||||
|
SafetyEnvironmentalInspectionDO d = new SafetyEnvironmentalInspectionDO(Tools.get32UUID());
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionE, d, "${uuid}");
|
||||||
|
safetyEnvironmentalInspectionRepository.save(d);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean update(SafetyEnvironmentalInspectionE safetyEnvironmentalInspectionE) {
|
||||||
|
SafetyEnvironmentalInspectionDO d = new SafetyEnvironmentalInspectionDO();
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionE, d);
|
||||||
|
safetyEnvironmentalInspectionRepository.updateById(d);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean deletedSafetyEnvironmentalInspectionById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionRepository.removeById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean deletedSafetyEnvironmentalInspectionByIds(Long[] ids) {
|
||||||
|
return safetyEnvironmentalInspectionRepository.removeByIds(Collections.singletonList(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,51 @@
|
||||||
|
package com.zcloud.key.project.gatewayimpl.inspection;
|
||||||
|
|
||||||
|
import com.zcloud.gbscommon.utils.Tools;
|
||||||
|
import com.zcloud.key.project.domain.gateway.inspection.SafetyEnvironmentalInspectionUserGateway;
|
||||||
|
import com.zcloud.key.project.domain.model.inspection.SafetyEnvironmentalInspectionUserE;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionUserDO;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionUserRepository;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUserGatewayImpl implements SafetyEnvironmentalInspectionUserGateway {
|
||||||
|
private final SafetyEnvironmentalInspectionUserRepository safetyEnvironmentalInspectionUserRepository;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean add(SafetyEnvironmentalInspectionUserE safetyEnvironmentalInspectionUserE) {
|
||||||
|
SafetyEnvironmentalInspectionUserDO d = new SafetyEnvironmentalInspectionUserDO(Tools.get32UUID());
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionUserE, d, "${uuid}");
|
||||||
|
safetyEnvironmentalInspectionUserRepository.save(d);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean update(SafetyEnvironmentalInspectionUserE safetyEnvironmentalInspectionUserE) {
|
||||||
|
SafetyEnvironmentalInspectionUserDO d = new SafetyEnvironmentalInspectionUserDO();
|
||||||
|
BeanUtils.copyProperties(safetyEnvironmentalInspectionUserE, d);
|
||||||
|
safetyEnvironmentalInspectionUserRepository.updateById(d);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean deletedSafetyEnvironmentalInspectionUserById(Long id) {
|
||||||
|
return safetyEnvironmentalInspectionUserRepository.removeById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean deletedSafetyEnvironmentalInspectionUserByIds(Long[] ids) {
|
||||||
|
return safetyEnvironmentalInspectionUserRepository.removeByIds(Collections.singletonList(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
package com.zcloud.key.project.persistence.dataobject.inspection;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.jjb.saas.framework.repository.basedo.BaseDO;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("safety_environmental_inspection_content")
|
||||||
|
@NoArgsConstructor
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class SafetyEnvironmentalInspectionContentDO extends BaseDO {
|
||||||
|
//内容id(业务id)
|
||||||
|
@ApiModelProperty(value = "内容id(业务id)")
|
||||||
|
private String contentId;
|
||||||
|
//安全环保检查ID
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID")
|
||||||
|
private String inspectionId;
|
||||||
|
//检查情况内容
|
||||||
|
@ApiModelProperty(value = "检查情况内容")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
public SafetyEnvironmentalInspectionContentDO(String contentId) {
|
||||||
|
this.contentId = contentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,74 @@
|
||||||
|
package com.zcloud.key.project.persistence.dataobject.inspection;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.jjb.saas.framework.repository.basedo.BaseDO;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:04
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("safety_environmental_inspection")
|
||||||
|
@NoArgsConstructor
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class SafetyEnvironmentalInspectionDO extends BaseDO {
|
||||||
|
//安全环保检查ID(业务ID)
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID(业务ID)")
|
||||||
|
private String inspectionId;
|
||||||
|
//辖区单位
|
||||||
|
@ApiModelProperty(value = "辖区单位")
|
||||||
|
private Long departmentId;
|
||||||
|
//被检查单位
|
||||||
|
@ApiModelProperty(value = "被检查单位")
|
||||||
|
private Long inspectedCorpinfoId;
|
||||||
|
//重点作业id
|
||||||
|
@ApiModelProperty(value = "重点作业id")
|
||||||
|
private String keyProjectId;
|
||||||
|
//被检查单位现场负责人
|
||||||
|
@ApiModelProperty(value = "被检查单位现场负责人")
|
||||||
|
private Long xgfMasterUserId;
|
||||||
|
//检查来源(1-监管端 2-企业端)
|
||||||
|
@ApiModelProperty(value = "检查来源(1-监管端 2-企业端)")
|
||||||
|
private Integer source;
|
||||||
|
//检查类型
|
||||||
|
@ApiModelProperty(value = "检查类型")
|
||||||
|
private String type;
|
||||||
|
//检查类型名称
|
||||||
|
@ApiModelProperty(value = "检查类型名称")
|
||||||
|
private String typeName;
|
||||||
|
//检查场所
|
||||||
|
@ApiModelProperty(value = "检查场所")
|
||||||
|
private String place;
|
||||||
|
//检查开始时间
|
||||||
|
@ApiModelProperty(value = "检查开始时间")
|
||||||
|
private LocalDateTime timeStart;
|
||||||
|
//检查结束时间
|
||||||
|
@ApiModelProperty(value = "检查结束时间")
|
||||||
|
private LocalDateTime timeEnd;
|
||||||
|
//状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)
|
||||||
|
@ApiModelProperty(value = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)")
|
||||||
|
private Integer status;
|
||||||
|
//关联隐患数
|
||||||
|
@ApiModelProperty(value = "关联隐患数")
|
||||||
|
private Integer hiddenNumber;
|
||||||
|
//企业ID
|
||||||
|
@ApiModelProperty(value = "企业ID")
|
||||||
|
private Long corpId;
|
||||||
|
//企业名称
|
||||||
|
@ApiModelProperty(value = "企业名称")
|
||||||
|
private String corpName;
|
||||||
|
|
||||||
|
public SafetyEnvironmentalInspectionDO(String inspectionId) {
|
||||||
|
this.inspectionId = inspectionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,56 @@
|
||||||
|
package com.zcloud.key.project.persistence.dataobject.inspection;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.jjb.saas.framework.repository.basedo.BaseDO;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:11
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("safety_environmental_inspection_defend")
|
||||||
|
@NoArgsConstructor
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class SafetyEnvironmentalInspectionDefendDO extends BaseDO {
|
||||||
|
//申辩id(业务id)
|
||||||
|
@ApiModelProperty(value = "申辩id(业务id)")
|
||||||
|
private String defendId;
|
||||||
|
//安全环保检查ID
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID")
|
||||||
|
private String inspectionId;
|
||||||
|
//申辩说明
|
||||||
|
@ApiModelProperty(value = "申辩说明")
|
||||||
|
private String content;
|
||||||
|
//申辩附件
|
||||||
|
@ApiModelProperty(value = "申辩附件")
|
||||||
|
private String fileUrl;
|
||||||
|
//申辩人签字
|
||||||
|
@ApiModelProperty(value = "申辩人签字")
|
||||||
|
private String defendantSign;
|
||||||
|
//是否通过0:未审批、1:通过、2:未通过
|
||||||
|
@ApiModelProperty(value = "是否通过0:未审批、1:通过、2:未通过")
|
||||||
|
private Integer isPass;
|
||||||
|
//驳回理由内容
|
||||||
|
@ApiModelProperty(value = "驳回理由内容")
|
||||||
|
private String rejectContent;
|
||||||
|
//检查人签字
|
||||||
|
@ApiModelProperty(value = "检查人签字")
|
||||||
|
private String checkSign;
|
||||||
|
//检查人签字时间
|
||||||
|
@ApiModelProperty(value = "检查人签字时间")
|
||||||
|
private LocalDateTime checkSignTime;
|
||||||
|
|
||||||
|
public SafetyEnvironmentalInspectionDefendDO(String defendId) {
|
||||||
|
this.defendId = defendId;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,59 @@
|
||||||
|
package com.zcloud.key.project.persistence.dataobject.inspection;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.jjb.saas.framework.repository.basedo.BaseDO;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("safety_environmental_inspection_user")
|
||||||
|
@NoArgsConstructor
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class SafetyEnvironmentalInspectionUserDO extends BaseDO {
|
||||||
|
//检查人表id(业务id)
|
||||||
|
@ApiModelProperty(value = "检查人表id(业务id)")
|
||||||
|
private String inspectionUserId;
|
||||||
|
//安全环保检查ID
|
||||||
|
@ApiModelProperty(value = "安全环保检查ID")
|
||||||
|
private String inspectionId;
|
||||||
|
//检查人企业id
|
||||||
|
@ApiModelProperty(value = "检查人企业id")
|
||||||
|
private Long corpId;
|
||||||
|
//检查人部门id
|
||||||
|
@ApiModelProperty(value = "检查人部门id")
|
||||||
|
private Long departmentId;
|
||||||
|
//检查人人员id
|
||||||
|
@ApiModelProperty(value = "检查人人员id")
|
||||||
|
private Long userId;
|
||||||
|
//检查人意见(有异议时必填)
|
||||||
|
@ApiModelProperty(value = "检查人意见(有异议时必填)")
|
||||||
|
private String userRemarks;
|
||||||
|
//0-未审批,1-通过,2-不通过
|
||||||
|
@ApiModelProperty(value = "0-未审批,1-通过,2-不通过")
|
||||||
|
private Integer status;
|
||||||
|
//状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)
|
||||||
|
@ApiModelProperty(value = "状态(0-暂存,1-待核实,2-待确认,3-待隐患整改,4-待隐患验收,5-检查归档,6-核实打回,7-被检查申辩)")
|
||||||
|
private Integer type;
|
||||||
|
//签字
|
||||||
|
@ApiModelProperty(value = "签字")
|
||||||
|
private String signature;
|
||||||
|
//核实时间
|
||||||
|
@ApiModelProperty(value = "核实时间")
|
||||||
|
private LocalDateTime signatureTime;
|
||||||
|
|
||||||
|
public SafetyEnvironmentalInspectionUserDO(String inspectionUserId) {
|
||||||
|
this.inspectionUserId = inspectionUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.zcloud.key.project.persistence.mapper.inspection;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionContentDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SafetyEnvironmentalInspectionContentMapper extends BaseMapper<SafetyEnvironmentalInspectionContentDO> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.zcloud.key.project.persistence.mapper.inspection;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDefendDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:12
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SafetyEnvironmentalInspectionDefendMapper extends BaseMapper<SafetyEnvironmentalInspectionDefendDO> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.zcloud.key.project.persistence.mapper.inspection;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SafetyEnvironmentalInspectionMapper extends BaseMapper<SafetyEnvironmentalInspectionDO> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.zcloud.key.project.persistence.mapper.inspection;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionUserDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SafetyEnvironmentalInspectionUserMapper extends BaseMapper<SafetyEnvironmentalInspectionUserDO> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.zcloud.key.project.persistence.repository.impl.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.jjb.saas.framework.repository.common.PageHelper;
|
||||||
|
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
|
||||||
|
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||||
|
import com.zcloud.gbscommon.utils.Query;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionContentDO;
|
||||||
|
import com.zcloud.key.project.persistence.mapper.inspection.SafetyEnvironmentalInspectionContentMapper;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionContentRepository;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionContentRepositoryImpl extends BaseRepositoryImpl<SafetyEnvironmentalInspectionContentMapper, SafetyEnvironmentalInspectionContentDO> implements SafetyEnvironmentalInspectionContentRepository {
|
||||||
|
private final SafetyEnvironmentalInspectionContentMapper safetyEnvironmentalInspectionContentMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionContentDO> listPage(Map<String, Object> params) {
|
||||||
|
IPage<SafetyEnvironmentalInspectionContentDO> iPage = new Query<SafetyEnvironmentalInspectionContentDO>().getPage(params);
|
||||||
|
QueryWrapper<SafetyEnvironmentalInspectionContentDO> queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, params);
|
||||||
|
queryWrapper.orderByDesc("create_time");
|
||||||
|
IPage<SafetyEnvironmentalInspectionContentDO> result = safetyEnvironmentalInspectionContentMapper.selectPage(iPage, queryWrapper);
|
||||||
|
return PageHelper.pageToResponse(result, result.getRecords());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.zcloud.key.project.persistence.repository.impl.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.jjb.saas.framework.repository.common.PageHelper;
|
||||||
|
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
|
||||||
|
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||||
|
import com.zcloud.gbscommon.utils.Query;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDefendDO;
|
||||||
|
import com.zcloud.key.project.persistence.mapper.inspection.SafetyEnvironmentalInspectionDefendMapper;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionDefendRepository;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:12
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionDefendRepositoryImpl extends BaseRepositoryImpl<SafetyEnvironmentalInspectionDefendMapper, SafetyEnvironmentalInspectionDefendDO> implements SafetyEnvironmentalInspectionDefendRepository {
|
||||||
|
private final SafetyEnvironmentalInspectionDefendMapper safetyEnvironmentalInspectionDefendMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionDefendDO> listPage(Map<String, Object> params) {
|
||||||
|
IPage<SafetyEnvironmentalInspectionDefendDO> iPage = new Query<SafetyEnvironmentalInspectionDefendDO>().getPage(params);
|
||||||
|
QueryWrapper<SafetyEnvironmentalInspectionDefendDO> queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, params);
|
||||||
|
queryWrapper.orderByDesc("create_time");
|
||||||
|
IPage<SafetyEnvironmentalInspectionDefendDO> result = safetyEnvironmentalInspectionDefendMapper.selectPage(iPage, queryWrapper);
|
||||||
|
return PageHelper.pageToResponse(result, result.getRecords());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.zcloud.key.project.persistence.repository.impl.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.jjb.saas.framework.repository.common.PageHelper;
|
||||||
|
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
|
||||||
|
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||||
|
import com.zcloud.gbscommon.utils.Query;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDO;
|
||||||
|
import com.zcloud.key.project.persistence.mapper.inspection.SafetyEnvironmentalInspectionMapper;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionRepository;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionRepositoryImpl extends BaseRepositoryImpl<SafetyEnvironmentalInspectionMapper, SafetyEnvironmentalInspectionDO> implements SafetyEnvironmentalInspectionRepository {
|
||||||
|
private final SafetyEnvironmentalInspectionMapper safetyEnvironmentalInspectionMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionDO> listPage(Map<String, Object> params) {
|
||||||
|
IPage<SafetyEnvironmentalInspectionDO> iPage = new Query<SafetyEnvironmentalInspectionDO>().getPage(params);
|
||||||
|
QueryWrapper<SafetyEnvironmentalInspectionDO> queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, params);
|
||||||
|
queryWrapper.orderByDesc("create_time");
|
||||||
|
IPage<SafetyEnvironmentalInspectionDO> result = safetyEnvironmentalInspectionMapper.selectPage(iPage, queryWrapper);
|
||||||
|
return PageHelper.pageToResponse(result, result.getRecords());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.zcloud.key.project.persistence.repository.impl.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.jjb.saas.framework.repository.common.PageHelper;
|
||||||
|
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
|
||||||
|
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||||
|
import com.zcloud.gbscommon.utils.Query;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionUserDO;
|
||||||
|
import com.zcloud.key.project.persistence.mapper.inspection.SafetyEnvironmentalInspectionUserMapper;
|
||||||
|
import com.zcloud.key.project.persistence.repository.inspection.SafetyEnvironmentalInspectionUserRepository;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class SafetyEnvironmentalInspectionUserRepositoryImpl extends BaseRepositoryImpl<SafetyEnvironmentalInspectionUserMapper, SafetyEnvironmentalInspectionUserDO> implements SafetyEnvironmentalInspectionUserRepository {
|
||||||
|
private final SafetyEnvironmentalInspectionUserMapper safetyEnvironmentalInspectionUserMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResponse<SafetyEnvironmentalInspectionUserDO> listPage(Map<String, Object> params) {
|
||||||
|
IPage<SafetyEnvironmentalInspectionUserDO> iPage = new Query<SafetyEnvironmentalInspectionUserDO>().getPage(params);
|
||||||
|
QueryWrapper<SafetyEnvironmentalInspectionUserDO> queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, params);
|
||||||
|
queryWrapper.orderByDesc("create_time");
|
||||||
|
IPage<SafetyEnvironmentalInspectionUserDO> result = safetyEnvironmentalInspectionUserMapper.selectPage(iPage, queryWrapper);
|
||||||
|
return PageHelper.pageToResponse(result, result.getRecords());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.zcloud.key.project.persistence.repository.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.jjb.saas.framework.repository.repo.BaseRepository;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionContentDO;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:51:22
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionContentRepository extends BaseRepository<SafetyEnvironmentalInspectionContentDO> {
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionContentDO> listPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.zcloud.key.project.persistence.repository.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.jjb.saas.framework.repository.repo.BaseRepository;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDefendDO;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:12
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionDefendRepository extends BaseRepository<SafetyEnvironmentalInspectionDefendDO> {
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionDefendDO> listPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.zcloud.key.project.persistence.repository.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.jjb.saas.framework.repository.repo.BaseRepository;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionDO;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:16:05
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionRepository extends BaseRepository<SafetyEnvironmentalInspectionDO> {
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionDO> listPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.zcloud.key.project.persistence.repository.inspection;
|
||||||
|
|
||||||
|
import com.alibaba.cola.dto.PageResponse;
|
||||||
|
import com.jjb.saas.framework.repository.repo.BaseRepository;
|
||||||
|
import com.zcloud.key.project.persistence.dataobject.inspection.SafetyEnvironmentalInspectionUserDO;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* web-infrastructure
|
||||||
|
*
|
||||||
|
* @Author zhangyue
|
||||||
|
* @Date 2026-03-20 16:52:53
|
||||||
|
*/
|
||||||
|
public interface SafetyEnvironmentalInspectionUserRepository extends BaseRepository<SafetyEnvironmentalInspectionUserDO> {
|
||||||
|
PageResponse<SafetyEnvironmentalInspectionUserDO> listPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.zcloud.key.project.persistence.mapper.inspection.SafetyEnvironmentalInspectionContentMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.zcloud.key.project.persistence.mapper.inspection.SafetyEnvironmentalInspectionDefendMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.zcloud.key.project.persistence.mapper.inspection.SafetyEnvironmentalInspectionMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.zcloud.key.project.persistence.mapper.inspection.SafetyEnvironmentalInspectionUserMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
||||||
Loading…
Reference in New Issue