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
6caa9a95
Commit
6caa9a95
authored
Jan 06, 2025
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.人员增加设备类型
2.修改企业json
parent
e6417a1b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
13 deletions
+11
-13
DPFilterParamDto.java
...oin/amos/boot/module/common/api/dto/DPFilterParamDto.java
+4
-0
PlanTask.xml
...ule-statistics-api/src/main/resources/mapper/PlanTask.xml
+2
-2
EnterpriseBizByTCMServiceImpl.java
...istcs/biz/service/impl/EnterpriseBizByTCMServiceImpl.java
+3
-9
company.json
...odule-statistics-biz/src/main/resources/json/company.json
+2
-2
No files found.
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/DPFilterParamDto.java
View file @
6caa9a95
...
...
@@ -85,4 +85,8 @@ public class DPFilterParamDto {
* 业务状态
*/
private
String
status
;
private
String
equipType
;
private
String
phone
;
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/PlanTask.xml
View file @
6caa9a95
...
...
@@ -45,10 +45,10 @@
<if
test=
"map.planName!=null"
>
and c.name like concat('%',#{map.planName},'%')
</if>
<if
test=
"map.routeName!=null"
>
and e.name like concat('%',#{map.routeName},'%')
</if>
<if
test=
"map.beginDate==''and map.beginDate!=null"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate}
and a.begin_Time
<![CDATA[>=]]>
#{
map.
beginDate}
</if>
<if
test=
"map.endDate != null and map.endDate != ''"
>
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
AND a.end_Time
<![CDATA[<=]]>
#{
map.
endDate}
</if>
<if
test=
"map.status!=null"
>
and b.is_finish = #{map.status}
</if>
<if
test=
"map.isOk!=null"
>
and pc.is_ok = #{map.isOk}
</if>
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/EnterpriseBizByTCMServiceImpl.java
View file @
6caa9a95
...
...
@@ -296,26 +296,20 @@ public class EnterpriseBizByTCMServiceImpl {
tzBaseEnterpriseInfoDto
.
setEquipCategory
(
ObjectUtils
.
isEmpty
(
tzBaseEnterpriseInfo
.
getEquipCategory
())
?
new
ArrayList
()
:
JSON
.
parseArray
(
tzBaseEnterpriseInfo
.
getEquipCategory
()));
}
ReginParams
selectedOrgInfo
=
getSelectedOrgInfo
();
String
companyType
=
selectedOrgInfo
.
getCompany
().
getCompanyType
();
// 修改当前登录人选择的单位类型
tzBaseEnterpriseInfoDto
.
setUnitType
(
companyType
);
// 当前用户选择角色的许可信息(使用。。安改维。。检验检测。。)
List
<
BaseUnitLicence
>
unitLicences
=
baseUnitLicenceMapper
.
selectList
(
new
LambdaQueryWrapper
<
BaseUnitLicence
>()
.
eq
(
BaseUnitLicence:
:
getUnitCode
,
tzBaseEnterpriseInfo
.
getUseCode
()));
List
<
BaseUnitLicenceDto
>
unitLicenceDtos
=
new
ArrayList
<>();
List
<
BaseUnitLicence
>
unitLicencesCollect
;
if
(
"监管机构"
.
equals
(
companyType
))
{
if
(
"监管机构"
.
equals
(
tzBaseEnterpriseInfoDto
.
getUnitType
()
))
{
unitLicencesCollect
=
unitLicences
;
}
else
{
Predicate
<
BaseUnitLicence
>
certTypePredicate
;
if
(
INSPECTION_AND_TESTING_INSTITUTIONS
.
equals
(
companyType
))
{
if
(
INSPECTION_AND_TESTING_INSTITUTIONS
.
equals
(
tzBaseEnterpriseInfoDto
.
getUnitType
()
))
{
certTypePredicate
=
baseUnitLicence
->
INSPECTION_AGENCY
.
equals
(
baseUnitLicence
.
getCertType
())
||
TESTING_INSTITUTIONS
.
equals
(
baseUnitLicence
.
getCertType
());
}
else
{
certTypePredicate
=
baseUnitLicence
->
companyType
.
contains
(
baseUnitLicence
.
getCertType
());
certTypePredicate
=
baseUnitLicence
->
tzBaseEnterpriseInfoDto
.
getUnitType
()
.
contains
(
baseUnitLicence
.
getCertType
());
}
unitLicencesCollect
=
unitLicences
.
stream
()
.
filter
(
certTypePredicate
)
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/company.json
View file @
6caa9a95
...
...
@@ -137,8 +137,8 @@
}
},
"keyParams"
:
[
{
"key"
:
"unitType"
,
"label"
:
"
单位
类型"
},
{
"key"
:
"useUnit"
,
"label"
:
"
单位
名称"
},
{
"key"
:
"unitType"
,
"label"
:
"
企业
类型"
},
{
"key"
:
"useUnit"
,
"label"
:
"
企业
名称"
},
{
"key"
:
"useUnitCertificate"
,
"label"
:
"证件类型"
},
{
"key"
:
"useUnitCode"
,
"label"
:
"证件号码"
},
{
"key"
:
"governingBody"
,
"label"
:
"管辖机构"
},
...
...
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