| | |
| | | } |
| | | // 将管理快速入口编辑DTO的属性复制到管理快速入口中 |
| | | BeanUtils.copyProperties(mgtQuickEntryEditDto, quickEntry); |
| | | if(quickEntry.getTargetType()==1){ |
| | | quickEntry.setJumpType(null); |
| | | quickEntry.setJumpId(null); |
| | | }else if(quickEntry.getTargetType()==2){ |
| | | quickEntry.setLinkUrl(null); |
| | | }else if(quickEntry.getTargetType()==3){ |
| | | quickEntry.setLinkUrl(null); |
| | | quickEntry.setJumpType(null); |
| | | quickEntry.setJumpId(null); |
| | | } |
| | | // 设置创建时间和创建者ID |
| | | quickEntry.setCreateTime(new Date()); |
| | | quickEntry.setCreateUserId(mgtQuickEntryEditDto.getEntryId()); |
| | |
| | | if(quickEntry.getTargetType()==1){ |
| | | quickEntry.setJumpType(null); |
| | | quickEntry.setJumpId(null); |
| | | quickEntry.setLinkType(null); |
| | | }else if(quickEntry.getTargetType()==2){ |
| | | quickEntry.setLinkUrl(null); |
| | | 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); |
| | | } |