初始提交
commit
72a0bd747f
|
|
@ -0,0 +1,38 @@
|
|||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/modules.xml
|
||||
.idea/jarRepositories.xml
|
||||
.idea/compiler.xml
|
||||
.idea/libraries/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
FROM jjb-registry-registry.cn-hangzhou.cr.aliyuncs.com/pub/jdk:1.8.0_202
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
COPY ./start/target/start.jar /opt/app.jar
|
||||
|
||||
|
||||
ENTRYPOINT ["java", "-jar", "/opt/app.jar"]
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.jjb.saas</groupId>
|
||||
<artifactId>jjb-saas-parent</artifactId>
|
||||
<version>2.2.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>zcloud-gbs-eightwork</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<name>zcloud-gbs-eightwork</name>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.zcloud.gbscommon</groupId>
|
||||
<artifactId>zcloud_gbscommon</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.jjb.saas</groupId>
|
||||
<artifactId>jjb-saas-system-client</artifactId>
|
||||
<version>1.7.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<!--Project modules-->
|
||||
<dependency>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>web-adapter</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>web-client</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>web-app</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>web-domain</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>web-infrastructure</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<!-- 统一管理插件版本 -->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>2.6.6</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-archetype-plugin</artifactId>
|
||||
<version>3.4.1</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<modules>
|
||||
<module>web-client</module>
|
||||
<module>web-adapter</module>
|
||||
<module>web-app</module>
|
||||
<module>web-domain</module>
|
||||
<module>web-infrastructure</module>
|
||||
<module>start</module>
|
||||
</modules>
|
||||
</project>
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>zcloud-gbs-eightwork</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>start</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>start</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>web-adapter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.flywaydb</groupId>
|
||||
<artifactId>flyway-mysql</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.jjb.saas</groupId>
|
||||
<artifactId>jjb-saas-gateway-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.jjb.saas</groupId>
|
||||
<artifactId>jjb-saas-framework-web</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<mainClass>com.zcloud.eightwork.Application</mainClass>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.zcloud.eightwork;
|
||||
|
||||
import com.jjb.saas.base.starter.bootstart.JJBSpringbootApplication;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
|
||||
/**
|
||||
* Spring Boot Starter
|
||||
*
|
||||
*/
|
||||
@JJBSpringbootApplication(
|
||||
scanBasePackages = {"com.zcloud","com.jjb"},
|
||||
mapperPackages = {"com.zcloud.eightwork.persistence.mapper"}
|
||||
)
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
spring:
|
||||
config:
|
||||
import:
|
||||
- classpath:nacos.yml
|
||||
- classpath:sdk.yml
|
||||
- classpath:swagger.yml
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
nacos:
|
||||
url: 192.168.20.100:30290
|
||||
namespace: jjb-dragon
|
||||
application:
|
||||
name: zcloud-gbs-eightwork
|
||||
version:
|
||||
gateway: eightwork
|
||||
cn-name: 特殊作业
|
||||
spring:
|
||||
application:
|
||||
name: ${application.name}${application.version}
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: test
|
||||
cloud:
|
||||
nacos:
|
||||
config:
|
||||
namespace: ${nacos.namespace}
|
||||
server-addr: ${nacos.url}
|
||||
file-extension: yml
|
||||
shared-configs:
|
||||
- config-common.yml
|
||||
- config-port.yml
|
||||
- config-mq.yml
|
||||
- config-log.yml
|
||||
- config-sdk-server.yml
|
||||
- config-actuator.yml
|
||||
- config-job.yml
|
||||
- config-mysql.yml
|
||||
- config-redis.yml
|
||||
- config-cache.yml
|
||||
- config-spring.yml
|
||||
- config-mybatis.yml
|
||||
- config-sdk.yml
|
||||
- config-flyway.yml
|
||||
discovery:
|
||||
server-addr: ${spring.cloud.nacos.config.server-addr}
|
||||
namespace: ${spring.cloud.nacos.config.namespace}
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
sdk:
|
||||
server:
|
||||
app-key: 722091ff53dd4abba078c2a00efd4a42
|
||||
client:
|
||||
gateway:
|
||||
url: ${common.gateway.network.http.external}
|
||||
route:
|
||||
- client:
|
||||
system-code: ${application.name}
|
||||
name: ${application.cn-name}-后端
|
||||
group-code: public_api
|
||||
service:
|
||||
system-code: ${application.name}
|
||||
name: ${application.cn-name}-后端
|
||||
group-code: public_api
|
||||
strip-prefix: 0
|
||||
uri: lb://${application.name}
|
||||
path: /${application.gateway}/**
|
||||
- client:
|
||||
system-code: ${application.name}-container
|
||||
name: ${application.cn-name}-前端
|
||||
group-code: public_api
|
||||
service:
|
||||
system-code: ${application.name}-container
|
||||
name: ${application.cn-name}-前端
|
||||
group-code: public_api
|
||||
strip-prefix: 0
|
||||
uri: lb://jjb-saas-base
|
||||
path: /${application.gateway}/container/**
|
||||
order: -2
|
||||
openapi:
|
||||
appId: 1871106785124999168
|
||||
appKey: 7314ecfc11ff4d5fad1ac19284ed2ac3
|
||||
appSecret: 7565ab15-a2ae-4830-9b4d-fb382cd5fb30
|
||||
appPublicKey: 3059301306072a8648ce3d020106082a811ccf5501822d03420004f339671110a06681fcfd968ad9247bd3cd0d2ec6b2159d1d4b775e7ed5566b3297d82cf14b626ef11fdd6bc7ecb6bcfb3ea94ccd1f381f4116f43367be4b360f
|
||||
appPrivateKey: 308193020100301306072a8648ce3d020106082a811ccf5501822d0479307702010104206b6abc8e717b7d042f1e8531190a7c18113e4a701417f2770d2150d33ba97779a00a06082a811ccf5501822da14403420004f339671110a06681fcfd968ad9247bd3cd0d2ec6b2159d1d4b775e7ed5566b3297d82cf14b626ef11fdd6bc7ecb6bcfb3ea94ccd1f381f4116f43367be4b360f
|
||||
encryptType: SM2
|
||||
platform:
|
||||
- name: default
|
||||
openPublicKey: 3059301306072a8648ce3d020106082a811ccf5501822d034200045b5d8fcad91e113910406db4caf0f5c6688048e0f46742d55f872a25855316803ddb177cc9bb5906ff0b2ad4d6b1f1378a49109104613e79b5b5512e3710e88f
|
||||
url: ${common.gateway.network.http.intranet}
|
||||
protocol: HTTP
|
||||
defaultPlatform: true
|
||||
##ciphertext plaintext
|
||||
type: plaintext
|
||||
apiPlatform:
|
||||
- name: default
|
||||
#多个可以逗号隔开
|
||||
apiCode: test:01
|
||||
#多个可以逗号隔开,可以为空
|
||||
tenantIds: 1838408702262321152
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
swagger:
|
||||
enabled: ${common.swagger.enabled}
|
||||
title: ${application.cn-name}
|
||||
description: ${application.cn-name},一切皆有可能
|
||||
version: 1.0.0
|
||||
group-name: ${application.cn-name}
|
||||
springfox:
|
||||
documentation:
|
||||
swagger-ui:
|
||||
base-url: ${application.gateway}
|
||||
swagger:
|
||||
v2:
|
||||
path: /${application.gateway}/v2/api-docs
|
||||
open-doc:
|
||||
brief-introduction-url: https://ipaas-gateway.cqjjb.cn/document-foreground/container/document/detail?siteId=1729854594279215106&docTypeId=1744908406080786434&dirId=1745034145606258688
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>zcloud-gbs-eightwork</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>web-adapter</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>web-adapter</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.jjb.saas</groupId>
|
||||
<artifactId>jjb-saas-framework-adapter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>web-app</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>web-client</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
@ -0,0 +1,89 @@
|
|||
package com.zcloud.eightwork.web;
|
||||
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.zcloud.eightwork.api.ConfinedSpaceServiceI;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpaceAddCmd;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpacePageQry;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpaceUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.ConfinedSpaceCO;
|
||||
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 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 fangjiakai
|
||||
* @Date 2025-11-27 10:26:33
|
||||
*/
|
||||
@Api(tags = "有限空间台账表")
|
||||
@RequestMapping("/${application.gateway}/confinedSpace")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class ConfinedSpaceController {
|
||||
private final ConfinedSpaceServiceI confinedSpaceService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<ConfinedSpaceCO> add(@Validated @RequestBody ConfinedSpaceAddCmd cmd) {
|
||||
if(ObjectUtil.isEmpty(cmd.getCorpinfoId())){
|
||||
cmd.setCorpinfoId(AuthContext.getTenantId());
|
||||
}
|
||||
cmd.setDepartmentId(AuthContext.getOrgId());
|
||||
return confinedSpaceService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<ConfinedSpaceCO> page(@RequestBody ConfinedSpacePageQry qry) {
|
||||
return confinedSpaceService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@PostMapping("/listAll")
|
||||
public MultiResponse<ConfinedSpaceCO> listAll(@RequestBody ConfinedSpacePageQry qry) {
|
||||
if(ObjectUtil.isEmpty(qry.getEqCorpinfoId())){
|
||||
qry.setEqCorpinfoId(AuthContext.getTenantId());
|
||||
}
|
||||
return MultiResponse.of(confinedSpaceService.listAll(qry));
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<ConfinedSpaceCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(confinedSpaceService.queryById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
confinedSpaceService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
confinedSpaceService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody ConfinedSpaceUpdateCmd confinedSpaceUpdateCmd) {
|
||||
confinedSpaceService.edit(confinedSpaceUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
package com.zcloud.eightwork.web;
|
||||
|
||||
|
||||
import com.zcloud.eightwork.api.EightworkInfoServiceI;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkInfoCO;
|
||||
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 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 fangjiakai
|
||||
* @Date 2025-11-12 10:58:53
|
||||
*/
|
||||
@Api(tags = "")
|
||||
@RequestMapping("/${application.gateway}/eightworkInfo")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class EightworkInfoController {
|
||||
private final EightworkInfoServiceI eightworkInfoService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<EightworkInfoCO> add(@Validated @RequestBody EightworkInfoAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return eightworkInfoService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<EightworkInfoCO> page(@RequestBody EightworkInfoPageQry qry) {
|
||||
qry.setEqDepartmentId(AuthContext.getOrgId());
|
||||
qry.setEqCreateId(AuthContext.getUserId());
|
||||
return eightworkInfoService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<EightworkInfoCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<EightworkInfoCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<EightworkInfoCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(eightworkInfoService.queryById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
eightworkInfoService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
eightworkInfoService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody EightworkInfoUpdateCmd eightworkInfoUpdateCmd) {
|
||||
eightworkInfoService.edit(eightworkInfoUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.eightwork.web;
|
||||
|
||||
|
||||
import com.zcloud.eightwork.api.EightworkStepServiceI;
|
||||
import com.zcloud.eightwork.dto.EightworkStepAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkStepPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkStepUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkStepCO;
|
||||
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 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 fangjiakai
|
||||
* @Date 2025-11-05 09:53:12
|
||||
*/
|
||||
@Api(tags = "八项作业任务步骤")
|
||||
@RequestMapping("/${application.gateway}/eightworkStep")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class EightworkStepController {
|
||||
private final EightworkStepServiceI eightworkStepService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<EightworkStepCO> add(@Validated @RequestBody EightworkStepAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return eightworkStepService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<EightworkStepCO> page(@RequestBody EightworkStepPageQry qry) {
|
||||
return eightworkStepService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<EightworkStepCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<EightworkStepCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<EightworkStepCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new EightworkStepCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
eightworkStepService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
eightworkStepService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody EightworkStepUpdateCmd eightworkStepUpdateCmd) {
|
||||
eightworkStepService.edit(eightworkStepUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
package com.zcloud.eightwork.web;
|
||||
|
||||
|
||||
import com.zcloud.eightwork.api.EightworkSupplementaryInfoServiceI;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkSupplementaryInfoCO;
|
||||
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 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 fangjiakai
|
||||
* @Date 2025-11-20 10:38:36
|
||||
*/
|
||||
@Api(tags = "附属信息")
|
||||
@RequestMapping("/${application.gateway}/eightworkSupplementaryInfo")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class EightworkSupplementaryInfoController {
|
||||
private final EightworkSupplementaryInfoServiceI eightworkSupplementaryInfoService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<EightworkSupplementaryInfoCO> add(@Validated @RequestBody EightworkSupplementaryInfoAddCmd cmd) {
|
||||
return eightworkSupplementaryInfoService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<EightworkSupplementaryInfoCO> page(@RequestBody EightworkSupplementaryInfoPageQry qry) {
|
||||
return eightworkSupplementaryInfoService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll/{workId}")
|
||||
public MultiResponse<EightworkSupplementaryInfoCO> listAll(@PathVariable("workId") String workId) {
|
||||
return MultiResponse.of(eightworkSupplementaryInfoService.listAll(workId));
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<EightworkSupplementaryInfoCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(eightworkSupplementaryInfoService.queryById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
eightworkSupplementaryInfoService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
eightworkSupplementaryInfoService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody EightworkSupplementaryInfoUpdateCmd eightworkSupplementaryInfoUpdateCmd) {
|
||||
eightworkSupplementaryInfoService.edit(eightworkSupplementaryInfoUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.eightwork.web;
|
||||
|
||||
|
||||
import com.zcloud.eightwork.api.EightworkTaskServiceI;
|
||||
import com.zcloud.eightwork.dto.EightworkTaskAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkTaskPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkTaskUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkTaskCO;
|
||||
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 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 fangjiakai
|
||||
* @Date 2025-11-05 09:53:37
|
||||
*/
|
||||
@Api(tags = "八项作业流程任务")
|
||||
@RequestMapping("/${application.gateway}/eightworkTask")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class EightworkTaskController {
|
||||
private final EightworkTaskServiceI eightworkTaskService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<EightworkTaskCO> add(@Validated @RequestBody EightworkTaskAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return eightworkTaskService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<EightworkTaskCO> page(@RequestBody EightworkTaskPageQry qry) {
|
||||
return eightworkTaskService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<EightworkTaskCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<EightworkTaskCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<EightworkTaskCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new EightworkTaskCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
eightworkTaskService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
eightworkTaskService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody EightworkTaskUpdateCmd eightworkTaskUpdateCmd) {
|
||||
eightworkTaskService.edit(eightworkTaskUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
package com.zcloud.eightwork.web;
|
||||
|
||||
|
||||
import com.zcloud.eightwork.api.MeasuresServiceI;
|
||||
import com.zcloud.eightwork.dto.MeasuresAddCmd;
|
||||
import com.zcloud.eightwork.dto.MeasuresPageQry;
|
||||
import com.zcloud.eightwork.dto.MeasuresUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.MeasuresCO;
|
||||
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 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 fangjiakai
|
||||
* @Date 2025-11-11 11:30:44
|
||||
*/
|
||||
@Api(tags = "安全措施")
|
||||
@RequestMapping("/${application.gateway}/measures")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class MeasuresController {
|
||||
private final MeasuresServiceI measuresService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<MeasuresCO> add(@Validated @RequestBody MeasuresAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return measuresService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<MeasuresCO> page(@RequestBody MeasuresPageQry qry) {
|
||||
return measuresService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@PostMapping("/listAll")
|
||||
public MultiResponse<MeasuresCO> listAll(@RequestBody MeasuresPageQry qry) {
|
||||
return MultiResponse.of(measuresService.listAll(qry));
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<MeasuresCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(measuresService.queryById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
measuresService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
measuresService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody MeasuresUpdateCmd measuresUpdateCmd) {
|
||||
measuresService.edit(measuresUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
package com.zcloud.eightwork.web;
|
||||
|
||||
|
||||
import com.zcloud.eightwork.api.MeasuresLogsServiceI;
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsAddCmd;
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsPageQry;
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.MeasuresLogsCO;
|
||||
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 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 fangjiakai
|
||||
* @Date 2025-11-11 11:30:49
|
||||
*/
|
||||
@Api(tags = "安全措施")
|
||||
@RequestMapping("/${application.gateway}/measuresLogs")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class MeasuresLogsController {
|
||||
private final MeasuresLogsServiceI measuresLogsService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<MeasuresLogsCO> add(@Validated @RequestBody MeasuresLogsAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return measuresLogsService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<MeasuresLogsCO> page(@RequestBody MeasuresLogsPageQry qry) {
|
||||
return measuresLogsService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll/{workId}")
|
||||
public MultiResponse<MeasuresLogsCO> listAll(@PathVariable("workId") String workId) {
|
||||
return MultiResponse.of(measuresLogsService.listAll(workId));
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<MeasuresLogsCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(measuresLogsService.queryById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
measuresLogsService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
measuresLogsService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody MeasuresLogsUpdateCmd measuresLogsUpdateCmd) {
|
||||
measuresLogsService.edit(measuresLogsUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package com.zcloud.eightwork.web;
|
||||
|
||||
|
||||
import com.zcloud.eightwork.api.TaskFlowServiceI;
|
||||
import com.zcloud.eightwork.dto.*;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskFlowCO;
|
||||
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.eightwork.dto.clientobject.TaskFlowInitCO;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskWorkInitCO;
|
||||
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 fangjiakai
|
||||
* @Date 2025-11-05 09:53:50
|
||||
*/
|
||||
@Api(tags = "任务流程")
|
||||
@RequestMapping("/${application.gateway}/taskFlow")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class TaskFlowController {
|
||||
private final TaskFlowServiceI taskFlowService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<TaskFlowCO> add(@Validated @RequestBody TaskFlowAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return taskFlowService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<TaskFlowCO> page(@RequestBody TaskFlowPageQry qry) {
|
||||
return taskFlowService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("作业初始化")
|
||||
@PostMapping("/getWorkInit")
|
||||
public SingleResponse<TaskWorkInitCO> getWorkInit(@RequestBody TaskWorkQryCmd qry) {
|
||||
return SingleResponse.of(taskFlowService.getWorkInit(qry));
|
||||
}
|
||||
@ApiOperation("作业初始化流程")
|
||||
@PostMapping("/getFlowInit")
|
||||
public SingleResponse<TaskFlowInitCO> getFlowInit(@RequestBody TaskFlowQryCmd qry) {
|
||||
return SingleResponse.of(taskFlowService.getFlowInit(qry));
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<TaskFlowCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new TaskFlowCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
taskFlowService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
taskFlowService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody TaskFlowUpdateCmd taskFlowUpdateCmd) {
|
||||
taskFlowService.edit(taskFlowUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,107 @@
|
|||
package com.zcloud.eightwork.web;
|
||||
|
||||
|
||||
import com.zcloud.eightwork.api.TaskLogServiceI;
|
||||
import com.zcloud.eightwork.dto.TaskLogAddCmd;
|
||||
import com.zcloud.eightwork.dto.TaskLogNextCmd;
|
||||
import com.zcloud.eightwork.dto.TaskLogPageQry;
|
||||
import com.zcloud.eightwork.dto.TaskLogUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskLogCO;
|
||||
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.eightwork.dto.clientobject.TodoCountCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.data.annotation.PersistenceCreator;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:53
|
||||
*/
|
||||
@Api(tags = "工作流程记录")
|
||||
@RequestMapping("/${application.gateway}/taskLog")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class TaskLogController {
|
||||
private final TaskLogServiceI taskLogService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<TaskLogCO> add(@Validated @RequestBody TaskLogAddCmd cmd) {
|
||||
cmd.setDepartmentId(AuthContext.getOrgId());
|
||||
return taskLogService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("下一步")
|
||||
@PostMapping("/nextStep")
|
||||
public Response nextStep(@Validated @RequestBody TaskLogNextCmd cmd) {
|
||||
taskLogService.nextStep(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<TaskLogCO> page(@RequestBody TaskLogPageQry qry) {
|
||||
qry.setEqStatus(0);
|
||||
return taskLogService.listPage(qry,AuthContext.getOrgId(),AuthContext.getUserId());
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll/{workId}")
|
||||
public MultiResponse<TaskLogCO> listAll(@PathVariable("workId") String workId) {
|
||||
return MultiResponse.of(taskLogService.listAll(workId));
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<TaskLogCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return taskLogService.getInfoById(id);
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
taskLogService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
taskLogService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody TaskLogUpdateCmd taskLogUpdateCmd) {
|
||||
taskLogService.edit(taskLogUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("获取待办数")
|
||||
@GetMapping("/getTodoCount")
|
||||
public MultiResponse<TodoCountCO> getTodoCount() {
|
||||
return MultiResponse.of(taskLogService.getTodoCount(AuthContext.getOrgId(),AuthContext.getUserId()));
|
||||
}
|
||||
|
||||
@ApiOperation("获取作业内待办数")
|
||||
@GetMapping("/getTodoCountForWork/{workType}")
|
||||
public MultiResponse<TodoCountCO> getTodoCountForWork(@PathVariable("workType") String workType) {
|
||||
return MultiResponse.of(taskLogService.getTodoCountForWork(AuthContext.getOrgId(),AuthContext.getUserId(),workType));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>zcloud-gbs-eightwork</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>web-app</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>web-app</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>web-client</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>web-infrastructure</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.ConfinedSpaceGateway;
|
||||
import com.zcloud.eightwork.domain.model.ConfinedSpaceE;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpaceAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-27 10:26:33
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ConfinedSpaceAddExe {
|
||||
private final ConfinedSpaceGateway confinedSpaceGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(ConfinedSpaceAddCmd cmd) {
|
||||
ConfinedSpaceE confinedSpaceE = new ConfinedSpaceE();
|
||||
BeanUtils.copyProperties(cmd, confinedSpaceE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = confinedSpaceGateway.add(confinedSpaceE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.ConfinedSpaceGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-27 10:26:34
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ConfinedSpaceRemoveExe {
|
||||
private final ConfinedSpaceGateway confinedSpaceGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = confinedSpaceGateway.deletedConfinedSpaceById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = confinedSpaceGateway.deletedConfinedSpaceByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.ConfinedSpaceGateway;
|
||||
import com.zcloud.eightwork.domain.model.ConfinedSpaceE;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpaceUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-27 10:26:35
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ConfinedSpaceUpdateExe {
|
||||
private final ConfinedSpaceGateway confinedSpaceGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(ConfinedSpaceUpdateCmd confinedSpaceUpdateCmd) {
|
||||
ConfinedSpaceE confinedSpaceE = new ConfinedSpaceE();
|
||||
BeanUtils.copyProperties(confinedSpaceUpdateCmd, confinedSpaceE);
|
||||
boolean res = confinedSpaceGateway.update(confinedSpaceE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkInfoGateway;
|
||||
import com.zcloud.eightwork.domain.model.EightworkInfoE;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-12 10:58:52
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkInfoAddExe {
|
||||
private final EightworkInfoGateway eightworkInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(EightworkInfoAddCmd cmd) {
|
||||
EightworkInfoE eightworkInfoE = new EightworkInfoE();
|
||||
BeanUtils.copyProperties(cmd, eightworkInfoE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = eightworkInfoGateway.add(eightworkInfoE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkInfoGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-12 10:58:53
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkInfoRemoveExe {
|
||||
private final EightworkInfoGateway eightworkInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = eightworkInfoGateway.deletedEightworkInfoById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = eightworkInfoGateway.deletedEightworkInfoByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkInfoGateway;
|
||||
import com.zcloud.eightwork.domain.model.EightworkInfoE;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-12 10:58:54
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkInfoUpdateExe {
|
||||
private final EightworkInfoGateway eightworkInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(EightworkInfoUpdateCmd eightworkInfoUpdateCmd) {
|
||||
EightworkInfoE eightworkInfoE = new EightworkInfoE();
|
||||
BeanUtils.copyProperties(eightworkInfoUpdateCmd, eightworkInfoE);
|
||||
boolean res = eightworkInfoGateway.update(eightworkInfoE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkStepGateway;
|
||||
import com.zcloud.eightwork.domain.model.EightworkStepE;
|
||||
import com.zcloud.eightwork.dto.EightworkStepAddCmd;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:09
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkStepAddExe {
|
||||
private final EightworkStepGateway eightworkStepGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(EightworkStepAddCmd cmd) {
|
||||
EightworkStepE eightworkStepE = new EightworkStepE();
|
||||
BeanUtils.copyProperties(cmd, eightworkStepE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = eightworkStepGateway.add(eightworkStepE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkStepGateway;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:26
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkStepRemoveExe {
|
||||
private final EightworkStepGateway eightworkStepGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = eightworkStepGateway.deletedEightworkStepById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = eightworkStepGateway.deletedEightworkStepByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkStepGateway;
|
||||
import com.zcloud.eightwork.domain.model.EightworkStepE;
|
||||
import com.zcloud.eightwork.dto.EightworkStepUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:32
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkStepUpdateExe {
|
||||
private final EightworkStepGateway eightworkStepGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(EightworkStepUpdateCmd eightworkStepUpdateCmd) {
|
||||
EightworkStepE eightworkStepE = new EightworkStepE();
|
||||
BeanUtils.copyProperties(eightworkStepUpdateCmd, eightworkStepE);
|
||||
boolean res = eightworkStepGateway.update(eightworkStepE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkSupplementaryInfoGateway;
|
||||
import com.zcloud.eightwork.domain.model.EightworkSupplementaryInfoE;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-20 10:38:36
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkSupplementaryInfoAddExe {
|
||||
private final EightworkSupplementaryInfoGateway eightworkSupplementaryInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(EightworkSupplementaryInfoAddCmd cmd) {
|
||||
EightworkSupplementaryInfoE eightworkSupplementaryInfoE = new EightworkSupplementaryInfoE();
|
||||
BeanUtils.copyProperties(cmd, eightworkSupplementaryInfoE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = eightworkSupplementaryInfoGateway.add(eightworkSupplementaryInfoE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkSupplementaryInfoGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-20 10:38:37
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkSupplementaryInfoRemoveExe {
|
||||
private final EightworkSupplementaryInfoGateway eightworkSupplementaryInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = eightworkSupplementaryInfoGateway.deletedEightworkSupplementaryInfoById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = eightworkSupplementaryInfoGateway.deletedEightworkSupplementaryInfoByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkSupplementaryInfoGateway;
|
||||
import com.zcloud.eightwork.domain.model.EightworkSupplementaryInfoE;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-20 10:38:37
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkSupplementaryInfoUpdateExe {
|
||||
private final EightworkSupplementaryInfoGateway eightworkSupplementaryInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(EightworkSupplementaryInfoUpdateCmd eightworkSupplementaryInfoUpdateCmd) {
|
||||
EightworkSupplementaryInfoE eightworkSupplementaryInfoE = new EightworkSupplementaryInfoE();
|
||||
BeanUtils.copyProperties(eightworkSupplementaryInfoUpdateCmd, eightworkSupplementaryInfoE);
|
||||
boolean res = eightworkSupplementaryInfoGateway.update(eightworkSupplementaryInfoE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkTaskGateway;
|
||||
import com.zcloud.eightwork.domain.model.EightworkTaskE;
|
||||
import com.zcloud.eightwork.dto.EightworkTaskAddCmd;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:37
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkTaskAddExe {
|
||||
private final EightworkTaskGateway eightworkTaskGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(EightworkTaskAddCmd cmd) {
|
||||
EightworkTaskE eightworkTaskE = new EightworkTaskE();
|
||||
BeanUtils.copyProperties(cmd, eightworkTaskE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = eightworkTaskGateway.add(eightworkTaskE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkTaskGateway;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:38
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkTaskRemoveExe {
|
||||
private final EightworkTaskGateway eightworkTaskGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = eightworkTaskGateway.deletedEightworkTaskById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = eightworkTaskGateway.deletedEightworkTaskByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.EightworkTaskGateway;
|
||||
import com.zcloud.eightwork.domain.model.EightworkTaskE;
|
||||
import com.zcloud.eightwork.dto.EightworkTaskUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:39
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkTaskUpdateExe {
|
||||
private final EightworkTaskGateway eightworkTaskGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(EightworkTaskUpdateCmd eightworkTaskUpdateCmd) {
|
||||
EightworkTaskE eightworkTaskE = new EightworkTaskE();
|
||||
BeanUtils.copyProperties(eightworkTaskUpdateCmd, eightworkTaskE);
|
||||
boolean res = eightworkTaskGateway.update(eightworkTaskE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.MeasuresGateway;
|
||||
import com.zcloud.eightwork.domain.model.MeasuresE;
|
||||
import com.zcloud.eightwork.dto.MeasuresAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:42
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MeasuresAddExe {
|
||||
private final MeasuresGateway measuresGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(MeasuresAddCmd cmd) {
|
||||
MeasuresE measuresE = new MeasuresE();
|
||||
BeanUtils.copyProperties(cmd, measuresE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = measuresGateway.add(measuresE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.MeasuresLogsGateway;
|
||||
import com.zcloud.eightwork.domain.model.MeasuresLogsE;
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:49
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MeasuresLogsAddExe {
|
||||
private final MeasuresLogsGateway measuresLogsGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(MeasuresLogsAddCmd cmd) {
|
||||
MeasuresLogsE measuresLogsE = new MeasuresLogsE();
|
||||
BeanUtils.copyProperties(cmd, measuresLogsE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = measuresLogsGateway.add(measuresLogsE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.MeasuresLogsGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:49
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MeasuresLogsRemoveExe {
|
||||
private final MeasuresLogsGateway measuresLogsGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = measuresLogsGateway.deletedMeasuresLogsById(id);
|
||||
if(!res){
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = measuresLogsGateway.deletedMeasuresLogsByIds(ids);
|
||||
if(!res){
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.MeasuresLogsGateway;
|
||||
import com.zcloud.eightwork.domain.model.MeasuresLogsE;
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:49
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MeasuresLogsUpdateExe {
|
||||
private final MeasuresLogsGateway measuresLogsGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(MeasuresLogsUpdateCmd measuresLogsUpdateCmd) {
|
||||
MeasuresLogsE measuresLogsE = new MeasuresLogsE();
|
||||
BeanUtils.copyProperties(measuresLogsUpdateCmd, measuresLogsE);
|
||||
boolean res = measuresLogsGateway.update(measuresLogsE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.MeasuresGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:48
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MeasuresRemoveExe {
|
||||
private final MeasuresGateway measuresGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = measuresGateway.deletedMeasuresById(id);
|
||||
if(!res){
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = measuresGateway.deletedMeasuresByIds(ids);
|
||||
if(!res){
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.MeasuresGateway;
|
||||
import com.zcloud.eightwork.domain.model.MeasuresE;
|
||||
import com.zcloud.eightwork.dto.MeasuresUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:49
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MeasuresUpdateExe {
|
||||
private final MeasuresGateway measuresGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(MeasuresUpdateCmd measuresUpdateCmd) {
|
||||
MeasuresE measuresE = new MeasuresE();
|
||||
BeanUtils.copyProperties(measuresUpdateCmd, measuresE);
|
||||
boolean res = measuresGateway.update(measuresE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.zcloud.eightwork.domain.gateway.TaskFlowGateway;
|
||||
import com.zcloud.eightwork.domain.model.TaskFlowE;
|
||||
import com.zcloud.eightwork.dto.TaskFlowAddCmd;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:50
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class TaskFlowAddExe {
|
||||
private final TaskFlowGateway taskFlowGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(TaskFlowAddCmd cmd) {
|
||||
TaskFlowE taskFlowE = new TaskFlowE();
|
||||
BeanUtils.copyProperties(cmd, taskFlowE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = taskFlowGateway.add(taskFlowE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.zcloud.eightwork.domain.gateway.TaskFlowGateway;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:51
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class TaskFlowRemoveExe {
|
||||
private final TaskFlowGateway taskFlowGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = taskFlowGateway.deletedTaskFlowById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = taskFlowGateway.deletedTaskFlowByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.eightwork.domain.gateway.TaskFlowGateway;
|
||||
import com.zcloud.eightwork.domain.model.TaskFlowE;
|
||||
import com.zcloud.eightwork.dto.TaskFlowUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:51
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class TaskFlowUpdateExe {
|
||||
private final TaskFlowGateway taskFlowGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(TaskFlowUpdateCmd taskFlowUpdateCmd) {
|
||||
TaskFlowE taskFlowE = new TaskFlowE();
|
||||
BeanUtils.copyProperties(taskFlowUpdateCmd, taskFlowE);
|
||||
boolean res = taskFlowGateway.update(taskFlowE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.eightwork.domain.gateway.TaskFlowGateway;
|
||||
import com.zcloud.eightwork.domain.gateway.TaskLogGateway;
|
||||
import com.zcloud.eightwork.domain.model.TaskFlowE;
|
||||
import com.zcloud.eightwork.domain.model.enums.WorkCodeEnum;
|
||||
import com.zcloud.eightwork.dto.TaskLogAddCmd;
|
||||
import com.zcloud.eightwork.dto.TaskSignStepInfoCmd;
|
||||
import com.zcloud.eightwork.persistence.dataobject.EightworkInfoDO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.TaskLogDO;
|
||||
import com.zcloud.eightwork.persistence.repository.EightworkInfoRepository;
|
||||
import com.zcloud.eightwork.persistence.repository.TaskLogRepository;
|
||||
import com.zcloud.gbscommon.utils.DateUtil;
|
||||
import com.zcloud.gbscommon.utils.Tools;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:53
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class TaskLogAddExe {
|
||||
private final TaskLogGateway taskLogGateway;
|
||||
private final TaskLogRepository taskLogRepository;
|
||||
private final TaskFlowGateway taskFlowGateway;
|
||||
private final EightworkInfoRepository eightworkInfoRepository;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public synchronized List<TaskLogDO> execute(TaskLogAddCmd cmd) {
|
||||
try {
|
||||
String workId = saveWork(cmd);
|
||||
List<TaskFlowE> flows = taskFlowGateway.listAllByWorkType(cmd.getWorkType(), cmd.getWorkLevel());
|
||||
List<TaskLogDO> taskLogs = flows.stream().map(flow -> {
|
||||
TaskLogDO taskLogDO = new TaskLogDO(Tools.get32UUID());
|
||||
BeanUtils.copyProperties(flow, taskLogDO, "id");
|
||||
taskLogDO.setWorkId(workId);
|
||||
taskLogDO.setStatus(-99);
|
||||
if (flow.getStepId() == 1) {
|
||||
taskLogDO.setSign(flow.getActorField(),
|
||||
AuthContext.getOrgId(),
|
||||
AuthContext.getCurrentUser().getOrgName(),
|
||||
AuthContext.getUserId(),
|
||||
AuthContext.getName());
|
||||
}
|
||||
TaskSignStepInfoCmd taskSignStepInfoCmd = cmd.getSignLogs().stream().filter(info -> info.getStepId().equals(flow.getStepId())).findFirst().orElse(null);
|
||||
if (taskSignStepInfoCmd != null) {
|
||||
if (flow.getCanSkip() == 1 && taskSignStepInfoCmd.getActUser() == null) {
|
||||
taskLogDO.setStatus(-1); // 设置跳过
|
||||
} else {
|
||||
taskLogDO.setSign(taskSignStepInfoCmd.getActorField(),
|
||||
taskSignStepInfoCmd.getActUserDepartment(),
|
||||
taskSignStepInfoCmd.getActUserDepartmentName(),
|
||||
taskSignStepInfoCmd.getActUser(),
|
||||
taskSignStepInfoCmd.getActUserName());
|
||||
taskLogDO.setWorkType(cmd.getWorkType());
|
||||
}
|
||||
}
|
||||
return taskLogDO;
|
||||
}).collect(Collectors.toList());
|
||||
taskLogRepository.saveBatch(taskLogs);
|
||||
return taskLogs;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
}
|
||||
|
||||
private String saveWork(TaskLogAddCmd cmd) {
|
||||
Long workCountBytype = eightworkInfoRepository.countByWorkType(cmd.getWorkType());
|
||||
String nosb = "QG" +
|
||||
WorkCodeEnum.getCodeByWorkType(cmd.getWorkType()) +
|
||||
DateUtil.getDays() +
|
||||
workCountBytype;
|
||||
EightworkInfoDO eightworkInfo = new EightworkInfoDO(Tools.get32UUID()
|
||||
, cmd.getWorkType()
|
||||
, cmd.getWorkLevel()
|
||||
, cmd.getCorpinfoId()
|
||||
, cmd.getXgfFlag()
|
||||
, cmd.getProjectId()
|
||||
, cmd.getXgfId()
|
||||
, nosb
|
||||
, 1
|
||||
, cmd.getInfo()
|
||||
, cmd.getDepartmentId());
|
||||
eightworkInfoRepository.save(eightworkInfo);
|
||||
return eightworkInfo.getWorkId();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import com.zcloud.eightwork.domain.gateway.TaskLogGateway;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:53
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class TaskLogRemoveExe {
|
||||
private final TaskLogGateway taskLogGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = taskLogGateway.deletedTaskLogById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = taskLogGateway.deletedTaskLogByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,209 @@
|
|||
package com.zcloud.eightwork.command;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.zcloud.eightwork.domain.gateway.TaskLogGateway;
|
||||
import com.zcloud.eightwork.domain.model.MeasuresLogsE;
|
||||
import com.zcloud.eightwork.domain.model.TaskLogE;
|
||||
import com.zcloud.eightwork.dto.TaskLogNextCmd;
|
||||
import com.zcloud.eightwork.dto.TaskLogUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.TaskSignStepInfoCmd;
|
||||
import com.zcloud.eightwork.persistence.dataobject.MeasuresLogsDO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.TaskLogDO;
|
||||
import com.zcloud.eightwork.persistence.repository.EightworkInfoRepository;
|
||||
import com.zcloud.eightwork.persistence.repository.MeasuresLogsRepository;
|
||||
import com.zcloud.eightwork.persistence.repository.TaskLogRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:54
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class TaskLogUpdateExe {
|
||||
private final TaskLogGateway taskLogGateway;
|
||||
private final TaskLogRepository taskLogRepository;
|
||||
private final MeasuresLogsRepository measuresLogsRepository;
|
||||
private final EightworkInfoRepository eightworkInfoRepository;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(TaskLogUpdateCmd taskLogUpdateCmd) {
|
||||
TaskLogE taskLogE = new TaskLogE();
|
||||
BeanUtils.copyProperties(taskLogUpdateCmd, taskLogE);
|
||||
boolean res = taskLogGateway.update(taskLogE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void nextStep(TaskLogNextCmd cmd) {
|
||||
List<TaskLogE> logs = taskLogGateway.listAllByWorkId(cmd.getWorkId());
|
||||
// 待操作logs
|
||||
List<TaskLogDO> actionLogs = new ArrayList<>();
|
||||
logs.forEach(log -> {
|
||||
// 修改当前步骤状态
|
||||
if (log.getId().equals(cmd.getId())) {
|
||||
log.setStatus(cmd.getStatus());
|
||||
if (log.getSignStepFlag() == 1) {
|
||||
log.setSignPath(cmd.getSignPath());
|
||||
}
|
||||
TaskLogDO logDO = new TaskLogDO();
|
||||
BeanUtils.copyProperties(log, logDO);
|
||||
actionLogs.add(logDO);
|
||||
// 同意时
|
||||
if (cmd.getStatus() == 1) {
|
||||
// 多人签字步骤时
|
||||
boolean canNext = true;
|
||||
if (log.getMultipleFlag() == 1) {
|
||||
// 获取多人签字步骤未签字的其他人人数
|
||||
long multipleSigns = logs.stream().filter(info -> info.getStepId().equals(log.getStepId()) && log.getStatus() != 1 && !log.getId().equals(cmd.getId())).collect(Collectors.toList()).size();
|
||||
canNext = multipleSigns == 0;
|
||||
}
|
||||
// 特殊步骤
|
||||
if (StringUtils.isNotBlank(log.getSpecialStepCode())) {
|
||||
canNext = handleSpecialStep(log, cmd, actionLogs);
|
||||
}
|
||||
// 其他安全措施步骤
|
||||
if (log.getMeasuresStepFlag() != null && 1 == log.getMeasuresStepFlag()) {
|
||||
MeasuresLogsDO measuresLogsDO = new MeasuresLogsDO(
|
||||
cmd.getOthers().getString("otherMeasures"),
|
||||
log.getWorkId(),
|
||||
log.getWorkType()
|
||||
);
|
||||
measuresLogsRepository.save(measuresLogsDO);
|
||||
}
|
||||
if (canNext) {
|
||||
// 递归 直到找到不跳过的下一步
|
||||
handleNextStep(log, actionLogs, logs);
|
||||
}
|
||||
|
||||
// 如果当前步骤为分支开始步骤
|
||||
if (log.getStepType() == 1 && log.getBranchFlag() == 1) {
|
||||
TaskLogE branchStep = logs.stream().filter(info -> info.getStepId().equals(log.getBranchStep())).findFirst().orElse(null);
|
||||
if (branchStep != null) {
|
||||
branchStep.setStatus(0);
|
||||
TaskLogDO branchLogDO = new TaskLogDO();
|
||||
BeanUtils.copyProperties(branchStep, branchLogDO);
|
||||
actionLogs.add(branchLogDO);
|
||||
}
|
||||
}
|
||||
// 判断是否有当前步骤设置的签字人
|
||||
if (cmd.getSignLogs() != null && cmd.getSignLogs().size() > 0) {
|
||||
cmd.getSignLogs().stream().forEach(info -> {
|
||||
TaskLogE signStepLog = logs.stream().filter(tempLog -> tempLog.getStepId().equals(info.getStepId())).findFirst().orElse(null);
|
||||
if (signStepLog != null) {
|
||||
if (log.getCanSkip() == 1 && signStepLog.getActUser() == null) {
|
||||
log.setStatus(-1); // 设置跳过
|
||||
TaskLogDO skipLogDO = new TaskLogDO();
|
||||
BeanUtils.copyProperties(log, skipLogDO);
|
||||
actionLogs.add(skipLogDO);
|
||||
} else {
|
||||
signStepLog.setSign(info.getActorField(),
|
||||
info.getActUserDepartment(),
|
||||
info.getActUserDepartmentName(),
|
||||
info.getActUser(),
|
||||
info.getActUserName());
|
||||
TaskLogDO signLogDO = new TaskLogDO();
|
||||
BeanUtils.copyProperties(signStepLog, signLogDO);
|
||||
actionLogs.add(signLogDO);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
taskLogRepository.updateBatchById(actionLogs);
|
||||
}
|
||||
|
||||
/**
|
||||
* 下一步 递归
|
||||
*
|
||||
* @param log 当前步骤
|
||||
* @param actionLogs 待修改记录
|
||||
* @param logs 所有步骤
|
||||
* @return
|
||||
*/
|
||||
private void handleNextStep(TaskLogE log, List<TaskLogDO> actionLogs, List<TaskLogE> logs) {
|
||||
List<TaskLogE> nextStep = logs.stream().filter(info -> info.getStepId().equals(log.getNextStep())).collect(Collectors.toList());
|
||||
if (!CollectionUtil.isEmpty(nextStep)) {
|
||||
// 下一步跳过时, 多人签字不存在跳过情况
|
||||
TaskLogE nextStepTemp = nextStep.get(0);
|
||||
if (nextStepTemp.getStatus() == -1) { // 步骤可跳过 并且未设置签字人 则判断为跳过步骤
|
||||
handleNextStep(nextStepTemp, actionLogs, logs);
|
||||
} else { // 非跳过时
|
||||
// 可能涉及多人签字
|
||||
nextStep.forEach(next -> {
|
||||
next.setStatus(0);
|
||||
TaskLogDO nextLogDO = new TaskLogDO();
|
||||
BeanUtils.copyProperties(next, nextLogDO);
|
||||
actionLogs.add(nextLogDO);
|
||||
});
|
||||
eightworkInfoRepository.updateWorkStatus(log.getWorkId(),nextStep.get(0).getStepName() , null);
|
||||
}
|
||||
}else{
|
||||
// 没有下一步 则设置作业状态为999 验收
|
||||
eightworkInfoRepository.updateWorkStatus(log.getWorkId(), "已归档", 999);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 特殊步骤
|
||||
*
|
||||
* @param log 当前步骤
|
||||
* @param cmd 特殊步骤参数
|
||||
* @param actionLogs 待修改记录
|
||||
* @return
|
||||
*/
|
||||
private boolean handleSpecialStep(TaskLogE log, TaskLogNextCmd cmd, List<TaskLogDO> actionLogs) {
|
||||
if ("delay".equals(cmd.getSpecialStepCode())) { // 延时监火转交时, 完成时SpecialStepCode为null走正常下一步
|
||||
// 保存下一步转交人记录
|
||||
TaskLogE newDelayStep = new TaskLogE(log);
|
||||
TaskLogDO nextLogDO = new TaskLogDO();
|
||||
BeanUtils.copyProperties(newDelayStep, nextLogDO);
|
||||
nextLogDO.setActUserDepartment(cmd.getOthers().getLong("actUserDepartment"));
|
||||
nextLogDO.setActUserDepartmentName(cmd.getOthers().getString("actUserDepartmentName"));
|
||||
taskLogRepository.save(nextLogDO);
|
||||
|
||||
// 修改当前步骤状态为已完成
|
||||
log.setStatus(1);
|
||||
TaskLogDO currentLog = new TaskLogDO();
|
||||
BeanUtils.copyProperties(log, currentLog);
|
||||
actionLogs.add(currentLog);
|
||||
return false;
|
||||
}else if("measures".equals(cmd.getSpecialStepCode())){
|
||||
List<MeasuresLogsE> list = new ArrayList<>();
|
||||
JSONArray array = cmd.getOthers().getJSONArray("measures");
|
||||
if (array != null) {
|
||||
for (int i = 0; i < array.size(); i++) {
|
||||
MeasuresLogsE cmdItem = JSONUtil.toBean(array.getJSONObject(i).toJSONString(), MeasuresLogsE.class);
|
||||
list.add(cmdItem);
|
||||
}
|
||||
}
|
||||
measuresLogsRepository.saveBatch(list.stream().map(item -> {
|
||||
MeasuresLogsDO d = new MeasuresLogsDO();
|
||||
BeanUtils.copyProperties(item, d, "id");
|
||||
d.setType(1);
|
||||
return d;
|
||||
}).collect(Collectors.toList()));
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.zcloud.eightwork.command.convertor;
|
||||
|
||||
import com.zcloud.eightwork.dto.clientobject.ConfinedSpaceCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.ConfinedSpaceDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-27 10:26:33
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface ConfinedSpaceCoConvertor {
|
||||
/**
|
||||
* @param confinedSpaceDOs
|
||||
* @return
|
||||
*/
|
||||
List<ConfinedSpaceCO> converDOsToCOs(List<ConfinedSpaceDO> confinedSpaceDOs);
|
||||
|
||||
ConfinedSpaceCO converDOToCO(ConfinedSpaceDO confinedSpaceDO);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package com.zcloud.eightwork.command.convertor;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkInfoCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.EightworkInfoDO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
import org.mapstruct.Named;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-12 10:58:53
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface EightworkInfoCoConvertor {
|
||||
/**
|
||||
* @param eightworkInfoDOs
|
||||
* @return
|
||||
*/
|
||||
@Mapping(source = "info", target = "info", qualifiedByName = "stringToJsonObject")
|
||||
List<EightworkInfoCO> converDOsToCOs(List<EightworkInfoDO> eightworkInfoDOs);
|
||||
|
||||
@Mapping(source = "info", target = "info", qualifiedByName = "stringToJsonObject")
|
||||
EightworkInfoCO converDOToCO(EightworkInfoDO eightworkInfoDO);
|
||||
|
||||
@Named("stringToJsonObject")
|
||||
default JSONObject stringToJsonObject(String value) {
|
||||
if (value == null || value.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return JSON.parseObject(value);
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* JSONObject 到 String 的转换方法
|
||||
* @param value
|
||||
* @return
|
||||
*/
|
||||
@Named("jsonObjectToString")
|
||||
default String jsonObjectToString(JSONObject value) {
|
||||
if (value == null) {
|
||||
return null;
|
||||
}
|
||||
return value.toJSONString();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.eightwork.command.convertor;
|
||||
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkStepCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.EightworkStepDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:14
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface EightworkStepCoConvertor {
|
||||
/**
|
||||
* @param eightworkStepDOs
|
||||
* @return
|
||||
*/
|
||||
List<EightworkStepCO> converDOsToCOs(List<EightworkStepDO> eightworkStepDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
package com.zcloud.eightwork.command.convertor;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkSupplementaryInfoCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.EightworkSupplementaryInfoDO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
import org.mapstruct.Named;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-20 10:38:36
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface EightworkSupplementaryInfoCoConvertor {
|
||||
/**
|
||||
* @param eightworkSupplementaryInfoDOs
|
||||
* @return
|
||||
*/
|
||||
@Mapping(source = "details", target = "details", qualifiedByName = "stringToJsonObject")
|
||||
List<EightworkSupplementaryInfoCO> converDOsToCOs(List<EightworkSupplementaryInfoDO> eightworkSupplementaryInfoDOs);
|
||||
@Mapping(source = "details", target = "details", qualifiedByName = "stringToJsonObject")
|
||||
EightworkSupplementaryInfoCO converDOToCO(EightworkSupplementaryInfoDO eightworkSupplementaryInfoDO);
|
||||
|
||||
@Named("stringToJsonObject")
|
||||
default JSONObject stringToJsonObject(String value) {
|
||||
if (value == null || value.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return JSON.parseObject(value);
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* JSONObject 到 String 的转换方法
|
||||
* @param value
|
||||
* @return
|
||||
*/
|
||||
@Named("jsonObjectToString")
|
||||
default String jsonObjectToString(JSONObject value) {
|
||||
if (value == null) {
|
||||
return null;
|
||||
}
|
||||
return value.toJSONString();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.eightwork.command.convertor;
|
||||
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkTaskCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.EightworkTaskDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:37
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface EightworkTaskCoConvertor {
|
||||
/**
|
||||
* @param eightworkTaskDOs
|
||||
* @return
|
||||
*/
|
||||
List<EightworkTaskCO> converDOsToCOs(List<EightworkTaskDO> eightworkTaskDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.zcloud.eightwork.command.convertor;
|
||||
|
||||
import com.zcloud.eightwork.dto.clientobject.MeasuresCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.MeasuresDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:44
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface MeasuresCoConvertor {
|
||||
/**
|
||||
* @param measuresDOs
|
||||
* @return
|
||||
*/
|
||||
List<MeasuresCO> converDOsToCOs(List<MeasuresDO> measuresDOs);
|
||||
|
||||
MeasuresCO converDOToCO(MeasuresDO measuresDO);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.zcloud.eightwork.command.convertor;
|
||||
|
||||
import com.zcloud.eightwork.dto.clientobject.MeasuresLogsCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.MeasuresLogsDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:49
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface MeasuresLogsCoConvertor {
|
||||
/**
|
||||
* @param measuresLogsDOs
|
||||
* @return
|
||||
*/
|
||||
List<MeasuresLogsCO> converDOsToCOs(List<MeasuresLogsDO> measuresLogsDOs);
|
||||
|
||||
MeasuresLogsCO converDOToCO(MeasuresLogsDO measuresLogsDO);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.eightwork.command.convertor;
|
||||
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskFlowCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.TaskFlowDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:50
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface TaskFlowCoConvertor {
|
||||
/**
|
||||
* @param taskFlowDOs
|
||||
* @return
|
||||
*/
|
||||
List<TaskFlowCO> converDOsToCOs(List<TaskFlowDO> taskFlowDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package com.zcloud.eightwork.command.convertor;
|
||||
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskLogCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.TaskLogDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:53
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface TaskLogCoConvertor {
|
||||
/**
|
||||
* @param taskLogDOs
|
||||
* @return
|
||||
*/
|
||||
List<TaskLogCO> converDOsToCOs(List<TaskLogDO> taskLogDOs);
|
||||
TaskLogCO converDOToCO(TaskLogDO taskLogDO);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.zcloud.eightwork.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.zcloud.eightwork.command.convertor.ConfinedSpaceCoConvertor;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpacePageQry;
|
||||
import com.zcloud.eightwork.dto.clientobject.ConfinedSpaceCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.ConfinedSpaceDO;
|
||||
import com.zcloud.eightwork.persistence.repository.ConfinedSpaceRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-27 10:26:34
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ConfinedSpaceQueryExe {
|
||||
private final ConfinedSpaceRepository confinedSpaceRepository;
|
||||
private final ConfinedSpaceCoConvertor confinedSpaceCoConvertor;
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public ConfinedSpaceCO queryById(Long id) {
|
||||
return confinedSpaceCoConvertor.converDOToCO(confinedSpaceRepository.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param confinedSpacePageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<ConfinedSpaceCO> execute(ConfinedSpacePageQry confinedSpacePageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(confinedSpacePageQry);
|
||||
PageResponse<ConfinedSpaceDO> pageResponse = confinedSpaceRepository.listPage(params);
|
||||
List<ConfinedSpaceCO> examCenterCOS = confinedSpaceCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
public List<ConfinedSpaceCO> listAll(ConfinedSpacePageQry qry) {
|
||||
return confinedSpaceCoConvertor.converDOsToCOs(confinedSpaceRepository.list(
|
||||
new LambdaQueryWrapper<ConfinedSpaceDO>()
|
||||
.eq(ConfinedSpaceDO::getCorpinfoId, qry.getEqCorpinfoId())
|
||||
.orderByAsc(ConfinedSpaceDO::getCreateTime)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
package com.zcloud.eightwork.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.eightwork.command.convertor.EightworkInfoCoConvertor;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoPageQry;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkInfoCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.EightworkInfoDO;
|
||||
import com.zcloud.eightwork.persistence.repository.EightworkInfoRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-12 10:58:53
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkInfoQueryExe {
|
||||
private final EightworkInfoRepository eightworkInfoRepository;
|
||||
private final EightworkInfoCoConvertor eightworkInfoCoConvertor;
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EightworkInfoCO queryById(Long id) {
|
||||
return eightworkInfoCoConvertor.converDOToCO(eightworkInfoRepository.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param eightworkInfoPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<EightworkInfoCO> execute(EightworkInfoPageQry eightworkInfoPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(eightworkInfoPageQry);
|
||||
PageResponse<EightworkInfoDO> pageResponse = eightworkInfoRepository.listPage(params);
|
||||
List<EightworkInfoCO> examCenterCOS = eightworkInfoCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.eightwork.command.query;
|
||||
|
||||
import com.zcloud.eightwork.command.convertor.EightworkStepCoConvertor;
|
||||
import com.zcloud.eightwork.dto.EightworkStepPageQry;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkStepCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.EightworkStepDO;
|
||||
import com.zcloud.eightwork.persistence.repository.EightworkStepRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:23
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkStepQueryExe {
|
||||
private final EightworkStepRepository eightworkStepRepository;
|
||||
private final EightworkStepCoConvertor eightworkStepCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param eightworkStepPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<EightworkStepCO> execute(EightworkStepPageQry eightworkStepPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(eightworkStepPageQry);
|
||||
PageResponse<EightworkStepDO> pageResponse = eightworkStepRepository.listPage(params);
|
||||
List<EightworkStepCO> examCenterCOS = eightworkStepCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
package com.zcloud.eightwork.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.eightwork.command.convertor.EightworkSupplementaryInfoCoConvertor;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoPageQry;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkSupplementaryInfoCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.EightworkSupplementaryInfoDO;
|
||||
import com.zcloud.eightwork.persistence.repository.EightworkSupplementaryInfoRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-20 10:38:37
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkSupplementaryInfoQueryExe {
|
||||
private final EightworkSupplementaryInfoRepository eightworkSupplementaryInfoRepository;
|
||||
private final EightworkSupplementaryInfoCoConvertor eightworkSupplementaryInfoCoConvertor;
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EightworkSupplementaryInfoCO queryById(Long id) {
|
||||
return eightworkSupplementaryInfoCoConvertor.converDOToCO(eightworkSupplementaryInfoRepository.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param eightworkSupplementaryInfoPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<EightworkSupplementaryInfoCO> execute(EightworkSupplementaryInfoPageQry eightworkSupplementaryInfoPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(eightworkSupplementaryInfoPageQry);
|
||||
PageResponse<EightworkSupplementaryInfoDO> pageResponse = eightworkSupplementaryInfoRepository.listPage(params);
|
||||
List<EightworkSupplementaryInfoCO> examCenterCOS = eightworkSupplementaryInfoCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
public List<EightworkSupplementaryInfoCO> listAll(String workId) {
|
||||
return eightworkSupplementaryInfoCoConvertor.converDOsToCOs(eightworkSupplementaryInfoRepository.listAll(workId));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.eightwork.command.query;
|
||||
|
||||
import com.zcloud.eightwork.command.convertor.EightworkTaskCoConvertor;
|
||||
import com.zcloud.eightwork.dto.EightworkTaskPageQry;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkTaskCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.EightworkTaskDO;
|
||||
import com.zcloud.eightwork.persistence.repository.EightworkTaskRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:38
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class EightworkTaskQueryExe {
|
||||
private final EightworkTaskRepository eightworkTaskRepository;
|
||||
private final EightworkTaskCoConvertor eightworkTaskCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param eightworkTaskPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<EightworkTaskCO> execute(EightworkTaskPageQry eightworkTaskPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(eightworkTaskPageQry);
|
||||
PageResponse<EightworkTaskDO> pageResponse = eightworkTaskRepository.listPage(params);
|
||||
List<EightworkTaskCO> examCenterCOS = eightworkTaskCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package com.zcloud.eightwork.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.eightwork.command.convertor.MeasuresLogsCoConvertor;
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsPageQry;
|
||||
import com.zcloud.eightwork.dto.clientobject.MeasuresLogsCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.MeasuresLogsDO;
|
||||
import com.zcloud.eightwork.persistence.repository.MeasuresLogsRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:49
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MeasuresLogsQueryExe {
|
||||
private final MeasuresLogsRepository measuresLogsRepository;
|
||||
private final MeasuresLogsCoConvertor measuresLogsCoConvertor;
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public MeasuresLogsCO queryById(Long id) {
|
||||
return measuresLogsCoConvertor.converDOToCO(measuresLogsRepository.getById(id));
|
||||
}
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param measuresLogsPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<MeasuresLogsCO> execute(MeasuresLogsPageQry measuresLogsPageQry) {
|
||||
Map<String,Object> params = PageQueryHelper.toHashMap(measuresLogsPageQry);
|
||||
PageResponse<MeasuresLogsDO> pageResponse = measuresLogsRepository.listPage(params);
|
||||
List<MeasuresLogsCO> examCenterCOS = measuresLogsCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
public List<MeasuresLogsCO> listAll(String workId) {
|
||||
return measuresLogsCoConvertor.converDOsToCOs(measuresLogsRepository.listAll(workId));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.eightwork.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.zcloud.eightwork.command.convertor.MeasuresCoConvertor;
|
||||
import com.zcloud.eightwork.dto.MeasuresPageQry;
|
||||
import com.zcloud.eightwork.dto.clientobject.MeasuresCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.MeasuresDO;
|
||||
import com.zcloud.eightwork.persistence.repository.MeasuresRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:47
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class MeasuresQueryExe {
|
||||
private final MeasuresRepository measuresRepository;
|
||||
private final MeasuresCoConvertor measuresCoConvertor;
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public MeasuresCO queryById(Long id) {
|
||||
return measuresCoConvertor.converDOToCO(measuresRepository.getById(id));
|
||||
}
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param measuresPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<MeasuresCO> execute(MeasuresPageQry measuresPageQry) {
|
||||
Map<String,Object> params = PageQueryHelper.toHashMap(measuresPageQry);
|
||||
PageResponse<MeasuresDO> pageResponse = measuresRepository.listPage(params);
|
||||
List<MeasuresCO> examCenterCOS = measuresCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
public List<MeasuresCO> listAll(MeasuresPageQry qry) {
|
||||
return measuresCoConvertor.converDOsToCOs(measuresRepository.list(
|
||||
new LambdaQueryWrapper<MeasuresDO>()
|
||||
.eq(MeasuresDO::getWorkType, qry.getEqWorkType())
|
||||
.orderByAsc(MeasuresDO::getOrderBy)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
package com.zcloud.eightwork.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.eightwork.command.convertor.EightworkTaskCoConvertor;
|
||||
import com.zcloud.eightwork.command.convertor.TaskFlowCoConvertor;
|
||||
import com.zcloud.eightwork.dto.TaskFlowPageQry;
|
||||
import com.zcloud.eightwork.dto.TaskFlowQryCmd;
|
||||
import com.zcloud.eightwork.dto.TaskWorkQryCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskFlowCO;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskFlowInitCO;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskWorkInitCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.EightworkTaskDO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.TaskFlowDO;
|
||||
import com.zcloud.eightwork.persistence.repository.EightworkTaskRepository;
|
||||
import com.zcloud.eightwork.persistence.repository.TaskFlowRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:51
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class TaskFlowQueryExe {
|
||||
private final TaskFlowRepository taskFlowRepository;
|
||||
private final TaskFlowCoConvertor taskFlowCoConvertor;
|
||||
private final EightworkTaskRepository eightworkTaskRepository;
|
||||
private final EightworkTaskCoConvertor eightworkTaskCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param taskFlowPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<TaskFlowCO> execute(TaskFlowPageQry taskFlowPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(taskFlowPageQry);
|
||||
PageResponse<TaskFlowDO> pageResponse = taskFlowRepository.listPage(params);
|
||||
List<TaskFlowCO> examCenterCOS = taskFlowCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
public TaskWorkInitCO getWorkInit(TaskWorkQryCmd qry) {
|
||||
TaskWorkInitCO taskWorkInitCO = new TaskWorkInitCO();
|
||||
taskWorkInitCO.setApplyUser(AuthContext.getCurrentUser().getName());
|
||||
taskWorkInitCO.setApplyUnit(AuthContext.getCurrentUser().getTenantName());
|
||||
taskWorkInitCO.setTaskWorkLevels(eightworkTaskCoConvertor.converDOsToCOs(
|
||||
eightworkTaskRepository.list(new LambdaQueryWrapper<EightworkTaskDO>()
|
||||
.eq(EightworkTaskDO::getWorkType, qry.getWorkType())
|
||||
.orderByAsc(EightworkTaskDO::getWorkLevel))
|
||||
));
|
||||
return taskWorkInitCO;
|
||||
}
|
||||
public TaskFlowInitCO getFlowInit(TaskFlowQryCmd qry) {
|
||||
List<TaskFlowDO> flows = taskFlowRepository.listAllByWorkType(qry.getWorkType(), qry.getWorkLevel());
|
||||
TaskFlowInitCO taskFlowInitCO = new TaskFlowInitCO();
|
||||
taskFlowInitCO.setSettingSignSteps(taskFlowCoConvertor.converDOsToCOs(
|
||||
flows.stream()
|
||||
.filter(flow -> flow.getSelectSignStep() != null && 1 == flow.getSelectSignStep())
|
||||
.collect(Collectors.toList())
|
||||
));
|
||||
|
||||
return taskFlowInitCO;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
package com.zcloud.eightwork.command.query;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.zcloud.eightwork.command.convertor.EightworkInfoCoConvertor;
|
||||
import com.zcloud.eightwork.command.convertor.TaskLogCoConvertor;
|
||||
import com.zcloud.eightwork.domain.model.TodoCountE;
|
||||
import com.zcloud.eightwork.dto.TaskLogPageQry;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkInfoCO;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskLogCO;
|
||||
import com.zcloud.eightwork.dto.clientobject.TodoCountCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.EightworkInfoDO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.TaskLogDO;
|
||||
import com.zcloud.eightwork.persistence.repository.EightworkInfoRepository;
|
||||
import com.zcloud.eightwork.persistence.repository.TaskLogRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:53
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class TaskLogQueryExe {
|
||||
private final TaskLogRepository taskLogRepository;
|
||||
private final TaskLogCoConvertor taskLogCoConvertor;
|
||||
private final EightworkInfoRepository eightworkInfoRepository;
|
||||
private final EightworkInfoCoConvertor eightworkInfoCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param taskLogPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<TaskLogCO> execute(TaskLogPageQry taskLogPageQry, Long departmentId, Long userId) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(taskLogPageQry);
|
||||
params.put("departmentId", departmentId);
|
||||
params.put("userId", userId);
|
||||
PageResponse<TaskLogDO> pageResponse = taskLogRepository.listPage(params);
|
||||
List<TaskLogCO> examCenterCOS = taskLogCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
|
||||
if(!CollectionUtils.isEmpty(examCenterCOS)){
|
||||
List<String> workIds = examCenterCOS.stream().map(TaskLogCO::getWorkId).collect(Collectors.toList());
|
||||
List<EightworkInfoCO> workInfos = eightworkInfoCoConvertor.converDOsToCOs(eightworkInfoRepository.listAllByWorkIds(workIds));
|
||||
examCenterCOS.forEach(item -> {
|
||||
item.setWorkInfo(workInfos.stream().filter(workInfo -> workInfo.getWorkId().equals(item.getWorkId())).findFirst().orElse(null));
|
||||
});
|
||||
}
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
public TaskLogCO getInfoById(Long id) {
|
||||
TaskLogDO taskLogDO = taskLogRepository.getById(id);
|
||||
TaskLogCO taskLogCO = taskLogCoConvertor.converDOToCO(taskLogDO);
|
||||
List<TaskLogDO> settingSignSteps = taskLogRepository.list(new LambdaQueryWrapper<TaskLogDO>()
|
||||
.eq(TaskLogDO::getWorkId, taskLogDO.getWorkId())
|
||||
.eq(TaskLogDO::getSelectSignStep,taskLogDO.getStepId())
|
||||
.orderByAsc(TaskLogDO::getStepOrder));
|
||||
if(!CollectionUtils.isEmpty(settingSignSteps)){
|
||||
taskLogCO.setSettingSignSteps(taskLogCoConvertor.converDOsToCOs(settingSignSteps));
|
||||
}
|
||||
taskLogCO.setWorkInfo(eightworkInfoCoConvertor.converDOToCO(eightworkInfoRepository.getOne(
|
||||
new LambdaQueryWrapper<EightworkInfoDO>().eq(EightworkInfoDO::getWorkId, taskLogDO.getWorkId())
|
||||
)));
|
||||
return taskLogCO;
|
||||
}
|
||||
|
||||
public List<TaskLogCO> listAll(String workId) {
|
||||
return taskLogCoConvertor.converDOsToCOs(taskLogRepository.listAllByWorkId(workId));
|
||||
}
|
||||
|
||||
public List<TodoCountCO> getTodoCount(Long orgId, Long userId) {
|
||||
List<TodoCountE> todoCountE = taskLogRepository.getTodoCount(orgId, userId);
|
||||
return todoCountE.stream().map(item -> {
|
||||
TodoCountCO todoCountCO = new TodoCountCO();
|
||||
BeanUtils.copyProperties(item, todoCountCO);
|
||||
return todoCountCO;
|
||||
}).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public List<TodoCountCO> getTodoCountForWork(Long orgId, Long userId, String workType) {
|
||||
List<TodoCountE> todoCountE = taskLogRepository.getTodoCountForWork(orgId, userId, workType);
|
||||
return todoCountE.stream().map(item -> {
|
||||
TodoCountCO todoCountCO = new TodoCountCO();
|
||||
BeanUtils.copyProperties(item, todoCountCO);
|
||||
return todoCountCO;
|
||||
}).collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
package com.zcloud.eightwork.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.api.ConfinedSpaceServiceI;
|
||||
import com.zcloud.eightwork.command.ConfinedSpaceAddExe;
|
||||
import com.zcloud.eightwork.command.ConfinedSpaceRemoveExe;
|
||||
import com.zcloud.eightwork.command.ConfinedSpaceUpdateExe;
|
||||
import com.zcloud.eightwork.command.query.ConfinedSpaceQueryExe;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpaceAddCmd;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpacePageQry;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpaceUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.ConfinedSpaceCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-27 10:26:34
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class ConfinedSpaceServiceImpl implements ConfinedSpaceServiceI {
|
||||
private final ConfinedSpaceAddExe confinedSpaceAddExe;
|
||||
private final ConfinedSpaceUpdateExe confinedSpaceUpdateExe;
|
||||
private final ConfinedSpaceRemoveExe confinedSpaceRemoveExe;
|
||||
private final ConfinedSpaceQueryExe confinedSpaceQueryExe;
|
||||
|
||||
@Override
|
||||
public ConfinedSpaceCO queryById(Long id) {
|
||||
return confinedSpaceQueryExe.queryById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResponse<ConfinedSpaceCO> listPage(ConfinedSpacePageQry qry) {
|
||||
|
||||
return confinedSpaceQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(ConfinedSpaceAddCmd cmd) {
|
||||
|
||||
confinedSpaceAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(ConfinedSpaceUpdateCmd confinedSpaceUpdateCmd) {
|
||||
confinedSpaceUpdateExe.execute(confinedSpaceUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
confinedSpaceRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
confinedSpaceRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ConfinedSpaceCO> listAll(ConfinedSpacePageQry qry){
|
||||
return confinedSpaceQueryExe.listAll(qry);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
package com.zcloud.eightwork.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.api.EightworkInfoServiceI;
|
||||
import com.zcloud.eightwork.command.EightworkInfoAddExe;
|
||||
import com.zcloud.eightwork.command.EightworkInfoRemoveExe;
|
||||
import com.zcloud.eightwork.command.EightworkInfoUpdateExe;
|
||||
import com.zcloud.eightwork.command.query.EightworkInfoQueryExe;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkInfoCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-12 10:58:53
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class EightworkInfoServiceImpl implements EightworkInfoServiceI {
|
||||
private final EightworkInfoAddExe eightworkInfoAddExe;
|
||||
private final EightworkInfoUpdateExe eightworkInfoUpdateExe;
|
||||
private final EightworkInfoRemoveExe eightworkInfoRemoveExe;
|
||||
private final EightworkInfoQueryExe eightworkInfoQueryExe;
|
||||
|
||||
@Override
|
||||
public EightworkInfoCO queryById(Long id) {
|
||||
return eightworkInfoQueryExe.queryById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResponse<EightworkInfoCO> listPage(EightworkInfoPageQry qry) {
|
||||
|
||||
return eightworkInfoQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(EightworkInfoAddCmd cmd) {
|
||||
|
||||
eightworkInfoAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(EightworkInfoUpdateCmd eightworkInfoUpdateCmd) {
|
||||
eightworkInfoUpdateExe.execute(eightworkInfoUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
eightworkInfoRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
eightworkInfoRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
package com.zcloud.eightwork.service;
|
||||
|
||||
import com.zcloud.eightwork.api.EightworkStepServiceI;
|
||||
import com.zcloud.eightwork.command.EightworkStepAddExe;
|
||||
import com.zcloud.eightwork.command.EightworkStepRemoveExe;
|
||||
import com.zcloud.eightwork.command.EightworkStepUpdateExe;
|
||||
import com.zcloud.eightwork.command.query.EightworkStepQueryExe;
|
||||
import com.zcloud.eightwork.dto.EightworkStepAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkStepPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkStepUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkStepCO;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:30
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class EightworkStepServiceImpl implements EightworkStepServiceI {
|
||||
private final EightworkStepAddExe eightworkStepAddExe;
|
||||
private final EightworkStepUpdateExe eightworkStepUpdateExe;
|
||||
private final EightworkStepRemoveExe eightworkStepRemoveExe;
|
||||
private final EightworkStepQueryExe eightworkStepQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<EightworkStepCO> listPage(EightworkStepPageQry qry) {
|
||||
|
||||
return eightworkStepQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(EightworkStepAddCmd cmd) {
|
||||
|
||||
eightworkStepAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(EightworkStepUpdateCmd eightworkStepUpdateCmd) {
|
||||
eightworkStepUpdateExe.execute(eightworkStepUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
eightworkStepRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
eightworkStepRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
package com.zcloud.eightwork.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.api.EightworkSupplementaryInfoServiceI;
|
||||
import com.zcloud.eightwork.command.EightworkSupplementaryInfoAddExe;
|
||||
import com.zcloud.eightwork.command.EightworkSupplementaryInfoRemoveExe;
|
||||
import com.zcloud.eightwork.command.EightworkSupplementaryInfoUpdateExe;
|
||||
import com.zcloud.eightwork.command.query.EightworkSupplementaryInfoQueryExe;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkSupplementaryInfoCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-20 10:38:37
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class EightworkSupplementaryInfoServiceImpl implements EightworkSupplementaryInfoServiceI {
|
||||
private final EightworkSupplementaryInfoAddExe eightworkSupplementaryInfoAddExe;
|
||||
private final EightworkSupplementaryInfoUpdateExe eightworkSupplementaryInfoUpdateExe;
|
||||
private final EightworkSupplementaryInfoRemoveExe eightworkSupplementaryInfoRemoveExe;
|
||||
private final EightworkSupplementaryInfoQueryExe eightworkSupplementaryInfoQueryExe;
|
||||
|
||||
@Override
|
||||
public EightworkSupplementaryInfoCO queryById(Long id) {
|
||||
return eightworkSupplementaryInfoQueryExe.queryById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResponse<EightworkSupplementaryInfoCO> listPage(EightworkSupplementaryInfoPageQry qry) {
|
||||
|
||||
return eightworkSupplementaryInfoQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(EightworkSupplementaryInfoAddCmd cmd) {
|
||||
|
||||
eightworkSupplementaryInfoAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(EightworkSupplementaryInfoUpdateCmd eightworkSupplementaryInfoUpdateCmd) {
|
||||
eightworkSupplementaryInfoUpdateExe.execute(eightworkSupplementaryInfoUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
eightworkSupplementaryInfoRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
eightworkSupplementaryInfoRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EightworkSupplementaryInfoCO> listAll(String workId){
|
||||
return eightworkSupplementaryInfoQueryExe.listAll(workId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
package com.zcloud.eightwork.service;
|
||||
|
||||
import com.zcloud.eightwork.api.EightworkTaskServiceI;
|
||||
import com.zcloud.eightwork.command.EightworkTaskAddExe;
|
||||
import com.zcloud.eightwork.command.EightworkTaskRemoveExe;
|
||||
import com.zcloud.eightwork.command.EightworkTaskUpdateExe;
|
||||
import com.zcloud.eightwork.command.query.EightworkTaskQueryExe;
|
||||
import com.zcloud.eightwork.dto.EightworkTaskAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkTaskPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkTaskUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkTaskCO;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:39
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class EightworkTaskServiceImpl implements EightworkTaskServiceI {
|
||||
private final EightworkTaskAddExe eightworkTaskAddExe;
|
||||
private final EightworkTaskUpdateExe eightworkTaskUpdateExe;
|
||||
private final EightworkTaskRemoveExe eightworkTaskRemoveExe;
|
||||
private final EightworkTaskQueryExe eightworkTaskQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<EightworkTaskCO> listPage(EightworkTaskPageQry qry) {
|
||||
|
||||
return eightworkTaskQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(EightworkTaskAddCmd cmd) {
|
||||
|
||||
eightworkTaskAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(EightworkTaskUpdateCmd eightworkTaskUpdateCmd) {
|
||||
eightworkTaskUpdateExe.execute(eightworkTaskUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
eightworkTaskRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
eightworkTaskRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package com.zcloud.eightwork.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.api.MeasuresLogsServiceI;
|
||||
import com.zcloud.eightwork.command.MeasuresLogsAddExe;
|
||||
import com.zcloud.eightwork.command.MeasuresLogsRemoveExe;
|
||||
import com.zcloud.eightwork.command.MeasuresLogsUpdateExe;
|
||||
import com.zcloud.eightwork.command.query.MeasuresLogsQueryExe;
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsAddCmd;
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsPageQry;
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.MeasuresLogsCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:49
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class MeasuresLogsServiceImpl implements MeasuresLogsServiceI {
|
||||
private final MeasuresLogsAddExe measuresLogsAddExe;
|
||||
private final MeasuresLogsUpdateExe measuresLogsUpdateExe;
|
||||
private final MeasuresLogsRemoveExe measuresLogsRemoveExe;
|
||||
private final MeasuresLogsQueryExe measuresLogsQueryExe;
|
||||
|
||||
@Override
|
||||
public MeasuresLogsCO queryById(Long id){
|
||||
return measuresLogsQueryExe.queryById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResponse<MeasuresLogsCO> listPage(MeasuresLogsPageQry qry){
|
||||
|
||||
return measuresLogsQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(MeasuresLogsAddCmd cmd) {
|
||||
|
||||
measuresLogsAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(MeasuresLogsUpdateCmd measuresLogsUpdateCmd) {
|
||||
measuresLogsUpdateExe.execute(measuresLogsUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
measuresLogsRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
measuresLogsRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MeasuresLogsCO> listAll(String workId){
|
||||
return measuresLogsQueryExe.listAll(workId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package com.zcloud.eightwork.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.api.MeasuresServiceI;
|
||||
import com.zcloud.eightwork.command.MeasuresAddExe;
|
||||
import com.zcloud.eightwork.command.MeasuresRemoveExe;
|
||||
import com.zcloud.eightwork.command.MeasuresUpdateExe;
|
||||
import com.zcloud.eightwork.command.query.MeasuresQueryExe;
|
||||
import com.zcloud.eightwork.dto.MeasuresAddCmd;
|
||||
import com.zcloud.eightwork.dto.MeasuresPageQry;
|
||||
import com.zcloud.eightwork.dto.MeasuresUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.MeasuresCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:48
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class MeasuresServiceImpl implements MeasuresServiceI {
|
||||
private final MeasuresAddExe measuresAddExe;
|
||||
private final MeasuresUpdateExe measuresUpdateExe;
|
||||
private final MeasuresRemoveExe measuresRemoveExe;
|
||||
private final MeasuresQueryExe measuresQueryExe;
|
||||
|
||||
@Override
|
||||
public MeasuresCO queryById(Long id){
|
||||
return measuresQueryExe.queryById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResponse<MeasuresCO> listPage(MeasuresPageQry qry){
|
||||
|
||||
return measuresQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(MeasuresAddCmd cmd) {
|
||||
|
||||
measuresAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(MeasuresUpdateCmd measuresUpdateCmd) {
|
||||
measuresUpdateExe.execute(measuresUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
measuresRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
measuresRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MeasuresCO> listAll(MeasuresPageQry qry){
|
||||
return measuresQueryExe.listAll(qry);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
package com.zcloud.eightwork.service;
|
||||
|
||||
import com.zcloud.eightwork.api.TaskFlowServiceI;
|
||||
import com.zcloud.eightwork.command.TaskFlowAddExe;
|
||||
import com.zcloud.eightwork.command.TaskFlowRemoveExe;
|
||||
import com.zcloud.eightwork.command.TaskFlowUpdateExe;
|
||||
import com.zcloud.eightwork.command.query.TaskFlowQueryExe;
|
||||
import com.zcloud.eightwork.dto.*;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskFlowCO;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskFlowInitCO;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskWorkInitCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:51
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class TaskFlowServiceImpl implements TaskFlowServiceI {
|
||||
private final TaskFlowAddExe taskFlowAddExe;
|
||||
private final TaskFlowUpdateExe taskFlowUpdateExe;
|
||||
private final TaskFlowRemoveExe taskFlowRemoveExe;
|
||||
private final TaskFlowQueryExe taskFlowQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<TaskFlowCO> listPage(TaskFlowPageQry qry) {
|
||||
|
||||
return taskFlowQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(TaskFlowAddCmd cmd) {
|
||||
|
||||
taskFlowAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(TaskFlowUpdateCmd taskFlowUpdateCmd) {
|
||||
taskFlowUpdateExe.execute(taskFlowUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
taskFlowRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
taskFlowRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TaskWorkInitCO getWorkInit(TaskWorkQryCmd qry){
|
||||
return taskFlowQueryExe.getWorkInit(qry);
|
||||
}
|
||||
@Override
|
||||
public TaskFlowInitCO getFlowInit(TaskFlowQryCmd qry){
|
||||
return taskFlowQueryExe.getFlowInit(qry);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
package com.zcloud.eightwork.service;
|
||||
|
||||
import com.zcloud.eightwork.api.TaskLogServiceI;
|
||||
import com.zcloud.eightwork.command.TaskLogAddExe;
|
||||
import com.zcloud.eightwork.command.TaskLogRemoveExe;
|
||||
import com.zcloud.eightwork.command.TaskLogUpdateExe;
|
||||
import com.zcloud.eightwork.command.query.TaskLogQueryExe;
|
||||
import com.zcloud.eightwork.dto.TaskLogAddCmd;
|
||||
import com.zcloud.eightwork.dto.TaskLogNextCmd;
|
||||
import com.zcloud.eightwork.dto.TaskLogPageQry;
|
||||
import com.zcloud.eightwork.dto.TaskLogUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskLogCO;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.dto.clientobject.TodoCountCO;
|
||||
import com.zcloud.eightwork.persistence.dataobject.TaskLogDO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:54
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class TaskLogServiceImpl implements TaskLogServiceI {
|
||||
private final TaskLogAddExe taskLogAddExe;
|
||||
private final TaskLogUpdateExe taskLogUpdateExe;
|
||||
private final TaskLogRemoveExe taskLogRemoveExe;
|
||||
private final TaskLogQueryExe taskLogQueryExe;
|
||||
|
||||
@Override
|
||||
public SingleResponse<TaskLogCO> getInfoById(Long id) {
|
||||
return SingleResponse.of(taskLogQueryExe.getInfoById(id));
|
||||
}
|
||||
@Override
|
||||
public PageResponse<TaskLogCO> listPage(TaskLogPageQry qry, Long departmentId, Long userId) {
|
||||
|
||||
return taskLogQueryExe.execute(qry, departmentId, userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public SingleResponse add(TaskLogAddCmd cmd) {
|
||||
|
||||
List<TaskLogDO> taskLogDOs =taskLogAddExe.execute(cmd);
|
||||
TaskLogDO commitTaskLogDO = taskLogDOs.get(0);
|
||||
TaskLogNextCmd taskLogNextCmd = new TaskLogNextCmd(commitTaskLogDO.getId(),
|
||||
commitTaskLogDO.getWorkId(),
|
||||
commitTaskLogDO.getStepId(),
|
||||
1,null,null,null,null);
|
||||
|
||||
taskLogUpdateExe.nextStep(taskLogNextCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(TaskLogUpdateCmd taskLogUpdateCmd) {
|
||||
taskLogUpdateExe.execute(taskLogUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
taskLogRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
taskLogRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void nextStep(TaskLogNextCmd cmd){
|
||||
taskLogUpdateExe.nextStep(cmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TaskLogCO> listAll(String workId){
|
||||
return taskLogQueryExe.listAll(workId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TodoCountCO> getTodoCount(Long orgId, Long userId){
|
||||
return taskLogQueryExe.getTodoCount(orgId, userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TodoCountCO> getTodoCountForWork(Long orgId, Long userId, String workType){
|
||||
return taskLogQueryExe.getTodoCountForWork(orgId, userId, workType);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>zcloud-gbs-eightwork</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>web-client</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>web-client</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.zcloud.eightwork</groupId>
|
||||
<artifactId>web-domain</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.jjb.saas</groupId>
|
||||
<artifactId>jjb-saas-application-client</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.jjb.saas</groupId>
|
||||
<artifactId>jjb-saas-system-client</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.jjb.saas</groupId>
|
||||
<artifactId>jjb-saas-framework-enums</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.jjb.saas</groupId>
|
||||
<artifactId>jjb-saas-open-platform-sdk</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.jjb.saas</groupId>
|
||||
<artifactId>jjb-saas-framework-client</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.validation</groupId>
|
||||
<artifactId>validation-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.zcloud.eightwork.api;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpaceAddCmd;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpacePageQry;
|
||||
import com.zcloud.eightwork.dto.ConfinedSpaceUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.ConfinedSpaceCO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-27 10:26:34
|
||||
*/
|
||||
public interface ConfinedSpaceServiceI {
|
||||
ConfinedSpaceCO queryById(Long id);
|
||||
|
||||
PageResponse<ConfinedSpaceCO> listPage(ConfinedSpacePageQry qry);
|
||||
|
||||
SingleResponse<ConfinedSpaceCO> add(ConfinedSpaceAddCmd cmd);
|
||||
|
||||
void edit(ConfinedSpaceUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
List<ConfinedSpaceCO> listAll(ConfinedSpacePageQry qry);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.zcloud.eightwork.api;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkInfoUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkInfoCO;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-12 10:58:53
|
||||
*/
|
||||
public interface EightworkInfoServiceI {
|
||||
EightworkInfoCO queryById(Long id);
|
||||
|
||||
PageResponse<EightworkInfoCO> listPage(EightworkInfoPageQry qry);
|
||||
|
||||
SingleResponse<EightworkInfoCO> add(EightworkInfoAddCmd cmd);
|
||||
|
||||
void edit(EightworkInfoUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.eightwork.api;
|
||||
|
||||
import com.zcloud.eightwork.dto.EightworkStepAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkStepPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkStepUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkStepCO;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:30
|
||||
*/
|
||||
public interface EightworkStepServiceI {
|
||||
PageResponse<EightworkStepCO> listPage(EightworkStepPageQry qry);
|
||||
|
||||
SingleResponse<EightworkStepCO> add(EightworkStepAddCmd cmd);
|
||||
|
||||
void edit(EightworkStepUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.zcloud.eightwork.api;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkSupplementaryInfoUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkSupplementaryInfoCO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-20 10:38:37
|
||||
*/
|
||||
public interface EightworkSupplementaryInfoServiceI {
|
||||
EightworkSupplementaryInfoCO queryById(Long id);
|
||||
|
||||
PageResponse<EightworkSupplementaryInfoCO> listPage(EightworkSupplementaryInfoPageQry qry);
|
||||
|
||||
SingleResponse<EightworkSupplementaryInfoCO> add(EightworkSupplementaryInfoAddCmd cmd);
|
||||
|
||||
void edit(EightworkSupplementaryInfoUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
List<EightworkSupplementaryInfoCO> listAll(String workId);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.eightwork.api;
|
||||
|
||||
import com.zcloud.eightwork.dto.EightworkTaskAddCmd;
|
||||
import com.zcloud.eightwork.dto.EightworkTaskPageQry;
|
||||
import com.zcloud.eightwork.dto.EightworkTaskUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.EightworkTaskCO;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:38
|
||||
*/
|
||||
public interface EightworkTaskServiceI {
|
||||
PageResponse<EightworkTaskCO> listPage(EightworkTaskPageQry qry);
|
||||
|
||||
SingleResponse<EightworkTaskCO> add(EightworkTaskAddCmd cmd);
|
||||
|
||||
void edit(EightworkTaskUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.zcloud.eightwork.api;
|
||||
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsAddCmd;
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsPageQry;
|
||||
import com.zcloud.eightwork.dto.MeasuresLogsUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.MeasuresLogsCO;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:49
|
||||
*/
|
||||
public interface MeasuresLogsServiceI {
|
||||
MeasuresLogsCO queryById(Long id);
|
||||
|
||||
PageResponse<MeasuresLogsCO> listPage(MeasuresLogsPageQry qry);
|
||||
|
||||
SingleResponse<MeasuresLogsCO> add(MeasuresLogsAddCmd cmd);
|
||||
|
||||
void edit(MeasuresLogsUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
List<MeasuresLogsCO> listAll(String workId);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
package com.zcloud.eightwork.api;
|
||||
|
||||
import com.zcloud.eightwork.dto.MeasuresAddCmd;
|
||||
import com.zcloud.eightwork.dto.MeasuresPageQry;
|
||||
import com.zcloud.eightwork.dto.MeasuresUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.MeasuresCO;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-11 11:30:48
|
||||
*/
|
||||
public interface MeasuresServiceI {
|
||||
MeasuresCO queryById(Long id);
|
||||
|
||||
PageResponse<MeasuresCO> listPage(MeasuresPageQry qry);
|
||||
|
||||
SingleResponse<MeasuresCO> add(MeasuresAddCmd cmd);
|
||||
|
||||
void edit(MeasuresUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
List<MeasuresCO> listAll(MeasuresPageQry qry);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.eightwork.api;
|
||||
|
||||
import com.zcloud.eightwork.dto.*;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskFlowCO;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskFlowInitCO;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskWorkInitCO;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:51
|
||||
*/
|
||||
public interface TaskFlowServiceI {
|
||||
PageResponse<TaskFlowCO> listPage(TaskFlowPageQry qry);
|
||||
|
||||
SingleResponse<TaskFlowCO> add(TaskFlowAddCmd cmd);
|
||||
|
||||
void edit(TaskFlowUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
TaskWorkInitCO getWorkInit(TaskWorkQryCmd qry);
|
||||
|
||||
|
||||
TaskFlowInitCO getFlowInit(TaskFlowQryCmd qry);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.zcloud.eightwork.api;
|
||||
|
||||
import com.zcloud.eightwork.dto.TaskLogAddCmd;
|
||||
import com.zcloud.eightwork.dto.TaskLogNextCmd;
|
||||
import com.zcloud.eightwork.dto.TaskLogPageQry;
|
||||
import com.zcloud.eightwork.dto.TaskLogUpdateCmd;
|
||||
import com.zcloud.eightwork.dto.clientobject.TaskLogCO;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.eightwork.dto.clientobject.TodoCountCO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:53
|
||||
*/
|
||||
public interface TaskLogServiceI {
|
||||
SingleResponse<TaskLogCO> getInfoById(Long id);
|
||||
PageResponse<TaskLogCO> listPage(TaskLogPageQry qry, Long departmentId, Long userId);
|
||||
|
||||
SingleResponse<TaskLogCO> add(TaskLogAddCmd cmd);
|
||||
|
||||
void edit(TaskLogUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
void nextStep(TaskLogNextCmd cmd);
|
||||
|
||||
List<TaskLogCO> listAll(String workId);
|
||||
|
||||
List<TodoCountCO> getTodoCount(Long orgId, Long userId);
|
||||
|
||||
List<TodoCountCO> getTodoCountForWork(Long orgId, Long userId, String workType);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
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 fangjiakai
|
||||
* @Date 2025-11-27 10:26:33
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ConfinedSpaceAddCmd extends Command {
|
||||
@ApiModelProperty(value = "企业", name = "corpinfoId", required = true)
|
||||
private Long corpinfoId;
|
||||
|
||||
@ApiModelProperty(value = "空间名称", name = "name", required = true)
|
||||
@NotEmpty(message = "空间名称不能为空")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "唯一编号", name = "code", required = true)
|
||||
@NotEmpty(message = "唯一编号不能为空")
|
||||
private String code;
|
||||
|
||||
@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 = "medium", required = true)
|
||||
@NotEmpty(message = "主要介质不能为空")
|
||||
private String medium;
|
||||
|
||||
@ApiModelProperty(value = "危险因素", name = "hazards", required = true)
|
||||
@NotEmpty(message = "危险因素不能为空")
|
||||
private String hazards;
|
||||
|
||||
@ApiModelProperty(value = "风险等级", name = "riskLevel", required = true)
|
||||
@NotEmpty(message = "风险等级不能为空")
|
||||
private String riskLevel;
|
||||
|
||||
@ApiModelProperty(value = "风险等级名称", name = "riskLevelName", required = true)
|
||||
@NotEmpty(message = "风险等级名称不能为空")
|
||||
private String riskLevelName;
|
||||
|
||||
@ApiModelProperty(value = "防护要求", name = "protectionRequirements", required = true)
|
||||
@NotEmpty(message = "防护要求不能为空")
|
||||
private String protectionRequirements;
|
||||
|
||||
@ApiModelProperty(value = "隔绝安全措施", name = "separateSafetyMeasures", required = true)
|
||||
@NotEmpty(message = "隔绝安全措施不能为空")
|
||||
private String separateSafetyMeasures;
|
||||
|
||||
@ApiModelProperty(value = "最大作业人数", name = "maximumNumber", required = true)
|
||||
@NotNull(message = "最大作业人数不能为空")
|
||||
private Integer maximumNumber;
|
||||
|
||||
@ApiModelProperty(value = "是否有应急指导书,0否1是", name = "isEmergencyBook", required = true)
|
||||
@NotNull(message = "是否有应急指导书,0否1是不能为空")
|
||||
private Integer isEmergencyBook;
|
||||
|
||||
@ApiModelProperty(value = "位置及范围", name = "position", required = true)
|
||||
@NotEmpty(message = "位置及范围不能为空")
|
||||
private String position;
|
||||
|
||||
@ApiModelProperty(value = "所属部门", name = "departmentId", required = true)
|
||||
private Long departmentId;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-27 10:26:34
|
||||
*/
|
||||
@Data
|
||||
public class ConfinedSpacePageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private Long eqCorpinfoId;
|
||||
private String likeName;
|
||||
private String likeCode;
|
||||
private String eqType;
|
||||
private String eqRiskLevel;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
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 fangjiakai
|
||||
* @Date 2025-11-27 10:26:34
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ConfinedSpaceUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotNull(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "企业", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业不能为空")
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "空间名称", name = "name", required = true)
|
||||
@NotEmpty(message = "空间名称不能为空")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "唯一编号", name = "code", required = true)
|
||||
@NotEmpty(message = "唯一编号不能为空")
|
||||
private String code;
|
||||
@ApiModelProperty(value = "业务主键id", name = "confinedSpaceId", required = true)
|
||||
@NotEmpty(message = "业务主键id不能为空")
|
||||
private String confinedSpaceId;
|
||||
@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 = "medium", required = true)
|
||||
@NotEmpty(message = "主要介质不能为空")
|
||||
private String medium;
|
||||
@ApiModelProperty(value = "危险因素", name = "hazards", required = true)
|
||||
@NotEmpty(message = "危险因素不能为空")
|
||||
private String hazards;
|
||||
@ApiModelProperty(value = "风险等级", name = "riskLevel", required = true)
|
||||
@NotEmpty(message = "风险等级不能为空")
|
||||
private String riskLevel;
|
||||
@ApiModelProperty(value = "风险等级名称", name = "riskLevelName", required = true)
|
||||
@NotEmpty(message = "风险等级名称不能为空")
|
||||
private String riskLevelName;
|
||||
@ApiModelProperty(value = "防护要求", name = "protectionRequirements", required = true)
|
||||
@NotEmpty(message = "防护要求不能为空")
|
||||
private String protectionRequirements;
|
||||
@ApiModelProperty(value = "隔绝安全措施", name = "separateSafetyMeasures", required = true)
|
||||
@NotEmpty(message = "隔绝安全措施不能为空")
|
||||
private String separateSafetyMeasures;
|
||||
@ApiModelProperty(value = "最大作业人数", name = "maximumNumber", required = true)
|
||||
@NotNull(message = "最大作业人数不能为空")
|
||||
private Integer maximumNumber;
|
||||
@ApiModelProperty(value = "是否有应急指导书,0否1是", name = "isEmergencyBook", required = true)
|
||||
@NotNull(message = "是否有应急指导书,0否1是不能为空")
|
||||
private Integer isEmergencyBook;
|
||||
@ApiModelProperty(value = "位置及范围", name = "position", required = true)
|
||||
@NotEmpty(message = "位置及范围不能为空")
|
||||
private String position;
|
||||
@ApiModelProperty(value = "所属部门", name = "departmentId", required = true)
|
||||
@NotNull(message = "所属部门不能为空")
|
||||
private Long departmentId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
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 fangjiakai
|
||||
* @Date 2025-11-12 10:58:52
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class EightworkInfoAddCmd extends Command {
|
||||
@ApiModelProperty(value = "企业", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业不能为空")
|
||||
private Long corpinfoId;
|
||||
|
||||
@ApiModelProperty(value = "是否相关方1是", name = "xgfFlag", required = true)
|
||||
@NotNull(message = "是否相关方1是不能为空")
|
||||
private Integer xgfFlag;
|
||||
|
||||
@ApiModelProperty(value = "所属项目", name = "projectId", required = true)
|
||||
@NotEmpty(message = "所属项目不能为空")
|
||||
private String projectId;
|
||||
|
||||
@ApiModelProperty(value = "相关方id", name = "xgfId", required = true)
|
||||
@NotNull(message = "相关方id不能为空")
|
||||
private Long xgfId;
|
||||
|
||||
@ApiModelProperty(value = "票号", name = "checkNo", required = true)
|
||||
@NotEmpty(message = "票号不能为空")
|
||||
private String checkNo;
|
||||
|
||||
@ApiModelProperty(value = "工作类型", name = "workType", required = true)
|
||||
@NotEmpty(message = "工作类型不能为空")
|
||||
private String workType;
|
||||
|
||||
@ApiModelProperty(value = "级别", name = "workLevel", required = true)
|
||||
@NotEmpty(message = "级别不能为空")
|
||||
private String workLevel;
|
||||
|
||||
@ApiModelProperty(value = "详细信息", name = "info", required = true)
|
||||
@NotEmpty(message = "详细信息不能为空")
|
||||
private String info;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-12 10:58:53
|
||||
*/
|
||||
@Data
|
||||
public class EightworkInfoPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String eqWorkType;
|
||||
private Integer eqStatus;
|
||||
private Long eqDepartmentId;
|
||||
private Long eqCreateId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
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 fangjiakai
|
||||
* @Date 2025-11-12 10:58:53
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class EightworkInfoUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotNull(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "业务主键id", name = "workId", required = true)
|
||||
@NotEmpty(message = "业务主键id不能为空")
|
||||
private String workId;
|
||||
@ApiModelProperty(value = "企业", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业不能为空")
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "是否相关方1是", name = "xgfFlag", required = true)
|
||||
@NotNull(message = "是否相关方1是不能为空")
|
||||
private Integer xgfFlag;
|
||||
@ApiModelProperty(value = "所属项目", name = "projectId", required = true)
|
||||
@NotEmpty(message = "所属项目不能为空")
|
||||
private String projectId;
|
||||
@ApiModelProperty(value = "相关方id", name = "xgfId", required = true)
|
||||
@NotNull(message = "相关方id不能为空")
|
||||
private Long xgfId;
|
||||
@ApiModelProperty(value = "票号", name = "checkNo", required = true)
|
||||
@NotEmpty(message = "票号不能为空")
|
||||
private String checkNo;
|
||||
@ApiModelProperty(value = "工作类型", name = "workType", required = true)
|
||||
@NotEmpty(message = "工作类型不能为空")
|
||||
private String workType;
|
||||
@ApiModelProperty(value = "级别", name = "workLevel", required = true)
|
||||
@NotEmpty(message = "级别不能为空")
|
||||
private String workLevel;
|
||||
@ApiModelProperty(value = "详细信息", name = "info", required = true)
|
||||
@NotEmpty(message = "详细信息不能为空")
|
||||
private String info;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
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.*;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:09
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class EightworkStepAddCmd extends Command {
|
||||
@ApiModelProperty(value = "步骤名称", name = "stepName", required = true)
|
||||
@NotEmpty(message = "步骤名称不能为空")
|
||||
private String stepName;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:23
|
||||
*/
|
||||
@Data
|
||||
public class EightworkStepPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeStepName;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
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.*;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:32
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class EightworkStepUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotNull(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "步骤名称", name = "stepName", required = true)
|
||||
@NotEmpty(message = "步骤名称不能为空")
|
||||
private String stepName;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
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 fangjiakai
|
||||
* @Date 2025-11-20 13:35:54
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class EightworkSupplementaryInfoAddCmd extends Command {
|
||||
@ApiModelProperty(value = "流程日志id", name = "taskLogId", required = true)
|
||||
@NotEmpty(message = "流程日志id不能为空")
|
||||
private String taskLogId;
|
||||
|
||||
@ApiModelProperty(value = "工作id", name = "workId", required = true)
|
||||
@NotEmpty(message = "工作id不能为空")
|
||||
private String workId;
|
||||
|
||||
@ApiModelProperty(value = "信息类型delay,gas", name = "type", required = true)
|
||||
@NotEmpty(message = "信息类型delay,gas不能为空")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value = "详情", name = "details", required = true)
|
||||
@NotEmpty(message = "详情不能为空")
|
||||
private JSONObject details;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-20 10:38:37
|
||||
*/
|
||||
@Data
|
||||
public class EightworkSupplementaryInfoPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeSupplementaryInfoId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
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 fangjiakai
|
||||
* @Date 2025-11-20 13:35:55
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class EightworkSupplementaryInfoUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotNull(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "业务主键id", name = "supplementaryInfoId", required = true)
|
||||
@NotEmpty(message = "业务主键id不能为空")
|
||||
private String supplementaryInfoId;
|
||||
@ApiModelProperty(value = "流程日志id", name = "taskLogId", required = true)
|
||||
@NotEmpty(message = "流程日志id不能为空")
|
||||
private String taskLogId;
|
||||
@ApiModelProperty(value = "工作id", name = "workId", required = true)
|
||||
@NotEmpty(message = "工作id不能为空")
|
||||
private String workId;
|
||||
@ApiModelProperty(value = "信息类型delay,gas", name = "type", required = true)
|
||||
@NotEmpty(message = "信息类型delay,gas不能为空")
|
||||
private String type;
|
||||
@ApiModelProperty(value = "详情", name = "details", required = true)
|
||||
@NotEmpty(message = "详情不能为空")
|
||||
private JSONObject details;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
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.*;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:37
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class EightworkTaskAddCmd extends Command {
|
||||
@ApiModelProperty(value = "任务名称", name = "taskName", required = true)
|
||||
@NotEmpty(message = "任务名称不能为空")
|
||||
private String taskName;
|
||||
|
||||
@ApiModelProperty(value = "任务类型", name = "workType", required = true)
|
||||
@NotEmpty(message = "任务类型不能为空")
|
||||
private String workType;
|
||||
|
||||
@ApiModelProperty(value = "作业级别", name = "workLevel", required = true)
|
||||
@NotEmpty(message = "作业级别不能为空")
|
||||
private String workLevel;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:38
|
||||
*/
|
||||
@Data
|
||||
public class EightworkTaskPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeTaskName;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
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.*;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author fangjiakai
|
||||
* @Date 2025-11-05 09:53:39
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class EightworkTaskUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotNull(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "任务名称", name = "taskName", required = true)
|
||||
@NotEmpty(message = "任务名称不能为空")
|
||||
private String taskName;
|
||||
@ApiModelProperty(value = "任务类型", name = "workType", required = true)
|
||||
@NotEmpty(message = "任务类型不能为空")
|
||||
private String workType;
|
||||
@ApiModelProperty(value = "作业级别", name = "workLevel", required = true)
|
||||
@NotEmpty(message = "作业级别不能为空")
|
||||
private String workLevel;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.zcloud.eightwork.dto;
|
||||
|
||||
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 fangjiakai
|
||||
* @Date 2025-11-11 11:30:39
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MeasuresAddCmd extends Command {
|
||||
@ApiModelProperty(value = "作业类型", name = "workType", required = true)
|
||||
@NotEmpty(message = "作业类型不能为空")
|
||||
private String workType;
|
||||
|
||||
@ApiModelProperty(value = "防护措施", name = "content", required = true)
|
||||
@NotEmpty(message = "防护措施不能为空")
|
||||
private String content;
|
||||
|
||||
@ApiModelProperty(value = "问题 &&分割", name = "questions", required = true)
|
||||
@NotEmpty(message = "问题 &&分割不能为空")
|
||||
private String questions;
|
||||
|
||||
@ApiModelProperty(value = "排序", name = "orderBy", required = true)
|
||||
@NotNull(message = "排序不能为空")
|
||||
private Integer orderBy;
|
||||
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue