|
@ -93,6 +93,7 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables |
|
|
/// 按ID获取唯一实体
|
|
|
/// 按ID获取唯一实体
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
|
|
|
[Route("{id}")] |
|
|
virtual public async Task<CodeSettingDto> GetAsync(Guid id) |
|
|
virtual public async Task<CodeSettingDto> GetAsync(Guid id) |
|
|
{ |
|
|
{ |
|
|
var result = await _repository.GetAsync(id); |
|
|
var result = await _repository.GetAsync(id); |
|
@ -193,6 +194,7 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables |
|
|
/// <param name="input">修改实体DTO</param>
|
|
|
/// <param name="input">修改实体DTO</param>
|
|
|
/// <returns>实体DTO</returns>
|
|
|
/// <returns>实体DTO</returns>
|
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
|
|
|
[Route("{id}")] |
|
|
virtual public async Task<CodeSettingDto> UpdateAsync(Guid id, CodeSettingUpdateDto input) |
|
|
virtual public async Task<CodeSettingDto> UpdateAsync(Guid id, CodeSettingUpdateDto input) |
|
|
{ |
|
|
{ |
|
|
var _first = _repository.Where(p => p.Project == input.Project && p.Value == input.Value).FirstOrDefault(); |
|
|
var _first = _repository.Where(p => p.Project == input.Project && p.Value == input.Value).FirstOrDefault(); |
|
@ -216,6 +218,7 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables |
|
|
/// <param name="id">ID</param>
|
|
|
/// <param name="id">ID</param>
|
|
|
/// <returns>无</returns>
|
|
|
/// <returns>无</returns>
|
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
|
|
|
[Route("{id}")] |
|
|
virtual public async Task DeleteAsync(Guid id) |
|
|
virtual public async Task DeleteAsync(Guid id) |
|
|
{ |
|
|
{ |
|
|
var entity = await GetFromCacheAsync(id); |
|
|
var entity = await GetFromCacheAsync(id); |
|
|