Commit 6f98fac1 authored by 周健威's avatar 周健威

添加我的定制列表

parent d13b840e
...@@ -35,9 +35,9 @@ public class GtdataController extends CommonBaseController { ...@@ -35,9 +35,9 @@ public class GtdataController extends CommonBaseController {
public void queryAreaInfoByAreaId() throws Exception { public void queryAreaInfoByAreaId() throws Exception {
String url = request.getRequestURI(); String url = request.getRequestURI();
String fileName = url.substring(url.lastIndexOf("/")+1); String fileName = url.substring(url.lastIndexOf("/")+1);
// String filePath = "/obt/thumbnail/"+ url.substring(url.lastIndexOf("/app/unauth/image/")+18); String filePath = "/obt/thumbnail/"+ url.substring(url.lastIndexOf("/app/unauth/image/")+18);
String filePath = "/obt/thumbnail/data/VDM2/20200613/VDM2_20200525232637_0015_L1_MSS_CMOS5/VDM2_20200525232637_0015_L1_MSS_CMOS5_98_98.jpg"; // String filePath = "/obt/thumbnail/data/VDM2/20200613/VDM2_20200525232637_0015_L1_MSS_CMOS5/VDM2_20200525232637_0015_L1_MSS_CMOS5_98_98.jpg";
filePath = gtDataRestClient.openUrl(filePath); // filePath = gtDataRestClient.openUrl(filePath);
downloadVideoById(fileName, filePath, getResponse()); downloadVideoById(fileName, filePath, getResponse());
return; return;
} }
......
package com.upyuns.platform.rs.website.controller; package com.upyuns.platform.rs.website.controller;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController; import com.github.wxiaoqi.security.common.rest.BaseController;
import com.github.wxiaoqi.security.common.vo.PageDataVO;
import com.github.wxiaoqi.security.common.vo.PageParam;
import com.upyuns.platform.rs.website.biz.CustomFormBiz; import com.upyuns.platform.rs.website.biz.CustomFormBiz;
import com.upyuns.platform.rs.website.entity.CustomForm; import com.upyuns.platform.rs.website.entity.CustomForm;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import static com.github.wxiaoqi.security.common.constant.CommonConstants.SYS_FALSE;
@RestController @RestController
@RequestMapping("customForm") @RequestMapping("customForm")
public class CustomFormController extends BaseController<CustomFormBiz,CustomForm> { public class CustomFormController extends BaseController<CustomFormBiz,CustomForm> {
@RequestMapping(value = "list",method = RequestMethod.GET)
public ObjectRestResponse<PageDataVO<CustomForm>> myCustoms(PageParam dto) {
return ObjectRestResponse.succ(PageDataVO.pageInfo(dto.initQuery(), () -> baseBiz.selectByWeekend(w -> {
w.andEqualTo(CustomForm::getIsDel, SYS_FALSE);
return w;
}, " 'status' asc, crt_time desc")));
}
} }
\ No newline at end of file
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