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
c7c3ad9c
Commit
c7c3ad9c
authored
Oct 14, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tcm): 企业查询列表officeRegion查询
parent
40a95b1a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
9 deletions
+46
-9
TzBaseEnterpriseInfoDto.java
...amos/boot/module/tcm/api/dto/TzBaseEnterpriseInfoDto.java
+3
-0
TzBaseEnterpriseInfoMapper.java
...oot/module/tcm/api/mapper/TzBaseEnterpriseInfoMapper.java
+1
-1
TzBaseEnterpriseInfoMapper.xml
.../src/main/resources/mapper/TzBaseEnterpriseInfoMapper.xml
+24
-0
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+18
-8
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/TzBaseEnterpriseInfoDto.java
View file @
c7c3ad9c
...
@@ -320,6 +320,9 @@ public class TzBaseEnterpriseInfoDto extends BaseDto {
...
@@ -320,6 +320,9 @@ public class TzBaseEnterpriseInfoDto extends BaseDto {
@ApiModelProperty
(
value
=
"省内办公地址省#市#区"
)
@ApiModelProperty
(
value
=
"省内办公地址省#市#区"
)
private
List
<
Integer
>
officeRegion
;
private
List
<
Integer
>
officeRegion
;
@ApiModelProperty
(
value
=
"省内办公地址省#市#区"
)
private
String
officeRegionStr
;
@ApiModelProperty
(
value
=
"省内详细办公地址"
)
@ApiModelProperty
(
value
=
"省内详细办公地址"
)
private
String
officeAddress
;
private
String
officeAddress
;
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/mapper/TzBaseEnterpriseInfoMapper.java
View file @
c7c3ad9c
...
@@ -50,7 +50,7 @@ public interface TzBaseEnterpriseInfoMapper extends BaseMapper<TzBaseEnterpriseI
...
@@ -50,7 +50,7 @@ public interface TzBaseEnterpriseInfoMapper extends BaseMapper<TzBaseEnterpriseI
IPage
<
TzBaseEnterpriseInfoDto
>
page
(
Page
<
TzBaseEnterpriseInfoDto
>
page
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
);
IPage
<
TzBaseEnterpriseInfoDto
>
page
(
Page
<
TzBaseEnterpriseInfoDto
>
page
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
);
IPage
<
TzBaseEnterpriseInfoDto
>
pageList
(
Page
<
TzBaseEnterpriseInfoDto
>
page
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
,
List
orgCodeList
,
@Param
(
"sort"
)
SortVo
sortMap
);
IPage
<
TzBaseEnterpriseInfoDto
>
pageList
(
Page
<
TzBaseEnterpriseInfoDto
>
page
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
,
String
orgCode
,
@Param
(
"sort"
)
SortVo
sortMap
,
String
officeRegion
);
/**
/**
* 查询未生成二维码的企业
* 查询未生成二维码的企业
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/resources/mapper/TzBaseEnterpriseInfoMapper.xml
View file @
c7c3ad9c
...
@@ -107,6 +107,18 @@
...
@@ -107,6 +107,18 @@
<if
test=
"tzBaseEnterpriseInfoDto.unitType!=null and tzBaseEnterpriseInfoDto.unitType!='' "
>
<if
test=
"tzBaseEnterpriseInfoDto.unitType!=null and tzBaseEnterpriseInfoDto.unitType!='' "
>
AND unit_type LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.unitType},'%')
AND unit_type LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.unitType},'%')
</if>
</if>
<choose>
<when
test=
"( tzBaseEnterpriseInfoDto.unitType == '检验机构'
or tzBaseEnterpriseInfoDto.unitType == '检测机构'
or tzBaseEnterpriseInfoDto.unitType == ''
or tzBaseEnterpriseInfoDto.unitType == null ) and tzBaseEnterpriseInfoDto.orgCode!= '' "
>
and ((b.supervise_org_code != '50' and b.supervise_org_code LIKE CONCAT (#{orgCode}, '%'))
or (b.supervise_org_code = '50' and b.office_region LIKE CONCAT ('%', #{regionCode}, '%')))
</when>
<otherwise>
and supervise_org_code LIKE CONCAT(#{orgCode}, '%')
</otherwise>
</choose>
<if
test=
"tzBaseEnterpriseInfoDto.unitTypeList != null and !tzBaseEnterpriseInfoDto.unitTypeList.isEmpty()"
>
<if
test=
"tzBaseEnterpriseInfoDto.unitTypeList != null and !tzBaseEnterpriseInfoDto.unitTypeList.isEmpty()"
>
AND (
AND (
<foreach
collection=
"tzBaseEnterpriseInfoDto.unitTypeList"
item=
"unit"
separator=
" OR "
>
<foreach
collection=
"tzBaseEnterpriseInfoDto.unitTypeList"
item=
"unit"
separator=
" OR "
>
...
@@ -139,6 +151,18 @@
...
@@ -139,6 +151,18 @@
AND contact_phone LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.contactPhone},'%')
AND contact_phone LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.contactPhone},'%')
</if>
</if>
<if
test=
"tzBaseEnterpriseInfoDto.superviseOrgCode!=null and tzBaseEnterpriseInfoDto.superviseOrgCode!='' "
>
<if
test=
"tzBaseEnterpriseInfoDto.superviseOrgCode!=null and tzBaseEnterpriseInfoDto.superviseOrgCode!='' "
>
<choose>
<when
test=
"tzBaseEnterpriseInfoDto.unitType == '检验机构'
or tzBaseEnterpriseInfoDto.unitType == '检测机构'
or tzBaseEnterpriseInfoDto.unitType == ''
or tzBaseEnterpriseInfoDto.unitType == null"
>
and ((b.supervise_org_code != '50' and b.supervise_org_code LIKE CONCAT (#{tzBaseEnterpriseInfoDto.superviseOrgCode}, '%'))
or (b.supervise_org_code = '50' and b.office_region LIKE CONCAT ('%', #{tzBaseEnterpriseInfoDto.OfficeRegionStr}, '%')))
</when>
<otherwise>
and supervise_org_code LIKE CONCAT(#{orgCode}, '%')
</otherwise>
</choose>
AND supervise_org_code LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.superviseOrgCode},'%')
AND supervise_org_code LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.superviseOrgCode},'%')
</if>
</if>
<if
test=
"tzBaseEnterpriseInfoDto.address!=null and tzBaseEnterpriseInfoDto.address!='' "
>
<if
test=
"tzBaseEnterpriseInfoDto.address!=null and tzBaseEnterpriseInfoDto.address!='' "
>
...
...
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 @
c7c3ad9c
...
@@ -205,26 +205,36 @@ public class TzBaseEnterpriseInfoServiceImpl
...
@@ -205,26 +205,36 @@ public class TzBaseEnterpriseInfoServiceImpl
@Override
@Override
public
IPage
<
TzBaseEnterpriseInfoDto
>
page
(
PageParam
pageParam
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
,
String
sort
)
{
public
IPage
<
TzBaseEnterpriseInfoDto
>
page
(
PageParam
pageParam
,
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
,
String
sort
)
{
try
{
try
{
List
<
String
>
orgCodeList
=
new
ArrayList
<>();
//
List<String> orgCodeList = new ArrayList<>();
if
(
tzBaseEnterpriseInfoDto
.
getSuperviseKey
()
!=
null
)
{
if
(
tzBaseEnterpriseInfoDto
.
getSuperviseKey
()
!=
null
)
{
FeignClientResult
<
CompanyModel
>
result
=
Privilege
.
companyClient
FeignClientResult
<
CompanyModel
>
result
=
Privilege
.
companyClient
.
seleteOne
(
Long
.
valueOf
(
tzBaseEnterpriseInfoDto
.
getSuperviseKey
()));
.
seleteOne
(
Long
.
valueOf
(
tzBaseEnterpriseInfoDto
.
getSuperviseKey
()));
if
(
result
.
getResult
()
!=
null
)
{
if
(
result
.
getResult
()
!=
null
)
{
tzBaseEnterpriseInfoDto
.
setSuperviseOrgCode
(
result
.
getResult
().
getOrgCode
());
tzBaseEnterpriseInfoDto
.
setSuperviseOrgCode
(
result
.
getResult
().
getOrgCode
());
TzBaseEnterpriseInfo
tzBaseEnterpriseInfo
=
this
.
baseMapper
.
selectOne
(
new
QueryWrapper
<
TzBaseEnterpriseInfo
>().
lambda
().
eq
(
TzBaseEnterpriseInfo:
:
getOrgCode
,
result
.
getResult
().
getOrgCode
()));
tzBaseEnterpriseInfoDto
.
setOfficeRegionStr
(
tzBaseEnterpriseInfo
.
getOfficeRegion
());
}
}
}
}
Page
<
TzBaseEnterpriseInfoDto
>
page
=
new
Page
<>(
pageParam
.
getCurrent
(),
pageParam
.
getSize
());
Page
<
TzBaseEnterpriseInfoDto
>
page
=
new
Page
<>(
pageParam
.
getCurrent
(),
pageParam
.
getSize
());
List
<
JSONObject
>
companyType1
=
equipmentCategoryService
.
getCompanyType
();
List
<
JSONObject
>
companyType1
=
equipmentCategoryService
.
getCompanyType
();
String
orgCode
=
null
;
String
officeRegion
=
null
;
if
(!
ValidationUtil
.
isEmpty
(
companyType1
))
{
if
(!
ValidationUtil
.
isEmpty
(
companyType1
))
{
for
(
JSONObject
jsonObject
:
companyType1
)
{
JSONObject
companyTypeJson
=
companyType1
.
get
(
0
);
String
orgCode
=
jsonObject
.
getString
(
"orgCode"
);
orgCode
=
companyTypeJson
.
getString
(
"orgCode"
);
if
(!
ValidationUtil
.
isEmpty
(
orgCode
))
{
TzBaseEnterpriseInfo
tzBaseEnterpriseInfo
=
this
.
baseMapper
.
selectOne
(
new
QueryWrapper
<
TzBaseEnterpriseInfo
>().
lambda
().
eq
(
TzBaseEnterpriseInfo:
:
getOrgCode
,
orgCode
));
orgCodeList
.
add
(
orgCode
);
if
(!
ObjectUtils
.
isEmpty
(
tzBaseEnterpriseInfo
))
officeRegion
=
tzBaseEnterpriseInfo
.
getOfficeRegion
();
}
}
}
}
// if (!ValidationUtil.isEmpty(companyType1)) {
// for (JSONObject jsonObject : companyType1) {
// String orgCode = jsonObject.getString("orgCode");
// if (!ValidationUtil.isEmpty(orgCode)) {
// orgCodeList.add(orgCode);
// }
// }
// }
SortVo
sortMap
=
userInfoService
.
sortFieldConversion
(
sort
);
SortVo
sortMap
=
userInfoService
.
sortFieldConversion
(
sort
);
return
this
.
baseMapper
.
pageList
(
page
,
tzBaseEnterpriseInfoDto
,
orgCode
List
,
sortMap
);
return
this
.
baseMapper
.
pageList
(
page
,
tzBaseEnterpriseInfoDto
,
orgCode
,
sortMap
,
officeRegion
);
}
catch
(
Exception
ex
)
{
}
catch
(
Exception
ex
)
{
String
msg
=
ex
.
getMessage
()
==
null
?
""
:
ex
.
getMessage
();
String
msg
=
ex
.
getMessage
()
==
null
?
""
:
ex
.
getMessage
();
if
(
msg
.
contains
(
"eyibc decrypt error"
)
if
(
msg
.
contains
(
"eyibc decrypt error"
)
...
...
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