[update]
Showing
4 changed files
with
19 additions
and
9 deletions
| ... | @@ -3,6 +3,7 @@ package com.ql.backend.ploycenter.infrastructure.adapter.impl; | ... | @@ -3,6 +3,7 @@ package com.ql.backend.ploycenter.infrastructure.adapter.impl; |
| 3 | import com.ql.backend.core.interfaces.vo.ApiResponse; | 3 | import com.ql.backend.core.interfaces.vo.ApiResponse; |
| 4 | import com.ql.backend.ploycenter.domain.po.PloyPO; | 4 | import com.ql.backend.ploycenter.domain.po.PloyPO; |
| 5 | import com.ql.backend.ploycenter.infrastructure.adapter.ControlCenterAdapter; | 5 | import com.ql.backend.ploycenter.infrastructure.adapter.ControlCenterAdapter; |
| 6 | import com.ql.backend.ploycenter.infrastructure.adapter.dto.JobCreateRequestDTO; | ||
| 6 | import com.ql.backend.ploycenter.infrastructure.adapter.utils.ControlCenterApi; | 7 | import com.ql.backend.ploycenter.infrastructure.adapter.utils.ControlCenterApi; |
| 7 | import lombok.extern.slf4j.Slf4j; | 8 | import lombok.extern.slf4j.Slf4j; |
| 8 | import org.springframework.stereotype.Service; | 9 | import org.springframework.stereotype.Service; |
| ... | @@ -30,7 +31,11 @@ public class ControlCenterAdapterImpl implements ControlCenterAdapter { | ... | @@ -30,7 +31,11 @@ public class ControlCenterAdapterImpl implements ControlCenterAdapter { |
| 30 | 31 | ||
| 31 | @Override | 32 | @Override |
| 32 | public ApiResponse<String> createTask(PloyPO ployPO) { | 33 | public ApiResponse<String> createTask(PloyPO ployPO) { |
| 33 | /* todo 在控制中枢创建任务 */ | 34 | return controlCenterApi.createJob(JobCreateRequestDTO.builder() |
| 34 | return ApiResponse.ok("111"); | 35 | .jobName(ployPO.getPloyName()) |
| 36 | .processDetailUUID(ployPO.getProcessDetailUUID()) | ||
| 37 | .executeTimes(ployPO.getExecuteTimes()) | ||
| 38 | .executeType(ployPO.getExecuteType() == null ? null : Integer.parseInt(ployPO.getExecuteType())) | ||
| 39 | .build()); | ||
| 35 | } | 40 | } |
| 36 | } | 41 | } | ... | ... |
| 1 | server: | 1 | server: |
| 2 | port: 9999 | 2 | port: 9999 |
| 3 | |||
| 4 | spring: | ||
| 5 | datasource: | ||
| 6 | url: jdbc:mysql://localhost:3306/ql-backend?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false | ||
| 7 | username: root | ||
| 8 | password: a15728006904 | ||
| 9 | driver-class-name: com.mysql.cj.jdbc.Driver | ||
| 10 | mybatis: | 3 | mybatis: |
| 11 | #开启驼峰命名法 | 4 | #开启驼峰命名法 |
| 12 | configuration: | 5 | configuration: | ... | ... |
-
Please register or sign in to post a comment