20241125 旧仓储结算清单,解决查询结果中可能存在的amount为null的数据(允许有此种结果,但不显示出来)

派车的GetTruckNoList,由于查询改为union一条空白数据的形式,查询条件中的扩展名做调整
dev
dengyu 2 days ago
parent 2f21c032af
commit a5760cca80

@ -65,9 +65,11 @@ namespace DSWeb.MvcShipping.DAL.RptWmsSettleDAL
data.MAKEOUTUSER = Convert.ToString(reader["MAKEOUTUSER_NAME"]);//重新生成人 data.MAKEOUTUSER = Convert.ToString(reader["MAKEOUTUSER_NAME"]);//重新生成人
if (reader["MAKEOUTTIME"] != DBNull.Value) if (reader["MAKEOUTTIME"] != DBNull.Value)
data.MAKEOUTTIME = Convert.ToDateTime(reader["MAKEOUTTIME"]);//重新生成时间 data.MAKEOUTTIME = Convert.ToDateTime(reader["MAKEOUTTIME"]);//重新生成时间
if (reader["YWCOUNT"] != DBNull.Value)
data.YWCOUNT = Convert.ToDecimal(reader["YWCOUNT"]);//
if (reader["AMOUNT"] != DBNull.Value)
data.AMOUNT = Convert.ToDecimal(reader["AMOUNT"]);//
data.YWCOUNT = Convert.ToDecimal(reader["YWCOUNT"]);//
data.AMOUNT = Convert.ToDecimal(reader["AMOUNT"]);//
data.YWSTR = Convert.ToString(reader["YWSTR"]);// data.YWSTR = Convert.ToString(reader["YWSTR"]);//
#endregion #endregion
headList.Add(data); headList.Add(data);

@ -894,6 +894,12 @@ namespace DSWeb.Areas.TruckMng.DAL.MsWlBs
if (!string.IsNullOrEmpty(condition)) if (!string.IsNullOrEmpty(condition))
{ {
if (condition.Contains(" a.")||condition.Contains(" A.")) {
condition = condition.Replace(" a.", " v.");
condition = condition.Replace(" A.", " v.");
}
strSql.Append(" where " + condition); strSql.Append(" where " + condition);
} }

Loading…
Cancel
Save