| | |
| | | import com.yeshi.fanli.exception.config.HelpCenterException;
|
| | | import com.yeshi.fanli.service.inter.help.HelpCenterService;
|
| | | import com.yeshi.fanli.service.inter.homemodule.AdActivityVersionControlService;
|
| | | import com.yeshi.fanli.util.FilePathEnum;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | | import com.yeshi.fanli.util.db.MongoDBManager;
|
| | |
|
| | |
| | |
|
| | | @Resource
|
| | | private AdActivityVersionControlService adActivityVersionControlService;
|
| | | |
| | |
|
| | |
|
| | | @Override
|
| | | public int updateByPrimaryKey(HelpCenter record) {
|
| | |
| | |
|
| | | String type = (String) map.get("type");
|
| | | // 上传文件相对位置
|
| | | String fileUrl = "helpInfo/" + UUID.randomUUID().toString().replace("-", "") + "." +type;
|
| | | String fileUrl = FilePathEnum.helpCenterContent + UUID.randomUUID().toString().replace("-", "") + "."
|
| | | + type;
|
| | | /* 上传新图片 */
|
| | | String uploadFilePath = COSManager.getInstance().uploadFileByte(b, fileUrl).getUrl();
|
| | |
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | | String replaceHtml = replaceIframe(html);
|
| | | Long backId = helpCenter.getId();
|
| | |
| | |
|
| | | String newContent = content.substring(tm + 7, content.length());
|
| | |
|
| | | |
| | | char qmark = '"';
|
| | | int end = newContent.indexOf(qmark);
|
| | | place.put("end", end);
|
| | |
| | | String base64Img = newContent.substring(0, end);
|
| | | place.put("base64Img", base64Img);
|
| | |
|
| | | |
| | | String header = compareStrStart + suffix+ ";" + compareStr +"," +base64Img;
|
| | | place.put("header", header);
|
| | | |
| | |
|
| | | listMap.add(place);
|
| | | }
|
| | |
| | | return helpCenterMapper.countQuery(key, cid, state);
|
| | | }
|
| | |
|
| | | |
| | | @Override
|
| | | @Cacheable(value = "helpCenterCache",key="'queryIdAndTitle-'+#pageId+'-'+#key+'-'+#cid")
|
| | | public List<HelpCenter> listValid(long pageId, int pageSize, String key, Long cid) {
|
| | |
| | | public HelpInfo getHelpInfoCache(Long id) {
|
| | | return getHelpInfo(id);
|
| | | }
|
| | | |
| | | |
| | |
|
| | | @Override
|
| | | @Transactional(rollbackFor=Exception.class)
|