常用话术
This commit is contained in:
parent
ad56903781
commit
e140100bf9
@ -237,8 +237,12 @@ public class ScriptInfoServiceImpl implements IScriptInfoService {
|
||||
for (Node node : scriptVO.getNodes()) {
|
||||
node.setScriptInfoId(scriptVO.getScriptInfoId());
|
||||
String[] split = node.getLabel().split("\\n");
|
||||
node.setScriptNodeName(StringUtils.isBlank(split[0]) ? "" : split[0]);
|
||||
node.setScriptContent(StringUtils.isBlank(split[1]) ? "" : split[0]);
|
||||
if (split.length > 0) {
|
||||
node.setScriptNodeName(split[0]);
|
||||
}
|
||||
if (split.length > 1) {
|
||||
node.setScriptContent(split[1]);
|
||||
}
|
||||
node.setScriptNodeType(node.getType());
|
||||
node.setCreateBy(SecurityUtils.getUsername());
|
||||
node.setCreateTime(LocalDateTime.now());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user