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
ff44649d
Commit
ff44649d
authored
Jan 21, 2026
by
tianbo
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_test
parents
7d692862
f69ac10f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
122 deletions
+59
-122
JgUseRegistrationManageMapper.xml
...c/main/resources/mapper/JgUseRegistrationManageMapper.xml
+51
-120
TzBaseEnterpriseInfoController.java
...le/tcm/biz/controller/TzBaseEnterpriseInfoController.java
+5
-1
EnterpriseManageServiceImpl.java
...ule/tcm/biz/service/impl/EnterpriseManageServiceImpl.java
+1
-0
TcmCommonService.java
...os/boot/module/tcm/biz/service/impl/TcmCommonService.java
+2
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationManageMapper.xml
View file @
ff44649d
...
...
@@ -508,129 +508,60 @@
<select
id=
"queryForUnitByProjectContraptionPage"
resultType=
"com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgProjectContraption"
>
SELECT distinct
ibjpc.*,
(SELECT ei.sequence_nbr from idx_biz_jg_use_info ui
LEFT JOIN tz_base_enterprise_info ei ON ei.use_unit_code = ui."ESTATE_UNIT_CREDIT_CODE"
WHERE ui."PROJECT_CONTRAPTION_ID" = ibjpc.sequence_nbr ORDER BY ui."REC_DATE" DESC LIMIT 1) AS estateUnitName
FROM
idx_biz_jg_project_contraption ibjpc
LEFT JOIN tzs_jg_use_registration_manage tjurm ON ibjpc.use_registration_code = tjurm.use_registration_code
WHERE
EXISTS (
SELECT
1
ibjpc.sequence_nbr,
ibjpc.project_contraption,
ibjpc.project_contraption_no,
ibjpc.use_unit_credit_code,
ibjpc.use_unit_name,
ibjpc.usc_unit_credit_code,
ibjpc.usc_unit_name,
ibjpc.equ_list_name,
ibjpc.equ_list,
ibjpc.equ_category_name,
ibjpc.equ_category,
ibjpc.equ_define_name,
ibjpc.equ_define,
ibjpc.content,
ibjpc.rec_date,
ibjpc.rec_user_id,
ibjpc.pipeline_length,
ibjpc.org_code,
ibjpc.org_name,
ibjpc.province,
ibjpc.city,
ibjpc.county,
ibjpc.street,
ibjpc.address,
ibjpc.province_name,
ibjpc.city_name,
ibjpc.county_name,
ibjpc.street_name,
ibjpc.create_date,
ibjpc.create_user_name,
ibjpc.supervisory_code,
ibjpc.use_registration_code,
ibjpc.is_into_management,
ibjpc.data_source,
ibjpc.equ_code,
ibjpc.use_date,
(SELECT ei.sequence_nbr from idx_biz_jg_use_info ui
LEFT JOIN tz_base_enterprise_info ei ON ei.use_unit_code = ui."ESTATE_UNIT_CREDIT_CODE"
WHERE ui."PROJECT_CONTRAPTION_ID" = ibjpc.sequence_nbr ORDER BY ui."REC_DATE" DESC LIMIT 1) AS estateUnitName
FROM
idx_biz_jg_use_info ibjui
INNER JOIN (
select DISTINCT record from (
select
equ_id as record
from
tzs_jg_use_registration a,
tzs_jg_use_registration_eq b
where
a.sequence_nbr = b.equip_transfer_id
and a.is_delete = 0
and (a.status
<![CDATA[ <> ]]>
'使用单位待提交' and a.status
<![CDATA[ <> ]]>
'一级受理已驳回' and a.status
<![CDATA[ <> ]]>
'使用单位已撤回' and a.status
<![CDATA[ <> ]]>
'已作废')
UNION
select
equ_id as record
from
tzs_jg_change_registration_reform a,
tzs_jg_change_registration_reform_eq b
where
a.sequence_nbr = b.equip_transfer_id
and (a.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and a.audit_status
<![CDATA[ <> ]]>
'一级受理已驳回' and a.audit_status
<![CDATA[ <> ]]>
'使用单位已撤回' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
UNION
select
equ_id as record
from
tzs_jg_change_registration_transfer a,
tzs_jg_change_registration_transfer_eq b
where
a.sequence_nbr = b.equip_transfer_id
and (a.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and a.audit_status
<![CDATA[ <> ]]>
'一级受理已驳回' and a.audit_status
<![CDATA[ <> ]]>
'使用单位已撤回' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
UNION
select
equ_id as record
from
tzs_jg_change_registration_unit a,
tzs_jg_change_registration_unit_eq b
where
a.sequence_nbr = b.unit_change_registration_id
and (a.status
<![CDATA[ <> ]]>
'使用单位待提交' and a.status
<![CDATA[ <> ]]>
'一级受理已驳回' and a.status
<![CDATA[ <> ]]>
'使用单位已撤回' and a.status
<![CDATA[ <> ]]>
'已作废')
UNION
select
equ_id as record
from
tzs_jg_enable_disable a,
tzs_jg_enable_disable_eq b
where
a.sequence_nbr = b.enable_disable_apply_id
and (a.audit_status
<![CDATA[ <> ]]>
'已驳回' and a.audit_status
<![CDATA[ <> ]]>
'已撤回' and a.audit_status
<![CDATA[ <> ]]>
'待提交' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
UNION
select
equ_id as record
from
tzs_jg_installation_notice a,
tzs_jg_installation_notice_eq b
where
a.sequence_nbr = b.equip_transfer_id
and (a.notice_status
<![CDATA[ <> ]]>
'6614' and a.notice_status
<![CDATA[ <> ]]>
'6615' and a.notice_status
<![CDATA[ <> ]]>
'6610' and a.notice_status
<![CDATA[ <> ]]>
'6617')
UNION
select
equ_id as record
from
tzs_jg_maintain_notice a,
tzs_jg_maintain_notice_eq b
where
a.sequence_nbr = b.equip_transfer_id
and (a.notice_status
<![CDATA[ <> ]]>
'6614' and a.notice_status
<![CDATA[ <> ]]>
'6615' and a.notice_status
<![CDATA[ <> ]]>
'6610' and a.notice_status
<![CDATA[ <> ]]>
'6617')
UNION
select
equ_id as record
from
tzs_jg_reform_notice a,
tzs_jg_reform_notice_eq b
where
a.sequence_nbr = b.equip_transfer_id
and (a.notice_status
<![CDATA[ <> ]]>
'6614' and a.notice_status
<![CDATA[ <> ]]>
'6615' and a.notice_status
<![CDATA[ <> ]]>
'6610' and a.notice_status
<![CDATA[ <> ]]>
'6617')
UNION
select
equ_id as record
from
tzs_jg_scrap_cancel a,
tzs_jg_scrap_cancel_eq b
where
a.sequence_nbr = b.equip_transfer_id
and (a.audit_status
<![CDATA[ <> ]]>
'使用单位已撤回' and a.audit_status
<![CDATA[ <> ]]>
'一级受理已驳回' and a.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
UNION
select
equ_id as record
from
tzs_jg_transfer_notice a,
tzs_jg_transfer_notice_eq b
where
a.sequence_nbr = b.equip_transfer_id
and (a.notice_status
<![CDATA[ <> ]]>
'6614' and a.notice_status
<![CDATA[ <> ]]>
'6615' and a.notice_status
<![CDATA[ <> ]]>
'6610' and a.notice_status
<![CDATA[ <> ]]>
'6617')
) temp
) a ON ibjui."RECORD" = a.record
idx_biz_jg_project_contraption ibjpc
LEFT JOIN tzs_jg_use_registration_manage tjurm ON ibjpc.use_registration_code = tjurm.use_registration_code
WHERE
ibjpc.sequence_nbr = ibjui."PROJECT_CONTRAPTION_ID"
)
and ibjpc.use_unit_credit_code = #{dto.originalUseUnitCreditCode}
and ibjpc.is_delete = 0
and tjurm.is_delete = 0
and (ibjpc.project_contraption_parent_id is null or ibjpc.project_contraption_parent_id = '')
AND NOT EXISTS (
SELECT 1
FROM idx_biz_jg_use_info ui
WHERE ui."PROJECT_CONTRAPTION_ID" = ibjpc.sequence_nbr
GROUP BY ui."PROJECT_CONTRAPTION_ID"
HAVING COUNT(*) > 0
AND COUNT(*) = SUM(CASE WHEN ui."EQU_STATE" = '3' THEN 1 ELSE 0 END)
)
ibjpc.use_unit_credit_code = #{dto.originalUseUnitCreditCode}
and ibjpc.is_delete = 0
and tjurm.is_delete = 0
and (ibjpc.project_contraption_parent_id is null or ibjpc.project_contraption_parent_id = '')
AND EXISTS (
SELECT 1
FROM idx_biz_jg_use_info ui
WHERE ui."PROJECT_CONTRAPTION_ID" = ibjpc.sequence_nbr
AND (ui."EQU_STATE" is null or ui."EQU_STATE"
<![CDATA[<>]]>
'3' )
)
<if
test=
"dto.equList != null and dto.equList != ''"
>
and tjurm.equ_list = #{dto.equList}
</if>
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/TzBaseEnterpriseInfoController.java
View file @
ff44649d
...
...
@@ -414,7 +414,11 @@ public class TzBaseEnterpriseInfoController extends BaseController {
@RestEventTrigger
(
value
=
"operateLogRestEventHandler"
)
@RequireUserDetails
public
ResponseModel
<
ReginParams
>
disableBatch
(
@RequestParam
String
ids
,
@RequestBody
(
required
=
false
)
Map
<
String
,
Object
>
params
)
{
return
ResponseHelper
.
buildResponse
(
enterpriseManageService
.
disable
(
Arrays
.
asList
(
ids
.
split
(
","
)),
new
JSONObject
(
params
),
getSelectedOrgInfo
()));
JSONObject
psJson
=
new
JSONObject
(
params
);
if
(
StringUtils
.
isBlank
(
psJson
.
getString
(
"reason"
))){
throw
new
BadRequest
(
"停用原因不能为空!"
);
}
return
ResponseHelper
.
buildResponse
(
enterpriseManageService
.
disable
(
Arrays
.
asList
(
ids
.
split
(
","
)),
psJson
,
getSelectedOrgInfo
()));
}
...
...
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/EnterpriseManageServiceImpl.java
View file @
ff44649d
...
...
@@ -180,6 +180,7 @@ public class EnterpriseManageServiceImpl {
msg
.
put
(
"opDay"
,
String
.
valueOf
(
DateUtil
.
date
().
dayOfMonth
()));
msg
.
put
(
"opHour"
,
String
.
valueOf
(
DateUtil
.
date
().
hour
(
true
)));
msg
.
put
(
"opMin"
,
String
.
valueOf
(
DateUtil
.
date
().
minute
()));
msg
.
put
(
"unCheckSms"
,
"true"
);
commonService
.
sendSms
(
getSmsCodeByState
(
state
),
u
.
getMobile
(),
msg
);
});
}
...
...
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/TcmCommonService.java
View file @
ff44649d
...
...
@@ -24,9 +24,10 @@ public class TcmCommonService {
return
;
}
try
{
log
.
info
(
"开始调用平台发送短信:{},{},{}"
,
smsCode
,
mobile
,
customSmsMap
);
Systemctl
.
smsClient
.
sendCommonSms
(
buildSmsMap
(
smsCode
,
mobile
,
customSmsMap
));
}
catch
(
InnerInvokException
e
)
{
log
.
error
(
"消息模板:{}, 手机号:{}, 调用平台发短信失败:{}"
,
smsCode
,
mobile
,
e
.
get
Dev
Message
());
log
.
error
(
"消息模板:{}, 手机号:{}, 调用平台发短信失败:{}"
,
smsCode
,
mobile
,
e
.
getMessage
());
}
}
...
...
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