From 4e814dc13545fde4c5c294865370c165db7eb40e Mon Sep 17 00:00:00 2001
From: hao <1836460075@qq.com>
Date: 星期二, 16 九月 2025 19:19:48 +0800
Subject: [PATCH] 组装拆卸测试2
---
StandardInterface/MESApplication/Controllers/ZZCXDController.cs | 20 ++++++++------------
1 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/StandardInterface/MESApplication/Controllers/ZZCXDController.cs b/StandardInterface/MESApplication/Controllers/ZZCXDController.cs
index 96fe204..168709f 100644
--- a/StandardInterface/MESApplication/Controllers/ZZCXDController.cs
+++ b/StandardInterface/MESApplication/Controllers/ZZCXDController.cs
@@ -2,28 +2,27 @@
using System;
using System.Collections.Generic;
using System.Dynamic;
-using MES.Service.service;
using MES.Service.Dto.webApi;
using MES.Service.util;
using Newtonsoft.Json;
using MES.Service.Modes;
+using MES.Service.service;
namespace MESApplication.Controllers
{
[ApiController]
[Route("api/[controller]")]
- public class ZZCXDController : ControllerBase
+ public class ZzcxController : ControllerBase
{
- private readonly ZzcxdManager _manager = new(); // 杩欓噷瀵瑰簲鏂扮殑 Service
+ private readonly ZzcxManager _manager = new();
private readonly MessageCenterManager _messageManager = new();
private const string METHOD = "POST";
- private const string TableName = "ZZCXD";
- private const string URL = "http://localhost:10054/api/ERPZZCXD/";
+ private const string TableName = "ZZCX";
+ private const string URL = "http://localhost:10054/api/Zzcx/";
- /// <summary>
- /// 淇濆瓨鍗曟潯璋冩嫧鍗�
- /// </summary>
+
+
[HttpPost("Save")]
public ResponseResult Save([FromBody] ERPZZCXD data)
{
@@ -35,7 +34,7 @@
Data = JsonConvert.SerializeObject(data),
Status = 1,
CreateBy = "PL017",
- Route = data.ERPZZCXA.bill_no // 娉ㄦ剰鍙� billno
+ Route = data.Main.bill_no
};
try
@@ -61,9 +60,6 @@
}
}
- /// <summary>
- /// 鎵归噺淇濆瓨璋冩嫧鍗�
- /// </summary>
[HttpPost("SaveList")]
public ResponseResult SaveList([FromBody] List<ERPZZCXD> dataList)
{
--
Gitblit v1.9.3