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
1aa9179c
Commit
1aa9179c
authored
Apr 02, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(JG):使用登记按单位办理代码提交
parent
1e2406d4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
5 deletions
+21
-5
JgUseRegistrationMapper.java
...os/boot/module/jg/api/mapper/JgUseRegistrationMapper.java
+6
-0
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+0
-0
JgUseRegistrationController.java
...module/jg/biz/controller/JgUseRegistrationController.java
+2
-3
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+13
-2
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgUseRegistrationMapper.java
View file @
1aa9179c
...
@@ -44,8 +44,14 @@ public interface JgUseRegistrationMapper extends BaseMapper<JgUseRegistration> {
...
@@ -44,8 +44,14 @@ public interface JgUseRegistrationMapper extends BaseMapper<JgUseRegistration> {
Page
<
JSONObject
>
queryForUnitVesselEquipmentPage
(
@Param
(
"page"
)
Page
<
JSONObject
>
page
,
@Param
(
"jsonObject"
)
JSONObject
jsonObject
);
Page
<
JSONObject
>
queryForUnitVesselEquipmentPage
(
@Param
(
"page"
)
Page
<
JSONObject
>
page
,
@Param
(
"jsonObject"
)
JSONObject
jsonObject
);
@MapKey
(
"records"
)
List
<
Map
<
String
,
Object
>>
queryForUnitVesselEquipment
(
@Param
(
"records"
)
List
<
String
>
records
);
Page
<
JSONObject
>
queryForUnitPipelineEquipmentPage
(
@Param
(
"page"
)
Page
<
JSONObject
>
page
,
@Param
(
"jsonObject"
)
JSONObject
jsonObject
);
Page
<
JSONObject
>
queryForUnitPipelineEquipmentPage
(
@Param
(
"page"
)
Page
<
JSONObject
>
page
,
@Param
(
"jsonObject"
)
JSONObject
jsonObject
);
@MapKey
(
"records"
)
List
<
Map
<
String
,
Object
>>
queryForUnitPipelineEquipment
(
@Param
(
"records"
)
List
<
String
>
records
);
@MapKey
(
"id"
)
@MapKey
(
"id"
)
List
<
Map
<
String
,
Object
>>
selectEquipList
(
@Param
(
"id"
)
Long
id
);
List
<
Map
<
String
,
Object
>>
selectEquipList
(
@Param
(
"id"
)
Long
id
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
1aa9179c
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgUseRegistrationController.java
View file @
1aa9179c
...
@@ -165,9 +165,8 @@ public class JgUseRegistrationController extends BaseController {
...
@@ -165,9 +165,8 @@ public class JgUseRegistrationController extends BaseController {
@GetMapping
(
value
=
"/export"
)
@GetMapping
(
value
=
"/export"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"导出使用登记证"
,
notes
=
"导出使用登记证"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"导出使用登记证"
,
notes
=
"导出使用登记证"
)
public
void
exportImageZip
(
HttpServletResponse
response
,
@RequestParam
(
"sequenceNbr"
)
String
sequenceNbr
,
public
void
exportImageZip
(
HttpServletResponse
response
,
@RequestParam
(
"sequenceNbr"
)
String
sequenceNbr
,
@RequestParam
(
value
=
"printType"
,
defaultValue
=
"0"
)
String
printType
,
@RequestParam
(
value
=
"printType"
,
defaultValue
=
"0"
)
String
printType
)
{
@RequestParam
(
value
=
"manageType"
,
defaultValue
=
""
)
String
manageType
)
{
jgUseRegistrationServiceImpl
.
exportUseRegistrationCertificate
(
sequenceNbr
,
response
,
printType
);
jgUseRegistrationServiceImpl
.
exportUseRegistrationCertificate
(
sequenceNbr
,
response
,
printType
,
manageType
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
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/JgUseRegistrationServiceImpl.java
View file @
1aa9179c
...
@@ -132,6 +132,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -132,6 +132,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
private
JgUseRegistrationEqServiceImpl
jgUseRegistrationEqService
;
private
JgUseRegistrationEqServiceImpl
jgUseRegistrationEqService
;
@Autowired
@Autowired
private
IdxBizJgInspectionDetectionInfoServiceImpl
idxBizJgInspectionDetectionInfoService
;
private
IdxBizJgInspectionDetectionInfoServiceImpl
idxBizJgInspectionDetectionInfoService
;
@Autowired
private
JgUseRegistrationMapper
jgUseRegistrationMapper
;
/**
/**
* @param auditPassDate 通过时间
* @param auditPassDate 通过时间
...
@@ -1166,6 +1168,15 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1166,6 +1168,15 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
LambdaQueryWrapper
<
IdxBizJgRegisterInfo
>
wrapper
=
new
QueryWrapper
<
IdxBizJgRegisterInfo
>().
lambda
().
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
record
);
LambdaQueryWrapper
<
IdxBizJgRegisterInfo
>
wrapper
=
new
QueryWrapper
<
IdxBizJgRegisterInfo
>().
lambda
().
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
record
);
IdxBizJgRegisterInfo
idxBizJgRegisterInfo
=
idxBizJgRegisterInfoMapper
.
selectOne
(
wrapper
);
IdxBizJgRegisterInfo
idxBizJgRegisterInfo
=
idxBizJgRegisterInfoMapper
.
selectOne
(
wrapper
);
jsonObject
.
put
(
"carNumber"
,
idxBizJgRegisterInfo
.
getCarNumber
());
jsonObject
.
put
(
"carNumber"
,
idxBizJgRegisterInfo
.
getCarNumber
());
}
else
{
List
<
Map
<
String
,
Object
>>
equipmentLists
=
(
List
<
Map
<
String
,
Object
>>)
jsonObject
.
get
(
"equipmentLists"
);
List
<
String
>
records
=
equipmentLists
.
stream
().
map
(
v
->
(
String
)
v
.
get
(
"record"
)).
collect
(
Collectors
.
toList
());
jsonObject
.
remove
(
"equipmentLists"
);
if
(
"2300"
.
equals
(
jsonObject
.
get
(
"EQU_CATEGORY_CODE"
))){
jsonObject
.
put
(
"equipmentLists"
,
jgUseRegistrationMapper
.
queryForUnitVesselEquipment
(
records
));
}
else
{
jsonObject
.
put
(
"equipmentLists"
,
jgUseRegistrationMapper
.
queryForUnitPipelineEquipment
(
records
));
}
}
}
// 转化 附件 字段
// 转化 附件 字段
commonServiceImpl
.
convertStringToJsonobject
(
jsonObject
,
jsonFields
);
commonServiceImpl
.
convertStringToJsonobject
(
jsonObject
,
jsonFields
);
...
@@ -1295,11 +1306,11 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1295,11 +1306,11 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
return
null
;
return
null
;
}
}
public
void
exportUseRegistrationCertificate
(
String
sequenceNbr
,
HttpServletResponse
response
,
String
printType
,
String
manageType
)
{
public
void
exportUseRegistrationCertificate
(
String
sequenceNbr
,
HttpServletResponse
response
,
String
printType
)
{
Map
<
String
,
Object
>
exportParamsMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
exportParamsMap
=
new
HashMap
<>();
exportParamsMap
.
put
(
"manageType"
,
manageType
);
// 查询使用登记详情
// 查询使用登记详情
JgUseRegistration
useRegistration
=
this
.
getById
(
sequenceNbr
);
JgUseRegistration
useRegistration
=
this
.
getById
(
sequenceNbr
);
exportParamsMap
.
put
(
"manageType"
,
useRegistration
.
getManageType
());
LambdaQueryWrapper
<
JgUseRegistrationEq
>
useEqLambda
=
new
QueryWrapper
<
JgUseRegistrationEq
>().
lambda
();
LambdaQueryWrapper
<
JgUseRegistrationEq
>
useEqLambda
=
new
QueryWrapper
<
JgUseRegistrationEq
>().
lambda
();
useEqLambda
.
eq
(
JgUseRegistrationEq:
:
getEquipTransferId
,
sequenceNbr
);
useEqLambda
.
eq
(
JgUseRegistrationEq:
:
getEquipTransferId
,
sequenceNbr
);
JgUseRegistrationEq
useRegistrationEq
=
jgRelationEquipMapper
.
selectOne
(
useEqLambda
);
JgUseRegistrationEq
useRegistrationEq
=
jgRelationEquipMapper
.
selectOne
(
useEqLambda
);
...
...
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