13 changed files with 410 additions and 133 deletions
@ -0,0 +1,51 @@ |
|||
package com.ccsens.common.bean.message; |
|||
|
|||
import com.ccsens.common.util.Constant; |
|||
import lombok.Data; |
|||
import lombok.Getter; |
|||
import lombok.Setter; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class TaskMessageWithStatus{ |
|||
private String type = Constant.MessageType.TASK_STATUS; |
|||
private String event; |
|||
|
|||
public TaskMessageWithStatus() { |
|||
|
|||
} |
|||
|
|||
private Data data; |
|||
|
|||
@Setter |
|||
@Getter |
|||
public static class Data{ |
|||
//任务分解id
|
|||
Long id; |
|||
//任务详情id
|
|||
Long taskDetailId; |
|||
//操作状态 0开始 1暂停 2继续 3完成
|
|||
byte operationType; |
|||
//当前任务状态 0未开始 1进行中 2已暂停 3已完成
|
|||
byte taskStatus; |
|||
//操作人id
|
|||
Long userId; |
|||
//操作时间
|
|||
Long time; |
|||
} |
|||
|
|||
public TaskMessageWithStatus(Long id, Long taskDetailId,byte operationType,byte taskStatus,Long userId,Long time){ |
|||
this(); |
|||
Data d = new Data(); |
|||
d.setId(id); |
|||
d.setTaskDetailId(taskDetailId); |
|||
d.setOperationType(operationType); |
|||
d.setTaskStatus(taskStatus); |
|||
d.setUserId(userId); |
|||
d.setTime(time); |
|||
setData(d); |
|||
} |
|||
|
|||
} |
|||
@ -1,52 +1,52 @@ |
|||
server: |
|||
port: 7200 |
|||
servlet: |
|||
context-path: |
|||
spring: |
|||
snowflake: |
|||
datacenterId: 1 |
|||
workerId: 1 |
|||
application: |
|||
name: common |
|||
datasource: |
|||
type: com.alibaba.druid.pool.DruidDataSource |
|||
rabbitmq: |
|||
host: 192.168.0.99 |
|||
password: 111111 |
|||
port: 5672 |
|||
username: admin |
|||
redis: |
|||
database: 0 |
|||
host: 127.0.0.1 |
|||
jedis: |
|||
pool: |
|||
max-active: 200 |
|||
max-idle: 10 |
|||
max-wait: -1ms |
|||
min-idle: 0 |
|||
password: '' |
|||
port: 6379 |
|||
timeout: 1000ms |
|||
swagger: |
|||
enable: true |
|||
mybatisCache: |
|||
database: 1 |
|||
host: 127.0.0.1 |
|||
jedis: |
|||
pool: |
|||
max-active: 200 |
|||
max-idle: 10 |
|||
max-wait: -1 |
|||
min-idle: 0 |
|||
password: '' |
|||
port: 6379 |
|||
timeout: 1000 |
|||
|
|||
gatewayUrl: https://test.tall.wiki/gateway/ |
|||
notGatewayUrl: /home/staticrec/logo.png |
|||
smsCode: 0 |
|||
|
|||
file: |
|||
path: /home/cloud/common/uploads/ |
|||
domain: http://localhost:7030/v1.0/ |
|||
imgDomain: http://localhost:7030/v1.0/uploads |
|||
#server: |
|||
# port: 7200 |
|||
# servlet: |
|||
# context-path: |
|||
#spring: |
|||
# snowflake: |
|||
# datacenterId: 1 |
|||
# workerId: 1 |
|||
# application: |
|||
# name: common |
|||
# datasource: |
|||
# type: com.alibaba.druid.pool.DruidDataSource |
|||
# rabbitmq: |
|||
# host: 192.168.0.99 |
|||
# password: 111111 |
|||
# port: 5672 |
|||
# username: admin |
|||
# redis: |
|||
# database: 0 |
|||
# host: 127.0.0.1 |
|||
# jedis: |
|||
# pool: |
|||
# max-active: 200 |
|||
# max-idle: 10 |
|||
# max-wait: -1ms |
|||
# min-idle: 0 |
|||
# password: '' |
|||
# port: 6379 |
|||
# timeout: 1000ms |
|||
#swagger: |
|||
# enable: true |
|||
#mybatisCache: |
|||
# database: 1 |
|||
# host: 127.0.0.1 |
|||
# jedis: |
|||
# pool: |
|||
# max-active: 200 |
|||
# max-idle: 10 |
|||
# max-wait: -1 |
|||
# min-idle: 0 |
|||
# password: '' |
|||
# port: 6379 |
|||
# timeout: 1000 |
|||
# |
|||
#gatewayUrl: https://test.tall.wiki/gateway/ |
|||
#notGatewayUrl: /home/staticrec/logo.png |
|||
#smsCode: 0 |
|||
# |
|||
#file: |
|||
# path: /home/cloud/common/uploads/ |
|||
# domain: http://localhost:7030/v1.0/ |
|||
# imgDomain: http://localhost:7030/v1.0/uploads |
|||
@ -1,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: dev |
|||
include: util-dev,common |
|||
#spring: |
|||
# profiles: |
|||
# active: dev |
|||
# include: util-dev,common |
|||
Loading…
Reference in new issue