修改话术接口修改
This commit is contained in:
parent
fb2c010927
commit
665aa13b18
@ -87,13 +87,12 @@ public class ScriptInfoServiceImpl implements IScriptInfoService {
|
|||||||
if (scriptInfoMapper.countByScriptNameExcludingId(scriptInfo.getCommonScriptName(), scriptInfo.getDepartmentId(), scriptInfo.getId()) > 0) {
|
if (scriptInfoMapper.countByScriptNameExcludingId(scriptInfo.getCommonScriptName(), scriptInfo.getDepartmentId(), scriptInfo.getId()) > 0) {
|
||||||
// 存在同名的通用话术名称,不能进行更新
|
// 存在同名的通用话术名称,不能进行更新
|
||||||
throw new ServiceException("通用话术名称已存在,请使用其他名称。");
|
throw new ServiceException("通用话术名称已存在,请使用其他名称。");
|
||||||
} else {
|
|
||||||
// 不存在同名的话术名称或者名称未改变,设置修改人和修改时间
|
|
||||||
scriptInfo.setUpdateBy(SecurityUtils.getUsername());
|
|
||||||
scriptInfo.setUpdateTime(DateUtils.getNowDate());
|
|
||||||
// 进行更新操作
|
|
||||||
return scriptInfoMapper.updateScriptInfo(scriptInfo);
|
|
||||||
}
|
}
|
||||||
|
// 不存在同名的话术名称或者名称未改变,设置修改人和修改时间
|
||||||
|
scriptInfo.setUpdateBy(SecurityUtils.getUsername());
|
||||||
|
scriptInfo.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
// 进行更新操作
|
||||||
|
return scriptInfoMapper.updateScriptInfo(scriptInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user