Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
def47d15
提交
def47d15
authored
1月 13, 2021
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新
上级
462e5f0f
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
25 行增加
和
15 行删除
+25
-15
BlockChainUtilImpl.java
...dev/blockcha/subject/service/impl/BlockChainUtilImpl.java
+8
-1
LogType.java
dev-config/src/main/java/com/tykj/dev/config/LogType.java
+1
-1
BusinessEnum.java
...sc/src/main/java/com/tykj/dev/misc/base/BusinessEnum.java
+5
-1
ScrapSaveVo.java
...ava/com/tykj/dev/device/scrap/subject/vo/ScrapSaveVo.java
+3
-3
TaskServiceImpl.java
...om/tykj/dev/device/task/service/impl/TaskServiceImpl.java
+5
-7
application.properties
dev-union/src/main/resources/application.properties
+3
-2
没有找到文件。
dev-blockcha/src/main/java/com/tykj/dev/blockcha/subject/service/impl/BlockChainUtilImpl.java
浏览文件 @
def47d15
...
...
@@ -4,6 +4,7 @@ import com.tykj.dev.blockcha.conf.BcUrl;
import
com.tykj.dev.blockcha.subject.entity.*
;
import
com.tykj.dev.blockcha.subject.service.BlockChainUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.client.RestTemplate
;
...
...
@@ -40,7 +41,8 @@ public class BlockChainUtilImpl implements BlockChainUtil {
private
final
static
String
BLOCK_CHAIN_URL4
=
"http://10.153.110.10:8076"
;
private
final
static
String
BLOCK_CHAIN_URL5
=
"http://10.153.6.11:8076"
;
@Value
(
"${useBlockcha:fasle"
)
private
String
useBlockcha
;
@Override
public
BcStatus
getStatus
()
{
...
...
@@ -184,6 +186,7 @@ public class BlockChainUtilImpl implements BlockChainUtil {
@Override
public
BcHash
sendHash
(
Integer
subCode
,
String
content
)
{
if
(
"true"
.
equals
(
this
.
useBlockcha
))
{
SortedMap
<
Object
,
Object
>
request
=
getRequest
();
request
.
put
(
"content"
,
HexUtil
.
hex64
(
content
));
request
.
put
(
"subCode"
,
subCode
);
...
...
@@ -196,6 +199,10 @@ public class BlockChainUtilImpl implements BlockChainUtil {
request
,
BcHash
.
class
);
}
else
{
return
new
BcHash
(
0
,
""
,
new
BcHashData
(
"000"
));
}
}
@Override
...
...
dev-config/src/main/java/com/tykj/dev/config/LogType.java
浏览文件 @
def47d15
...
...
@@ -161,7 +161,7 @@ public enum LogType {
SEND_BACK_8
(
76
,
SEND_BACK
.
id
,
ORIGIN_STATUS
.
id
,
SEND_BACK_1205
.
id
,
"市转发了省清退任务,对区县发起了清退任务"
),
SEND_BACK_9
(
77
,
SEND_BACK
.
id
,
SEND_BACK_1201
.
id
,
SEND_BACK_1206
.
id
,
"市等待下级单位提交清退装备,在选择装备库送至省里"
),
SEND_BACK_10
(
78
,
SEND_BACK
.
id
,
SEND_BACK_1205
.
id
,
SEND_BACK_1206
.
id
,
"区县根据清退通知,选择了需要清退对装备"
),
SEND_BACK_11
(
100
,
SEND_BACK
.
id
,
SEND_BACK_1206
.
id
,
SEND_BACK_1207
.
id
,
"区县根据清退通知,选择了需要清退对装备"
),
SEND_BACK_11
(
100
00
,
SEND_BACK
.
id
,
SEND_BACK_1206
.
id
,
SEND_BACK_1207
.
id
,
"区县根据清退通知,选择了需要清退对装备"
),
...
...
dev-misc/src/main/java/com/tykj/dev/misc/base/BusinessEnum.java
浏览文件 @
def47d15
...
...
@@ -92,7 +92,11 @@ public enum BusinessEnum {
/**
* 配发退回
*/
ALLOT_BACK
(
22
,
"配发退回"
);
ALLOT_BACK
(
22
,
"配发退回"
),
/**
* 报废
*/
SCRAP
(
23
,
"报废业务"
);
public
Integer
id
;
...
...
dev-scrap/src/main/java/com/tykj/dev/device/scrap/subject/vo/ScrapSaveVo.java
浏览文件 @
def47d15
...
...
@@ -21,7 +21,7 @@ import java.util.List;
@ApiModel
(
value
=
"报废单存储类"
,
description
=
"报废单存储类"
)
public
class
ScrapSaveVo
{
@NotNull
(
message
=
"repairBillId不能为空"
)
//
@NotNull(message = "repairBillId不能为空")
@Min
(
value
=
1
,
message
=
"repairBillId不能小于1"
)
@ApiModelProperty
(
value
=
"维修单id"
)
private
Integer
repairBillId
;
...
...
@@ -46,11 +46,11 @@ public class ScrapSaveVo {
@ApiModelProperty
(
value
=
"承办人"
)
private
String
undertaker
;
@NotNull
(
message
=
"fileName不能为空"
)
//
@NotNull(message = "fileName不能为空")
@ApiModelProperty
(
value
=
"报废单文件名"
)
private
String
fileName
;
@NotNull
(
message
=
"fileUrl不能为空"
)
//
@NotNull(message = "fileUrl不能为空")
@ApiModelProperty
(
value
=
"报废单文件URL"
)
private
String
fileUrl
;
...
...
dev-task/src/main/java/com/tykj/dev/device/task/service/impl/TaskServiceImpl.java
浏览文件 @
def47d15
...
...
@@ -15,7 +15,6 @@ import com.tykj.dev.device.task.subject.domin.TaskLog;
import
com.tykj.dev.device.task.subject.vo.TaskSelectVo
;
import
com.tykj.dev.device.task.subject.vo.TaskUserVo
;
import
com.tykj.dev.device.task.utils.TaskUtils
;
import
com.tykj.dev.device.user.cache.UnitsCache
;
import
com.tykj.dev.device.user.cache.UserCache
;
import
com.tykj.dev.device.user.subject.entity.User
;
import
com.tykj.dev.device.user.subject.service.UserPublicService
;
...
...
@@ -59,9 +58,6 @@ public class TaskServiceImpl implements TaskService {
@Autowired
private
UserCache
userCache
;
@Autowired
private
UnitsCache
unitsCache
;
@Autowired
private
BlockChainUtil
blockChainUtil
;
...
...
@@ -594,11 +590,11 @@ public class TaskServiceImpl implements TaskService {
//涉及人员当前指针为-1,且所属单位为当前单位
List
<
TaskBto
>
taskBtos1
=
taskBtos
.
stream
()
.
filter
(
taskBto
->
{
boolean
involveExists
=
taskBto
.
getInvolveUserIdList
().
contains
(
userId
);
//
boolean involveExists = taskBto.getInvolveUserIdList().contains(userId);
boolean
pointExists
=
taskBto
.
getCurrentPoint
()
<
taskBto
.
getInvolveUserIdList
().
size
();
boolean
userConfirm
=
taskBto
.
getInvolveUserIdList
().
get
(
taskBto
.
getCurrentPoint
())
==
-
1
;
boolean
unitConfirm
=
taskBto
.
getOwnUnit
().
equals
(
unitId
);
return
!
involveExists
&&
pointExists
&&
userConfirm
&&
unitConfirm
;
return
pointExists
&&
userConfirm
&&
unitConfirm
;
})
.
collect
(
Collectors
.
toList
());
taskBtoList
.
addAll
(
taskBtos1
);
...
...
@@ -655,7 +651,9 @@ public class TaskServiceImpl implements TaskService {
users
.
stream
().
filter
(
user
->
user
.
getUnitsId
().
equals
(
taskUserVo
.
getOwnUnit
())).
forEach
(
user
->
{
stringBuffer
.
append
(
user
.
getName
()).
append
(
","
);
});
stringBuffer
.
deleteCharAt
(
stringBuffer
.
length
()-
1
);
if
(
stringBuffer
.
length
()>
0
)
{
stringBuffer
.
deleteCharAt
(
stringBuffer
.
length
()
-
1
);
}
taskUserVo
.
setProcessingUser
(
stringBuffer
.
toString
());
}
else
{
...
...
dev-union/src/main/resources/application.properties
浏览文件 @
def47d15
...
...
@@ -12,4 +12,5 @@ server.servlet.session.timeout=PT1H
spring.jackson.date-format
=
yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone
=
GMT+8
file.path
=
/Users/zjm/code/
preview.path
=
http://192.168.102.26:8087/file/
\ No newline at end of file
preview.path
=
http://192.168.102.26:8087/file/
useBlockcha
=
fasle
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论