|
|
|
@ -6,26 +6,23 @@ import com.dxhy.order.consumer.openapi.protocol.v6.sdenergy.*; |
|
|
|
|
import com.dxhy.order.consumer.openapi.service.ISDEnregyService; |
|
|
|
|
import com.dxhy.order.consumer.openapi.service.InterfaceServiceV3; |
|
|
|
|
import com.dxhy.order.consumer.utils.OpentextUtils; |
|
|
|
|
import com.dxhy.order.exception.OrderReceiveException; |
|
|
|
|
import com.dxhy.order.model.R; |
|
|
|
|
import com.dxhy.order.utils.HttpContextUtils; |
|
|
|
|
import com.dxhy.order.utils.JsonUtils; |
|
|
|
|
import lombok.SneakyThrows; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.apache.ibatis.annotations.Param; |
|
|
|
|
import org.apache.poi.ss.formula.functions.T; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.function.Function; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Optional; |
|
|
|
|
import java.util.UUID; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -171,7 +168,7 @@ public class InvoiceRestSDEnregy { |
|
|
|
|
*/ |
|
|
|
|
@SneakyThrows |
|
|
|
|
@PostMapping("/test/opentext/upload") |
|
|
|
|
public String uploadOpentext(MultipartFile file) { |
|
|
|
|
public String uploadOpentext(@RequestParam(value = "file") MultipartFile file) { |
|
|
|
|
R result = OpentextUtils.uploadFile(file.getInputStream(), file.getOriginalFilename()); |
|
|
|
|
if (result.isOk()) { |
|
|
|
|
return (String) result.getData(); |
|
|
|
|