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
00456dda
Commit
00456dda
authored
Feb 08, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):属地监管部门筛选
parent
c9e2a995
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
42 deletions
+7
-42
JgUseRegistration.java
...oin/amos/boot/module/jg/api/entity/JgUseRegistration.java
+0
-13
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+2
-2
JgVehicleInformationMapper.xml
.../src/main/resources/mapper/JgVehicleInformationMapper.xml
+5
-1
DataDockServiceImpl.java
.../boot/module/jg/biz/service/impl/DataDockServiceImpl.java
+0
-2
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+0
-24
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/entity/JgUseRegistration.java
View file @
00456dda
...
@@ -273,17 +273,4 @@ public class JgUseRegistration extends BaseEntity {
...
@@ -273,17 +273,4 @@ public class JgUseRegistration extends BaseEntity {
*/
*/
@TableField
(
"origin_project_contraption_ids"
)
@TableField
(
"origin_project_contraption_ids"
)
private
String
originProjectContraptionIds
;
private
String
originProjectContraptionIds
;
/**
* 属地监管部门code
*/
@TableField
(
value
=
"org_branch_code"
)
private
String
orgBranchCode
;
/**
* 属地监管部门name
*/
@TableField
(
value
=
"org_branch_name"
)
private
String
orgBranchName
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
00456dda
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
ur.audit_status as auditStatus,
ur.audit_status as auditStatus,
date_format(ur.reg_date,'%Y-%m-%d') as regDate,
date_format(ur.reg_date,'%Y-%m-%d') as regDate,
ur.use_unit_name as useUnitName,
ur.use_unit_name as useUnitName,
ur.
org_branch_code as orgBranch
Code,
ur.
supervision_org_code as supervisionOrg
Code,
ur.status,
ur.status,
ur.receive_org_name as receiveOrgName,
ur.receive_org_name as receiveOrgName,
ur.use_address as place,
ur.use_address as place,
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
and use_unit_credit_code = #{dto.useUnitCode}
and use_unit_credit_code = #{dto.useUnitCode}
</if>
</if>
<if
test=
"dto.orgBranchCode != null and dto.orgBranchCode != ''"
>
<if
test=
"dto.orgBranchCode != null and dto.orgBranchCode != ''"
>
and
orgBranch
Code like concat(#{dto.orgBranchCode},'%')
and
supervisionOrg
Code like concat(#{dto.orgBranchCode},'%')
</if>
</if>
<if
test=
"dto.auditPassDateStart != null and dto.auditPassDateEnd != null"
>
<if
test=
"dto.auditPassDateStart != null and dto.auditPassDateEnd != null"
>
AND auditPassDate BETWEEN #{dto.auditPassDateStart} AND #{dto.auditPassDateEnd}
AND auditPassDate BETWEEN #{dto.auditPassDateStart} AND #{dto.auditPassDateEnd}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgVehicleInformationMapper.xml
View file @
00456dda
...
@@ -27,6 +27,9 @@
...
@@ -27,6 +27,9 @@
<if
test=
"dto.auditPassDate != null and dto.auditPassDate != ''"
>
<if
test=
"dto.auditPassDate != null and dto.auditPassDate != ''"
>
and tjvi.audit_pass_date like concat('%',DATE_FORMAT(#{dto.auditPassDate},'%Y-%m-%d'),'%')
and tjvi.audit_pass_date like concat('%',DATE_FORMAT(#{dto.auditPassDate},'%Y-%m-%d'),'%')
</if>
</if>
<if
test=
"dto.orgBranchCode != null and dto.orgBranchCode != ''"
>
and tjvi.org_branch_code like concat(#{dto.orgBranchCode},'%')
</if>
<if
test=
"roleIds != null and dto.dataType == 'supervision'"
>
<if
test=
"roleIds != null and dto.dataType == 'supervision'"
>
<foreach
collection=
'roleIds'
item=
'role'
open=
'and ('
close=
')'
separator=
'or'
>
<foreach
collection=
'roleIds'
item=
'role'
open=
'and ('
close=
')'
separator=
'or'
>
instance_status like concat('%',#{role},'%')
instance_status like concat('%',#{role},'%')
...
@@ -98,7 +101,8 @@
...
@@ -98,7 +101,8 @@
tjvi.gas_num as gasNum,
tjvi.gas_num as gasNum,
date_format(tjvi.create_date,'%Y-%m-%d') as createDate,
date_format(tjvi.create_date,'%Y-%m-%d') as createDate,
tjvi.cancel_reason as cancelReason,
tjvi.cancel_reason as cancelReason,
tjvi.reg_type as regType
tjvi.reg_type as regType,
tjvi.org_branch_code as orgBranchCode
from tzs_jg_vehicle_information tjvi
from tzs_jg_vehicle_information tjvi
</sql>
</sql>
...
...
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/DataDockServiceImpl.java
View file @
00456dda
...
@@ -1863,8 +1863,6 @@ public class DataDockServiceImpl {
...
@@ -1863,8 +1863,6 @@ public class DataDockServiceImpl {
.
setCreateUserName
(
paramsDto
.
getExecUserName
())
.
setCreateUserName
(
paramsDto
.
getExecUserName
())
.
setProjectContraptionId
(
String
.
valueOf
(
proCon
.
getSequenceNbr
()))
.
setProjectContraptionId
(
String
.
valueOf
(
proCon
.
getSequenceNbr
()))
.
setProjectContraption
(
paramsDto
.
getProjectContraption
())
.
setProjectContraption
(
paramsDto
.
getProjectContraption
())
.
setOrgBranchCode
(
paramsDto
.
getOrgBranchCode
())
.
setOrgBranchName
(
paramsDto
.
getOrgBranchName
())
.
setRegDate
(
new
Date
());
.
setRegDate
(
new
Date
());
useReg
.
setSequenceNbr
(
useRegseq
);
useReg
.
setSequenceNbr
(
useRegseq
);
jgUseRegistrationServiceImpl
.
save
(
useReg
);
jgUseRegistrationServiceImpl
.
save
(
useReg
);
...
...
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 @
00456dda
...
@@ -606,14 +606,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -606,14 +606,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
}
}
});
});
}
}
// 属地监管部门
Optional
.
ofNullable
(
map
.
get
(
"orgBranchCode"
).
toString
())
.
filter
(
code
->
code
.
contains
(
"_"
))
.
map
(
code
->
code
.
split
(
"_"
))
.
ifPresent
(
splitOrgBranchCode
->
{
jgUseRegistration
.
setOrgBranchCode
(
splitOrgBranchCode
[
0
]);
jgUseRegistration
.
setOrgBranchName
(
splitOrgBranchCode
[
1
]);
});
jgUseRegistration
.
setUseAddress
(
jgUseRegistration
.
getUseAddress
()
+
map
.
get
(
"address"
));
jgUseRegistration
.
setUseAddress
(
jgUseRegistration
.
getUseAddress
()
+
map
.
get
(
"address"
));
if
(
map
.
containsKey
(
"type"
)
&&
"edit"
.
equals
(
String
.
valueOf
(
map
.
get
(
"type"
))))
{
if
(
map
.
containsKey
(
"type"
)
&&
"edit"
.
equals
(
String
.
valueOf
(
map
.
get
(
"type"
))))
{
jgUseRegistration
.
setUseUnitCreditCode
(
null
);
jgUseRegistration
.
setUseUnitCreditCode
(
null
);
...
@@ -837,14 +829,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -837,14 +829,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
useRegistration
.
setReceiveCompanyCode
(
result
.
getCompanyCode
());
useRegistration
.
setReceiveCompanyCode
(
result
.
getCompanyCode
());
useRegistration
.
setReceiveOrgName
(
splitReceiveOrgCode
[
1
]);
useRegistration
.
setReceiveOrgName
(
splitReceiveOrgCode
[
1
]);
});
});
// 属地监管部门
Optional
.
ofNullable
(
useRegistration
.
getOrgBranchCode
())
.
filter
(
code
->
code
.
contains
(
"_"
))
.
map
(
code
->
code
.
split
(
"_"
))
.
ifPresent
(
splitOrgBranchCode
->
{
useRegistration
.
setOrgBranchCode
(
splitOrgBranchCode
[
0
]);
useRegistration
.
setOrgBranchName
(
splitOrgBranchCode
[
1
]);
});
// 安全管理员
// 安全管理员
Optional
.
ofNullable
(
map
.
getString
(
"safetyManager"
))
Optional
.
ofNullable
(
map
.
getString
(
"safetyManager"
))
...
@@ -3607,14 +3591,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3607,14 +3591,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
});
});
useStreetName
=
atomicUseStreet
.
get
();
useStreetName
=
atomicUseStreet
.
get
();
}
}
// 属地监管部门
Optional
.
ofNullable
(
map
.
get
(
"orgBranchCode"
).
toString
())
.
filter
(
code
->
code
.
contains
(
"_"
))
.
map
(
code
->
code
.
split
(
"_"
))
.
ifPresent
(
splitOrgBranchCode
->
{
jgUseRegistration
.
setOrgBranchCode
(
splitOrgBranchCode
[
0
]);
jgUseRegistration
.
setOrgBranchName
(
splitOrgBranchCode
[
1
]);
});
jgUseRegistration
.
setUseAddress
(
jgUseRegistration
.
getUseAddress
()
+
map
.
get
(
"address"
));
jgUseRegistration
.
setUseAddress
(
jgUseRegistration
.
getUseAddress
()
+
map
.
get
(
"address"
));
if
(
map
.
containsKey
(
"edit"
)
&&
"1"
.
equals
(
String
.
valueOf
(
map
.
get
(
"edit"
))))
{
if
(
map
.
containsKey
(
"edit"
)
&&
"1"
.
equals
(
String
.
valueOf
(
map
.
get
(
"edit"
))))
{
...
...
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