陈勇
2026-04-06 9de6c7c6d835ba5161d64114d154bfc7676244a1
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
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Common;
using WIDESEA_Core.BaseServices;
using WIDESEA_Core.Enums;
using WIDESEA_Core.Helper;
using WIDESEA_DTO;
using WIDESEA_IRecordRepository;
using WIDESEA_IRecordService;
using WIDESEA_Model.Models;
using WIDESEA_RecordRepository;
 
namespace WIDESEA_RecordService
{
    public partial class Dt_PassPointRecordService : ServiceBase<Dt_PassPointRecord, IDt_PassPointRecordRepository>, IDt_PassPointRecordService
    {
        private readonly IMapper _mapper;
        public Dt_PassPointRecordService(IDt_PassPointRecordRepository BaseDal, IMapper mapper) : base(BaseDal)
        {
            _mapper = mapper;
        }
 
        public void AddPassPointRecord(PassPointInfo info, RequestTaskDto json)
        {
            try
            {
                Dt_PassPointRecord record = new Dt_PassPointRecord()
                {
                    Content = info.Serialize(),
                    Position = json.Position,
                    PalletCode = json.PalletCode,
                    PVI = json.PVI,
                    lineCode = info.line_code,
                    PassPointTime = DateTime.Now
                };
                BaseDal.AddData(record);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
 
            }
        }
    }
}