Commit 3b1ee499 by wnb0128

车家智能后台 触发条件、执行内容指令筛选--think.wang

1 parent 6378c78a
package com.glsx.admin.controller;
import javax.validation.groups.Default;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.platform.shopmall.model.PlatformMallGoodLabel;
import cn.com.glsx.platform.shopmall.remote.ShopMallLGoodLabelRemote;
......@@ -30,6 +25,12 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.validation.groups.Default;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* <p>Description:
* <p>Project: chejia-smart
......@@ -132,7 +133,9 @@ public class ProductTypeController {
*/
@RequestMapping(value = "/getConditionList", method = {RequestMethod.GET, RequestMethod.POST})
public R getConditionList() {
List<ScenceSupstatusResp> respList = conditionFeignClient.getList(new ScenceSupstatusReq());
ScenceSupstatusReq supstatusReq = new ScenceSupstatusReq();
supstatusReq.setStatus((byte)1);
List<ScenceSupstatusResp> respList = conditionFeignClient.getList(supstatusReq);
Set<Long> idList = new HashSet<>();
for (ScenceSupstatusResp resp : respList) {
idList.add(Long.valueOf(resp.getProductId()));
......@@ -147,7 +150,9 @@ public class ProductTypeController {
*/
@RequestMapping(value = "/getContentList", method = {RequestMethod.GET, RequestMethod.POST})
public R getContentList() {
List<DeviceOrderResp> respList = contentFeignClient.getList(new DeviceOrderReq());
DeviceOrderReq orderReq = new DeviceOrderReq();
orderReq.setStatus((byte)1);
List<DeviceOrderResp> respList = contentFeignClient.getList(orderReq);
Set<Long> idList = new HashSet<>();
for (DeviceOrderResp resp : respList) {
idList.add(Long.valueOf(resp.getProductId()));
......
......@@ -2,6 +2,8 @@ package com.glsx.admin.pojo.request;
import lombok.Data;
import javax.persistence.Column;
/**
* <p>Description:
* <p>Project: chejia-smart
......@@ -34,4 +36,9 @@ public class DeviceOrderReq {
*/
private String orderValueType;
/**
* 状态 1上线 0下线
*/
private Byte status;
}
......@@ -45,4 +45,9 @@ public class ScenceSupstatusReq {
* 1.等于 2.大于 3.小于
*/
private String type;
/**
* 状态 1上线 0下线
*/
private Byte status;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!