1
yanjinhui
2025-06-12 10c497ad3b1802e1c8feed8df0a290a407ec72bc
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
using AutoMapper;
using OfficeOpenXml.FormulaParsing.Excel.Functions.RefAndLookup;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseRepository;
using WIDESEAWCS_Core.BaseServices;
using WIDESEAWCS_Core.Helper;
using WIDESEAWCS_ISystemServices;
using WIDESEAWCS_Model.Models;
 
namespace WIDESEAWCS_SystemServices
{
    public class dt_stationinfoService : ServiceBase<dt_stationInfo, IRepository<dt_stationInfo>>, Idt_StationinfoService
    {
        private readonly IMapper _mapper;
        /// <summary>
        /// 仓储层(数据库访问)
        /// </summary>
        public IRepository<dt_stationInfo> Repository => BaseDal;
        public dt_stationinfoService(IRepository<dt_stationInfo> BaseDal, IMapper mapper) : base(BaseDal)
        {
            _mapper = mapper;
        }
 
        public override WebResponseContent UpdateData(SaveModel saveModel)
        {
            int id = saveModel.MainData["id"].ObjToInt();
            int Row = saveModel.MainData["row"].ObjToInt();
            int Column = saveModel.MainData["column"].ObjToInt();
            dt_stationInfo locationInfo = BaseDal.QueryFirst(x => x.Id == id);
            locationInfo.Row = Row;
            locationInfo.Column = Column;
            return UpdateData(locationInfo);
            //return base.UpdateData(saveModel);
        }
    }
}