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
25725d9b
Commit
25725d9b
authored
Aug 23, 2022
by
zhaji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"feature-zhaJi:优化商险删除,查询的校验"
parent
0beec024
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
TInsuranceEnclosureController.java
.../insurances/controller/TInsuranceEnclosureController.java
+2
-2
TInsuranceEnclosureServiceImpl.java
...surances/service/impl/TInsuranceEnclosureServiceImpl.java
+10
-4
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceEnclosureController.java
View file @
25725d9b
...
...
@@ -76,8 +76,8 @@ public class TInsuranceEnclosureController {
/**
* 删除商险附件
*
* @param id
* @return
* @param id
商险id
* @return
R
* @Author zhaji
* @Date 2022-08-23
**/
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceEnclosureServiceImpl.java
View file @
25725d9b
...
...
@@ -107,6 +107,9 @@ public class TInsuranceEnclosureServiceImpl extends ServiceImpl<TInsuranceEnclos
*/
@Override
public
R
getInsuranceEnclosureUrl
(
String
id
)
{
if
(
Common
.
isEmpty
(
id
)){
return
R
.
failed
(
"附件id为空"
);
}
TInsuranceEnclosure
insuranceEnclosure
=
getById
(
id
);
if
(
null
==
insuranceEnclosure
)
{
return
R
.
failed
(
"无对应附件信息"
);
...
...
@@ -126,11 +129,14 @@ public class TInsuranceEnclosureServiceImpl extends ServiceImpl<TInsuranceEnclos
*/
@Override
public
R
deleteInsuranceEnclosure
(
String
id
)
{
if
(
Common
.
isEmpty
(
id
)){
return
R
.
failed
(
"附件id为空"
);
}
TInsuranceEnclosure
insuranceEnclosure
=
getById
(
id
);
if
(
null
==
insuranceEnclosure
)
{
return
R
.
failed
(
"无对应附件信息"
);
}
try
{
TInsuranceEnclosure
insuranceEnclosure
=
getById
(
id
);
if
(
null
==
insuranceEnclosure
)
{
return
R
.
failed
(
"无对应附件信息"
);
}
if
(
removeById
(
id
))
{
ossUtil
.
deleteObject
(
null
,
insuranceEnclosure
.
getEnclosureAddress
());
return
R
.
ok
(
"删除成功!"
);
...
...
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