维修记录
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; }
|
public string? repair_description { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 附件
|
/// 维修图片
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? attachment { get; set; }
|
public string? repair_img { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否外修
|
/// 是否外修
|
||||||
|
|||||||
@@ -149,4 +149,9 @@ public partial class EqpRepairApply : BaseEntity<string>
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string? attachment { get; set; }
|
public string? attachment { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 维修图片
|
||||||
|
/// </summary>
|
||||||
|
public string? repair_img { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,5 +48,10 @@ namespace Tnb.EquipMgr.Interfaces
|
|||||||
/// <param name="dic"></param>
|
/// <param name="dic"></param>
|
||||||
public Task<string> Register(RepairApplyRegisterInput input);
|
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,
|
is_halt = input.is_halt,
|
||||||
halt_take_time = input.halt_take_time,
|
halt_take_time = input.halt_take_time,
|
||||||
repair_description = input.repair_description,
|
repair_description = input.repair_description,
|
||||||
attachment = input.attachment,
|
repair_img = input.repair_img,
|
||||||
is_out_apply = input.is_out_apply,
|
is_out_apply = input.is_out_apply,
|
||||||
status = status,
|
status = status,
|
||||||
}, x => x.id == input.id);
|
}, x => x.id == input.id);
|
||||||
|
|
||||||
return "登记成功";
|
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