|
|
@@ -86,6 +86,25 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
condition += " and UserId=" + UserId;
|
|
|
}
|
|
|
+ if(!string.IsNullOrEmpty(CreateDateData))
|
|
|
+ {
|
|
|
+ string[] datelist = CreateDateData.Split(new string[] { " - " }, StringSplitOptions.None);
|
|
|
+ string start = datelist[0];
|
|
|
+ string end = datelist[1];
|
|
|
+ condition += " and CreateDate>='" + start + " 00:00:00' and CreateDate<='" + end + " 23:59:59'";
|
|
|
+ }
|
|
|
+ if (data.ChangeType > 0)
|
|
|
+ {
|
|
|
+ condition += " and ChangeType=" + data.ChangeType;
|
|
|
+ }
|
|
|
+ if (data.ProductType > 0)
|
|
|
+ {
|
|
|
+ condition += " and ProductType=" + data.ProductType;
|
|
|
+ }
|
|
|
+ if (!string.IsNullOrEmpty(data.TransRecordNo))
|
|
|
+ {
|
|
|
+ condition += " and TransRecordNo='" + data.TransRecordNo + "'";
|
|
|
+ }
|
|
|
|
|
|
Dictionary<string, object> obj = new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).IndexData("UserAccountRecord", Fields, "Id desc", "0", page, limit, condition);
|
|
|
List<Dictionary<string, object>> diclist = obj["data"] as List<Dictionary<string, object>>;
|
|
|
@@ -108,25 +127,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
dic["ChangeTypeName"] = RelationClassForConst.GetChangeTypeInfo(ChangeType);
|
|
|
}
|
|
|
Dictionary<string, object> other = new Dictionary<string, object>();
|
|
|
- if(!string.IsNullOrEmpty(CreateDateData))
|
|
|
- {
|
|
|
- string[] datelist = CreateDateData.Split(new string[] { " - " }, StringSplitOptions.None);
|
|
|
- string start = datelist[0];
|
|
|
- string end = datelist[1];
|
|
|
- condition += " and CreateDate>='" + start + " 00:00:00' and CreateDate>='" + end + " 23:59:59'";
|
|
|
- }
|
|
|
- if (data.ChangeType > 0)
|
|
|
- {
|
|
|
- condition += " and ChangeType=" + data.ChangeType;
|
|
|
- }
|
|
|
- if (data.ProductType > 0)
|
|
|
- {
|
|
|
- condition += " and ProductType=" + data.ProductType;
|
|
|
- }
|
|
|
- if (!string.IsNullOrEmpty(data.TransRecordNo))
|
|
|
- {
|
|
|
- condition += " and TransRecordNo='" + data.TransRecordNo + "'";
|
|
|
- }
|
|
|
+
|
|
|
string ChangeTypeAmount0 = "0.00", ChangeTypeAmount1 = "0.00", ChangeTypeAmount2 = "0.00", ChangeTypeAmount6 = "0.00", ChangeTypeAmount61 = "0.00", ChangeTypeAmount62 = "0.00", ChangeTypeAmount63 = "0.00", ChangeTypeAmount64 = "0.00", ChangeTypeAmount50 = "0.00", ChangeTypeAmount111 = "0.00", ChangeTypeAmount112 = "0.00";
|
|
|
DataTable dt = OtherMySqlConn.dtable("select sum(if(ChangeType=0, ChangeAmount, 0)),sum(if(ChangeType=1, ChangeAmount, 0)),sum(if(ChangeType=2, ChangeAmount, 0)),sum(if(ChangeType=6, ChangeAmount, 0)),sum(if(ChangeType=61, ChangeAmount, 0)),sum(if(ChangeType=62, ChangeAmount, 0)),sum(if(ChangeType=63, ChangeAmount, 0)),sum(if(ChangeType=64, ChangeAmount, 0)),sum(if(ChangeType=50, ChangeAmount, 0)),sum(if(ChangeType=111, ChangeAmount, 0)),sum(if(ChangeType=112, ChangeAmount, 0)) from UserAccountRecord where 1=1" + condition);
|
|
|
if(dt.Rows.Count > 0)
|