Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
537f89d5
Commit
537f89d5
authored
Aug 06, 2021
by
李成龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统一文件路径
parent
a6c80144
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
113 additions
and
129 deletions
+113
-129
FireRectificationServiceImpl.java
...s/business/service/impl/FireRectificationServiceImpl.java
+1
-1
PropertiesLoader.java
...eejoin/amos/knowledgebase/face/util/PropertiesLoader.java
+1
-1
CheckController.java
...amos/maintenance/business/controller/CheckController.java
+12
-10
CheckServiceImpl.java
...s/maintenance/business/service/impl/CheckServiceImpl.java
+21
-19
LatentDangerServiceImpl.java
...enance/business/service/impl/LatentDangerServiceImpl.java
+8
-6
TaskServiceImpl.java
...os/maintenance/business/service/impl/TaskServiceImpl.java
+5
-4
CheckController.java
...join/amos/patrol/business/controller/CheckController.java
+13
-10
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+21
-19
LatentDangerServiceImpl.java
...patrol/business/service/impl/LatentDangerServiceImpl.java
+8
-6
TaskServiceImpl.java
...in/amos/patrol/business/service/impl/TaskServiceImpl.java
+5
-4
application-dev.properties
...-system-fas/src/main/resources/application-dev.properties
+1
-1
application-docker.properties
...stem-fas/src/main/resources/application-docker.properties
+1
-1
application-qa.properties
...t-system-fas/src/main/resources/application-qa.properties
+1
-1
application-test.properties
...system-fas/src/main/resources/application-test.properties
+1
-1
application-dev.properties
...owledgebase/src/main/resources/application-dev.properties
+2
-1
application-qa.properties
...nowledgebase/src/main/resources/application-qa.properties
+2
-1
application-test.properties
...wledgebase/src/main/resources/application-test.properties
+2
-1
application-dev.properties
...maintenance/src/main/resources/application-dev.properties
+2
-11
application-dev.properties
...stem-patrol/src/main/resources/application-dev.properties
+2
-11
application-docker.properties
...m-patrol/src/main/resources/application-docker.properties
+2
-10
application-test.properties
...tem-patrol/src/main/resources/application-test.properties
+2
-10
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-fas-biz/src/main/java/com/yeejoin/amos/fas/business/service/impl/FireRectificationServiceImpl.java
View file @
537f89d5
...
...
@@ -27,7 +27,7 @@ public class FireRectificationServiceImpl implements FireRectificationService {
/**
* 文件服务器地址
*/
@Value
(
"${file.
downLoad.
url}"
)
@Value
(
"${file.url}"
)
private
String
ipUrl
;
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-knowledgebase-biz/src/main/java/com/yeejoin/amos/knowledgebase/face/util/PropertiesLoader.java
View file @
537f89d5
...
...
@@ -10,7 +10,7 @@ public class PropertiesLoader {
/**
* 图片服务器地址
*/
@Value
(
"${
pic-server.uri
}"
)
@Value
(
"${
file.url
}"
)
private
String
picUri
;
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/controller/CheckController.java
View file @
537f89d5
...
...
@@ -95,12 +95,14 @@ public class CheckController extends AbstractBaseController {
@Value
(
"${linux.img.path}"
)
private
String
linuxImgPath
;
@Value
(
"${file.ip}"
)
private
String
fileIp
;
@Value
(
"${file.port}"
)
private
String
filePort
;
// @Value("${file.ip}")
// private String fileIp;
//
// @Value("${file.port}")
// private String filePort;
@Value
(
"${file.url}"
)
private
String
fileUrl
;
@Value
(
"${amosRefresh.patrol.topic}"
)
private
String
patrolTopic
;
@Autowired
...
...
@@ -222,9 +224,9 @@ public class CheckController extends AbstractBaseController {
CheckInfoPageParam
param
=
CheckPageParamUtil
.
fillCheckInfoParam
(
queryRequests
,
null
,
paramMap
);
List
<
Map
<
String
,
Object
>>
list
=
checkService
.
getCheckInfoImgsList
(
param
);
String
fileName
=
"巡检记录图片"
+
new
Date
().
getTime
()
+
".zip"
;
String
rootPath
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String rootPath = "http://" + fileIp + ":" + filePort + "/";
for
(
Map
<
String
,
Object
>
map
:
list
)
{
map
.
put
(
"photoData"
,
rootPath
+
map
.
get
(
"photoData"
).
toString
());
map
.
put
(
"photoData"
,
fileUrl
+
map
.
get
(
"photoData"
).
toString
());
}
FileHelper
.
exportZip
(
list
,
fileName
,
response
);
}
...
...
@@ -236,9 +238,9 @@ public class CheckController extends AbstractBaseController {
HttpServletResponse
response
)
{
List
<
Map
<
String
,
Object
>>
list
=
checkService
.
getCheckInfoImgsList
(
ids
);
String
fileName
=
"巡检记录图片"
+
new
Date
().
getTime
()
+
".zip"
;
String
rootPath
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String rootPath = "http://" + fileIp + ":" + filePort + "/";
for
(
Map
<
String
,
Object
>
map
:
list
)
{
map
.
put
(
"photoData"
,
rootPath
+
map
.
get
(
"photoData"
).
toString
());
map
.
put
(
"photoData"
,
fileUrl
+
map
.
get
(
"photoData"
).
toString
());
}
FileHelper
.
exportZip
(
list
,
fileName
,
response
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/service/impl/CheckServiceImpl.java
View file @
537f89d5
...
...
@@ -146,12 +146,14 @@ public class CheckServiceImpl implements ICheckService {
@Autowired
IPointDao
iPointDao
;
@Value
(
"${file.ip}"
)
private
String
fileIp
;
@Value
(
"${file.port}"
)
private
String
filePort
;
// @Value("${file.ip}")
// private String fileIp;
//
// @Value("${file.port}")
// private String filePort;
@Value
(
"${file.url}"
)
private
String
fileUrl
;
@Override
public
Page
<
CheckInfoVo
>
getCheckInfo
(
String
toke
,
String
product
,
String
appKey
,
CheckInfoPageParam
param
)
{
long
total
=
checkMapper
.
countCheckInfoData
(
param
);
...
...
@@ -517,12 +519,12 @@ public class CheckServiceImpl implements ICheckService {
if
(!
list
.
isEmpty
())
{
// InetAddress address = InetAddress.getLocalHost();
// String ip = address.getHostAddress();
String
ipPort
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String ipPort = "http://" + fileIp + ":" + filePort + "/";
List
<
String
>
pointImgUrls
=
new
ArrayList
<>();
PointCheckDetailBo
pointCheckDetailBo
=
list
.
get
(
0
);
List
<
CheckShot
>
pointShot
=
checkShotDao
.
findAllByCheckIdAndCheckInputIdAndClassifyId
(
pointCheckDetailBo
.
getCheckId
(),
0
l
,
0
l
);
pointShot
.
forEach
(
action
->
{
pointImgUrls
.
add
(
ipPort
+
action
.
getPhotoData
());
pointImgUrls
.
add
(
fileUrl
+
action
.
getPhotoData
());
});
Check
check
=
checkDao
.
findById
(
checkId
).
get
();
pointCheckRespone
.
setPointId
(
pointCheckDetailBo
.
getPointId
());
...
...
@@ -559,7 +561,7 @@ public class CheckServiceImpl implements ICheckService {
List
<
String
>
pointInputImgUrls
=
new
ArrayList
<>();
List
<
CheckShot
>
pointInputShot
=
checkShotDao
.
findAllByCheckIdAndCheckInputIdAndClassifyId
(
pointCheckDetailBo
.
getCheckId
(),
action
.
getCheckInputId
(),
action
.
getClassifyId
());
pointInputShot
.
forEach
(
inputShot
->
{
pointInputImgUrls
.
add
(
ipPort
+
inputShot
.
getPhotoData
());
pointInputImgUrls
.
add
(
fileUrl
+
inputShot
.
getPhotoData
());
});
AppCheckInputRespone
appCheckInputRespone
=
new
AppCheckInputRespone
();
appCheckInputRespone
.
setCheckInputId
(
action
.
getCheckInputId
());
...
...
@@ -601,12 +603,12 @@ public class CheckServiceImpl implements ICheckService {
if
(!
list
.
isEmpty
())
{
// InetAddress address = InetAddress.getLocalHost();
// String ip = address.getHostAddress();
String
ipPort
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String ipPort = "http://" + fileIp + ":" + filePort + "/";
List
<
String
>
pointImgUrls
=
new
ArrayList
<>();
PointCheckDetailBo
pointCheckDetailBo
=
list
.
get
(
0
);
List
<
CheckShot
>
pointShot
=
checkShotDao
.
findAllByCheckIdAndCheckInputIdAndClassifyId
(
pointCheckDetailBo
.
getCheckId
(),
0
l
,
0
l
);
pointShot
.
forEach
(
action
->
{
pointImgUrls
.
add
(
ipPort
+
action
.
getPhotoData
());
pointImgUrls
.
add
(
fileUrl
+
action
.
getPhotoData
());
});
Check
check
=
checkDao
.
findById
(
checkId
).
get
();
pointCheckRespone
.
setPointId
(
pointCheckDetailBo
.
getPointId
());
...
...
@@ -647,7 +649,7 @@ public class CheckServiceImpl implements ICheckService {
List
<
String
>
pointInputImgUrls
=
new
ArrayList
<>();
List
<
CheckShot
>
pointInputShot
=
checkShotDao
.
findAllByCheckIdAndCheckInputIdAndClassifyId
(
pointCheckDetailBo
.
getCheckId
(),
action
.
getCheckInputId
(),
action
.
getClassifyId
());
pointInputShot
.
forEach
(
inputShot
->
{
pointInputImgUrls
.
add
(
ipPort
+
inputShot
.
getPhotoData
());
pointInputImgUrls
.
add
(
fileUrl
+
inputShot
.
getPhotoData
());
});
AppCheckInputRespone
appCheckInputRespone
=
new
AppCheckInputRespone
();
appCheckInputRespone
.
setCheckInputId
(
action
.
getCheckInputId
());
...
...
@@ -735,11 +737,11 @@ public class CheckServiceImpl implements ICheckService {
Map
<
String
,
Object
>
resp
=
new
HashMap
<>();
resp
.
put
(
"check"
,
check
);
resp
.
put
(
"inputItems"
,
checkInputItems
);
String
ipPort
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String ipPort = "http://" + fileIp + ":" + filePort + "/";
for
(
Map
<
String
,
Object
>
map
:
checkimgs
)
{
String
imgPath
=
map
.
get
(
"photoData"
).
toString
().
replace
(
"\\"
,
"/"
);
map
.
put
(
"photoData"
,
ipPort
+
imgPath
);
map
.
put
(
"openOperUrl"
,
"window.open('"
+
ipPort
+
imgPath
+
"')"
);
map
.
put
(
"photoData"
,
fileUrl
+
imgPath
);
map
.
put
(
"openOperUrl"
,
"window.open('"
+
fileUrl
+
imgPath
+
"')"
);
}
resp
.
put
(
"imgs"
,
checkimgs
);
return
resp
;
...
...
@@ -1082,7 +1084,7 @@ public class CheckServiceImpl implements ICheckService {
equip
.
put
(
"IsOK"
,
PointStatusEnum
.
QUALIFIED
.
getName
());
List
<
HashMap
<
String
,
Object
>>
inputContent
=
checkMapper
.
getEquipInputByCheckId
(
param
);
List
<
HashMap
<
String
,
Object
>>
imgContent
=
checkMapper
.
getEquipInfoImgsByCheckIdsList
(
param
.
getCheckID
());
String
ipPort
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String ipPort = "http://" + fileIp + ":" + filePort + "/";
inputContent
.
forEach
(
e
->
{
List
<
String
>
photoList
=
new
ArrayList
<>();
//查询图片
...
...
@@ -1090,7 +1092,7 @@ public class CheckServiceImpl implements ICheckService {
//checkInputId
if
(
e
.
get
(
"inputId"
).
toString
().
equals
(
imgContent
.
get
(
i
).
get
(
"checkInputId"
).
toString
())
&&
e
.
get
(
"classifyId"
).
toString
().
equals
(
imgContent
.
get
(
i
).
get
(
"classifyId"
).
toString
()))
{
photoList
.
add
(
ipPort
+
imgContent
.
get
(
i
).
get
(
"photoData"
));
photoList
.
add
(
fileUrl
+
imgContent
.
get
(
i
).
get
(
"photoData"
));
}
if
(
PointStatusEnum
.
UNQUALIFIED
.
getName
().
equals
(
e
.
get
(
"IsOK"
).
toString
()))
{
...
...
@@ -1161,14 +1163,14 @@ public class CheckServiceImpl implements ICheckService {
Long
checkID
=
param
.
getCheckID
();
List
<
HashMap
<
String
,
Object
>>
content
=
checkMapper
.
getEquipInputByCheckId
(
param
);
List
<
HashMap
<
String
,
Object
>>
imgContent
=
checkMapper
.
getEquipInfoImgsByCheckIdsList
(
param
.
getCheckID
());
String
ipPort
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String ipPort = "http://" + fileIp + ":" + filePort + "/";
content
.
forEach
(
e
->
{
//查询图片
for
(
int
i
=
0
;
i
<
imgContent
.
size
();
i
++)
{
//checkInputId
if
(
e
.
get
(
"checkInputId"
).
toString
().
equals
(
imgContent
.
get
(
i
).
get
(
"checkInputId"
).
toString
())
&&
e
.
get
(
"classifyId"
).
toString
().
equals
(
imgContent
.
get
(
i
).
get
(
"classifyId"
).
toString
()))
{
e
.
put
(
"photoData"
,
ipPort
+
imgContent
.
get
(
i
).
get
(
"photoData"
));
e
.
put
(
"photoData"
,
fileUrl
+
imgContent
.
get
(
i
).
get
(
"photoData"
));
}
}
});
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/service/impl/LatentDangerServiceImpl.java
View file @
537f89d5
...
...
@@ -178,10 +178,12 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
@Value
(
"${server.port}"
)
private
String
port
;
@Value
(
"${LatentDanger.flow.photoUrls}"
)
private
String
photoUrlPre
;
@Value
(
"${upload.server.address}"
)
// @Value("${LatentDanger.flow.photoUrls}")
// private String photoUrlPre;
@Value
(
"${file.url}"
)
private
String
fileUrl
;
@Value
(
"${file.url}"
)
private
String
fileServerAddress
;
@Value
(
"${params.work.flow.processDefinitionKey}"
)
...
...
@@ -417,7 +419,7 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
String
[]
photoUrlsList
=
photoUrls
.
split
(
","
);
for
(
String
url
:
photoUrlsList
)
{
if
(!
""
.
equals
(
url
)){
photoUrlsB
.
append
(
photoUrlPre
+
url
);
photoUrlsB
.
append
(
fileUrl
+
url
);
photoUrlsB
.
append
(
","
);
}
}
...
...
@@ -438,7 +440,7 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
record
.
setExcuteUserId
(
userId
);
record
.
setExcuteDepartmentId
(
departmentId
);
if
(
flowJson
!=
null
&&
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNotBlank
(
flowJson
.
getString
(
"photoUrls"
))){
flowJson
.
put
(
"photoUrls"
,
photoUrlPre
+
flowJson
.
getString
(
"photoUrls"
));
flowJson
.
put
(
"photoUrls"
,
fileUrl
+
flowJson
.
getString
(
"photoUrls"
));
}
record
.
setFlowJson
(
flowJson
!=
null
?
flowJson
.
toJSONString
()
:
null
);
record
.
setFlowTaskName
(
taskName
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/service/impl/TaskServiceImpl.java
View file @
537f89d5
...
...
@@ -102,9 +102,10 @@ public class TaskServiceImpl implements ITaskService {
@Autowired
private
CheckMapper
checkMapper
;
@Value
(
"${LatentDanger.flow.photoUrls}"
)
private
String
photoUrl
;
// @Value("${LatentDanger.flow.photoUrls}")
// private String photoUrl;
@Value
(
"${file.url}"
)
private
String
fileUrl
;
@Override
@Transactional
public
Long
addNewTask
(
TaskParam
param
)
{
...
...
@@ -172,7 +173,7 @@ public class TaskServiceImpl implements ITaskService {
List
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
picList
=
taskPictureMapper
.
queryTaskFeedbackPic
(
feedback
.
getId
());
for
(
int
i
=
0
;
i
<
picList
.
size
()
;
i
++)
{
list
.
add
(
photo
Url
+
picList
.
get
(
i
));
list
.
add
(
file
Url
+
picList
.
get
(
i
));
}
feedbackBo
.
setFeedbackPics
(
list
);
feedbackList
.
add
(
feedbackBo
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/CheckController.java
View file @
537f89d5
...
...
@@ -98,12 +98,15 @@ public class CheckController extends AbstractBaseController {
@Value
(
"${linux.img.path}"
)
private
String
linuxImgPath
;
@Value
(
"${file.ip}"
)
private
String
fileIp
;
@Value
(
"${file.port}"
)
private
String
filePort
;
// @Value("${file.ip}")
// private String fileIp;
//
// @Value("${file.port}")
// private String filePort;
@Value
(
"${file.url}"
)
private
String
fileUrl
;
@Value
(
"${amosRefresh.patrol.topic}"
)
private
String
patrolTopic
;
@Autowired
...
...
@@ -191,9 +194,9 @@ public class CheckController extends AbstractBaseController {
CheckInfoPageParam
param
=
CheckPageParamUtil
.
fillCheckInfoParam
(
queryRequests
,
null
,
paramMap
);
List
<
Map
<
String
,
Object
>>
list
=
checkService
.
getCheckInfoImgsList
(
param
);
String
fileName
=
"巡检记录图片"
+
new
Date
().
getTime
()
+
".zip"
;
String
rootPath
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String rootPath = "http://" + fileIp + ":" + filePort + "/";
for
(
Map
<
String
,
Object
>
map
:
list
)
{
map
.
put
(
"photoData"
,
rootPath
+
map
.
get
(
"photoData"
).
toString
());
map
.
put
(
"photoData"
,
fileUrl
+
map
.
get
(
"photoData"
).
toString
());
}
FileHelper
.
exportZip
(
list
,
fileName
,
response
);
}
...
...
@@ -205,9 +208,9 @@ public class CheckController extends AbstractBaseController {
HttpServletResponse
response
)
{
List
<
Map
<
String
,
Object
>>
list
=
checkService
.
getCheckInfoImgsList
(
ids
);
String
fileName
=
"巡检记录图片"
+
new
Date
().
getTime
()
+
".zip"
;
String
rootPath
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String rootPath = "http://" + fileIp + ":" + filePort + "/";
for
(
Map
<
String
,
Object
>
map
:
list
)
{
map
.
put
(
"photoData"
,
rootPath
+
map
.
get
(
"photoData"
).
toString
());
map
.
put
(
"photoData"
,
fileUrl
+
map
.
get
(
"photoData"
).
toString
());
}
FileHelper
.
exportZip
(
list
,
fileName
,
response
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
537f89d5
...
...
@@ -137,12 +137,14 @@ public class CheckServiceImpl implements ICheckService {
@Autowired
private
IPointClassifyDao
iPointClassifyDao
;
@Value
(
"${file.ip}"
)
private
String
fileIp
;
@Value
(
"${file.port}"
)
private
String
filePort
;
// @Value("${file.ip}")
// private String fileIp;
//
// @Value("${file.port}")
// private String filePort;
@Value
(
"${file.url}"
)
private
String
fileUrl
;
@Override
public
Page
<
CheckInfoVo
>
getCheckInfo
(
String
toke
,
String
product
,
String
appKey
,
CheckInfoPageParam
param
)
{
long
total
=
checkMapper
.
countCheckInfoData
(
param
);
...
...
@@ -541,12 +543,12 @@ public class CheckServiceImpl implements ICheckService {
if
(!
list
.
isEmpty
())
{
// InetAddress address = InetAddress.getLocalHost();
// String ip = address.getHostAddress();
String
ipPort
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String ipPort = "http://" + fileIp + ":" + filePort + "/";
List
<
String
>
pointImgUrls
=
new
ArrayList
<>();
PointCheckDetailBo
pointCheckDetailBo
=
list
.
get
(
0
);
List
<
CheckShot
>
pointShot
=
checkShotDao
.
findAllByCheckIdAndCheckInputIdAndClassifyId
(
pointCheckDetailBo
.
getCheckId
(),
0
l
,
0
l
);
pointShot
.
forEach
(
action
->
{
pointImgUrls
.
add
(
ipPort
+
action
.
getPhotoData
());
pointImgUrls
.
add
(
fileUrl
+
action
.
getPhotoData
());
});
Check
check
=
checkDao
.
findById
(
checkId
).
get
();
pointCheckRespone
.
setPointId
(
pointCheckDetailBo
.
getPointId
());
...
...
@@ -583,7 +585,7 @@ public class CheckServiceImpl implements ICheckService {
List
<
String
>
pointInputImgUrls
=
new
ArrayList
<>();
List
<
CheckShot
>
pointInputShot
=
checkShotDao
.
findAllByCheckIdAndCheckInputIdAndClassifyId
(
pointCheckDetailBo
.
getCheckId
(),
action
.
getCheckInputId
(),
action
.
getClassifyId
());
pointInputShot
.
forEach
(
inputShot
->
{
pointInputImgUrls
.
add
(
ipPort
+
inputShot
.
getPhotoData
());
pointInputImgUrls
.
add
(
fileUrl
+
inputShot
.
getPhotoData
());
});
AppCheckInputRespone
appCheckInputRespone
=
new
AppCheckInputRespone
();
appCheckInputRespone
.
setCheckInputId
(
action
.
getCheckInputId
());
...
...
@@ -625,12 +627,12 @@ public class CheckServiceImpl implements ICheckService {
if
(!
list
.
isEmpty
())
{
// InetAddress address = InetAddress.getLocalHost();
// String ip = address.getHostAddress();
String
ipPort
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String ipPort = "http://" + fileIp + ":" + filePort + "/";
List
<
String
>
pointImgUrls
=
new
ArrayList
<>();
PointCheckDetailBo
pointCheckDetailBo
=
list
.
get
(
0
);
List
<
CheckShot
>
pointShot
=
checkShotDao
.
findAllByCheckIdAndCheckInputIdAndClassifyId
(
pointCheckDetailBo
.
getCheckId
(),
0
l
,
0
l
);
pointShot
.
forEach
(
action
->
{
pointImgUrls
.
add
(
ipPort
+
action
.
getPhotoData
());
pointImgUrls
.
add
(
fileUrl
+
action
.
getPhotoData
());
});
Check
check
=
checkDao
.
findById
(
checkId
).
get
();
pointCheckRespone
.
setPointId
(
pointCheckDetailBo
.
getPointId
());
...
...
@@ -671,7 +673,7 @@ public class CheckServiceImpl implements ICheckService {
List
<
String
>
pointInputImgUrls
=
new
ArrayList
<>();
List
<
CheckShot
>
pointInputShot
=
checkShotDao
.
findAllByCheckIdAndCheckInputIdAndClassifyId
(
pointCheckDetailBo
.
getCheckId
(),
action
.
getCheckInputId
(),
action
.
getClassifyId
());
pointInputShot
.
forEach
(
inputShot
->
{
pointInputImgUrls
.
add
(
ipPort
+
inputShot
.
getPhotoData
());
pointInputImgUrls
.
add
(
fileUrl
+
inputShot
.
getPhotoData
());
});
AppCheckInputRespone
appCheckInputRespone
=
new
AppCheckInputRespone
();
appCheckInputRespone
.
setCheckInputId
(
action
.
getCheckInputId
());
...
...
@@ -759,11 +761,11 @@ public class CheckServiceImpl implements ICheckService {
Map
<
String
,
Object
>
resp
=
new
HashMap
<>();
resp
.
put
(
"check"
,
check
);
resp
.
put
(
"inputItems"
,
checkInputItems
);
String
ipPort
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String ipPort = "http://" + fileIp + ":" + filePort + "/";
for
(
Map
<
String
,
Object
>
map
:
checkimgs
)
{
String
imgPath
=
map
.
get
(
"photoData"
).
toString
().
replace
(
"\\"
,
"/"
);
map
.
put
(
"photoData"
,
ipPort
+
imgPath
);
map
.
put
(
"openOperUrl"
,
"window.open('"
+
ipPort
+
imgPath
+
"')"
);
map
.
put
(
"photoData"
,
fileUrl
+
imgPath
);
map
.
put
(
"openOperUrl"
,
"window.open('"
+
fileUrl
+
imgPath
+
"')"
);
}
resp
.
put
(
"imgs"
,
checkimgs
);
return
resp
;
...
...
@@ -1107,7 +1109,7 @@ public class CheckServiceImpl implements ICheckService {
equip
.
put
(
"IsOK"
,
PointStatusEnum
.
QUALIFIED
.
getName
());
List
<
HashMap
<
String
,
Object
>>
inputContent
=
checkMapper
.
getEquipInputByCheckId
(
param
);
List
<
HashMap
<
String
,
Object
>>
imgContent
=
checkMapper
.
getEquipInfoImgsByCheckIdsList
(
param
.
getCheckID
());
String
ipPort
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String ipPort = "http://" + fileIp + ":" + filePort + "/";
inputContent
.
forEach
(
e
->
{
List
<
String
>
photoList
=
new
ArrayList
<>();
//查询图片
...
...
@@ -1115,7 +1117,7 @@ public class CheckServiceImpl implements ICheckService {
//checkInputId
if
(
e
.
get
(
"inputId"
).
toString
().
equals
(
imgContent
.
get
(
i
).
get
(
"checkInputId"
).
toString
())
&&
e
.
get
(
"classifyId"
).
toString
().
equals
(
imgContent
.
get
(
i
).
get
(
"classifyId"
).
toString
()))
{
photoList
.
add
(
ipPort
+
imgContent
.
get
(
i
).
get
(
"photoData"
));
photoList
.
add
(
fileUrl
+
imgContent
.
get
(
i
).
get
(
"photoData"
));
}
if
(
PointStatusEnum
.
UNQUALIFIED
.
getName
().
equals
(
e
.
get
(
"IsOK"
).
toString
()))
{
...
...
@@ -1167,14 +1169,14 @@ public class CheckServiceImpl implements ICheckService {
Long
checkID
=
param
.
getCheckID
();
List
<
HashMap
<
String
,
Object
>>
content
=
checkMapper
.
getEquipInputByCheckId
(
param
);
List
<
HashMap
<
String
,
Object
>>
imgContent
=
checkMapper
.
getEquipInfoImgsByCheckIdsList
(
param
.
getCheckID
());
String
ipPort
=
"http://"
+
fileIp
+
":"
+
filePort
+
"/"
;
//
String ipPort = "http://" + fileIp + ":" + filePort + "/";
content
.
forEach
(
e
->
{
//查询图片
for
(
int
i
=
0
;
i
<
imgContent
.
size
()
;
i
++)
{
//checkInputId
if
(
e
.
get
(
"checkInputId"
).
toString
().
equals
(
imgContent
.
get
(
i
).
get
(
"checkInputId"
).
toString
())
&&
e
.
get
(
"classifyId"
).
toString
().
equals
(
imgContent
.
get
(
i
).
get
(
"classifyId"
).
toString
())){
e
.
put
(
"photoData"
,
ipPort
+
imgContent
.
get
(
i
).
get
(
"photoData"
));
e
.
put
(
"photoData"
,
fileUrl
+
imgContent
.
get
(
i
).
get
(
"photoData"
));
}
}
});
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/LatentDangerServiceImpl.java
View file @
537f89d5
...
...
@@ -178,10 +178,12 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
@Value
(
"${server.port}"
)
private
String
port
;
@Value
(
"${LatentDanger.flow.photoUrls}"
)
private
String
photoUrlPre
;
@Value
(
"${upload.server.address}"
)
// @Value("${LatentDanger.flow.photoUrls}")
// private String photoUrlPre;
@Value
(
"${file.url}"
)
private
String
fileUrl
;
@Value
(
"${file.url}"
)
private
String
fileServerAddress
;
@Value
(
"${params.work.flow.processDefinitionKey}"
)
...
...
@@ -417,7 +419,7 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
String
[]
photoUrlsList
=
photoUrls
.
split
(
","
);
for
(
String
url
:
photoUrlsList
)
{
if
(!
""
.
equals
(
url
)){
photoUrlsB
.
append
(
photoUrlPre
+
url
);
photoUrlsB
.
append
(
fileUrl
+
url
);
photoUrlsB
.
append
(
","
);
}
}
...
...
@@ -438,7 +440,7 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
record
.
setExcuteUserId
(
userId
);
record
.
setExcuteDepartmentId
(
departmentId
);
if
(
flowJson
!=
null
&&
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNotBlank
(
flowJson
.
getString
(
"photoUrls"
))){
flowJson
.
put
(
"photoUrls"
,
photoUrlPre
+
flowJson
.
getString
(
"photoUrls"
));
flowJson
.
put
(
"photoUrls"
,
fileUrl
+
flowJson
.
getString
(
"photoUrls"
));
}
record
.
setFlowJson
(
flowJson
!=
null
?
flowJson
.
toJSONString
()
:
null
);
record
.
setFlowTaskName
(
taskName
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/TaskServiceImpl.java
View file @
537f89d5
...
...
@@ -103,9 +103,10 @@ public class TaskServiceImpl implements ITaskService {
@Autowired
private
CheckMapper
checkMapper
;
@Value
(
"${LatentDanger.flow.photoUrls}"
)
private
String
photoUrl
;
// @Value("${LatentDanger.flow.photoUrls}")
// private String photoUrl;
@Value
(
"${file.url}"
)
private
String
fileUrl
;
@Override
@Transactional
public
Long
addNewTask
(
TaskParam
param
)
{
...
...
@@ -173,7 +174,7 @@ public class TaskServiceImpl implements ITaskService {
List
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
picList
=
taskPictureMapper
.
queryTaskFeedbackPic
(
feedback
.
getId
());
for
(
int
i
=
0
;
i
<
picList
.
size
()
;
i
++)
{
list
.
add
(
photo
Url
+
picList
.
get
(
i
));
list
.
add
(
file
Url
+
picList
.
get
(
i
));
}
feedbackBo
.
setFeedbackPics
(
list
);
feedbackList
.
add
(
feedbackBo
);
...
...
amos-boot-system-fas/src/main/resources/application-dev.properties
View file @
537f89d5
...
...
@@ -55,5 +55,5 @@ emqx.broker=tcp://172.16.10.85:1883
emqx.user-name
=
super
emqx.password
=
a123456
#文件服务器地址
file.
downLoad.
url
=
http://39.98.45.134:9000/
file.url
=
http://39.98.45.134:9000/
amos-boot-system-fas/src/main/resources/application-docker.properties
View file @
537f89d5
...
...
@@ -50,5 +50,5 @@ emqx.broker=tcp://172.16.11.33:1883
emqx.user-name
=
admin
emqx.password
=
public
#文件服务器地址
file.
downLoad.
url
=
http://39.98.246.31:8888/
file.url
=
http://39.98.246.31:8888/
amos-boot-system-fas/src/main/resources/application-qa.properties
View file @
537f89d5
...
...
@@ -55,5 +55,5 @@ emqx.broker=tcp://172.16.11.33:1883
emqx.user-name
=
admin
emqx.password
=
public
#文件服务器地址
file.
downLoad.
url
=
http://39.98.246.31:8888/
file.url
=
http://39.98.246.31:8888/
amos-boot-system-fas/src/main/resources/application-test.properties
View file @
537f89d5
...
...
@@ -50,5 +50,5 @@ emqx.broker=tcp://172.16.11.33:1883
emqx.user-name
=
admin
emqx.password
=
public
#文件服务器地址
file.
downLoad.
url
=
http://39.98.246.31:8888/
file.url
=
http://39.98.246.31:8888/
amos-boot-system-knowledgebase/src/main/resources/application-dev.properties
View file @
537f89d5
...
...
@@ -53,6 +53,6 @@ emqx.max-inflight=1000
diy-config.report.record-data
=
true
#pic server uri
pic-server.uri
=
http://39.98.45.134:9000/
file.url
=
http://39.98.45.134:9000/
#pic router mark
pic-server.router
=
/fileURI/
\ No newline at end of file
amos-boot-system-knowledgebase/src/main/resources/application-qa.properties
View file @
537f89d5
...
...
@@ -54,6 +54,6 @@ emqx.max-inflight=1000
diy-config.report.record-data
=
true
#pic server uri
pic-server.uri
=
http://39.98.246.31:8888/
file.url
=
http://39.98.246.31:8888/
#pic router mark
pic-server.router
=
/fileURI/
\ No newline at end of file
amos-boot-system-knowledgebase/src/main/resources/application-test.properties
View file @
537f89d5
...
...
@@ -54,6 +54,6 @@ emqx.max-inflight=1000
diy-config.report.record-data
=
false
#pic server uri
pic-server.uri
=
http://39.98.246.31:8888/
file.url
=
http://39.98.246.31:8888/
#pic router mark
pic-server.router
=
/fileURI/
\ No newline at end of file
amos-boot-system-maintenance/src/main/resources/application-dev.properties
View file @
537f89d5
...
...
@@ -5,10 +5,6 @@ spring.datasource.password= root_123
## eureka properties:
eureka.client.serviceUrl.defaultZone
=
http://172.16.10.72:10001/eureka/
#Photo--图片服务器地址
file.ip
=
39.98.45.134
file.port
=
9000
security.password
=
a1234560
security.loginId
=
jc_wjk006
security.productWeb
=
STUDIO_APP_WEB
...
...
@@ -46,10 +42,6 @@ spring.http.multipart.MaxRequestSize = 80480000
windows.img.path
=
D:
\\
linux.img.path
=
/
#隐患治理图片上传地址
LatentDanger.flow.photoUrls
=
http://39.98.45.134:9000/
## emqx
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}-1
...
...
@@ -58,5 +50,4 @@ emqx.user-name=super
emqx.password
=
a123456
emqx.max-inflight
=
1000
upload.root.path
=
D:/nginx/upload/
upload.server.address
=
http://39.98.45.134:9000/
\ No newline at end of file
file.url
=
http://39.98.45.134:9000/
\ No newline at end of file
amos-boot-system-patrol/src/main/resources/application-dev.properties
View file @
537f89d5
...
...
@@ -26,10 +26,6 @@ spring.datasource.hikari.maximum-pool-size = 10
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
#Photo--图片服务器地址
file.ip
=
39.98.45.134
file.port
=
9000
security.password
=
a1234560
security.loginId
=
jc_wjk006
security.productWeb
=
STUDIO_APP_WEB
...
...
@@ -82,10 +78,6 @@ spring.http.multipart.MaxRequestSize = 80480000
windows.img.path
=
D:
\\
linux.img.path
=
/
#隐患治理图片上传地址
LatentDanger.flow.photoUrls
=
http://172.16.10.72/
## emqx
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}-1
...
...
@@ -94,5 +86,4 @@ emqx.user-name=super
emqx.password
=
a123456
emqx.max-inflight
=
1000
upload.root.path
=
D:/nginx/upload/
upload.server.address
=
http://39.98.45.134:9000/
\ No newline at end of file
file.url
=
http://39.98.45.134:9000/
\ No newline at end of file
amos-boot-system-patrol/src/main/resources/application-docker.properties
View file @
537f89d5
...
...
@@ -21,9 +21,6 @@ spring.datasource.hikari.maximum-pool-size = 10
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
#Photo--图片服务器地址
file.ip
=
39.98.246.31
file.port
=
8888
security.password
=
a1234560
security.loginId
=
jc_wjk006
...
...
@@ -77,10 +74,6 @@ spring.http.multipart.MaxRequestSize = 80480000
windows.img.path
=
D:
\\
linux.img.path
=
/
#隐患治理图片上传地址
LatentDanger.flow.photoUrls
=
http://172.16.10.72/
## emqx
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}-1
...
...
@@ -89,5 +82,4 @@ emqx.user-name=super
emqx.password
=
a123456
emqx.max-inflight
=
1000
upload.root.path
=
D:/nginx/upload/
upload.server.address
=
http://39.100.241.164:9999/
\ No newline at end of file
file.url
=
http://39.98.45.134:9000/
\ No newline at end of file
amos-boot-system-patrol/src/main/resources/application-test.properties
View file @
537f89d5
...
...
@@ -21,9 +21,6 @@ spring.datasource.hikari.maximum-pool-size = 10
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
#Photo--图片服务器地址
file.ip
=
39.98.246.31
file.port
=
8888
security.password
=
a1234560
security.loginId
=
jc_wjk006
...
...
@@ -77,10 +74,6 @@ spring.http.multipart.MaxRequestSize = 80480000
windows.img.path
=
D:
\\
linux.img.path
=
/
#隐患治理图片上传地址
LatentDanger.flow.photoUrls
=
http://172.16.10.72/
## emqx
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}-1
...
...
@@ -89,5 +82,4 @@ emqx.user-name=super
emqx.password
=
a123456
emqx.max-inflight
=
1000
upload.root.path
=
D:/nginx/upload/
upload.server.address
=
http://39.100.241.164:9999/
\ No newline at end of file
file.url
=
http://39.98.45.134:9000/
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment