Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
relation
Commits
db2763e4
Commit
db2763e4
authored
Aug 09, 2025
by
zhuxiang
Browse files
增加更新节点接口
parent
05bcfa64
Changes
5
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/controller/CaseController.java
View file @
db2763e4
...
@@ -97,4 +97,9 @@ public class CaseController extends BaseController {
...
@@ -97,4 +97,9 @@ public class CaseController extends BaseController {
public
Result
updateMerchantToPerson
(
@RequestBody
UserDTO
userDTO
)
{
public
Result
updateMerchantToPerson
(
@RequestBody
UserDTO
userDTO
)
{
return
Result
.
data
(
caseService
.
updateMerchantToPerson
(
userDTO
));
return
Result
.
data
(
caseService
.
updateMerchantToPerson
(
userDTO
));
}
}
@PutMapping
(
"/detail/updateNode"
)
public
Result
updateNode
(
@RequestBody
CaseDTO
caseDTO
)
{
return
toAjax
(
caseService
.
updateNode
(
caseDTO
));
}
}
}
src/main/java/com/platform/model/dto/CaseDTO.java
View file @
db2763e4
package
com.platform.model.dto
;
package
com.platform.model.dto
;
import
com.platform.model.entity.CasesEntity
;
import
com.platform.model.entity.CasesEntity
;
import
com.platform.model.entity.NodeEntity
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* @author : wujipeng
* @author : wujipeng
...
@@ -45,4 +47,6 @@ public class CaseDTO extends CasesEntity {
...
@@ -45,4 +47,6 @@ public class CaseDTO extends CasesEntity {
private
String
label
;
private
String
label
;
private
String
nodeType
;
private
String
nodeType
;
private
List
<
NodeEntity
>
nodeList
;
}
}
src/main/java/com/platform/model/entity/NodeEntity.java
View file @
db2763e4
...
@@ -15,4 +15,8 @@ public class NodeEntity {
...
@@ -15,4 +15,8 @@ public class NodeEntity {
private
int
caseId
;
private
int
caseId
;
private
String
node
;
private
String
node
;
private
String
x
;
private
String
y
;
}
}
src/main/java/com/platform/service/CasesService.java
View file @
db2763e4
...
@@ -80,4 +80,6 @@ public interface CasesService extends IService<CasesEntity> {
...
@@ -80,4 +80,6 @@ public interface CasesService extends IService<CasesEntity> {
boolean
updateUserUse
(
ExcelDataDTO
excelDataDTO
);
boolean
updateUserUse
(
ExcelDataDTO
excelDataDTO
);
boolean
updateMerchantToPerson
(
UserDTO
userDTO
);
boolean
updateMerchantToPerson
(
UserDTO
userDTO
);
boolean
updateNode
(
CaseDTO
caseDTO
);
}
}
src/main/java/com/platform/service/impl/CaseServiceImpl.java
View file @
db2763e4
...
@@ -450,6 +450,19 @@ public class CaseServiceImpl extends ServiceImpl<CaseMapper, CasesEntity> implem
...
@@ -450,6 +450,19 @@ public class CaseServiceImpl extends ServiceImpl<CaseMapper, CasesEntity> implem
return
false
;
return
false
;
}
}
@Override
public
boolean
updateNode
(
CaseDTO
caseDTO
)
{
//查看案例信息
CasesEntity
casesEntity
=
getById
((
caseDTO
.
getId
()));
if
(
casesEntity
==
null
)
{
return
false
;
}
nodeService
.
updateBatchById
(
caseDTO
.
getNodeList
());
//更新案例画布
casesEntity
.
setDrawFlag
(
true
);
return
updateById
(
casesEntity
);
}
@Override
@Override
public
List
<
NodeVO
>
info
(
CaseDTO
caseDTO
)
{
public
List
<
NodeVO
>
info
(
CaseDTO
caseDTO
)
{
// 使用Set去重
// 使用Set去重
...
...
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