cnf
7 天以前 1b3db8f5683373dd8e179b006e7314783dd1f9db
WebApi/Gs.Wom/WorkService/WorkRepairController.cs
@@ -10,7 +10,8 @@
using static Gs.Toolbox.UtilityHelper;
namespace Gs.Wom.WorkService;
namespace Gs.Wom.WorkService
{
[ApiGroup(ApiGroupNames.WOM)]
public class WorkRepairController : IRomteService
@@ -33,10 +34,10 @@
    [RequestMethod(RequestMethods.POST)]
    public ReturnDto<PageList<dynamic>> GetListPage([FromBody] PageQuery model)
    {
        var currentPage = model.currentPage;
        var everyPageSize = model.everyPageSize;
        var sortName = model.sortName;
        var keyWhere = model.keyWhere;
            int currentPage = model.currentPage;
            int everyPageSize = model.everyPageSize;
            string sortName = model.sortName;
            string keyWhere = model.keyWhere;
        SqlParameter[] parameters =
        {
            new("@inCurrentPage", currentPage),
@@ -108,8 +109,8 @@
        m.list3 = new List<dynamic>();
        m.outMsg = "";
        m.outSum = -1;
        var _strMsg = "";
        var _sum = 0;
            string _strMsg = "";
            int _sum = 0;
        SqlParameter[] parameters =
        {
            new("@inP1", badXx),
@@ -118,7 +119,7 @@
            new("@inP4", barCode), //这是追溯码  barCode,
            new("@inP5", badDc),
            new("@inEdtUserGuid", _userGuid),
            new("@inMainGuid", guid)
                new("@inMainGuid", guid),
        };
        var dset = new DataSet();
        try
@@ -137,7 +138,6 @@
                    var dr = dset.Tables[1].Rows[0];
                    m = dr.RowToDynamic();
                }
                m.outMsg = _strMsg;
                m.outSum = _sum;
                //2良品列表
@@ -146,7 +146,6 @@
                    var _tb = dset.Tables[2].TableToDynamicList();
                    m.list = _tb;
                }
                //3不良品列表
                if (dset.Tables.Count > 3)
                {
@@ -162,15 +161,13 @@
        }
        catch (Exception ex)
        {
            LogHelper.Debug(ToString(), ex.Message);
                LogHelper.Debug(this.ToString(), ex.Message);
            m.outMsg = ex.Message;
            m.outSum = -1;
        }
        if (m.outSum > 0)
            return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success,
                m.outMsg);
        return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Exception,
            m.outMsg);
                return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success, m.outMsg);
            return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Exception, m.outMsg);
        }
    }
}