瀏覽代碼

处理长阳一卡通余额和交易显示

临城职教中职
ndbs 2 年之前
父節點
當前提交
132e31cecc
共有 2 個檔案被更改,包括 6 行新增16 行删除
  1. +2
    -12
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.js
  2. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs

+ 2
- 12
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/MealCardRunTab/Index.js 查看文件

@@ -136,18 +136,8 @@ var bootstrap = function ($, learun) {
{ label: '身份证号', name: 'personId', width: 150, align: "left" }, { label: '身份证号', name: 'personId', width: 150, align: "left" },
{ label: '身份名称', name: 'identiName', width: 80, align: "left" }, { label: '身份名称', name: 'identiName', width: 80, align: "left" },
{ label: '流水类型', name: 'flowtype', width: 100, align: "left" }, { label: '流水类型', name: 'flowtype', width: 100, align: "left" },
{
label: '交易金额', name: 'flowamount', width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue / 10000;
}
},
{
label: '余额', name: 'balance', width: 100, align: "left",
formatter: function (cellvalue) {
return cellvalue / 10000;
}
},
{ label: '交易金额', name: 'flowamount', width: 100, align: "left" },
{ label: '余额', name: 'balance', width: 100, align: "left" },
{ label: '卡号', name: 'cardNo', width: 100, align: "left" }, { label: '卡号', name: 'cardNo', width: 100, align: "left" },
{ label: '中心时间', name: 'centralTm', width: 150, align: "left" }, { label: '中心时间', name: 'centralTm', width: 150, align: "left" },
{ label: '中心序号', name: 'centralNo', width: 100, align: "left" }, { label: '中心序号', name: 'centralNo', width: 100, align: "left" },


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs 查看文件

@@ -1221,13 +1221,13 @@ namespace Learun.Application.Web.Controllers
var mealCardRunTabList = mealCardRunTabIBLL.GetListByAccount(card).OrderByDescending(x => x.centralTm); var mealCardRunTabList = mealCardRunTabIBLL.GetListByAccount(card).OrderByDescending(x => x.centralTm);
if (mealCardRunTabList.Any()) if (mealCardRunTabList.Any())
{ {
ViewBag.StuSaveRecordTotalNum = mealCardRunTabList.FirstOrDefault().balance / 10000;
ViewBag.StuSaveRecordTotalNum = mealCardRunTabList.FirstOrDefault().balance;
} }


var mealCardRunTabListJY = mealCardRunTabIBLL.GetListByAccount(card); var mealCardRunTabListJY = mealCardRunTabIBLL.GetListByAccount(card);
if (mealCardRunTabListJY.Any()) if (mealCardRunTabListJY.Any())
{ {
ViewBag.StuConsumptionTotalNum = Math.Abs(mealCardRunTabListJY.Select(x => x.flowamount.ToDecimal() / 10000).Sum());
ViewBag.StuConsumptionTotalNum = Math.Abs(mealCardRunTabListJY.Select(x => x.flowamount).Sum());
} }
} }
//常用链接 //常用链接
@@ -1560,14 +1560,14 @@ namespace Learun.Application.Web.Controllers
var mealCardRunTabList = mealCardRunTabIBLL.GetListByAccount(card).OrderByDescending(x => x.centralTm); var mealCardRunTabList = mealCardRunTabIBLL.GetListByAccount(card).OrderByDescending(x => x.centralTm);
if (mealCardRunTabList.Any()) if (mealCardRunTabList.Any())
{ {
ViewBag.StuSaveRecordTotalNum = mealCardRunTabList.FirstOrDefault().balance / 10000;
ViewBag.StuSaveRecordTotalNum = mealCardRunTabList.FirstOrDefault().balance;
} }
//红湖付款码余额 //红湖付款码余额
ViewBag.StuConsumptionTotalNum = 0; ViewBag.StuConsumptionTotalNum = 0;
var mealCardRunTabListJY = mealCardRunTabIBLL.GetListByAccount(userInfo.IdentityCardNo); var mealCardRunTabListJY = mealCardRunTabIBLL.GetListByAccount(userInfo.IdentityCardNo);
if (mealCardRunTabListJY.Any()) if (mealCardRunTabListJY.Any())
{ {
ViewBag.StuConsumptionTotalNum = Math.Abs(mealCardRunTabListJY.Select(x => x.flowamount.ToDecimal() / 10000).Sum());
ViewBag.StuConsumptionTotalNum = Math.Abs(mealCardRunTabListJY.Select(x => x.flowamount).Sum());
} }
//常用链接 //常用链接
var userfunctionlist = perm_FunctionIBLL.GetListByUserId(userInfo.userId); var userfunctionlist = perm_FunctionIBLL.GetListByUserId(userInfo.userId);


Loading…
取消
儲存