12345678910111213141516171819202122232425262728293031 |
- using QM.KJGH.CGGL.IRepository;
- using QM.KJGH.CGGL.Model.Ghxms;
- using QM.KJGH.Model.KJGH;
- using QM.OrmSqlSugar;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using WS;
- using WS.AutoMapper;
- namespace QM.KJGH.CGGL.Repository
- {
- public class GhbzGhxmLogRepository : SqlSugarRepository<GhbzGhxmLog>, IGhbzGhxmLogRepository
- {
- /// <summary>
- /// 添加日志
- /// </summary>
- /// <param name="ghbzGhxmLogDto"></param>
- /// <returns></returns>
- public async Task<GhbzGhxmLog> Add(GhbzGhxmLogDto ghbzGhxmLogDto)
- {
- if (ghbzGhxmLogDto == null)
- throw new UseArgumentException("请求参数错误");
- var model = ghbzGhxmLogDto.MapTo<GhbzGhxmLog>();
- var result = await InsertAsync(model);
- return result;
- }
- }
- }
|