33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
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)]);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|