Commit b4280a47 authored by 黄奎's avatar 黄奎

页面修改

parent af94e626
...@@ -97,5 +97,10 @@ namespace Edu.Model.Entity.Sell ...@@ -97,5 +97,10 @@ namespace Edu.Model.Entity.Sell
/// 删除状态 /// 删除状态
/// </summary> /// </summary>
public DateStateEnum Status { get; set; } public DateStateEnum Status { get; set; }
/// <summary>
/// 月度达标金额
/// </summary>
public decimal MonthGoalMoney { get; set; }
} }
} }
...@@ -162,6 +162,7 @@ namespace Edu.Module.Course ...@@ -162,6 +162,7 @@ namespace Edu.Module.Course
{nameof(RB_Bonus_PlanExtend.UpdateBy),model.UpdateBy }, {nameof(RB_Bonus_PlanExtend.UpdateBy),model.UpdateBy },
{nameof(RB_Bonus_PlanExtend.UpdateTime),model.UpdateTime }, {nameof(RB_Bonus_PlanExtend.UpdateTime),model.UpdateTime },
{nameof(RB_Bonus_PlanExtend.School_Id),model.School_Id }, {nameof(RB_Bonus_PlanExtend.School_Id),model.School_Id },
{nameof(RB_Bonus_PlanExtend.MonthGoalMoney),model.MonthGoalMoney },
}; };
flag = bonus_PlanRepository.Update(fileds, new WhereHelper(nameof(RB_Bonus_PlanExtend.Id), model.Id)); flag = bonus_PlanRepository.Update(fileds, new WhereHelper(nameof(RB_Bonus_PlanExtend.Id), model.Id));
} }
...@@ -251,7 +252,8 @@ namespace Edu.Module.Course ...@@ -251,7 +252,8 @@ namespace Edu.Module.Course
extModel?.UseCourseIds, extModel?.UseCourseIds,
UseCourseIdList = Common.ConvertHelper.StringToList(extModel?.UseCourseIds), UseCourseIdList = Common.ConvertHelper.StringToList(extModel?.UseCourseIds),
NotUseCourseIdList = Common.ConvertHelper.StringToList(extModel?.NotUseCourseIds), NotUseCourseIdList = Common.ConvertHelper.StringToList(extModel?.NotUseCourseIds),
DetailList = extModel?.DetailList ?? new List<RB_Bouns_PlanDetail_Extend>() DetailList = extModel?.DetailList ?? new List<RB_Bouns_PlanDetail_Extend>(),
extModel?.MonthGoalMoney,
}; };
return obj; return obj;
} }
......
...@@ -5,6 +5,7 @@ using System; ...@@ -5,6 +5,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using System.Linq; using System.Linq;
using VT.FW.DB.Dapper;
namespace Edu.Repository.Sell namespace Edu.Repository.Sell
{ {
...@@ -23,6 +24,7 @@ namespace Edu.Repository.Sell ...@@ -23,6 +24,7 @@ namespace Edu.Repository.Sell
/// <returns></returns> /// <returns></returns>
public List<RB_Bonus_PlanExtend> GetBounsPlanPageRepository(int pageIndex,int pageSize,out long rowsCount,RB_Bonus_PlanExtend query) public List<RB_Bonus_PlanExtend> GetBounsPlanPageRepository(int pageIndex,int pageSize,out long rowsCount,RB_Bonus_PlanExtend query)
{ {
var parameters = new DynamicParameters();
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.AppendFormat(@" builder.AppendFormat(@"
SELECT A.* SELECT A.*
...@@ -40,6 +42,11 @@ WHERE 1=1 ...@@ -40,6 +42,11 @@ WHERE 1=1
{ {
builder.AppendFormat(@" AND A.{0}={1} ", nameof(RB_Bonus_PlanExtend.PlanType), query.PlanType); builder.AppendFormat(@" AND A.{0}={1} ", nameof(RB_Bonus_PlanExtend.PlanType), query.PlanType);
} }
if (!string.IsNullOrEmpty(query.PlanName))
{
builder.AppendFormat(" AND A.{0} LIKE @PlanName ", nameof(RB_Bonus_PlanExtend.PlanName));
parameters.Add("PlanName", "%" + query.PlanName.Trim() + "%");
}
} }
return GetPage<RB_Bonus_PlanExtend>(pageIndex,pageSize,out rowsCount,builder.ToString()).ToList(); return GetPage<RB_Bonus_PlanExtend>(pageIndex,pageSize,out rowsCount,builder.ToString()).ToList();
} }
......
...@@ -63,6 +63,7 @@ namespace Edu.WebApi.Controllers.Bonus ...@@ -63,6 +63,7 @@ namespace Edu.WebApi.Controllers.Bonus
item.SaleList, item.SaleList,
item.UseCourseList, item.UseCourseList,
item.NotUseCourseList, item.NotUseCourseList,
item.MonthGoalMoney,
}); });
} }
pageModel.Count = rowsCount; pageModel.Count = rowsCount;
...@@ -89,6 +90,7 @@ namespace Edu.WebApi.Controllers.Bonus ...@@ -89,6 +90,7 @@ namespace Edu.WebApi.Controllers.Bonus
SaleIds = base.ParmJObj.GetStringValue("SaleIds"), SaleIds = base.ParmJObj.GetStringValue("SaleIds"),
UseCourseIds = base.ParmJObj.GetStringValue("UseCourseIds"), UseCourseIds = base.ParmJObj.GetStringValue("UseCourseIds"),
NotUseCourseIds = base.ParmJObj.GetStringValue("NotUseCourseIds"), NotUseCourseIds = base.ParmJObj.GetStringValue("NotUseCourseIds"),
MonthGoalMoney=base.ParmJObj.GetDecimal("MonthGoalMoney"),
}; };
query.CreateBy = base.UserInfo.Id; query.CreateBy = base.UserInfo.Id;
query.UpdateBy = base.UserInfo.Id; query.UpdateBy = base.UserInfo.Id;
......
...@@ -326,6 +326,8 @@ namespace Edu.WebApi.Controllers.Course ...@@ -326,6 +326,8 @@ namespace Edu.WebApi.Controllers.Course
{ {
return ApiResult.ParamIsNull("请传递合同id"); return ApiResult.ParamIsNull("请传递合同id");
} }
//直接审批通过 (HK2021-12-21修改)
State = 2;
bool flag = educationContractModule.SetEducationContractAuditModule(ContractId, State, userInfo); bool flag = educationContractModule.SetEducationContractAuditModule(ContractId, State, userInfo);
return flag ? ApiResult.Success() : ApiResult.Failed(); return flag ? ApiResult.Success() : ApiResult.Failed();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment