Commit aa3103a7 authored by zhoumaotao's avatar zhoumaotao

文件路径接口

parent ae8fb44c
...@@ -2,6 +2,7 @@ package com.gavel.kwell.controller; ...@@ -2,6 +2,7 @@ package com.gavel.kwell.controller;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.gavel.common.base.controller.BaseController; import com.gavel.common.base.controller.BaseController;
import com.gavel.common.utils.ThreadContext;
import com.gavel.kwell.service.KmesBoardService; import com.gavel.kwell.service.KmesBoardService;
import com.gavel.kwell.vo.GpfkHgVO; import com.gavel.kwell.vo.GpfkHgVO;
import com.gavel.kwell.vo.PcslVO; import com.gavel.kwell.vo.PcslVO;
...@@ -123,4 +124,28 @@ public class KmesBoardController extends BaseController { ...@@ -123,4 +124,28 @@ public class KmesBoardController extends BaseController {
UWoVO uWoVO = kmesBoardService.queryWorkingWO(); UWoVO uWoVO = kmesBoardService.queryWorkingWO();
return buildReturnData(uWoVO); return buildReturnData(uWoVO);
} }
/**
* 视频路径api
*/
@RequestMapping(value ="getPdf", method = RequestMethod.POST)
@ResponseBody
public Object getPdf(@RequestBody JSONObject param) {
returnData().add("pdf", kmesBoardService.getPdf());
return ThreadContext.getReturnData();
}
/**
* 视频路径api
*/
@RequestMapping(value ="getVideo", method = RequestMethod.POST)
@ResponseBody
public Object getVideo(@RequestBody JSONObject param) {
returnData().add("video", kmesBoardService.getVideo());
return ThreadContext.getReturnData();
}
} }
...@@ -25,4 +25,8 @@ public interface KmesBoardService extends BaseEditService { ...@@ -25,4 +25,8 @@ public interface KmesBoardService extends BaseEditService {
public UWoVO queryWorkingWO(); public UWoVO queryWorkingWO();
public List<GpfkHgVO> queryGpfkHgl(); public List<GpfkHgVO> queryGpfkHgl();
public String getPdf();
public String getVideo();
} }
package com.gavel.kwell.service.impl; package com.gavel.kwell.service.impl;
import com.gavel.common.base.service.impl.BaseEditServiceImpl; import com.gavel.common.base.service.impl.BaseEditServiceImpl;
import com.gavel.common.business.service.CommonService;
import com.gavel.common.utils.DateUtils; import com.gavel.common.utils.DateUtils;
import com.gavel.common.utils.NumberUtils; import com.gavel.common.utils.NumberUtils;
import com.gavel.kwell.dao.GpfkcxDao; import com.gavel.kwell.dao.GpfkcxDao;
...@@ -8,6 +9,7 @@ import com.gavel.kwell.dao.KmesBoardDao; ...@@ -8,6 +9,7 @@ import com.gavel.kwell.dao.KmesBoardDao;
import com.gavel.kwell.persistent.Gpfk; import com.gavel.kwell.persistent.Gpfk;
import com.gavel.kwell.service.KmesBoardService; import com.gavel.kwell.service.KmesBoardService;
import com.gavel.kwell.utils.DateCalculateUtil; import com.gavel.kwell.utils.DateCalculateUtil;
import com.gavel.kwell.utils.KwellParamEnum;
import com.gavel.kwell.vo.GpfkHgVO; import com.gavel.kwell.vo.GpfkHgVO;
import com.gavel.kwell.vo.PcslVO; import com.gavel.kwell.vo.PcslVO;
import com.gavel.kwell.vo.SdclVO; import com.gavel.kwell.vo.SdclVO;
...@@ -33,6 +35,9 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa ...@@ -33,6 +35,9 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
@Autowired @Autowired
private GpfkcxDao gpfkcxDao; private GpfkcxDao gpfkcxDao;
@Autowired
private CommonService commonService;
@Override @Override
public void initService(){ public void initService(){
} }
...@@ -131,4 +136,14 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa ...@@ -131,4 +136,14 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
} }
return gpfkHgVOList; return gpfkHgVOList;
} }
@Override
public String getPdf() {
return commonService.getStringOptionValue(KwellParamEnum.DASHBORAD_PDF.getId());
}
@Override
public String getVideo() {
return commonService.getStringOptionValue(KwellParamEnum.DASHBORAD_VIDEO.getId());
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment