常用话术

This commit is contained in:
zhangheng 2024-06-13 16:41:41 +08:00
parent b703242995
commit 89d35ce89e

View File

@ -217,6 +217,7 @@ public class ScriptInfoServiceImpl implements IScriptInfoService {
return AjaxResult.success();
}
@Transactional(rollbackFor = Exception.class)
@Override
public AjaxResult updateScriptEdgeNode(ScriptVO scriptVO) {
List<Long> scriptInfoEdgeIds = scriptInfoMapper.selectScriptInfoEdgeIds(scriptVO.getScriptInfoId());
@ -235,8 +236,9 @@ public class ScriptInfoServiceImpl implements IScriptInfoService {
int i = 0;
for (Node node : scriptVO.getNodes()) {
node.setScriptInfoId(scriptVO.getScriptInfoId());
node.setScriptNodeName(node.getLabel());
node.setScriptContent(node.getLabel());
String[] split = node.getLabel().split("\\n");
node.setScriptNodeName(StringUtils.isBlank(split[0]) ? "" : split[0]);
node.setScriptContent(StringUtils.isBlank(split[1]) ? "" : split[0]);
node.setScriptNodeType(node.getType());
node.setCreateBy(SecurityUtils.getUsername());
node.setCreateTime(LocalDateTime.now());