|
@ -156,6 +156,27 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
|
|
|
|
|
|
var listCompare= DbConnection.Query<CompareExtend>(sql2); |
|
|
var listCompare= DbConnection.Query<CompareExtend>(sql2); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var sql3 = "SELECT\n" + |
|
|
|
|
|
" a.WmsBillNum,\n" + |
|
|
|
|
|
" a.MaterialCode,\n" + |
|
|
|
|
|
" a.Kanban,\n" + |
|
|
|
|
|
" A.LastModificationTime WmsDate \n" + |
|
|
|
|
|
"FROM\n" + |
|
|
|
|
|
" Set_HQ_H_Kanban A\n" + |
|
|
|
|
|
" LEFT JOIN ( SELECT MaterialCode, Kanban FROM Set_HQ_H_Kanban GROUP BY MaterialCode, Kanban HAVING COUNT(*)> 1 ) B ON A.Kanban = B.Kanban \n" + |
|
|
|
|
|
" AND A.MaterialCode = B.MaterialCode \n" + |
|
|
|
|
|
"WHERE\n" + |
|
|
|
|
|
" B.Kanban IS NULL"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var listCompare1 = DbConnection.Query<CompareExtend>(sql3); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<CompareExtend> _ls = new List<CompareExtend>(); |
|
|
List<CompareExtend> _ls = new List<CompareExtend>(); |
|
|
foreach (var itm in listCompare.ToList()) |
|
|
foreach (var itm in listCompare.ToList()) |
|
|
{ |
|
|
{ |
|
@ -165,11 +186,12 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
first.WmsBillNum += itm.WmsBillNum; |
|
|
first.WmsBillNum += itm.WmsBillNum; |
|
|
first.WmsDate += itm.WmsDate; |
|
|
first.WmsDate += itm.WmsDate; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
foreach (var itm in listCompare1.ToList()) |
|
|
|
|
|
{ |
|
|
|
|
|
_ls.Add(itm); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
var _query = DbConnection.Query<HQHSettledDetailDiff>(_sql, null, null, true, 1200, null); |
|
|
var _query = DbConnection.Query<HQHSettledDetailDiff>(_sql, null, null, true, 1200, null); |
|
|
_list = _query.ToList(); |
|
|
_list = _query.ToList(); |
|
|