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
5acad8b7
Commit
5acad8b7
authored
Jul 24, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tcm):检验检测开通接口修改
parent
6d72206b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
2 deletions
+36
-2
BaseUnitLicenceDto.java
...join/amos/boot/module/tcm/api/dto/BaseUnitLicenceDto.java
+9
-1
IRegUnitInfoService.java
.../boot/module/tcm/flc/api/service/IRegUnitInfoService.java
+1
-0
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+5
-1
RegUnitInfoController.java
.../module/tcm/flc/biz/controller/RegUnitInfoController.java
+7
-0
RegUnitInfoServiceImpl.java
...dule/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
+14
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/dto/BaseUnitLicenceDto.java
View file @
5acad8b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
api
.
dto
;
import
com.alibaba.fastjson.JSONArray
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -107,4 +107,12 @@ public class BaseUnitLicenceDto extends BaseDto {
...
@@ -107,4 +107,12 @@ public class BaseUnitLicenceDto extends BaseDto {
@ApiModelProperty
(
value
=
"资质类型编码(检验检测、其他)"
)
@ApiModelProperty
(
value
=
"资质类型编码(检验检测、其他)"
)
private
String
licenceType
;
private
String
licenceType
;
@ApiModelProperty
(
value
=
"所属证书"
)
private
String
enterpriseCertSeq
;
@ApiModelProperty
(
value
=
"字典表id"
)
private
Long
dictSeq
;
@ApiModelProperty
(
value
=
"企业资质证书照片"
)
private
JSONArray
qualificationCertificateAttachment
;
}
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/api/service/IRegUnitInfoService.java
View file @
5acad8b7
...
@@ -74,6 +74,7 @@ public interface IRegUnitInfoService {
...
@@ -74,6 +74,7 @@ public interface IRegUnitInfoService {
List
<
Menu
>
getDictionaryWithTreeFillId
(
String
type
)
throws
Exception
;
List
<
Menu
>
getDictionaryWithTreeFillId
(
String
type
)
throws
Exception
;
List
<
DataDictionary
>
getDictionaryListByType
(
String
type
)
throws
Exception
;
List
<
DataDictionary
>
getDictionaryListByType
(
String
type
)
throws
Exception
;
List
<
DataDictionary
>
getDictionaryListInType
(
String
type
)
throws
Exception
;
List
<
DataDictionary
>
getXkItemList
(
String
type
);
List
<
DataDictionary
>
getXkItemList
(
String
type
);
...
...
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 @
5acad8b7
...
@@ -145,7 +145,8 @@ public class TzBaseEnterpriseInfoServiceImpl
...
@@ -145,7 +145,8 @@ public class TzBaseEnterpriseInfoServiceImpl
// 使用单位资质
// 使用单位资质
COMPANY_TYPE_CERT_TYPE_MAP
.
put
(
"使用单位"
,
"1232"
);
COMPANY_TYPE_CERT_TYPE_MAP
.
put
(
"使用单位"
,
"1232"
);
// 检验检测机构资质:细分为1233-1、1233-2
// 检验检测机构资质:细分为1233-1、1233-2
COMPANY_TYPE_CERT_TYPE_MAP
.
put
(
"检验检测机构"
,
"1233-1,1233-2"
);
COMPANY_TYPE_CERT_TYPE_MAP
.
put
(
"检验机构"
,
"1233-1,1233-2"
);
COMPANY_TYPE_CERT_TYPE_MAP
.
put
(
"检测机构"
,
"1233-2"
);
// 安装改造维修单位身份资质:充装单位-1231 制造单位-1236 设计单位-1235 安装改造维修单位-1234
// 安装改造维修单位身份资质:充装单位-1231 制造单位-1236 设计单位-1235 安装改造维修单位-1234
COMPANY_TYPE_CERT_TYPE_MAP
.
put
(
"安装改造维修单位"
,
"1231,1234,1235,1236"
);
COMPANY_TYPE_CERT_TYPE_MAP
.
put
(
"安装改造维修单位"
,
"1231,1234,1235,1236"
);
// 充装单位
// 充装单位
...
@@ -242,6 +243,9 @@ public class TzBaseEnterpriseInfoServiceImpl
...
@@ -242,6 +243,9 @@ public class TzBaseEnterpriseInfoServiceImpl
for
(
BaseUnitLicence
baseUnitLicence
:
unitLicencesCollect
)
{
for
(
BaseUnitLicence
baseUnitLicence
:
unitLicencesCollect
)
{
BaseUnitLicenceDto
baseUnitLicenceDto
=
new
BaseUnitLicenceDto
();
BaseUnitLicenceDto
baseUnitLicenceDto
=
new
BaseUnitLicenceDto
();
BeanUtils
.
copyProperties
(
baseUnitLicence
,
baseUnitLicenceDto
);
BeanUtils
.
copyProperties
(
baseUnitLicence
,
baseUnitLicenceDto
);
if
(!
ObjectUtils
.
isEmpty
(
baseUnitLicence
.
getQualificationCertificateAttachment
()))
{
baseUnitLicenceDto
.
setQualificationCertificateAttachment
(
JSONObject
.
parseArray
(
baseUnitLicence
.
getQualificationCertificateAttachment
()));
}
unitLicenceDtos
.
add
(
baseUnitLicenceDto
);
unitLicenceDtos
.
add
(
baseUnitLicenceDto
);
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/controller/RegUnitInfoController.java
View file @
5acad8b7
...
@@ -222,6 +222,13 @@ public class RegUnitInfoController extends BaseController {
...
@@ -222,6 +222,13 @@ public class RegUnitInfoController extends BaseController {
return
ResponseHelper
.
buildResponse
(
iRegUnitInfoService
.
getDictionaryListByType
(
type
));
return
ResponseHelper
.
buildResponse
(
iRegUnitInfoService
.
getDictionaryListByType
(
type
));
}
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/dataDictionaryListInType"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据字典类型查询检验检测机构集合"
,
notes
=
"根据字典类型查询检验检测机构集合"
)
public
ResponseModel
<
List
<
DataDictionary
>>
dataDictionaryListInType
(
@RequestParam
String
type
)
throws
Exception
{
return
ResponseHelper
.
buildResponse
(
iRegUnitInfoService
.
getDictionaryListInType
(
type
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/management-unit/tree"
)
@GetMapping
(
value
=
"/management-unit/tree"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"管辖机构树"
,
notes
=
"管辖机构树"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"管辖机构树"
,
notes
=
"管辖机构树"
)
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/flc/biz/service/impl/RegUnitInfoServiceImpl.java
View file @
5acad8b7
...
@@ -529,6 +529,20 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
...
@@ -529,6 +529,20 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
return
dictionaries
.
stream
().
parallel
().
filter
(
d
->
d
.
getType
().
equals
(
type
)).
collect
(
Collectors
.
toList
());
return
dictionaries
.
stream
().
parallel
().
filter
(
d
->
d
.
getType
().
equals
(
type
)).
collect
(
Collectors
.
toList
());
}
}
@Override
public
List
<
DataDictionary
>
getDictionaryListInType
(
String
type
)
throws
Exception
{
List
<
DataDictionary
>
dictionaries
=
this
.
initAllDataDictionaryList
();
if
(
"JYJC"
.
equals
(
type
))
{
return
dictionaries
.
stream
()
.
filter
(
d
->
"1233-1"
.
equals
(
d
.
getType
())
||
"1233-2"
.
equals
(
d
.
getType
()))
.
collect
(
Collectors
.
toList
());
}
else
{
return
dictionaries
.
stream
()
.
filter
(
d
->
type
.
equals
(
d
.
getType
()))
.
collect
(
Collectors
.
toList
());
}
}
public
List
<
DataDictionary
>
initAllDataDictionaryList
()
{
public
List
<
DataDictionary
>
initAllDataDictionaryList
()
{
List
<
DataDictionary
>
dictionaries
;
List
<
DataDictionary
>
dictionaries
;
// 使用双重检查锁定
// 使用双重检查锁定
...
...
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