焊工更新接口
This commit is contained in:
@@ -407,16 +407,21 @@ namespace BLL.API
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.ResponeData getProjectWelder(string projectId)
|
||||
public static Model.ResponeData getProjectWelder(string projectId, string unitId, string date)
|
||||
{
|
||||
Model.ResponeData respone = new ResponeData();
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
DateTime dateTime =DateTime.Parse("1000-10-10");
|
||||
if (!string.IsNullOrEmpty(date) && date != "null")
|
||||
{
|
||||
dateTime = DateTime.Parse(date);
|
||||
}
|
||||
var q = from pw in db.Project_Welder
|
||||
join w in db.HJGL_BS_Welder on pw.WED_ID equals w.WED_ID
|
||||
where pw.ProjectId == projectId
|
||||
where w.PhotoUrl !=null && pw.ExchangeTime ==null
|
||||
join w in db.HJGL_BS_Welder on pw.WED_ID equals w.WED_ID
|
||||
where w.PhotoUrl !=null && pw.ExchangeTime > dateTime
|
||||
select w;
|
||||
|
||||
List<WelderItem> res = new List<WelderItem>();
|
||||
foreach (var p in q)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user