采购订单 采购申请单 延期提醒 提前提醒

This commit is contained in:
tzy 2025-09-14 21:21:02 +08:00
parent 16853a9dc9
commit 8cc9e23ae2
3 changed files with 25 additions and 26 deletions

View File

@ -837,13 +837,12 @@ public class KingdeeWorkCenterDataController extends BaseController {
} }
@Log(title = "采购订单和采购申请单") @Log(title = "采购订单和采购申请单")
@XxlJob("getMassageDelayDate") @XxlJob("getPurchaseOrder")
public R<Void> getMassageDelayDate1() { public R<Void> getPurchaseOrder() {
try { try {
// String robotId = "4d2f037d-0cee-493a-a4ff-1758f67b8069"; // String robotId = "4d2f037d-0cee-493a-a4ff-1758f67b8069";
String robotId = "483489b2-b219-468c-851f-f56a34a62d91"; String robotId = "483489b2-b219-468c-851f-f56a34a62d91";
List<PurchaseOrderExcelDTO> list = JdUtil.getPurchaseOrder();
List<PurchaseRequestExcelDTO> list2 = JdUtil.getPurchaseRequestOrder();
String currentTime = DateUtil.format(new Date(), "yyyy年MM月dd日 HH:mm:ss"); String currentTime = DateUtil.format(new Date(), "yyyy年MM月dd日 HH:mm:ss");
StringBuilder msg = new StringBuilder(); StringBuilder msg = new StringBuilder();
msg.append("🏭 采购订单和采购申请更新\n\n") msg.append("🏭 采购订单和采购申请更新\n\n")
@ -914,14 +913,14 @@ public class KingdeeWorkCenterDataController extends BaseController {
for (PurchaseOrderExcelDTO item : purchaseOrderList) { for (PurchaseOrderExcelDTO item : purchaseOrderList) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("index", index); map.put("index", index);
map.put("orderNo", item.getFBillNo()); map.put("FBillNo", item.getFBillNo());
map.put("supplierName", item.getFSupplierIdFName()); map.put("FSupplierIdFName", item.getFSupplierIdFName());
map.put("materialCode", item.getFMaterialIdFNumber()); map.put("FMaterialIdFNumber", item.getFMaterialIdFNumber());
map.put("materialName", item.getFMaterialName()); map.put("FMaterialName", item.getFMaterialName());
map.put("quantity", item.getFQty()); map.put("FQty", item.getFQty());
map.put("orderDate", item.getFDate()); map.put("FDate", item.getFDate());
map.put("deliveryDate", item.getFDeliveryDate()); map.put("FDeliveryDate", item.getFDeliveryDate());
map.put("productionOrderNo", item.getFUCHNText2()); map.put("FUCHNText2", item.getFUCHNText2());
mapList.add(map); mapList.add(map);
index++; index++;
} }
@ -937,17 +936,17 @@ public class KingdeeWorkCenterDataController extends BaseController {
for (PurchaseRequestExcelDTO item : purchaseRequestList) { for (PurchaseRequestExcelDTO item : purchaseRequestList) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("index", index); map.put("index", index);
map.put("requestNo", item.getFBillNo()); map.put("FBillNo", item.getFBillNo());
map.put("billType", item.getFBillTypeID()); map.put("FBillTypeID", item.getFBillTypeID());
map.put("suggestPurDate", item.getFSuggestPurDate()); map.put("FSuggestPurDate", item.getFSuggestPurDate());
map.put("suggestSupplier", item.getFSuggestSupplierId_FName()); map.put("FSuggestSupplierIdFName", item.getFSuggestSupplierIdFName());
map.put("materialCode", item.getFMaterialId_FNumber()); map.put("FMaterialIdFNumber", item.getFMaterialIdFNumber());
map.put("materialName", item.getFMaterialName()); map.put("FMaterialName", item.getFMaterialName());
map.put("priceUnit", item.getFPriceUnitId_FName()); map.put("FPriceUnitIdFName", item.getFPriceUnitIdFName());
map.put("quantity", item.getFReqQty()); map.put("FReqQty", item.getFReqQty());
map.put("arrivalDate", item.getFArrivalDate()); map.put("FArrivalDate", item.getFArrivalDate());
map.put("applicationDate", item.getFApplicationDate()); map.put("FApplicationDate", item.getFApplicationDate());
map.put("productionOrderNo", item.getFUCHNText()); map.put("FUCHNText", item.getFUCHNText());
mapList.add(map); mapList.add(map);
index++; index++;
} }

View File

@ -27,13 +27,13 @@ public class PurchaseRequestExcelDTO {
* 建议供应商名称 * 建议供应商名称
*/ */
@JsonProperty("FSuggestSupplierId.FName") @JsonProperty("FSuggestSupplierId.FName")
private String FSuggestSupplierId_FName; private String FSuggestSupplierIdFName;
/** /**
* 物料编码 * 物料编码
*/ */
@JsonProperty("FMaterialId.FNumber") @JsonProperty("FMaterialId.FNumber")
private String FMaterialId_FNumber; private String FMaterialIdFNumber;
/** /**
* 物料名称 * 物料名称
@ -45,7 +45,7 @@ public class PurchaseRequestExcelDTO {
* 计价单位 * 计价单位
*/ */
@JsonProperty("FPriceUnitId.FName") @JsonProperty("FPriceUnitId.FName")
private String FPriceUnitId_FName; private String FPriceUnitIdFName;
/** /**
* 申请数量 * 申请数量