Commit c09f56bd authored by 周健威's avatar 周健威

修改代码

parent 9beb38aa
......@@ -55,6 +55,5 @@ public class RscpImageDataTotalBiz extends BaseBiz<RscpImageDataTotalMapper, Rsc
// RscpImageDataTotal rscpImageDataTotal = BeanUtil.toBean(vo, RscpImageDataTotal.class);
dto.setRange(getBinNameByGId(dto));
List<RscpAreaInfo> imageAreaInfoList = rscpAreaInfoMapper.getIntersectAreaInfo(dto.getRange());
}
}
......@@ -16,7 +16,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import static com.github.wxiaoqi.security.common.constant.CommonConstants.SYS_TRUE;
......@@ -49,6 +51,23 @@ public class RscpImagePriceController extends BaseController<RscpImagePriceBiz,
return ObjectRestResponse.succ(imagePriceVOS);
}
@RequestMapping(value = "/app/unauth/price", method = RequestMethod.GET)
@IgnoreUserToken
public ObjectRestResponse unauthPrice() {
List<RscpImagePrice> list = baseBiz.selectByWeekend(w -> {
w.andEqualTo(RscpImagePrice::getStatus, SYS_TRUE);
return w;
}, " daily_sort asc");
Map<String, BigDecimal> priceMap = CollUtil.newHashMap();
list.forEach(rscpImagePrice -> {
priceMap.put(rscpImagePrice.getImageSatelliteType()+"_"+rscpImagePrice.getImageSensorType(), rscpImagePrice.getPrice());
});
return ObjectRestResponse.succ(priceMap);
}
@Data
static public class ImagePriceVO {
......
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