Commit 2d93c9b0 authored by unset's avatar unset

Merge remote-tracking branch 'origin/dev' into dev

parents 8a22a63e e77b9fb8
...@@ -20,7 +20,11 @@ public class RscpResolution implements java.io.Serializable { ...@@ -20,7 +20,11 @@ public class RscpResolution implements java.io.Serializable {
private String id; private String id;
/** resolutionName */ /** resolutionName */
@ApiModelProperty(value = "") @ApiModelProperty(value = "分辨率标识")
private String resolution;
/** resolutionName */
@ApiModelProperty(value = "分辨率展示")
private String resolutionName; private String resolutionName;
/** sensorName */ /** sensorName */
...@@ -32,7 +36,7 @@ public class RscpResolution implements java.io.Serializable { ...@@ -32,7 +36,7 @@ public class RscpResolution implements java.io.Serializable {
private Integer status; private Integer status;
/** sort */ /** sort */
@ApiModelProperty(value = "") @ApiModelProperty(value = "排序")
private Integer sort; private Integer sort;
/** 首页排序 */ /** 首页排序 */
......
...@@ -86,6 +86,7 @@ public class RscpImageDataTotalController extends BaseController<RscpImageDataTo ...@@ -86,6 +86,7 @@ public class RscpImageDataTotalController extends BaseController<RscpImageDataTo
Integer type; Integer type;
String startDate; String startDate;
String endDate; String endDate;
BigDecimal resolution;
String startDateTime; String startDateTime;
String endDateTime; String endDateTime;
String geom; String geom;
......
...@@ -36,7 +36,7 @@ public class RscpImagePriceController extends BaseController<RscpImagePriceBiz, ...@@ -36,7 +36,7 @@ public class RscpImagePriceController extends BaseController<RscpImagePriceBiz,
List<ImagePriceVO> imagePriceVOS = CollUtil.newArrayList(); List<ImagePriceVO> imagePriceVOS = CollUtil.newArrayList();
String key = ""; String key = "";
List<String> satelliteTypes = list.parallelStream().map(RscpImagePrice::getImageSatelliteType).collect(Collectors.toList()); List<String> satelliteTypes = list.parallelStream().map(RscpImagePrice::getImageSatelliteType).distinct().collect(Collectors.toList());
for(String satelliteType : satelliteTypes) { for(String satelliteType : satelliteTypes) {
List<RscpImagePrice> imagePriceList = list.parallelStream().filter(rscpImagePrice -> satelliteType.equals(rscpImagePrice.getImageSatelliteType())).collect(Collectors.toList()); List<RscpImagePrice> imagePriceList = list.parallelStream().filter(rscpImagePrice -> satelliteType.equals(rscpImagePrice.getImageSatelliteType())).collect(Collectors.toList());
imagePriceVOS.add(new ImagePriceVO(){{ imagePriceVOS.add(new ImagePriceVO(){{
......
...@@ -63,6 +63,9 @@ ...@@ -63,6 +63,9 @@
</if> </if>
</foreach> </foreach>
</if> </if>
<if test="resolution != null">
and #{image_resolution} = any(image_resolution)
</if>
<if test="startDateTime != null"> <if test="startDateTime != null">
and begin_time &gt;= #{startDateTime} and begin_time &gt;= #{startDateTime}
</if> </if>
......
...@@ -112,6 +112,9 @@ ...@@ -112,6 +112,9 @@
</if> </if>
</foreach> </foreach>
</if> </if>
<if test="resolution != null">
and #{image_resolution} = any(image_resolution)
</if>
<if test="startDateTime != null"> <if test="startDateTime != null">
and image_take_time &gt;= #{startDateTime} and image_take_time &gt;= #{startDateTime}
</if> </if>
......
...@@ -4,6 +4,7 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; ...@@ -4,6 +4,7 @@ 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.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.RequestBody;
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.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -13,19 +14,19 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -13,19 +14,19 @@ import org.springframework.web.bind.annotation.RestController;
public class CustomFormWebController extends BaseController<CustomFormBiz,CustomForm> { public class CustomFormWebController extends BaseController<CustomFormBiz,CustomForm> {
@RequestMapping(value = "customIndustry",method = RequestMethod.POST) @RequestMapping(value = "customIndustry",method = RequestMethod.POST)
public ObjectRestResponse customIndustry(CustomForm entity) { public ObjectRestResponse customIndustry(@RequestBody CustomForm entity) {
baseBiz.insertSelective(entity); baseBiz.insertSelective(entity);
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
@RequestMapping(value = "customImgStorage",method = RequestMethod.POST) @RequestMapping(value = "customImgStorage",method = RequestMethod.POST)
public ObjectRestResponse customImgStorage(CustomForm entity) { public ObjectRestResponse customImgStorage(@RequestBody CustomForm entity) {
baseBiz.insertSelective(entity); baseBiz.insertSelective(entity);
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
@RequestMapping(value = "customImageData",method = RequestMethod.POST) @RequestMapping(value = "customImageData",method = RequestMethod.POST)
public ObjectRestResponse customImageData(CustomForm entity) { public ObjectRestResponse customImageData(@RequestBody CustomForm entity) {
baseBiz.insertSelective(entity); baseBiz.insertSelective(entity);
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
......
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