Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
08a3c6aa
Commit
08a3c6aa
authored
Jan 17, 2025
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huych-含风险项目商险不购买申请提交
parent
51a8fbc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
29 deletions
+54
-29
TInsuranceUnpurchaseApplyServiceImpl.java
...ry/service/impl/TInsuranceUnpurchaseApplyServiceImpl.java
+54
-29
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TInsuranceUnpurchaseApplyServiceImpl.java
View file @
08a3c6aa
...
...
@@ -216,6 +216,33 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance
setValue
(
tInsuranceUnpurchaseApply
,
user
,
tInsuranceUnpurchaseApply
.
getApplyNo
());
tInsuranceUnpurchaseApply
.
setCreateTimeZc
(
LocalDateTime
.
now
());
baseMapper
.
updateById
(
tInsuranceUnpurchaseApply
);
if
(
tInsuranceUnpurchaseApply
.
getAuditFlag
().
equals
(
CommonConstants
.
ZERO_STRING
))
{
// 记录提交审核日志
TAuditRecord
submitAuditRecord
=
new
TAuditRecord
();
submitAuditRecord
.
setDomainId
(
tInsuranceUnpurchaseApply
.
getId
());
submitAuditRecord
.
setFlowId
(
CommonConstants
.
EMPTY_STRING
);
submitAuditRecord
.
setNodeId
(
CommonConstants
.
EMPTY_STRING
);
submitAuditRecord
.
setApprovalMan
(
user
.
getId
());
submitAuditRecord
.
setApprovalManName
(
user
.
getNickname
());
// 审批结果为“提交”
submitAuditRecord
.
setApprovalResult
(
CommonConstants
.
dingleDigitStrArray
[
3
]);
submitAuditRecord
.
setDeleteFlag
(
CommonConstants
.
NOT_DELETE_FLAG
);
submitAuditRecord
.
setApprovalTime
(
LocalDateTime
.
now
());
// 审核记录标识 1当前审核记录
submitAuditRecord
.
setPreFlag
(
CommonConstants
.
ONE_STRING
);
submitAuditRecord
.
setSubmitMan
(
user
.
getId
());
submitAuditRecord
.
setSubmitManName
(
user
.
getNickname
());
// 申请原因
// submitAuditRecord.setReason(reason);
// 审核类型
submitAuditRecord
.
setAuditType
(
CommonConstants
.
ZERO_STRING
);
submitAuditRecord
.
setCreateTime
(
LocalDateTime
.
now
());
// 提交节点名称
submitAuditRecord
.
setNodeName
(
"提交即审核通过"
);
submitAuditRecord
.
setSubmitCreateTime
(
LocalDateTime
.
now
());
submitAuditRecord
.
setEntityName
(
applyNo
);
auditRecordService
.
save
(
submitAuditRecord
);
}
//更新附件
updateFileId
(
tInsuranceUnpurchaseApply
);
//先删除明细表数据再重新生成
...
...
@@ -243,6 +270,33 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance
tInsuranceUnpurchaseApply
.
setCreateUserDeptId
(
user
.
getDeptId
().
toString
());
tInsuranceUnpurchaseApply
.
setApplyNo
(
applyNo
);
baseMapper
.
insert
(
tInsuranceUnpurchaseApply
);
if
(
tInsuranceUnpurchaseApply
.
getAuditFlag
().
equals
(
CommonConstants
.
ZERO_STRING
))
{
// 记录提交审核日志
TAuditRecord
submitAuditRecord
=
new
TAuditRecord
();
submitAuditRecord
.
setDomainId
(
tInsuranceUnpurchaseApply
.
getId
());
submitAuditRecord
.
setFlowId
(
CommonConstants
.
EMPTY_STRING
);
submitAuditRecord
.
setNodeId
(
CommonConstants
.
EMPTY_STRING
);
submitAuditRecord
.
setApprovalMan
(
user
.
getId
());
submitAuditRecord
.
setApprovalManName
(
user
.
getNickname
());
// 审批结果为“提交”
submitAuditRecord
.
setApprovalResult
(
CommonConstants
.
dingleDigitStrArray
[
3
]);
submitAuditRecord
.
setDeleteFlag
(
CommonConstants
.
NOT_DELETE_FLAG
);
submitAuditRecord
.
setApprovalTime
(
LocalDateTime
.
now
());
// 审核记录标识 1当前审核记录
submitAuditRecord
.
setPreFlag
(
CommonConstants
.
ONE_STRING
);
submitAuditRecord
.
setSubmitMan
(
user
.
getId
());
submitAuditRecord
.
setSubmitManName
(
user
.
getNickname
());
// 申请原因
// submitAuditRecord.setReason(reason);
// 审核类型
submitAuditRecord
.
setAuditType
(
CommonConstants
.
ZERO_STRING
);
submitAuditRecord
.
setCreateTime
(
LocalDateTime
.
now
());
// 提交节点名称
submitAuditRecord
.
setNodeName
(
"提交即审核通过"
);
submitAuditRecord
.
setSubmitCreateTime
(
LocalDateTime
.
now
());
submitAuditRecord
.
setEntityName
(
applyNo
);
auditRecordService
.
save
(
submitAuditRecord
);
}
//更新附件
updateFileId
(
tInsuranceUnpurchaseApply
);
List
<
TInsuranceUnpurchasePerson
>
personInfoList
=
new
ArrayList
<>();
...
...
@@ -361,35 +415,6 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
tInsuranceUnpurchaseApply
.
setAuditFlag
(
count
>
0
?
CommonConstants
.
ZERO_STRING
:
CommonConstants
.
ONE_STRING
);
tInsuranceUnpurchaseApply
.
setStatus
(
count
>
0
?
CommonConstants
.
THREE_STRING
:
tInsuranceUnpurchaseApply
.
getStatus
());
if
(
tInsuranceUnpurchaseApply
.
getAuditFlag
().
equals
(
CommonConstants
.
ZERO_STRING
))
{
// 记录提交审核日志
TAuditRecord
submitAuditRecord
=
new
TAuditRecord
();
submitAuditRecord
.
setDomainId
(
tInsuranceUnpurchaseApply
.
getId
());
submitAuditRecord
.
setFlowId
(
CommonConstants
.
EMPTY_STRING
);
// submitAuditRecord.setNodeId(startProcessNode.getId());
submitAuditRecord
.
setApprovalMan
(
user
.
getId
());
submitAuditRecord
.
setApprovalManName
(
user
.
getNickname
());
// 审批结果为“提交”
submitAuditRecord
.
setApprovalResult
(
CommonConstants
.
dingleDigitStrArray
[
3
]);
submitAuditRecord
.
setDeleteFlag
(
CommonConstants
.
NOT_DELETE_FLAG
);
submitAuditRecord
.
setApprovalTime
(
LocalDateTime
.
now
());
// 审核记录标识 1当前审核记录
submitAuditRecord
.
setPreFlag
(
CommonConstants
.
ONE_STRING
);
submitAuditRecord
.
setSubmitMan
(
user
.
getId
());
submitAuditRecord
.
setSubmitManName
(
user
.
getNickname
());
// 申请原因
// submitAuditRecord.setReason(reason);
// 审核类型
submitAuditRecord
.
setAuditType
(
CommonConstants
.
ZERO_STRING
);
submitAuditRecord
.
setCreateTime
(
LocalDateTime
.
now
());
// 提交节点名称
submitAuditRecord
.
setNodeName
(
"提交即审核通过"
);
submitAuditRecord
.
setSubmitCreateTime
(
LocalDateTime
.
now
());
submitAuditRecord
.
setEntityName
(
applyNo
);
auditRecordService
.
save
(
submitAuditRecord
);
}
}
}
}
...
...
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