first commit

This commit is contained in:
2026-09-02 16:31:50 +08:00
commit a461727193
911 changed files with 692450 additions and 0 deletions
@@ -0,0 +1,32 @@
using JSMachine.WMS.App.Dto;
using JSMachine.WMS.App.IService;
using JSMachine.WMS.Domain.Entity;
using JSMachine.WMS.Domain.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JSMachine.WMS.App.ServiceImpl
{
public class ERPTaskService : BaseService<ERPTaskDto, ERPTask>, IERPTaskService
{
private IERPTaskRepository _erpTaskRepository;
public ERPTaskService(IERPTaskRepository repository) : base(repository)
{
_erpTaskRepository = repository;
}
public Task<bool> UpdateTaskMsg(Guid id, string taskMsg)
{
return _erpTaskRepository.ExcuteSql($"update ERPTask set TaskMsg='{taskMsg}' where Id='{id}'");
}
public Task<bool> UpdateTaskStatus(ERPTaskDto erpTask)
{
erpTask.LastModifiedTime = DateTime.Now;
return base.EditSingalWithSpecificCols(erpTask, [nameof(ERPTaskDto.TaskStatus), nameof(ERPTaskDto.LastModifiedTime)]);
}
}
}