|
|
|
@ -251,7 +251,7 @@ public class TerminalServiceImpl implements TerminalService {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@CacheEvict(cacheNames = {"permissionfull", "permissionover", "fulltree", "cacheTerminalMap"}, allEntries = true)
|
|
|
|
|
@CacheEvict(cacheNames = {"permissionfull", "permissionover", "fulltree", "cacheTerminalMap", "termAndchannelMap"}, allEntries = true)
|
|
|
|
|
public ServiceBody<String> addTerminal(TerminalVo vo) {
|
|
|
|
|
String cmdId = vo.getCmdid();
|
|
|
|
|
Terminals terminals = new Terminals();
|
|
|
|
@ -270,7 +270,7 @@ public class TerminalServiceImpl implements TerminalService {
|
|
|
|
|
if (CollectionUtil.isNotEmpty(channelId)) {
|
|
|
|
|
List<TerminalChannelMapper> list = new ArrayList<>();
|
|
|
|
|
for (TerminalVo.ChannelItem item : channelId) {
|
|
|
|
|
if (item.getType() == null){
|
|
|
|
|
if (item.getType() == null) {
|
|
|
|
|
item.setType(0);
|
|
|
|
|
}
|
|
|
|
|
TerminalChannelMapper record = new TerminalChannelMapper();
|
|
|
|
@ -300,7 +300,7 @@ public class TerminalServiceImpl implements TerminalService {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@CacheEvict(cacheNames = {"fulltree", "cacheTerminalMap"}, allEntries = true)
|
|
|
|
|
@CacheEvict(cacheNames = {"fulltree", "cacheTerminalMap", "termAndchannelMap"}, allEntries = true)
|
|
|
|
|
public ServiceBody<String> updateTerminal(UpdateTerminalVo vo) {
|
|
|
|
|
Integer termid = vo.getId();
|
|
|
|
|
List<UpdateTerminalVo.Item> channelId = vo.getList();
|
|
|
|
@ -315,7 +315,7 @@ public class TerminalServiceImpl implements TerminalService {
|
|
|
|
|
if (CollectionUtil.isNotEmpty(channelId)) {
|
|
|
|
|
List<TerminalChannelMapper> list = new ArrayList<>();
|
|
|
|
|
for (UpdateTerminalVo.Item item : channelId) {
|
|
|
|
|
if (item.getType() == null){
|
|
|
|
|
if (item.getType() == null) {
|
|
|
|
|
item.setType(0);
|
|
|
|
|
}
|
|
|
|
|
TerminalChannelMapper record = new TerminalChannelMapper();
|
|
|
|
|