| | |
| | | import com.yeshi.fanli.entity.bus.help.HelpCenter;
|
| | | import com.yeshi.fanli.entity.bus.help.HelpInfo;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.AdActivityVersionControl;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.HomeNavbar;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.AdActivityVersionControl.AdActivityType;
|
| | | import com.yeshi.fanli.exception.config.HelpCenterException;
|
| | | import com.yeshi.fanli.exception.homemodule.HomeNavbarException;
|
| | | import com.yeshi.fanli.service.inter.help.HelpCenterService;
|
| | | import com.yeshi.fanli.service.inter.homemodule.AdActivityVersionControlService;
|
| | | import com.yeshi.fanli.util.FilePathEnum;
|
| | |
| | | mongoDBManager.saveHelpInfo(helpInfo);
|
| | | return html;
|
| | | }
|
| | | |
| | | |
| | | @Override
|
| | | public void switchState(Long id) throws HelpCenterException {
|
| | | if (id == null) {
|
| | | throw new HelpCenterException(1, "请传递正确参数");
|
| | | }
|
| | | |
| | | HelpCenter resultObj = helpCenterMapper.selectByPrimaryKey(id);
|
| | | if (resultObj == null) {
|
| | | throw new HelpCenterException(1, "此内容已不存在");
|
| | | }
|
| | | |
| | | Integer state = resultObj.getState();
|
| | | if (state == null || state == 0) {
|
| | | state = 1;
|
| | | } else {
|
| | | state = 0;
|
| | | }
|
| | | |
| | | HelpCenter updateObj = new HelpCenter();
|
| | | updateObj.setId(id);
|
| | | updateObj.setState(state);
|
| | | helpCenterMapper.updateByPrimaryKeySelective(updateObj);
|
| | | }
|
| | | |
| | |
|
| | | public List<Map<String, Object>> getPosition(String content) {
|
| | |
|