杨张扬
2025-05-23 d23feff4aef10e539e9f5926dd0e496c0612b4e6
双钱-优化字段的类型,自动不合格出库复检测试
12个文件已修改
45 ■■■■ 已修改文件
core/Monitor.cs 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/TN_Component_Detail.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/TN_DayProDetail.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/TN_EquipProDetail.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/TN_InventoryM.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/TN_MonthProDetail.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/TN_Operator_info.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/TN_RemeltDetail.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/TN_SurplusDetail.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/TN_TN_SPE.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/TN_WeekProDetail.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/TN_YearProDetail.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
core/Monitor.cs
@@ -701,21 +701,24 @@
            var db = new SqlHelper<object>().GetInstance();
            try
            {
                var endLoc = db.Queryable<TN_Location>().First(a => a.N_CURRENT_NUM == 0 && a.N_LOCK_STATE == 0 && a.S_LOCK_STATE == "无" && a.S_AREA_CODE == Settings.Areas[7]);
                if (endLoc == null)
                {
                    LogHelper.Info($"未找到合适的终点货位,要求a.N_CURRENT_NUM == 0 && a.N_LOCK_STATE == 0 && a.S_LOCK_STATE == 无 && a.S_AREA_CODE == Settings.Areas[7]");
                    return;
                }
                var startLoc = db.Queryable<TN_Location>().
                    LeftJoin<TN_Loc_Container>((o, i) => o.S_CODE == i.S_LOC_CODE).
                    LeftJoin<TN_CG_Detail>((o, i, s) => i.S_CNTR_CODE == s.S_CNTR_CODE).
                    Where((o, i, s) => o.N_CURRENT_NUM == 1 && o.N_LOCK_STATE == 0 && o.S_LOCK_STATE == "无" && o.S_AREA_CODE == Settings.Areas[1]
                    && s.N_ITEM_STATE == 2 && s.S_ITEM_STATE == "不合格").First();
                if (endLoc == null)
                if (startLoc == null)
                {
                    LogHelper.Info($"未找到合适的起点货位,要求o.N_CURRENT_NUM == 1 && o.N_LOCK_STATE == 0 && o.S_LOCK_STATE == 无 && o.S_AREA_CODE == Settings.Areas[1] && s.N_ITEM_STATE ==2 && s.S_ITEM_STATE==不合格");
                    return;
                }
                var endLoc = db.Queryable<TN_Location>().First(a => a.N_CURRENT_NUM == 0 && a.N_LOCK_STATE == 0 && a.S_LOCK_STATE == "无" && a.S_AREA_CODE == Settings.Areas[7]);
                if (endLoc == null)
                {
                    LogHelper.Info($"未找到合适的终点货位,要求a.N_CURRENT_NUM == 0 && a.N_LOCK_STATE == 0 && a.S_LOCK_STATE == 无 && a.S_AREA_CODE == Settings.Areas[7]");
                    return;
                }
@@ -733,7 +736,7 @@
                    LocationHelper.LockLoc(startLoc.S_CODE, 2);//起点出库锁,
                    LocationHelper.LockLoc(endLoc.S_CODE, 1);//终点入库锁
                    LogHelper.Info($"生成满托出库复检任务成功,容器:{cntId.S_CNTR_CODE},起点:{startLoc.S_CODE}");
                    LogHelper.Info($"生成满托出库复检任务成功,容器:{cntId.S_CNTR_CODE},起点:{startLoc.S_CODE},终点:{endLoc.S_CODE}");
                    Task task27 = Task.Run(() =>
                    {
@@ -742,7 +745,7 @@
                }
                else
                {
                    LogHelper.Info($"生成满托出库复检任务失败,容器:{cntId.S_CNTR_CODE},起点:{startLoc.S_CODE}");
                    LogHelper.Info($"生成满托出库复检任务失败,容器:{cntId.S_CNTR_CODE},起点:{startLoc.S_CODE},终点:{endLoc.S_CODE}");
                }
models/TN_Component_Detail.cs
@@ -10,7 +10,7 @@
    /// <summary>
    /// 部件用料明细
    /// </summary>
    [SugarTable("TN_Component_Detail")]
    [SugarTable("TN_TN_Component_Detail")]
    public class TN_Component_Detail : BaseModel
    {
        /// <summary>
models/TN_DayProDetail.cs
@@ -10,7 +10,7 @@
    /// <summary>
    /// 每日产量合计
    /// </summary>
    [SugarTable("TN_DayProDetail")]
    [SugarTable("TN_TN_DayProDetail")]
    public class TN_DayProDetail : BaseModel
    {
        /// <summary>
models/TN_EquipProDetail.cs
@@ -10,7 +10,7 @@
    /// <summary>
    /// 设备生产明细
    /// </summary>
    [SugarTable("TN_EquipProDetail")]
    [SugarTable("TN_TN_EquipProDetail")]
    public class TN_EquipProDetail : BaseModel
    {
        /// <summary>
models/TN_InventoryM.cs
@@ -6,7 +6,7 @@
    /// <summary>
    /// WMS库存管理
    /// </summary>
    [SugarTable("TN_InventoryM")]
    [SugarTable("TN_TN_InventoryM")]
    public class TN_InventoryM : BaseModel
    {
        /// <summary>
models/TN_MonthProDetail.cs
@@ -10,7 +10,7 @@
    /// <summary>
    /// 每月产量合计
    /// </summary>
    [SugarTable("TN_MonthProDetail")]
    [SugarTable("TN_TN_MonthProDetail")]
    public class TN_MonthProDetail : BaseModel
    {
        /// <summary>
models/TN_Operator_info.cs
@@ -10,7 +10,7 @@
    /// <summary>
    /// PDA操作人员信息
    /// </summary>
    [SugarTable("TN_Operator_Info")]
    [SugarTable("TN_TN_Operator_Info")]
    public class TN_Operator_Info : BaseModel
    {
        /// <summary>
models/TN_RemeltDetail.cs
@@ -10,7 +10,7 @@
    /// <summary>
    /// 回炉料明细
    /// </summary>
    [SugarTable("TN_RemeltDetail")]
    [SugarTable("TN_TN_RemeltDetail")]
    public class TN_RemeltDetail:BaseModel
    {
        /// <summary>
models/TN_SurplusDetail.cs
@@ -10,7 +10,7 @@
    /// <summary>
    /// 余料回库(返回胶)明细
    /// </summary>
    [SugarTable("TN_SurplusDetail")]
    [SugarTable("TN_TN_SurplusDetail")]
    public class TN_SurplusDetail : BaseModel
    {
        /// <summary>
models/TN_TN_SPE.cs
@@ -10,7 +10,7 @@
    /// <summary>
    /// 规格时间配置表
    /// </summary>
    [SugarTable("TN_TN_SPE")]
    [SugarTable("TN_TN_TN_SPE")]
    public class TN_TN_SPE : BaseModel
    {
        /// <summary>
models/TN_WeekProDetail.cs
@@ -10,7 +10,7 @@
    /// <summary>
    /// 每周产量合计
    /// </summary>
    [SugarTable("TN_WeekProDetail")]
    [SugarTable("TN_TN_WeekProDetail")]
    public class TN_WeekProDetail : BaseModel
    {
        /// <summary>
models/TN_YearProDetail.cs
@@ -10,7 +10,7 @@
    /// <summary>
    /// 每年产量合计
    /// </summary>
    [SugarTable("TN_YearProDetail")]
    [SugarTable("TN_TN_YearProDetail")]
    public class TN_YearProDetail : BaseModel
    {
        /// <summary>