md
This commit is contained in:
parent
f6b049a514
commit
aa37827cd7
@ -23,6 +23,7 @@ import com.xdadan.erp.oms.service.IEmisWarehouseInService;
|
|||||||
import com.xdadan.erp.oms.service.svc.IRpcWarehouseInSvc;
|
import com.xdadan.erp.oms.service.svc.IRpcWarehouseInSvc;
|
||||||
import com.xdadan.erp.oms.service.svc.IRpcWaybillSvc;
|
import com.xdadan.erp.oms.service.svc.IRpcWaybillSvc;
|
||||||
import feign.Response;
|
import feign.Response;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
@ -42,6 +43,7 @@ import java.util.List;
|
|||||||
* @author linfso
|
* @author linfso
|
||||||
* @date 2024-05-22 00:20:31
|
* @date 2024-05-22 00:20:31
|
||||||
*/
|
*/
|
||||||
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/oms2c/emisWarehouseIn")
|
@RequestMapping("/oms2c/emisWarehouseIn")
|
||||||
public class Oms2cWarehouseInController extends BaseController
|
public class Oms2cWarehouseInController extends BaseController
|
||||||
@ -109,12 +111,13 @@ public class Oms2cWarehouseInController extends BaseController
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Log(title = "导出进仓单文件", businessType = BusinessType.EXPORT)
|
@Log(title = "导出进仓单文件", businessType = BusinessType.EXPORT)
|
||||||
@GetMapping("/exportWarehouseInTpl")
|
@PostMapping("/exportWarehouseInTpl")
|
||||||
public void exportWarehouseInTpl(HttpServletResponse servletResponse, String orderSn) throws IOException {
|
public void exportWarehouseInTpl(HttpServletResponse servletResponse, String orderSn) throws IOException {
|
||||||
|
|
||||||
Response response = this.iRpcWarehouseInSvc.exportWarehouseInTpl(orderSn);
|
Response response = this.iRpcWarehouseInSvc.exportWarehouseInTpl(orderSn);
|
||||||
Response.Body body = response.body();
|
Response.Body body = response.body();
|
||||||
for (Object key : response.headers().keySet()) {
|
for (Object key : response.headers().keySet()) {
|
||||||
|
|
||||||
List<String> kList = (List<String>) response.headers().get(key);
|
List<String> kList = (List<String>) response.headers().get(key);
|
||||||
for (String val : kList) {
|
for (String val : kList) {
|
||||||
servletResponse.setHeader(key.toString(), val);
|
servletResponse.setHeader(key.toString(), val);
|
||||||
|
|||||||
@ -39,7 +39,7 @@ public interface IRpcWarehouseInSvc {
|
|||||||
public AjaxResult getWarehouseInByInNo(@RequestParam("customerCode") String customerCode,@RequestParam("inNo")String inNo);
|
public AjaxResult getWarehouseInByInNo(@RequestParam("customerCode") String customerCode,@RequestParam("inNo")String inNo);
|
||||||
|
|
||||||
|
|
||||||
@GetMapping(value = "/apiweb/emisWarehouseIn/exportWarehouseInTpl")
|
@PostMapping(value = "/apiweb/emisWarehouseIn/exportWarehouseInTpl")
|
||||||
public Response exportWarehouseInTpl(@RequestParam("orderSn") String orderSn);
|
public Response exportWarehouseInTpl(@RequestParam("orderSn") String orderSn);
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user