修改控制器
This commit is contained in:
parent
a7631a1e61
commit
12b9eaae63
|
@ -18,14 +18,24 @@ namespace WebAPI.Controllers.CQMS
|
|||
/// <param name="InspectionNoticeMenuId"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public Model.ResponeData GetPersonQuality(string InspectionNoticeMenuId) {
|
||||
public Model.ResponeData GetPersonQuality(string InspectionNoticeMenuId)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
var model = BLL.InspectionManagementService.GetInspectionManagementById(InspectionNoticeMenuId);
|
||||
if (model!=null)
|
||||
returnPersonQuality newModel = new returnPersonQuality();
|
||||
if (model != null)
|
||||
{
|
||||
responeData.data = model;
|
||||
newModel.InspectionCode = model.InspectionCode;
|
||||
newModel.IsOnceQualified = model.IsOnceQualified;
|
||||
newModel.InspectionDate = model.InspectionDate;
|
||||
newModel.UnqualifiedReason = model.UnqualifiedReason;
|
||||
|
||||
responeData.data = newModel;
|
||||
}
|
||||
else {
|
||||
responeData.code = 0;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
@ -73,5 +83,21 @@ namespace WebAPI.Controllers.CQMS
|
|||
};
|
||||
APIUpLoadFileService.SaveAttachUrl(toDoItem);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回实体
|
||||
/// </summary>
|
||||
public class returnPersonQuality
|
||||
{
|
||||
public DateTime? InspectionDate { get; set; }
|
||||
|
||||
public bool? IsOnceQualified { get; set; }
|
||||
|
||||
public int MyProperty { get; set; }
|
||||
|
||||
public string InspectionCode { get; set; }
|
||||
|
||||
public string UnqualifiedReason { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue