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
4aae199e
Commit
4aae199e
authored
Dec 16, 2025
by
刘林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_main' into develop_tzs_test
parents
2055ee50
90a78eaf
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
121 additions
and
137 deletions
+121
-137
JgEnableDisableMapper.xml
...g-api/src/main/resources/mapper/JgEnableDisableMapper.xml
+16
-35
JgScrapCancelMapper.xml
...-jg-api/src/main/resources/mapper/JgScrapCancelMapper.xml
+16
-35
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+18
-37
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+1
-1
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+6
-2
OpenBizTypeEnumV2.java
...in/amos/boot/module/jyjc/api/enums/OpenBizTypeEnumV2.java
+20
-9
RuleActionHandler.java
...n/amos/boot/module/jyjc/biz/action/RuleActionHandler.java
+7
-0
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+16
-7
AQZSDPStatisticsMapper.xml
...-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
+16
-7
AQZSDPStatisticsServiceImpl.java
...atistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
+3
-2
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+2
-2
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgEnableDisableMapper.xml
View file @
4aae199e
...
@@ -124,41 +124,22 @@
...
@@ -124,41 +124,22 @@
LEFT JOIN idx_biz_jg_use_info use on jede.equ_id = use.RECORD
LEFT JOIN idx_biz_jg_use_info use on jede.equ_id = use.RECORD
where jed.sequence_nbr = #{sequenceNbr}
where jed.sequence_nbr = #{sequenceNbr}
</select>
</select>
<select
id=
"queryStoppedDeviceStaticListData"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.EquipBizCountDto"
>
<select
id=
"queryStoppedDeviceStaticListData"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.EquipBizCountDto"
>
select
SELECT COUNT(1) AS num,
c.equ_list,
jri.equ_list AS equList,
c.equ_category,
jri.equ_category AS equCategory
c.equ_define,
FROM
count(1) as num
privilege_company pc
from
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
(SELECT
INNER JOIN tzs_jg_enable_disable tjed ON tjed.use_unit_credit_code = bi.use_unit_code
ri.equ_list,
AND tjed.audit_status = '已完成' and tjed.apply_type ='SB_TY'
ri.equ_category,
INNER JOIN tzs_jg_enable_disable_eq tjede ON tjede.enable_disable_apply_id = tjed.sequence_nbr
ri.equ_define,
INNER JOIN idx_biz_jg_register_info jri ON tjede.equ_id = jri.record
concat(u.PROVINCE,'#', u.CITY,'#', u.COUNTY) as areaCode
WHERE pc.company_code = #{cityCode}
FROM
AND ( tjed.audit_pass_date BETWEEN #{ beginDate } AND #{ endDate } )
"tzs_jg_enable_disable_eq" ae,
AND tjed.is_delete = 0
tzs_jg_enable_disable a,
GROUP BY jri.equ_category
"idx_biz_jg_use_info" u,
idx_biz_jg_register_info ri
where
a.sequence_nbr = ae.enable_disable_apply_id
and ae.equ_id = u."RECORD"
and u."RECORD" = ri."RECORD"
and (a.audit_pass_date between #{beginDate} and #{endDate})
and a.apply_type ='SB_TY'
and a.audit_status='已完成'
and u."PROVINCE"
<![CDATA[<>]]>
''
and u."CITY"
<![CDATA[<>]]>
''
and u."COUNTY"
<![CDATA[<>]]>
''
) c
where
c.areaCode like concat('%',#{cityCode}, '%')
group by
c.equ_list,
c.equ_category,
c.equ_define
</select>
</select>
<select
id=
"queryForFlowingEquipList"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.CompanyEquipCountDto"
>
<select
id=
"queryForFlowingEquipList"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.CompanyEquipCountDto"
>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgScrapCancelMapper.xml
View file @
4aae199e
...
@@ -256,42 +256,23 @@
...
@@ -256,42 +256,23 @@
WHERE ur.sequence_nbr = #{sequenceNbr}
WHERE ur.sequence_nbr = #{sequenceNbr}
LIMIT 1
LIMIT 1
</select>
</select>
<select
id=
"queryScrappedDeviceStaticListData"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.EquipBizCountDto"
>
<select
id=
"queryScrappedDeviceStaticListData"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.EquipBizCountDto"
>
select
SELECT COUNT(1) AS num,
c.equ_list,
jri.equ_list AS equList,
c.equ_category,
jri.equ_category AS equCategory
c.equ_define,
FROM privilege_company pc
count(1) as num
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
from
INNER JOIN tzs_jg_scrap_cancel tjsc ON tjsc.use_unit_code = bi.use_unit_code
(SELECT
AND tjsc.audit_status = '已完成' and tjsc.cancel_type ='1'
ri.equ_list,
INNER JOIN tzs_jg_scrap_cancel_eq tjsce ON tjsce.equip_transfer_id = tjsc.sequence_nbr
ri.equ_category,
INNER JOIN idx_biz_jg_register_info jri ON tjsce.equ_id = jri.record
ri.equ_define,
WHERE pc.company_code = #{cityCode}
concat(u.PROVINCE,'#', u.CITY,'#', u.COUNTY) as areaCode
AND ( tjsc.audit_pass_date BETWEEN #{ beginDate } AND #{ endDate } )
FROM
AND tjsc.is_delete = 0
"tzs_jg_scrap_cancel_eq" ae,
GROUP BY jri.equ_category
tzs_jg_scrap_cancel a,
"idx_biz_jg_use_info" u,
idx_biz_jg_register_info ri
where
a.sequence_nbr = ae.equip_transfer_id
and ae.equ_id = u."RECORD"
and u."RECORD" = ri."RECORD"
and (a.audit_pass_date between #{beginDate} and #{endDate})
and a.cancel_type ='1'
and a.audit_status='已完成'
and u."PROVINCE"
<![CDATA[<>]]>
''
and u."CITY"
<![CDATA[<>]]>
''
and u."COUNTY"
<![CDATA[<>]]>
''
) c
where
c.areaCode like concat('%',#{cityCode}, '%')
group by
c.equ_list,
c.equ_category,
c.equ_define
</select>
</select>
<select
id=
"getScrappedDeviceCount"
resultType=
"java.util.Map"
>
<select
id=
"getScrappedDeviceCount"
resultType=
"java.util.Map"
>
select
select
count(1) as num,c.time
count(1) as num,c.time
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
4aae199e
...
@@ -1487,42 +1487,24 @@
...
@@ -1487,42 +1487,24 @@
LEFT JOIN idx_biz_jg_register_info jri ON re.equ_id = jri.RECORD
LEFT JOIN idx_biz_jg_register_info jri ON re.equ_id = jri.RECORD
where ur.sequence_nbr = #{sequenceNbr}
where ur.sequence_nbr = #{sequenceNbr}
</select>
</select>
<select
id=
"queryNewDeviceStaticListData"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.EquipBizCountDto"
>
<select
id=
"queryNewDeviceStaticListData"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.EquipBizCountDto"
>
select
SELECT COUNT ( 1 ) as num,
c.equ_list,
jri.equ_list AS equList,
c.equ_category,
jri.equ_category AS equCategory
c.equ_define,
FROM
count(1) as num
privilege_company pc
from
INNER JOIN tz_base_enterprise_info bi ON bi.supervise_org_code LIKE CONCAT ( pc.org_code, '%' )
(SELECT
INNER JOIN tzs_jg_use_registration tjur ON tjur.use_unit_credit_code = bi.use_unit_code
ri.equ_list,
AND tjur.status = '已完成'
ri.equ_category,
INNER JOIN tzs_jg_use_registration_eq tjure ON tjure.equip_transfer_id = tjur.sequence_nbr
ri.equ_define,
INNER JOIN idx_biz_jg_register_info jri ON tjure.equ_id = jri.record
concat(u.PROVINCE,'#', u.CITY,'#', u.COUNTY) as areaCode
WHERE pc.company_code = #{cityCode}
FROM
and (tjur.audit_pass_date between #{beginDate} and #{endDate})
"tzs_jg_use_registration_eq" ae,
and tjur.is_delete = 0
tzs_jg_use_registration a,
GROUP BY jri.equ_category
"idx_biz_jg_use_info" u,
idx_biz_jg_register_info ri
where
ae.equ_id = u."RECORD"
and a.sequence_nbr = ae.equip_transfer_id
and u."RECORD" = ri."RECORD"
and (a.audit_pass_date between #{beginDate} and #{endDate})
and a.status='已完成'
and a.is_delete = 0
and u."PROVINCE"
<![CDATA[<>]]>
''
and u."CITY"
<![CDATA[<>]]>
''
and u."COUNTY"
<![CDATA[<>]]>
''
) c
where
c.areaCode like concat('%',#{cityCode}, '%')
group by
c.equ_list,
c.equ_category,
c.equ_define
</select>
</select>
<select
id=
"getUseRegisterCount"
resultType=
"java.util.Map"
>
<select
id=
"getUseRegisterCount"
resultType=
"java.util.Map"
>
SELECT COUNT(1) AS num,C.time
SELECT COUNT(1) AS num,C.time
FROM
FROM
...
@@ -1534,8 +1516,7 @@
...
@@ -1534,8 +1516,7 @@
tzs_jg_use_registration A,
tzs_jg_use_registration A,
"idx_biz_jg_use_info" u,
"idx_biz_jg_use_info" u,
idx_biz_jg_register_info ri
idx_biz_jg_register_info ri
WHERE
WHERE ae.equ_id = u."RECORD"
ae.equ_id = u."RECORD"
AND ri.EQU_CATEGORY = '2300'
AND ri.EQU_CATEGORY = '2300'
AND A.sequence_nbr = ae.equip_transfer_id
AND A.sequence_nbr = ae.equip_transfer_id
AND u."RECORD" = ri."RECORD"
AND u."RECORD" = ri."RECORD"
...
...
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/JgChangeRegistrationTransferServiceImpl.java
View file @
4aae199e
...
@@ -652,7 +652,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -652,7 +652,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
*/
*/
@Override
@Override
@ResultFieldMapping
({
@ResultFieldMapping
({
@ResultFieldMapping
.
ResultFieldMap
(
sourceField
=
"changeRegistrationTransfer.
estateUnitCode
"
,
@ResultFieldMapping
.
ResultFieldMap
(
sourceField
=
"changeRegistrationTransfer.
transferUseInfo
"
,
targetField
=
"changeRegistrationTransfer.estateUnitSeq"
,
targetField
=
"changeRegistrationTransfer.estateUnitSeq"
,
serviceClass
=
CommonServiceImpl
.
class
,
serviceClass
=
CommonServiceImpl
.
class
,
queryMethod
=
"queryTcmUnitSeqByCreditCode"
,
queryMethod
=
"queryTcmUnitSeqByCreditCode"
,
...
...
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 @
4aae199e
...
@@ -4070,10 +4070,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -4070,10 +4070,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
workflowResultDto
.
setNextTaskCode
(
"已完成"
);
workflowResultDto
.
setNextTaskCode
(
"已完成"
);
workflowResultDto
.
setNextTaskId
(
jgUseRegistration
.
getNextTaskId
());
workflowResultDto
.
setNextTaskId
(
jgUseRegistration
.
getNextTaskId
());
workflowResultDto
.
setNextExecutorUserIds
(
jgUseRegistration
.
getNextExecuteUserIds
());
workflowResultDto
.
setNextExecutorUserIds
(
jgUseRegistration
.
getNextExecuteUserIds
());
JSONObject
jsonObject
=
Optional
.
ofNullable
(
jgRegistrationHistoryService
.
queryLatestRegistrationHistory
(
jgUseRegistration
.
getSequenceNbr
()))
.
map
(
JgRegistrationHistory:
:
getChangeData
)
.
map
(
JSON:
:
parseObject
)
.
orElse
(
new
JSONObject
());
if
(
jgUseRegistration
.
getManageType
().
equals
(
"unit"
))
{
if
(
jgUseRegistration
.
getManageType
().
equals
(
"unit"
))
{
this
.
updateUseRegUnitData
(
jgUseRegistration
.
getSequenceNbr
(),
"0"
,
workflowResultDto
,
false
,
null
);
this
.
updateUseRegUnitData
(
jgUseRegistration
.
getSequenceNbr
(),
"0"
,
workflowResultDto
,
false
,
jsonObject
);
}
else
{
}
else
{
this
.
updateData
(
jgUseRegistration
.
getSequenceNbr
(),
"0"
,
workflowResultDto
,
null
,
false
,
null
);
this
.
updateData
(
jgUseRegistration
.
getSequenceNbr
(),
"0"
,
workflowResultDto
,
null
,
false
,
jsonObject
);
}
}
});
});
}
}
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/enums/OpenBizTypeEnumV2.java
View file @
4aae199e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
api
.
enums
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
api
.
enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.Getter
;
import
java.util.Arrays
;
import
java.util.Arrays
;
...
@@ -9,28 +10,38 @@ import java.util.Optional;
...
@@ -9,28 +10,38 @@ import java.util.Optional;
* @author Administrator
* @author Administrator
*/
*/
@Getter
@Getter
@AllArgsConstructor
public
enum
OpenBizTypeEnumV2
{
public
enum
OpenBizTypeEnumV2
{
/**
/**
* 业务类型
* 业务类型
*/
*/
JY
(
"jy"
,
"检验机构"
,
"检验业务"
),
JY
(
"jy"
,
"检验机构"
,
"检验业务"
,
true
),
JC
(
"jc"
,
"检测机构"
,
"检测业务"
),
JC
(
"jc"
,
"检测机构"
,
"检测业务"
,
true
),
SYDW
(
"jc-sydw"
,
"使用单位"
,
"使用单位电梯检测"
),
SYDW
(
"jc-sydw"
,
"使用单位"
,
"使用单位电梯检测"
,
false
),
AGW
(
"jc-agw"
,
"安装改造维修单位"
,
"安改维电梯检测"
);
AGW
(
"jc-agw"
,
"安装改造维修单位"
,
"安改维电梯检测"
,
false
);
/**
* 唯一标识
*/
private
final
String
code
;
private
final
String
code
;
/**
* 单位类型
*/
private
final
String
unitType
;
private
final
String
unitType
;
/**
* 描述
*/
private
final
String
description
;
private
final
String
description
;
/**
* 是否需要资质
*/
private
final
boolean
needSaveLicense
;
OpenBizTypeEnumV2
(
String
code
,
String
unitType
,
String
description
)
{
this
.
code
=
code
;
this
.
unitType
=
unitType
;
this
.
description
=
description
;
}
public
static
OpenBizTypeEnumV2
getOneByCode
(
String
code
)
{
public
static
OpenBizTypeEnumV2
getOneByCode
(
String
code
)
{
Optional
<
OpenBizTypeEnumV2
>
op
=
Arrays
.
stream
(
OpenBizTypeEnumV2
.
values
()).
filter
(
e
->
e
.
getCode
().
equals
(
code
)).
findFirst
();
Optional
<
OpenBizTypeEnumV2
>
op
=
Arrays
.
stream
(
OpenBizTypeEnumV2
.
values
()).
filter
(
e
->
e
.
getCode
().
equals
(
code
)).
findFirst
();
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/action/RuleActionHandler.java
View file @
4aae199e
...
@@ -116,6 +116,12 @@ public class RuleActionHandler {
...
@@ -116,6 +116,12 @@ public class RuleActionHandler {
unitDto
.
setSort
(
0
);
unitDto
.
setSort
(
0
);
continue
;
continue
;
}
}
if
(
unitDto
.
getAgencyClassify
()
==
null
){
unitDto
.
setSort
(
2
);
continue
;
}
if
(
unitDto
.
getAgencyClassify
().
contains
(
JyAgencyClassifyEnum
.
SBGY
.
getCode
())){
if
(
unitDto
.
getAgencyClassify
().
contains
(
JyAgencyClassifyEnum
.
SBGY
.
getCode
())){
unitDto
.
setSort
(-
1
);
unitDto
.
setSort
(-
1
);
continue
;
continue
;
...
@@ -124,6 +130,7 @@ public class RuleActionHandler {
...
@@ -124,6 +130,7 @@ public class RuleActionHandler {
unitDto
.
setSort
(
1
);
unitDto
.
setSort
(
1
);
}
}
}
}
// 升序
return
units
.
stream
().
sorted
(
Comparator
.
comparing
(
RuleInspectUnitIndoDto:
:
getSort
,
Comparator
.
nullsLast
(
Integer:
:
compareTo
))).
collect
(
Collectors
.
toList
());
return
units
.
stream
().
sorted
(
Comparator
.
comparing
(
RuleInspectUnitIndoDto:
:
getSort
,
Comparator
.
nullsLast
(
Integer:
:
compareTo
))).
collect
(
Collectors
.
toList
());
}
}
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
View file @
4aae199e
...
@@ -39,8 +39,8 @@ import com.yeejoin.amos.boot.module.jyjc.api.model.*;
...
@@ -39,8 +39,8 @@ import com.yeejoin.amos.boot.module.jyjc.api.model.*;
import
com.yeejoin.amos.boot.module.jyjc.api.service.IJyjcOpeningApplicationService
;
import
com.yeejoin.amos.boot.module.jyjc.api.service.IJyjcOpeningApplicationService
;
import
com.yeejoin.amos.boot.module.jyjc.api.vo.JyjcOpeningApplicationVo
;
import
com.yeejoin.amos.boot.module.jyjc.api.vo.JyjcOpeningApplicationVo
;
import
com.yeejoin.amos.boot.module.jyjc.biz.config.BaseException
;
import
com.yeejoin.amos.boot.module.jyjc.biz.config.BaseException
;
import
com.yeejoin.amos.boot.module.jyjc.biz.message.factoty.OpenAppMsgFactory
;
import
com.yeejoin.amos.boot.module.jyjc.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jyjc.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jyjc.biz.message.factoty.OpenAppMsgFactory
;
import
com.yeejoin.amos.boot.module.jyjc.biz.service.TaskModelServiceImpl
;
import
com.yeejoin.amos.boot.module.jyjc.biz.service.TaskModelServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseEnterpriseInfoDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseEnterpriseInfoDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.BaseUnitLicence
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.BaseUnitLicence
;
...
@@ -151,7 +151,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -151,7 +151,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
private
SnowflakeIdUtil
sequence
;
private
SnowflakeIdUtil
sequence
;
@Resource
@Resource
private
OpenAppMsgFactory
openAppMsgFactory
;
private
OpenAppMsgFactory
openAppMsgFactory
;
/**
/**
* 编辑、工作台暂存逻辑
* 编辑、工作台暂存逻辑
...
@@ -341,7 +341,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -341,7 +341,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
// 将历史同单位类型+同机构类别的开通申请作废掉
// 将历史同单位类型+同机构类别的开通申请作废掉
for
(
Long
id
:
ids
)
{
for
(
Long
id
:
ids
)
{
JyjcInspectionHistory
historyOpened
=
inspectionHistoryService
.
getBySSeq
(
id
);
JyjcInspectionHistory
historyOpened
=
inspectionHistoryService
.
getBySSeq
(
id
);
if
(
historyOpened
!=
null
)
{
if
(
historyOpened
!=
null
)
{
JSONObject
hisDataOpened
=
historyOpened
.
getHistoryData
();
JSONObject
hisDataOpened
=
historyOpened
.
getHistoryData
();
List
<
BaseEnterpriseCertDto
>
certOpened
=
hisDataOpened
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
);
List
<
BaseEnterpriseCertDto
>
certOpened
=
hisDataOpened
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
);
boolean
matchHisOpened
=
certOpened
.
stream
().
anyMatch
(
c
->
agencyTypeLast
.
contains
(
c
.
getAgencyType
()));
boolean
matchHisOpened
=
certOpened
.
stream
().
anyMatch
(
c
->
agencyTypeLast
.
contains
(
c
.
getAgencyType
()));
...
@@ -472,7 +472,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -472,7 +472,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
applyStartTime
=
date
+
" 00:00:00"
;
applyStartTime
=
date
+
" 00:00:00"
;
applyEndTime
=
date
+
" 23:59:59"
;
applyEndTime
=
date
+
" 23:59:59"
;
}
}
Page
<
JyjcOpeningApplicationModel
>
result
=
jyjcOpeningApplicationMapper
.
selectJyjcOpeningApplicationList
(
page
,
dto
,
applyStartTime
,
currentUserId
,
applyEndTime
,
orgCode
);
Page
<
JyjcOpeningApplicationModel
>
result
=
jyjcOpeningApplicationMapper
.
selectJyjcOpeningApplicationList
(
page
,
dto
,
applyStartTime
,
currentUserId
,
applyEndTime
,
orgCode
);
for
(
JyjcOpeningApplicationModel
openingApplicationModel
:
result
.
getRecords
())
{
for
(
JyjcOpeningApplicationModel
openingApplicationModel
:
result
.
getRecords
())
{
openingApplicationModel
.
setIdentityType
(
dto
.
getType
());
openingApplicationModel
.
setIdentityType
(
dto
.
getType
());
openingApplicationModel
.
setOpenBizTypeName
(
this
.
getOpenBizTypeName
(
openingApplicationModel
.
getOpenBizType
()));
openingApplicationModel
.
setOpenBizTypeName
(
this
.
getOpenBizTypeName
(
openingApplicationModel
.
getOpenBizType
()));
...
@@ -547,7 +547,6 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -547,7 +547,6 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
}
}
private
String
getOpenBizTypeByIdentity
(
String
unitType
)
{
private
String
getOpenBizTypeByIdentity
(
String
unitType
)
{
OpenBizTypeEnumV2
bizTypeEnumV2
=
OpenBizTypeEnumV2
.
getOneByUnitType
(
unitType
);
OpenBizTypeEnumV2
bizTypeEnumV2
=
OpenBizTypeEnumV2
.
getOneByUnitType
(
unitType
);
if
(
bizTypeEnumV2
==
null
)
{
if
(
bizTypeEnumV2
==
null
)
{
...
@@ -849,7 +848,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -849,7 +848,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
// 更新json
// 更新json
commonService
.
saveOrUpdateHistory
(
jyjcOpeningApplication
.
getOpenBizType
(),
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
params
)),
jyjcOpeningApplication
.
getSequenceNbr
());
commonService
.
saveOrUpdateHistory
(
jyjcOpeningApplication
.
getOpenBizType
(),
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
params
)),
jyjcOpeningApplication
.
getSequenceNbr
());
// 将审批通过的资质信息写入到企业资质表
// 将审批通过的资质信息写入到企业资质表
this
.
saveLicenseData2Company
(
jyjcOpeningApplication
);
this
.
processApplication
(
jyjcOpeningApplication
);
}
}
jyjcOpeningApplicationMapper
.
updateById
(
jyjcOpeningApplication
);
jyjcOpeningApplicationMapper
.
updateById
(
jyjcOpeningApplication
);
// 已完成 作废逻辑
// 已完成 作废逻辑
...
@@ -895,6 +894,16 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -895,6 +894,16 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
return
Optional
.
ofNullable
(
OpenBizTypeEnumV2
.
getOneByCode
(
openBizType
)).
map
(
OpenBizTypeEnumV2:
:
getUnitType
).
orElse
(
null
);
return
Optional
.
ofNullable
(
OpenBizTypeEnumV2
.
getOneByCode
(
openBizType
)).
map
(
OpenBizTypeEnumV2:
:
getUnitType
).
orElse
(
null
);
}
}
/**
* 需要资质的才进行进行记录资质
*
* @param application 开通申请
*/
private
void
processApplication
(
JyjcOpeningApplication
application
)
{
Optional
.
ofNullable
(
OpenBizTypeEnumV2
.
getOneByCode
(
application
.
getOpenBizType
()))
.
filter
(
OpenBizTypeEnumV2:
:
isNeedSaveLicense
).
ifPresent
(
o
->
saveLicenseData2Company
(
application
));
}
private
void
saveLicenseData2Company
(
JyjcOpeningApplication
jyjcOpeningApplication
)
{
private
void
saveLicenseData2Company
(
JyjcOpeningApplication
jyjcOpeningApplication
)
{
JyjcInspectionHistory
history
=
inspectionHistoryService
.
getBySSeq
(
jyjcOpeningApplication
.
getSequenceNbr
());
JyjcInspectionHistory
history
=
inspectionHistoryService
.
getBySSeq
(
jyjcOpeningApplication
.
getSequenceNbr
());
JSONObject
hisData
=
history
.
getHistoryData
();
JSONObject
hisData
=
history
.
getHistoryData
();
...
@@ -933,7 +942,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -933,7 +942,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
licence
.
setAgencyTypeName
(
commonService
.
getDictName
(
Arrays
.
asList
(
"1233-1"
,
"1233-2"
),
licence
.
getAgencyType
()));
licence
.
setAgencyTypeName
(
commonService
.
getDictName
(
Arrays
.
asList
(
"1233-1"
,
"1233-2"
),
licence
.
getAgencyType
()));
licence
.
setUnitCode
(
jyjcOpeningApplication
.
getUnitCode
());
licence
.
setUnitCode
(
jyjcOpeningApplication
.
getUnitCode
());
licence
.
setUnitName
(
jyjcOpeningApplication
.
getUnitCodeName
());
licence
.
setUnitName
(
jyjcOpeningApplication
.
getUnitCodeName
());
licence
.
setLicenceType
(
LicenceTypeEnum
.
JY_JC
.
getCode
());
licence
.
setLicenceType
(
LicenceTypeEnum
.
JY_JC
.
getCode
());
licence
.
setEnterpriseCertSeq
(
cert
.
getSequenceNbr
().
toString
());
licence
.
setEnterpriseCertSeq
(
cert
.
getSequenceNbr
().
toString
());
licences
.
add
(
licence
);
licences
.
add
(
licence
);
});
});
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/AQZSDPStatisticsMapper.xml
View file @
4aae199e
...
@@ -147,8 +147,13 @@
...
@@ -147,8 +147,13 @@
FROM
FROM
tzs_safety_problem_tracing
tzs_safety_problem_tracing
WHERE
WHERE
governing_body_org_code LIKE concat ( #{orgCode}, '%' )
is_delete = '0'
AND DATE_FORMAT ( problem_time, '%Y-%m-%d' )
>
= #{time}
AND problem_status = '未处理'
AND governing_body_org_code LIKE concat ( #{orgCode}, '%' )
AND problem_time
>
= #{time}
order by
problem_time
LIMIT 30
</select>
</select>
<select
id=
"cylinderIssueMonthList"
resultType=
"java.util.Map"
>
<select
id=
"cylinderIssueMonthList"
resultType=
"java.util.Map"
>
...
@@ -205,11 +210,15 @@
...
@@ -205,11 +210,15 @@
FROM
FROM
tzs_safety_problem_tracing
tzs_safety_problem_tracing
WHERE
WHERE
DATE_FORMAT(problem_time,'%Y')
>
= #{now}
problem_time
>
= #{now}
AND
<if
test=
"orgCodes != null"
>
<foreach
collection=
"orgCodes"
item=
"orgCode"
separator=
"OR"
open=
"("
close=
")"
>
AND
governing_body_org_code LIKE concat ( #{orgCode}, '%' )
governing_body_org_code LIKE any(array[
</foreach>
<foreach
collection=
"orgCodes"
item=
"orgCode"
separator=
","
>
#{orgCode}
</foreach>
])
</if>
<if
test=
"null != status"
>
<if
test=
"null != status"
>
AND problem_status_code = #{status}
AND problem_status_code = #{status}
</if>
</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/AQZSDPStatisticsServiceImpl.java
View file @
4aae199e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistcs
.
biz
.
service
.
impl
;
import
cn.hutool.core.date.DateUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
@@ -784,8 +785,8 @@ public class AQZSDPStatisticsServiceImpl {
...
@@ -784,8 +785,8 @@ public class AQZSDPStatisticsServiceImpl {
orgCodeAndCompanyCodesByCompanyCodes
.
forEach
(
t
->
{
orgCodeAndCompanyCodesByCompanyCodes
.
forEach
(
t
->
{
orgCodeAndCompanyCodesMap
.
put
(
t
.
get
(
"companyCode"
),
t
.
get
(
"orgCode"
));
orgCodeAndCompanyCodesMap
.
put
(
t
.
get
(
"companyCode"
),
t
.
get
(
"orgCode"
));
});
});
List
<
Map
<
String
,
Object
>>
allIssueCount
=
statisticsMapper
.
issueChildrenCityCountTop
(
orgCodes
,
now
,
null
);
List
<
Map
<
String
,
Object
>>
allIssueCount
=
statisticsMapper
.
issueChildrenCityCountTop
(
orgCodes
,
DateUtil
.
beginOfYear
(
new
Date
()).
toDateStr
()
,
null
);
List
<
Map
<
String
,
Object
>>
endIssueCount
=
statisticsMapper
.
issueChildrenCityCountTop
(
orgCodes
,
now
,
"1"
);
List
<
Map
<
String
,
Object
>>
endIssueCount
=
statisticsMapper
.
issueChildrenCityCountTop
(
orgCodes
,
DateUtil
.
beginOfYear
(
new
Date
()).
toDateStr
()
,
"1"
);
Map
<
String
,
Object
>
allIssuedataMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
allIssuedataMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
endIssuedataMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
endIssuedataMap
=
new
HashMap
<>();
allIssueCount
.
forEach
(
t
->
{
allIssueCount
.
forEach
(
t
->
{
...
...
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 @
4aae199e
...
@@ -1168,9 +1168,9 @@ public class JGDPStatisticsServiceImpl {
...
@@ -1168,9 +1168,9 @@ public class JGDPStatisticsServiceImpl {
//停用
//停用
List
<
Map
>
stopList
=
useRegistrationMapper
.
stopStateCount
(
orgCode
);
List
<
Map
>
stopList
=
useRegistrationMapper
.
stopStateCount
(
orgCode
);
//注销
//注销
List
<
Map
>
cancelList
=
useRegistrationMapper
.
cancelStateCount
(
orgCode
,
1
);
List
<
Map
>
cancelList
=
useRegistrationMapper
.
cancelStateCount
(
orgCode
,
2
);
//报废
//报废
List
<
Map
>
scrapList
=
useRegistrationMapper
.
cancelStateCount
(
orgCode
,
2
);
List
<
Map
>
scrapList
=
useRegistrationMapper
.
cancelStateCount
(
orgCode
,
1
);
Map
<
String
,
Long
>
stopMap
=
new
HashMap
<>();
Map
<
String
,
Long
>
stopMap
=
new
HashMap
<>();
Map
<
String
,
Long
>
cancelMap
=
new
HashMap
<>();
Map
<
String
,
Long
>
cancelMap
=
new
HashMap
<>();
...
...
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