维修记录
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace Tnb.EquipMgr.Entities.Dto
|
||||
{
|
||||
public class RepairApplyDetailOutput
|
||||
{
|
||||
public EqpRepairApply eqpRepairApply { get; set; }
|
||||
public EqpRepairOutApply eqpRepairOutApply { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -40,9 +40,9 @@ namespace Tnb.EquipMgr.Entities.Dto
|
||||
public string? repair_description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 附件
|
||||
/// 维修图片
|
||||
/// </summary>
|
||||
public string? attachment { get; set; }
|
||||
public string? repair_img { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否外修
|
||||
|
||||
@@ -148,5 +148,10 @@ public partial class EqpRepairApply : BaseEntity<string>
|
||||
/// 附件
|
||||
/// </summary>
|
||||
public string? attachment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 维修图片
|
||||
/// </summary>
|
||||
public string? repair_img { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -47,6 +47,11 @@ namespace Tnb.EquipMgr.Interfaces
|
||||
/// </summary>
|
||||
/// <param name="dic"></param>
|
||||
public Task<string> Register(RepairApplyRegisterInput input);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据id获取维修详细
|
||||
/// </summary>
|
||||
/// <param name="dic"></param>
|
||||
public Task<RepairApplyDetailOutput> GetRepairApplyDetail(Dictionary<string, string> dic);
|
||||
}
|
||||
}
|
||||
@@ -107,12 +107,27 @@ namespace Tnb.EquipMgr
|
||||
is_halt = input.is_halt,
|
||||
halt_take_time = input.halt_take_time,
|
||||
repair_description = input.repair_description,
|
||||
attachment = input.attachment,
|
||||
repair_img = input.repair_img,
|
||||
is_out_apply = input.is_out_apply,
|
||||
status = status,
|
||||
}, x => x.id == input.id);
|
||||
|
||||
return "登记成功";
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<RepairApplyDetailOutput> GetRepairApplyDetail(Dictionary<string, string> dic)
|
||||
{
|
||||
string id = dic["id"];
|
||||
|
||||
EqpRepairApply eqpRepairApply = await _repository.GetSingleAsync(x => x.id == id);
|
||||
EqpRepairOutApply eqpRepairOutApply = await _repository.AsSugarClient().Queryable<EqpRepairOutApply>().FirstAsync(x=>x.repair_apply_id==id);
|
||||
|
||||
return new RepairApplyDetailOutput()
|
||||
{
|
||||
eqpRepairApply = eqpRepairApply,
|
||||
eqpRepairOutApply = eqpRepairOutApply,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user