zhao
2021-07-07 2fdf959ac739edd6de84aa8053b8b9683dce8e8b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using DataAynchronization.HW.DAL;
using HH.WMS.Entitys.Autobom;
using HH.WMS.Entitys.Basic;
using HH.WMS.Entitys.Common;
using HW.BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace DataAynchronization.HW.BLL
{
    /// <summary>
    /// 包装规格表业务逻辑层
    /// </summary>
    /// <returns></returns>
    /// <history>[HanHe(XDL)] CREATED 2018/09/08</history>
    public class TN_AB_PACK_SPECBLL : BaseBLL
    {
        #region 获取包装规格表集合
        /// <summary>
        /// 获取包装规格表集合
        /// </summary>
        /// <param name="tableName">表名</param>
        /// <returns>包装规格集合</returns>
        /// <history>[HanHe(XDL)] CREATED 2018/09/08</history>
        public List<TN_AB_PACK_SPECEntity> GetPackSpecList(string tableName)
        {
            return CreateDAL<TN_AB_PACK_SPECDAL>().GetPackSpecList(tableName);
        }
        #endregion
 
        public SqlExecuteResult RemoveSynchLogData(List<TN_AB_PACK_SPECEntity> itemSpecList)
        {
            SqlExecuteResult result = new SqlExecuteResult();
            string ArrayGuid = string.Empty;
            //拼接ID
            for (int i = 0; i < itemSpecList.Count; i++)
            {
                ArrayGuid += "'" + itemSpecList[i].CN_GUID + "',";
            }
            if (!string.IsNullOrEmpty(ArrayGuid))
            {
                ArrayGuid = ArrayGuid.TrimEnd(',');
            }
            //执行修改
            if (!string.IsNullOrEmpty(ArrayGuid))
            {
                result = CreateDAL<TN_AB_PACK_SPECDAL>().RemoveSynchLogData(ArrayGuid);
            }
            return result;
        }
    }
}