|
|
@ -11,13 +11,13 @@ import com.yxt.supervise.customer.api.gdsales.GdSalesQuery; |
|
|
|
import com.yxt.supervise.customer.biz.gdinstoragelog.GdInstorageLogService; |
|
|
|
import com.yxt.supervise.customer.biz.gdinventorylog.GdInventoryLogService; |
|
|
|
import com.yxt.supervise.customer.biz.gdsaleslog.GdSalesLogService; |
|
|
|
import com.yxt.supervise.customer.kafka.messageconsumer.MessageConsumerRest; |
|
|
|
import com.yxt.supervise.customer.kafka.messageproducer.MessageProducerRest; |
|
|
|
//import com.yxt.supervise.customer.kafka.messageconsumer.MessageConsumerRest;
|
|
|
|
//import com.yxt.supervise.customer.kafka.messageproducer.MessageProducerRest;
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.cloud.stream.annotation.StreamListener; |
|
|
|
import org.springframework.cloud.stream.messaging.Sink; |
|
|
|
//import org.springframework.cloud.stream.annotation.StreamListener;
|
|
|
|
//import org.springframework.cloud.stream.messaging.Sink;
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
@ -42,8 +42,8 @@ public class GdInstorageGdRest implements GdInstorageGdFeign { |
|
|
|
GdInventoryLogService inventoryLogService; |
|
|
|
@Autowired |
|
|
|
GdSalesLogService gdSalesLogService; |
|
|
|
@Autowired |
|
|
|
MessageProducerRest messageProducerRest; |
|
|
|
// @Autowired
|
|
|
|
// MessageProducerRest messageProducerRest;
|
|
|
|
|
|
|
|
@ApiOperation("根据条件分页查询数据的列表") |
|
|
|
@PostMapping("/listPage") |
|
|
@ -73,9 +73,9 @@ public class GdInstorageGdRest implements GdInstorageGdFeign { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
GdInstorageLog gdInstorageLog=gdInstorageGdService.uploadAndInsert(file); |
|
|
|
//判断都就给report服务发消息
|
|
|
|
if(ee(gdInstorageLog.getOrderDate())==true){ |
|
|
|
messageProducerRest.send(gdInstorageLog.getOrderDate()); |
|
|
|
} |
|
|
|
// if(ee(gdInstorageLog.getOrderDate())==true){
|
|
|
|
// messageProducerRest.send(gdInstorageLog.getOrderDate());
|
|
|
|
// }
|
|
|
|
rb.success().setData(gdInstorageLog); |
|
|
|
return rb; |
|
|
|
} |
|
|
|