|
|
|
@ -4,6 +4,7 @@ import cn.hutool.json.JSONUtil;
|
|
|
|
|
import com.logpm.factorydata.zbom.service.FactoryLogService; |
|
|
|
|
import com.logpm.factorydata.zbom.vo.ZBReceiptDTO; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
@ -13,12 +14,14 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
*/ |
|
|
|
|
@RestController |
|
|
|
|
@AllArgsConstructor |
|
|
|
|
@Slf4j |
|
|
|
|
public class FactoryDataZbomClient implements IFactoryDataZbomClient { |
|
|
|
|
|
|
|
|
|
private final FactoryLogService factoryLogService; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R<String> order(String data) { |
|
|
|
|
log.info("接收工厂订单:{}", data); |
|
|
|
|
factoryLogService.orderData(JSONUtil.toBean(data, ZBReceiptDTO.class)); |
|
|
|
|
return R.success("成功"); |
|
|
|
|
} |
|
|
|
|