常用话术
This commit is contained in:
parent
b703242995
commit
89d35ce89e
@ -217,6 +217,7 @@ public class ScriptInfoServiceImpl implements IScriptInfoService {
|
|||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult updateScriptEdgeNode(ScriptVO scriptVO) {
|
public AjaxResult updateScriptEdgeNode(ScriptVO scriptVO) {
|
||||||
List<Long> scriptInfoEdgeIds = scriptInfoMapper.selectScriptInfoEdgeIds(scriptVO.getScriptInfoId());
|
List<Long> scriptInfoEdgeIds = scriptInfoMapper.selectScriptInfoEdgeIds(scriptVO.getScriptInfoId());
|
||||||
@ -235,8 +236,9 @@ public class ScriptInfoServiceImpl implements IScriptInfoService {
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
for (Node node : scriptVO.getNodes()) {
|
for (Node node : scriptVO.getNodes()) {
|
||||||
node.setScriptInfoId(scriptVO.getScriptInfoId());
|
node.setScriptInfoId(scriptVO.getScriptInfoId());
|
||||||
node.setScriptNodeName(node.getLabel());
|
String[] split = node.getLabel().split("\\n");
|
||||||
node.setScriptContent(node.getLabel());
|
node.setScriptNodeName(StringUtils.isBlank(split[0]) ? "" : split[0]);
|
||||||
|
node.setScriptContent(StringUtils.isBlank(split[1]) ? "" : split[0]);
|
||||||
node.setScriptNodeType(node.getType());
|
node.setScriptNodeType(node.getType());
|
||||||
node.setCreateBy(SecurityUtils.getUsername());
|
node.setCreateBy(SecurityUtils.getUsername());
|
||||||
node.setCreateTime(LocalDateTime.now());
|
node.setCreateTime(LocalDateTime.now());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user