@Test public void testSelectByCommId() throws Exception { }
@Override public List<Map<String, Object>> selectByCommId(Long commId, Long lastCommId) { Long tempId = commMapper.selectTempIdByCommId(commId); List<Long> commIdList = commMapper.selectCommIdByTempId(tempId, lastCommId, Settings.PAGE_LOAD_SIZE_10); List<Map<String, Object>> mapList = null; List<Share> shareList; if (!commIdList.isEmpty()) { shareList = new ArrayList<>(); for (Long aCommId : commIdList) { Share share = shareMapper.selectPassedCommShare(aCommId); if (null != share) shareList.add(share); } mapList = createShareMapList(null, shareList); } return mapList; }
ShareServiceImpl implements IShareService { @Override public List<Map<String, Object>> selectByCommId(Long commId, Long lastCommId) { Long tempId = commMapper.selectTempIdByCommId(commId); List<Long> commIdList = commMapper.selectCommIdByTempId(tempId, lastCommId, Settings.PAGE_LOAD_SIZE_10); List<Map<String, Object>> mapList = null; List<Share> shareList; if (!commIdList.isEmpty()) { shareList = new ArrayList<>(); for (Long aCommId : commIdList) { Share share = shareMapper.selectPassedCommShare(aCommId); if (null != share) shareList.add(share); } mapList = createShareMapList(null, shareList); } return mapList; } }
ShareServiceImpl implements IShareService { @Override public List<Map<String, Object>> selectByCommId(Long commId, Long lastCommId) { Long tempId = commMapper.selectTempIdByCommId(commId); List<Long> commIdList = commMapper.selectCommIdByTempId(tempId, lastCommId, Settings.PAGE_LOAD_SIZE_10); List<Map<String, Object>> mapList = null; List<Share> shareList; if (!commIdList.isEmpty()) { shareList = new ArrayList<>(); for (Long aCommId : commIdList) { Share share = shareMapper.selectPassedCommShare(aCommId); if (null != share) shareList.add(share); } mapList = createShareMapList(null, shareList); } return mapList; }  }
ShareServiceImpl implements IShareService { @Override public List<Map<String, Object>> selectByCommId(Long commId, Long lastCommId) { Long tempId = commMapper.selectTempIdByCommId(commId); List<Long> commIdList = commMapper.selectCommIdByTempId(tempId, lastCommId, Settings.PAGE_LOAD_SIZE_10); List<Map<String, Object>> mapList = null; List<Share> shareList; if (!commIdList.isEmpty()) { shareList = new ArrayList<>(); for (Long aCommId : commIdList) { Share share = shareMapper.selectPassedCommShare(aCommId); if (null != share) shareList.add(share); } mapList = createShareMapList(null, shareList); } return mapList; }  @Override String getUpToken(String suffix); @Override String uploadToQiniu(MultipartFile file); @Override String getUpToken(); @Override boolean isReady(); @Override Share getShare(Long shareId); @Override boolean addShare(Long accountId, Long commId, String desc, List<MultipartFile> imgs); @Override boolean deleteShare(Long shareid); @Override List<Share> selectShare(Long accountid, Long lastshareid, Integer tag); @Override boolean friendsShare(Long account); @Override List<Map<String, Object>> selectByUserAccountId(Long accountId, Long lastCommId); @Override List<Map<String, Object>> selectAll(Long lastCommId); @Override List<Map<String, Object>> selectByCommId(Long commId, Long lastCommId); List<String> imgUrl(Share s); }
ShareServiceImpl implements IShareService { @Override public List<Map<String, Object>> selectByCommId(Long commId, Long lastCommId) { Long tempId = commMapper.selectTempIdByCommId(commId); List<Long> commIdList = commMapper.selectCommIdByTempId(tempId, lastCommId, Settings.PAGE_LOAD_SIZE_10); List<Map<String, Object>> mapList = null; List<Share> shareList; if (!commIdList.isEmpty()) { shareList = new ArrayList<>(); for (Long aCommId : commIdList) { Share share = shareMapper.selectPassedCommShare(aCommId); if (null != share) shareList.add(share); } mapList = createShareMapList(null, shareList); } return mapList; }  @Override String getUpToken(String suffix); @Override String uploadToQiniu(MultipartFile file); @Override String getUpToken(); @Override boolean isReady(); @Override Share getShare(Long shareId); @Override boolean addShare(Long accountId, Long commId, String desc, List<MultipartFile> imgs); @Override boolean deleteShare(Long shareid); @Override List<Share> selectShare(Long accountid, Long lastshareid, Integer tag); @Override boolean friendsShare(Long account); @Override List<Map<String, Object>> selectByUserAccountId(Long accountId, Long lastCommId); @Override List<Map<String, Object>> selectAll(Long lastCommId); @Override List<Map<String, Object>> selectByCommId(Long commId, Long lastCommId); List<String> imgUrl(Share s);  }