hao
2025-09-16 4e814dc13545fde4c5c294865370c165db7eb40e
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)
        {