| | |
| | | @Override |
| | | public MgtQuickEntryGetVo getMgtQuickEntry(Long quickEntryId){ |
| | | QuickEntry quickEntry = this.getById(quickEntryId); |
| | | if(quickEntry.getTargetType()==1){ |
| | | quickEntry.setJumpType(null); |
| | | quickEntry.setJumpId(null); |
| | | quickEntry.setLinkType(null); |
| | | }else if(quickEntry.getTargetType()==2){ |
| | | if(quickEntry.getLinkType()==1){ |
| | | quickEntry.setJumpType(null); |
| | | quickEntry.setJumpId(null); |
| | | }else{ |
| | | quickEntry.setLinkUrl(null); |
| | | } |
| | | }else if(quickEntry.getTargetType()==3){ |
| | | quickEntry.setLinkUrl(null); |
| | | quickEntry.setLinkType(null); |
| | | quickEntry.setJumpType(null); |
| | | quickEntry.setJumpId(null); |
| | | } |
| | | MgtQuickEntryGetVo mgtQuickEntryGetVo = new MgtQuickEntryGetVo(); |
| | | BeanUtils.copyProperties(quickEntry, mgtQuickEntryGetVo); |
| | | return mgtQuickEntryGetVo; |
| | |
| | | public void deleteMgtQuickEntry(MgtBaseGetDto mgtBaseGetDto){ |
| | | QuickEntry quickEntry = this.getById(Long.valueOf(mgtBaseGetDto.getId())); |
| | | quickEntry.setDelFlag(1); |
| | | quickEntry.insertOrUpdate(); |
| | | this.saveOrUpdate(quickEntry); |
| | | } |
| | | } |