Commit e23c75fd by huluobin

update

parent dddd01a5
...@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors;
@Api(tags = {"折扣接口"}, value = "折扣接口") @Api(tags = {"折扣接口"}, value = "折扣接口")
@RestController @RestController
...@@ -29,7 +30,7 @@ public class DiscountConfigController { ...@@ -29,7 +30,7 @@ public class DiscountConfigController {
public JsonResult<Map<String, Object>> selectAllDiscount() { public JsonResult<Map<String, Object>> selectAllDiscount() {
List<DiscountConfig> list = discountConfigService.selectAllDiscount(); List<DiscountConfig> list = discountConfigService.selectAllDiscount();
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("list", list); map.put("list", list.stream().filter(discountConfig -> discountConfig.getChargeAmount().compareTo(100000) >= 0).collect(Collectors.toList()));
return JsonResult.success(map); return JsonResult.success(map);
} }
......
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