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
5a07dfa7
Commit
5a07dfa7
authored
Aug 05, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):拆分检验检测机构
parent
bba83569
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
107 additions
and
47 deletions
+107
-47
UnitTypeEnum.java
...ejoin/amos/boot/module/common/api/enums/UnitTypeEnum.java
+2
-2
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+55
-27
UnitTypeEnum.java
...n/amos/boot/module/statistics/api/enums/UnitTypeEnum.java
+3
-1
EnterpriseBizByTCMServiceImpl.java
...istcs/biz/service/impl/EnterpriseBizByTCMServiceImpl.java
+2
-1
EnterpriseBizServiceImpl.java
.../statistcs/biz/service/impl/EnterpriseBizServiceImpl.java
+3
-2
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+21
-4
UnitTypeEnum.java
.../yeejoin/amos/boot/module/tcm/api/enums/UnitTypeEnum.java
+3
-1
TzsUserInfoMapper.xml
...e-tcm-api/src/main/resources/mapper/TzsUserInfoMapper.xml
+1
-1
EquipmentCategoryServiceImpl.java
...le/tcm/biz/service/impl/EquipmentCategoryServiceImpl.java
+6
-1
ThreeSystemsServiceImpl.java
.../module/tcm/biz/service/impl/ThreeSystemsServiceImpl.java
+1
-1
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+2
-2
TzsUserInfoServiceImpl.java
...t/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
+2
-2
TzBaseEnterpriseInfoMapper.xml
.../src/main/resources/mapper/TzBaseEnterpriseInfoMapper.xml
+1
-1
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+5
-1
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/enums/UnitTypeEnum.java
View file @
5a07dfa7
...
@@ -20,8 +20,8 @@ public enum UnitTypeEnum {
...
@@ -20,8 +20,8 @@ public enum UnitTypeEnum {
//充装单位
//充装单位
CZDW
(
"充装单位"
,
"1231"
,
"3"
,
"充装单位"
),
CZDW
(
"充装单位"
,
"1231"
,
"3"
,
"充装单位"
),
//检验检测机构
//检验检测机构
JYJ
CJG
(
"检验检测机构"
,
"1233"
,
"4"
,
"检验检测
机构"
),
JYJ
G
(
"检验机构"
,
"1233-1"
,
"4"
,
"检验
机构"
),
JCJG
(
"检测机构"
,
"1233-2"
,
"4"
,
"检测机构"
),
;
;
String
name
;
String
name
;
...
...
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 @
5a07dfa7
...
@@ -921,49 +921,77 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -921,49 +921,77 @@ public class CommonServiceImpl implements ICommonService {
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getUnitListByType
(
String
type
,
String
business
,
Boolean
needAuth
)
{
public
List
<
Map
<
String
,
Object
>>
getUnitListByType
(
String
type
,
String
business
,
Boolean
needAuth
)
{
List
<
Map
<
String
,
Object
>>
unitList
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
unitList
=
new
ArrayList
<>(
Collections
.
emptyList
())
;
String
internalType
;
switch
(
type
)
{
switch
(
type
)
{
case
"use"
:
case
"use"
:
t
ype
=
"使用单位"
;
internalT
ype
=
"使用单位"
;
break
;
break
;
case
"maintenance"
:
case
"maintenance"
:
t
ype
=
"安装改造维修单位"
;
internalT
ype
=
"安装改造维修单位"
;
break
;
break
;
case
"inspection"
:
case
"inspection"
:
type
=
"检验检测机构"
;
// 拆分:包含检验机构和检测机构
internalType
=
"检验机构|检测机构"
;
break
;
break
;
case
"manufacture"
:
case
"manufacture"
:
t
ype
=
"制造单位"
;
internalT
ype
=
"制造单位"
;
break
;
break
;
case
"all"
:
case
"all"
:
type
=
"all"
;
internalType
=
"all"
;
break
;
default
:
internalType
=
type
;
break
;
break
;
}
}
// 检验检测机构 追加车用气瓶
if
(
"检验检测机构"
.
equals
(
type
)
&&
"gasCylindersForCars"
.
equals
(
business
))
{
// 提取字典逻辑(抽成方法)
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
"OLD_INSPECTION_TESTING_UNIT"
).
getResult
();
if
(
"gasCylindersForCars"
.
equals
(
business
))
{
result
.
forEach
(
x
->
convertAndAddToUnitList
(
x
,
unitList
));
if
(
"检验机构|检测机构"
.
equals
(
internalType
))
{
addDictUnitsToList
(
"OLD_INSPECTION_TESTING_UNIT"
,
unitList
);
}
if
(
"安装改造维修单位"
.
equals
(
internalType
))
{
addDictUnitsToList
(
"OLD_INSTALLATION_UNIT"
,
unitList
);
}
if
(
"使用单位"
.
equals
(
internalType
))
{
addDictUnitsToList
(
"OLD_USE_UNIT"
,
unitList
);
}
}
}
if
(
"安装改造维修单位"
.
equals
(
type
)
&&
"gasCylindersForCars"
.
equals
(
business
))
{
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
"OLD_INSTALLATION_UNIT"
).
getResult
();
List
<
Map
<
String
,
Object
>>
unitListByType
;
result
.
forEach
(
x
->
convertAndAddToUnitList
(
x
,
unitList
));
if
(
"检验机构|检测机构"
.
equals
(
internalType
))
{
// 合并两种子类型的数据
List
<
Map
<
String
,
Object
>>
list1
=
needAuth
?
commonMapper
.
getUnitInfoListByType
(
"检验机构"
)
:
commonMapper
.
getUnitListByType
(
"检验机构"
);
List
<
Map
<
String
,
Object
>>
list2
=
needAuth
?
commonMapper
.
getUnitInfoListByType
(
"检测机构"
)
:
commonMapper
.
getUnitListByType
(
"检测机构"
);
unitListByType
=
new
ArrayList
<>();
unitListByType
.
addAll
(
list1
);
unitListByType
.
addAll
(
list2
);
}
else
{
unitListByType
=
needAuth
?
commonMapper
.
getUnitInfoListByType
(
internalType
)
:
commonMapper
.
getUnitListByType
(
internalType
);
}
}
// 使用单位追加 三环认领的(业主可能未注册系统,别人帮忙认领的,帮忙认领后会保存一份原使用单位的数据到字典)
if
(
"使用单位"
.
equals
(
type
)
&&
"gasCylindersForCars"
.
equals
(
business
))
{
return
new
ArrayList
<>(
Stream
.
concat
(
unitList
.
stream
(),
unitListByType
.
stream
())
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
"OLD_USE_UNIT"
).
getResult
();
.
collect
(
Collectors
.
toMap
(
map
->
String
.
valueOf
(
map
.
get
(
"useCode"
)),
map
->
map
,
(
existing
,
replacement
)
->
existing
))
.
values
());
}
private
void
addDictUnitsToList
(
String
dictKey
,
List
<
Map
<
String
,
Object
>>
unitList
)
{
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
dictKey
).
getResult
();
if
(
result
!=
null
)
{
result
.
forEach
(
x
->
convertAndAddToUnitList
(
x
,
unitList
));
result
.
forEach
(
x
->
convertAndAddToUnitList
(
x
,
unitList
));
}
}
List
<
Map
<
String
,
Object
>>
unitListByType
=
needAuth
?
commonMapper
.
getUnitInfoListByType
(
type
)
:
commonMapper
.
getUnitListByType
(
type
);
// 数据去重:原因车用气瓶在字典里进行维护,如果维护的单位注册上来,则会出现数据重复,故按照useCode去重
return
new
ArrayList
<>(
Stream
.
concat
(
unitList
.
stream
(),
unitListByType
.
stream
()
).
collect
(
Collectors
.
toMap
(
map
->
String
.
valueOf
(
map
.
get
(
"useCode"
)),
// 以 unitCode 作为 key
map
->
map
,
(
existing
,
replacement
)
->
existing
// 如果 key 冲突,保留原有的
)).
values
());
}
}
@Override
@Override
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/enums/UnitTypeEnum.java
View file @
5a07dfa7
...
@@ -19,7 +19,9 @@ public enum UnitTypeEnum {
...
@@ -19,7 +19,9 @@ public enum UnitTypeEnum {
sydw
(
"使用单位"
,
"1232"
,
"use"
),
sydw
(
"使用单位"
,
"1232"
,
"use"
),
czdw
(
"充装单位"
,
"1231"
,
"license"
),
czdw
(
"充装单位"
,
"1231"
,
"license"
),
jyjcjg
(
"检验检测机构"
,
"1233"
,
"license"
),
//jyjcjg("检验检测机构", "1233", "license"),//未使用
jyjg
(
"检验机构"
,
"1233-1"
,
"license"
),
jcjg
(
"检测机构"
,
"1233-2"
,
"license"
),
azgzwxdw
(
"安装改造维修单位"
,
"1234"
,
"license"
),
azgzwxdw
(
"安装改造维修单位"
,
"1234"
,
"license"
),
zzdw
(
"制造单位"
,
"1236"
,
"license"
),
zzdw
(
"制造单位"
,
"1236"
,
"license"
),
sjdw
(
"设计单位"
,
"1235"
,
"license"
),
sjdw
(
"设计单位"
,
"1235"
,
"license"
),
...
...
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 @
5a07dfa7
...
@@ -52,6 +52,7 @@ import java.util.List;
...
@@ -52,6 +52,7 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.function.Predicate
;
import
java.util.function.Predicate
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
/**
/**
...
@@ -303,7 +304,7 @@ public class EnterpriseBizByTCMServiceImpl {
...
@@ -303,7 +304,7 @@ public class EnterpriseBizByTCMServiceImpl {
unitLicencesCollect
=
unitLicences
;
unitLicencesCollect
=
unitLicences
;
}
else
{
}
else
{
Predicate
<
BaseUnitLicence
>
certTypePredicate
;
Predicate
<
BaseUnitLicence
>
certTypePredicate
;
if
(
INSPECTION_AND_TESTING_INSTITUTIONS
.
equals
(
tzBaseEnterpriseInfoDto
.
getUnitType
()
))
{
if
(
Stream
.
of
(
INSPECTION_AGENCY
,
TESTING_INSTITUTIONS
).
anyMatch
(
tzBaseEnterpriseInfoDto
.
getUnitType
()::
contains
))
{
certTypePredicate
=
baseUnitLicence
->
INSPECTION_AGENCY
.
equals
(
baseUnitLicence
.
getCertType
())
||
certTypePredicate
=
baseUnitLicence
->
INSPECTION_AGENCY
.
equals
(
baseUnitLicence
.
getCertType
())
||
TESTING_INSTITUTIONS
.
equals
(
baseUnitLicence
.
getCertType
());
TESTING_INSTITUTIONS
.
equals
(
baseUnitLicence
.
getCertType
());
}
else
{
}
else
{
...
...
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/EnterpriseBizServiceImpl.java
View file @
5a07dfa7
...
@@ -15,7 +15,6 @@ import com.yeejoin.amos.boot.module.ymt.api.enums.EquipmentClassifityEnum;
...
@@ -15,7 +15,6 @@ import com.yeejoin.amos.boot.module.ymt.api.enums.EquipmentClassifityEnum;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.lucene.queryparser.classic.QueryParser
;
import
org.apache.lucene.queryparser.classic.QueryParser
;
import
org.elasticsearch.action.search.SearchRequest
;
import
org.elasticsearch.action.search.SearchRequest
;
...
@@ -34,6 +33,7 @@ import org.typroject.tyboot.core.foundation.context.RequestContext;
...
@@ -34,6 +33,7 @@ import org.typroject.tyboot.core.foundation.context.RequestContext;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Stream
;
/**
/**
* @author Administrator
* @author Administrator
...
@@ -101,7 +101,8 @@ public class EnterpriseBizServiceImpl {
...
@@ -101,7 +101,8 @@ public class EnterpriseBizServiceImpl {
unitTypeList
.
add
(
UnitTypeEnum
.
GRZT
.
getName
());
unitTypeList
.
add
(
UnitTypeEnum
.
GRZT
.
getName
());
}
}
if
(
tzBaseEnterpriseInfoDto
.
getUnitType
()
!=
null
&&
tzBaseEnterpriseInfoDto
.
getUnitType
().
contains
(
UnitTypeEnum
.
JYJCJG
.
getName
())){
if
(
tzBaseEnterpriseInfoDto
.
getUnitType
()
!=
null
&&
Stream
.
of
(
UnitTypeEnum
.
JYJG
.
getName
(),
UnitTypeEnum
.
JCJG
.
getName
())
.
anyMatch
(
tzBaseEnterpriseInfoDto
.
getUnitType
()::
contains
)){
if
(
StringUtils
.
isNotEmpty
(
tzBaseEnterpriseInfoDto
.
getJyjcStatus
())){
if
(
StringUtils
.
isNotEmpty
(
tzBaseEnterpriseInfoDto
.
getJyjcStatus
())){
String
jyjcStatus
=
tzBaseEnterpriseInfoDto
.
getJyjcStatus
().
trim
();
String
jyjcStatus
=
tzBaseEnterpriseInfoDto
.
getJyjcStatus
().
trim
();
String
[]
array
=
jyjcStatus
.
split
(
"-"
);
String
[]
array
=
jyjcStatus
.
split
(
"-"
);
...
...
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/JGDPStatisticsServiceImpl.java
View file @
5a07dfa7
...
@@ -147,9 +147,14 @@ public class JGDPStatisticsServiceImpl {
...
@@ -147,9 +147,14 @@ public class JGDPStatisticsServiceImpl {
/**
/**
* 检验检测机构-检验
检测
机构
* 检验检测机构-检验机构
*/
*/
private
final
static
String
COMPANY_TYPE_JYJC
=
"检验检测机构"
;
private
final
static
String
COMPANY_TYPE_JY
=
"检验机构"
;
/**
* 检验检测机构-检测机构
*/
private
final
static
String
COMPANY_TYPE_JC
=
"检测机构"
;
/**
/**
...
@@ -561,7 +566,13 @@ public class JGDPStatisticsServiceImpl {
...
@@ -561,7 +566,13 @@ public class JGDPStatisticsServiceImpl {
int
u3
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_MANUFACTURE
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u3
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_MANUFACTURE
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u4
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_FILLING
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u4
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_FILLING
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u5
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_DESIGN
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u5
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_DESIGN
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u6
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_JYJC
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
//int u6 = countDtos.stream().filter(c -> c.getKeyStr().contains(COMPANY_TYPE_JYJC)).mapToInt(CountDto::getIntValue).sum();
int
u6
=
countDtos
.
stream
().
filter
(
c
->
{
String
key
=
c
.
getKeyStr
();
return
key
!=
null
&&
(
key
.
contains
(
COMPANY_TYPE_JY
)
||
key
.
contains
(
COMPANY_TYPE_JC
));
})
.
mapToInt
(
CountDto:
:
getIntValue
)
.
sum
();
countItemDto
.
setCompany
(
String
.
valueOf
(
u1
+
u2
+
u3
+
u4
+
u5
+
u6
));
countItemDto
.
setCompany
(
String
.
valueOf
(
u1
+
u2
+
u3
+
u4
+
u5
+
u6
));
}
}
...
@@ -3925,7 +3936,13 @@ public class JGDPStatisticsServiceImpl {
...
@@ -3925,7 +3936,13 @@ public class JGDPStatisticsServiceImpl {
int
u3
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_MANUFACTURE
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u3
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_MANUFACTURE
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u2
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_MAINTENANCE
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u2
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_MAINTENANCE
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u4
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_FILLING
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u4
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_FILLING
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u6
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_JYJC
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
//int u6 = countDtos.stream().filter(c -> c.getKeyStr().contains(COMPANY_TYPE_JYJC)).mapToInt(CountDto::getIntValue).sum();
int
u6
=
countDtos
.
stream
().
filter
(
c
->
{
String
key
=
c
.
getKeyStr
();
return
key
!=
null
&&
(
key
.
contains
(
COMPANY_TYPE_JY
)
||
key
.
contains
(
COMPANY_TYPE_JC
));
})
.
mapToInt
(
CountDto:
:
getIntValue
)
.
sum
();
int
u5
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_DESIGN
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
int
u5
=
countDtos
.
stream
().
filter
(
c
->
c
.
getKeyStr
().
contains
(
COMPANY_TYPE_DESIGN
)).
mapToInt
(
CountDto:
:
getIntValue
).
sum
();
companyCountItemDto
.
setSydw
(
String
.
valueOf
(
u1
));
companyCountItemDto
.
setSydw
(
String
.
valueOf
(
u1
));
companyCountItemDto
.
setZzdw
(
String
.
valueOf
(
u3
));
companyCountItemDto
.
setZzdw
(
String
.
valueOf
(
u3
));
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/enums/UnitTypeEnum.java
View file @
5a07dfa7
...
@@ -16,7 +16,9 @@ public enum UnitTypeEnum {
...
@@ -16,7 +16,9 @@ public enum UnitTypeEnum {
sydw
(
"使用单位"
,
"1232"
),
sydw
(
"使用单位"
,
"1232"
),
czdw
(
"充装单位"
,
"1231"
),
czdw
(
"充装单位"
,
"1231"
),
jyjcjg
(
"检验检测机构"
,
"1233"
),
//jyjcjg("检验检测机构", "1233"),//未使用
jyjg
(
"检验机构"
,
"1233-1"
),
jcjg
(
"检测机构"
,
"1233-2"
),
azgzwxdw
(
"安装改造维修单位"
,
"1234"
),
azgzwxdw
(
"安装改造维修单位"
,
"1234"
),
zzdw
(
"制造单位"
,
"1236"
),
zzdw
(
"制造单位"
,
"1236"
),
sjdw
(
"设计单位"
,
"1235"
),
sjdw
(
"设计单位"
,
"1235"
),
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/resources/mapper/TzsUserInfoMapper.xml
View file @
5a07dfa7
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
AND pc.org_code IS NOT NULL
AND pc.org_code IS NOT NULL
AND tzei.is_delete = '0'
AND tzei.is_delete = '0'
AND pc.is_deleted = 'f'
AND pc.is_deleted = 'f'
AND
tzei.unit_type
<![CDATA[<>]]>
'检验检测机构'
AND
(tzei.unit_type
<![CDATA[<>]]>
'检验机构' OR tzei.unit_type
<![CDATA[<>]]>
'检测机构')
AND tui.amos_user_id IN (SELECT USER_ID FROM privilege_group_user WHERE GROUP_SEQ = #{groupId})
AND tui.amos_user_id IN (SELECT USER_ID FROM privilege_group_user WHERE GROUP_SEQ = #{groupId})
</select>
</select>
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
5a07dfa7
...
@@ -349,7 +349,12 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -349,7 +349,12 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
continue
;
continue
;
}
}
// 删除检验检测机构类似公司
// 删除检验检测机构类似公司
if
(
excludeCompanyType
.
equals
(
e
.
get
(
"companyType"
)))
{
// if (excludeCompanyType.equals(e.get("companyType"))) {
// it.remove();
// // 一行数据可能 满足几个remove,所以需要删除后,继续下一循环
// continue;
// }
if
(
e
.
get
(
"companyType"
)
!=
null
&&
Arrays
.
asList
(
"检验机构"
,
"检测机构"
).
contains
(
e
.
get
(
"companyType"
).
toString
()))
{
it
.
remove
();
it
.
remove
();
// 一行数据可能 满足几个remove,所以需要删除后,继续下一循环
// 一行数据可能 满足几个remove,所以需要删除后,继续下一循环
continue
;
continue
;
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/ThreeSystemsServiceImpl.java
View file @
5a07dfa7
...
@@ -292,7 +292,7 @@ public class ThreeSystemsServiceImpl extends BaseService<ThreeSystemsDto, ThreeS
...
@@ -292,7 +292,7 @@ public class ThreeSystemsServiceImpl extends BaseService<ThreeSystemsDto, ThreeS
//对应orgCode下所有注册企业列表
//对应orgCode下所有注册企业列表
List
<
ThreeSystemsDto
>
allUnit
=
StaffingCompanyList
.
stream
().
filter
(
ii
->
ii
.
getSupervisoryUnitOrgCode
().
startsWith
(
i
.
get
(
"orgCode"
).
toString
())).
collect
(
Collectors
.
toList
());
List
<
ThreeSystemsDto
>
allUnit
=
StaffingCompanyList
.
stream
().
filter
(
ii
->
ii
.
getSupervisoryUnitOrgCode
().
startsWith
(
i
.
get
(
"orgCode"
).
toString
())).
collect
(
Collectors
.
toList
());
//对应注册企业下所有应排查的企业列表
//对应注册企业下所有应排查的企业列表
List
<
ThreeSystemsDto
>
shouldCheckUnit
=
allUnit
.
stream
().
filter
(
ii
->
!(
ii
.
getUnitType
().
contains
(
"个人主体"
)
||
ii
.
getUnitType
().
equals
(
"检验检测机构"
))).
collect
(
Collectors
.
toList
());
List
<
ThreeSystemsDto
>
shouldCheckUnit
=
allUnit
.
stream
().
filter
(
ii
->
!(
ii
.
getUnitType
().
contains
(
"个人主体"
)
||
ii
.
getUnitType
().
equals
(
"检验
机构"
)
||
ii
.
getUnitType
().
equals
(
"
检测机构"
))).
collect
(
Collectors
.
toList
());
//应排查的企业下已排查完成的企业列表
//应排查的企业下已排查完成的企业列表
List
<
ThreeSystemsDto
>
checkCompleteUnit
=
shouldCheckUnit
.
stream
().
filter
(
ii
->
"1"
.
equals
(
ii
.
getCheckStatus
())).
collect
(
Collectors
.
toList
());
List
<
ThreeSystemsDto
>
checkCompleteUnit
=
shouldCheckUnit
.
stream
().
filter
(
ii
->
"1"
.
equals
(
ii
.
getCheckStatus
())).
collect
(
Collectors
.
toList
());
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
View file @
5a07dfa7
...
@@ -707,7 +707,7 @@ public class TzBaseEnterpriseInfoServiceImpl
...
@@ -707,7 +707,7 @@ public class TzBaseEnterpriseInfoServiceImpl
}
}
//许可信息先登录人选择的身份删除相应的许可信息,原因前端列表对数据可增减
//许可信息先登录人选择的身份删除相应的许可信息,原因前端列表对数据可增减
removeLicenceDataBeforeSave
(
reginParams
,
tzBaseEnterpriseInfo
);
removeLicenceDataBeforeSave
(
reginParams
,
tzBaseEnterpriseInfo
);
//
报错许可
许可信息
//
保存
许可信息
saveLicenceData
(
map
);
saveLicenceData
(
map
);
// 企业信息变更-同步修改企业下人员绑定设备类型
// 企业信息变更-同步修改企业下人员绑定设备类型
ArrayList
<
String
>
newData
=
new
ArrayList
<>();
ArrayList
<
String
>
newData
=
new
ArrayList
<>();
...
@@ -847,7 +847,7 @@ public class TzBaseEnterpriseInfoServiceImpl
...
@@ -847,7 +847,7 @@ public class TzBaseEnterpriseInfoServiceImpl
}
}
private
void
fillCertTypeName
(
BaseUnitLicence
baseUnitLicence
,
List
<
DataDictionary
>
dictionaries
,
String
companyType
)
{
private
void
fillCertTypeName
(
BaseUnitLicence
baseUnitLicence
,
List
<
DataDictionary
>
dictionaries
,
String
companyType
)
{
if
(
INSPECTION_AND_TESTING_INSTITUTIONS
.
equal
s
(
companyType
))
{
if
(
Arrays
.
asList
(
INSPECTION_AGENCY
,
TESTING_INSTITUTIONS
).
contain
s
(
companyType
))
{
if
(
StringUtils
.
isEmpty
(
baseUnitLicence
.
getCertType
())){
if
(
StringUtils
.
isEmpty
(
baseUnitLicence
.
getCertType
())){
String
certTypeName
=
JYJC_CERT_MAP
.
get
(
baseUnitLicence
.
getCertTypeCode
());
String
certTypeName
=
JYJC_CERT_MAP
.
get
(
baseUnitLicence
.
getCertTypeCode
());
baseUnitLicence
.
setCertType
(
certTypeName
);
baseUnitLicence
.
setCertType
(
certTypeName
);
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
View file @
5a07dfa7
...
@@ -596,7 +596,7 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
...
@@ -596,7 +596,7 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
if
(
companyType
.
contains
(
"安装改造维修单位"
))
{
if
(
companyType
.
contains
(
"安装改造维修单位"
))
{
installCompany
=
true
;
installCompany
=
true
;
}
}
if
(
companyType
.
contains
(
"检验检测机构"
))
{
if
(
Arrays
.
asList
(
"检验机构"
,
"检测机构"
).
contains
(
companyType
))
{
inspectionCompany
=
true
;
inspectionCompany
=
true
;
}
}
}
}
...
@@ -641,7 +641,7 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
...
@@ -641,7 +641,7 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
if
(
companyType
.
contains
(
"安装改造维修单位"
))
{
if
(
companyType
.
contains
(
"安装改造维修单位"
))
{
installCompany
=
true
;
installCompany
=
true
;
}
}
if
(
companyType
.
contains
(
"检验检测机构"
))
{
if
(
Arrays
.
asList
(
"检验机构"
,
"检测机构"
).
contains
(
companyType
))
{
inspectionCompany
=
true
;
inspectionCompany
=
true
;
}
}
StringBuilder
companyTypeStr
=
new
StringBuilder
();
StringBuilder
companyTypeStr
=
new
StringBuilder
();
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/TzBaseEnterpriseInfoMapper.xml
View file @
5a07dfa7
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
COALESCE(use_unit_certificate, '身份证') AS useUnitCertificate
COALESCE(use_unit_certificate, '身份证') AS useUnitCertificate
FROM
FROM
tz_base_enterprise_info
tz_base_enterprise_info
<if
test=
" tzBaseEnterpriseInfoDto.unitType.indexOf('检验检测机构') !=-1 "
>
<if
test=
" tzBaseEnterpriseInfoDto.unitType.indexOf('检验
机构') !=-1 OR tzBaseEnterpriseInfoDto.unitType.indexOf('
检测机构') !=-1 "
>
JOIN (select unit_code,max(accept_date) from tz_jyjc_opening_application
JOIN (select unit_code,max(accept_date) from tz_jyjc_opening_application
where 1=1
where 1=1
<if
test=
" tzBaseEnterpriseInfoDto.jyjcStatus!=null and tzBaseEnterpriseInfoDto.jyjcStatus!='' "
>
<if
test=
" tzBaseEnterpriseInfoDto.jyjcStatus!=null and tzBaseEnterpriseInfoDto.jyjcStatus!='' "
>
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
5a07dfa7
...
@@ -526,7 +526,11 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -526,7 +526,11 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
it
.
remove
();
it
.
remove
();
}
}
// 删除检验检测机构
// 删除检验检测机构
if
(!
"company"
.
equals
(
e
.
get
(
"level"
))
&&
e
.
get
(
"companyType"
).
toString
().
contains
(
"检验检测机构"
))
{
// if (!"company".equals(e.get("level")) && e.get("companyType").toString().contains("检验检测机构")) {
// it.remove();
// }
if
(!
"company"
.
equals
(
String
.
valueOf
(
e
.
get
(
"level"
)))
&&
Arrays
.
asList
(
"检验机构"
,
"检测机构"
).
stream
().
anyMatch
(
type
->
String
.
valueOf
(
e
.
get
(
"companyType"
)).
contains
(
type
)))
{
it
.
remove
();
it
.
remove
();
}
}
if
(!
ObjectUtils
.
isEmpty
(
e
.
get
(
"children"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
e
.
get
(
"children"
)))
{
...
...
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