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
4dd56618
Commit
4dd56618
authored
Jun 18, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register' of…
Merge branch 'develop_tzs_register' of
http://36.40.66.175:5000/moa/amos-boot-biz
into develop_tzs_register
parents
2e4f8fb3
aedbe27b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
+26
-6
PressureVesselListener.java
...mos/boot/module/jg/biz/config/PressureVesselListener.java
+4
-3
ICommonService.java
...ejoin/amos/boot/module/jg/biz/service/ICommonService.java
+7
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+12
-0
installation-notification-report.ftl
.../resources/templates/installation-notification-report.ftl
+3
-3
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/config/PressureVesselListener.java
View file @
4dd56618
...
...
@@ -33,6 +33,7 @@ import java.util.concurrent.Executors;
import
java.util.concurrent.ThreadFactory
;
import
java.util.concurrent.atomic.AtomicLong
;
import
static
com
.
alibaba
.
fastjson
.
JSON
.
toJSONString
;
import
static
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
enums
.
CylinderTypeEnum
.
SPECIAL_CYLINDER
;
@Slf4j
@Data
...
...
@@ -171,7 +172,7 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
}
private
void
checkInspectOrg
(
String
inspectOrgCode
){
List
<
Map
<
String
,
Object
>>
InspectOrgList
=
commonService
.
get
UnitListByType
(
"inspection"
,
"
"
);
List
<
Map
<
String
,
Object
>>
InspectOrgList
=
commonService
.
get
AllInspectionInfo
(
"inspection
"
);
if
(
findUseCode
(
InspectOrgList
,
inspectOrgCode
)
==
null
)
{
result
.
append
(
"未查询到该检验机构"
);
}
...
...
@@ -258,16 +259,16 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
//检验检测
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfo
=
new
IdxBizJgInspectionDetectionInfo
();
BeanUtils
.
copyProperties
(
data
,
inspectionDetectionInfo
);
List
<
Map
<
String
,
Object
>>
InspectOrgList
=
commonService
.
getUnitListByType
(
"inspection"
,
""
);
inspectionDetectionInfo
.
setInspectOrgCode
(
data
.
getInspectOrgCode
());
inspectionDetectionInfo
.
setRecord
(
record
);
inspectionDetectionInfo
.
setRecDate
(
date
);
inspectionDetectionInfo
.
setInspectType
(
"ZZJDJY"
);
inspectionDetectionInfo
.
setInspectConclusion
(
"6040"
);
//默认合格
inspectionDetectionInfo
.
setInspectDate
(
DateUtil
.
parse
(
data
.
getInspectDate
(),
"yyyy-MM-dd"
));
// 根据条件确定增加的年数
inspectionDetectionInfo
.
setNextInspectDate
(
Date
.
from
(
LocalDate
.
parse
(
data
.
getInspectDate
(),
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
))
.
plusYears
(
3
)
.
plusYears
(
SPECIAL_CYLINDER
.
getCode
().
equals
(
equDefineCode
)
?
3
:
4
)
.
atStartOfDay
(
ZoneId
.
systemDefault
())
.
toInstant
()));
inspectionDetectionInfoList
.
add
(
inspectionDetectionInfo
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/ICommonService.java
View file @
4dd56618
...
...
@@ -35,6 +35,13 @@ public interface ICommonService {
List
<
Map
<
String
,
Object
>>
getUnitListByType
(
String
type
,
String
business
);
/**
* 查询所有检验检测信息
* @param type 类型
* @return list
*/
List
<
Map
<
String
,
Object
>>
getAllInspectionInfo
(
String
type
);
List
<
Map
<
String
,
Object
>>
getSecurityAdmin
(
String
type
,
String
useUnitCode
);
Map
<
String
,
Object
>
getUserInfo
(
String
sequenceNbr
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
4dd56618
...
...
@@ -758,6 +758,18 @@ public class CommonServiceImpl implements ICommonService {
}
@Override
public
List
<
Map
<
String
,
Object
>>
getAllInspectionInfo
(
String
type
)
{
List
<
Map
<
String
,
Object
>>
unitList
=
new
ArrayList
<>();
if
(
"inspection"
.
equals
(
type
))
{
Systemctl
.
dictionarieClient
.
dictValues
(
"OLD_INSPECTION_TESTING_UNIT"
).
getResult
()
.
forEach
(
x
->
convertAndAddToUnitList
(
x
,
unitList
));
}
unitList
.
addAll
(
commonMapper
.
getUnitListByType
(
type
));
return
unitList
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
getSecurityAdmin
(
String
type
,
String
companyCode
)
{
if
(
ObjectUtils
.
isEmpty
(
companyCode
))
{
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/templates/installation-notification-report.ftl
View file @
4dd56618
...
...
@@ -1469,7 +1469,7 @@
</w:tblCellMar>
</w:tblPrEx>
<w:trPr>
<w:trHeight
w:val=
"1
247
"
w:h-rule=
"exact"
/>
<w:trHeight
w:val=
"1
781
"
w:h-rule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
<w:tc>
...
...
@@ -2619,7 +2619,7 @@
</w:tblCellMar>
</w:tblPrEx>
<w:trPr>
<w:trHeight
w:val=
"
1134
"
w:h-rule=
"exact"
/>
<w:trHeight
w:val=
"
791
"
w:h-rule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
<w:tc>
...
...
@@ -2997,7 +2997,7 @@
</w:tblCellMar>
</w:tblPrEx>
<w:trPr>
<w:trHeight
w:val=
"
1134
"
w:h-rule=
"exact"
/>
<w:trHeight
w:val=
"
791
"
w:h-rule=
"exact"
/>
<w:jc
w:val=
"center"
/>
</w:trPr>
<w:tc>
...
...
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