新增单据同步时同时同步业务单据详情信息

version1
anthonyywj2 3 years ago
parent 6e702d549c
commit a2753557a4

@ -13,6 +13,7 @@ import com.glxp.sale.admin.service.sync.BasicExportService;
import com.glxp.sale.admin.util.RedisUtil; import com.glxp.sale.admin.util.RedisUtil;
import com.glxp.sale.common.res.BaseResponse; import com.glxp.sale.common.res.BaseResponse;
import com.glxp.sale.common.util.ResultVOUtils; import com.glxp.sale.common.util.ResultVOUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@Slf4j
@RestController @RestController
public class BasicDownloadController { public class BasicDownloadController {
@ -54,7 +56,7 @@ public class BasicDownloadController {
@PostMapping("/spssync/basic/udiinfo/downloadByStatus") @PostMapping("/spssync/basic/udiinfo/downloadByStatus")
public BaseResponse downloadByStatus(@RequestBody BasicExportStatusRequest basicExportStatusRequest) { public BaseResponse downloadByStatus(@RequestBody BasicExportStatusRequest basicExportStatusRequest) {
log.info("查询下载未更新信息");
if (basicExportStatusRequest.getType() == BasicProcessStatus.BASIC_UDI) {//基础信息下载 if (basicExportStatusRequest.getType() == BasicProcessStatus.BASIC_UDI) {//基础信息下载
String data = (String) redisUtil.get(basicExportStatusRequest.getId() + ""); String data = (String) redisUtil.get(basicExportStatusRequest.getId() + "");
UdiRelevanceExportJsonResponse udiRelevanceExportJsonResponse = JSONObject.parseObject(data, new TypeReference<UdiRelevanceExportJsonResponse>() { UdiRelevanceExportJsonResponse udiRelevanceExportJsonResponse = JSONObject.parseObject(data, new TypeReference<UdiRelevanceExportJsonResponse>() {

@ -0,0 +1,21 @@
package com.glxp.sale.admin.entity.sync;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class StockOrderRemakEntity {
private Integer id;
private String orderIdFk;
private String relId;
private String batchNo;
private BigDecimal price;
private String secSalesListNo;
private String firstSalesInvNo;
private String secSalesInvNo;
private String invoiceDate;
private String remark;
}

@ -3,6 +3,7 @@ package com.glxp.sale.admin.res.sync;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import com.glxp.sale.admin.entity.sync.ErpOrderEntity; import com.glxp.sale.admin.entity.sync.ErpOrderEntity;
import com.glxp.sale.admin.entity.sync.OrderEntity; import com.glxp.sale.admin.entity.sync.OrderEntity;
import com.glxp.sale.admin.entity.sync.StockOrderRemakEntity;
import com.glxp.sale.admin.entity.sync.WarehouseEntity; import com.glxp.sale.admin.entity.sync.WarehouseEntity;
import lombok.Data; import lombok.Data;
@ -16,6 +17,7 @@ public class SpsSyncOrderResponse {
List<OrderEntity> orderEntities; List<OrderEntity> orderEntities;
List<ErpOrderEntity> orderDetailEntityList; List<ErpOrderEntity> orderDetailEntityList;
List<WarehouseEntity> warehouseEntityList; List<WarehouseEntity> warehouseEntityList;
List<StockOrderRemakEntity> stockOrderRemakEntities;
@Override @Override
public String toString() { public String toString() {

Loading…
Cancel
Save