|
@ -97,7 +97,7 @@ namespace Win.Sfs.SettleAccount.Repository.Report |
|
|
{ |
|
|
{ |
|
|
string sqlString = |
|
|
string sqlString = |
|
|
|
|
|
|
|
|
"select\n" + |
|
|
"select\n" + |
|
|
"a.ErpMaterialCode,\n" + |
|
|
"a.ErpMaterialCode,\n" + |
|
|
"isnull(d.materialCode,\n" + |
|
|
"isnull(d.materialCode,\n" + |
|
|
"SettleMaterialCode) MaterialCode,\n" + |
|
|
"SettleMaterialCode) MaterialCode,\n" + |
|
@ -138,7 +138,6 @@ namespace Win.Sfs.SettleAccount.Repository.Report |
|
|
"where\n" + |
|
|
"where\n" + |
|
|
"b.MaterialCode is null\n"; |
|
|
"b.MaterialCode is null\n"; |
|
|
string _sql = string.Format(sqlString, version, customcode); |
|
|
string _sql = string.Format(sqlString, version, customcode); |
|
|
|
|
|
|
|
|
var _query = DbConnection.Query<PartCodeDiff>(_sql, null, null, true, 1200, null); |
|
|
var _query = DbConnection.Query<PartCodeDiff>(_sql, null, null, true, 1200, null); |
|
|
//var _query = _db.Query<SettledPartAndErpPartPriceDiff>();
|
|
|
//var _query = _db.Query<SettledPartAndErpPartPriceDiff>();
|
|
|
return _query.ToList(); |
|
|
return _query.ToList(); |
|
|