| GasolineBlend/Controllers/SysController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| GasolineBlend/GasolineBlend.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| RiskControl.NewService/Entity/RiskControlRR/SysBusinessPlan.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| RiskControl.NewService/RiskControl.NewService.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| RiskControl.NewService/Service/SysBusinessPlanService.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
GasolineBlend/Controllers/SysController.cs
New file @@ -0,0 +1,44 @@ using System.Threading.Tasks; using System.Web.Mvc; using System.Web.Services.Description; using CommonHelper; using GasolineBlend.Filter; using RiskControl.NewService.Entity.RiskControlRR; using RiskControl.NewService.Service; namespace GasolineBlend.Controllers { [LoginChecked()] public class SysController : BaseController { private SysBusinessPlanService _sysBusinessPlanService = new SysBusinessPlanService(); [HttpPost] public async Task<ActionResult> AddSysBusinessPlan(SysBusinessPlan model) { model.CreateUserId = OperatorProvider.Instance.Current.UserId; await _sysBusinessPlanService.AddAsync(model); return SuccessNoShow(); } [HttpPost] public async Task<ActionResult> UpdateSysBusinessPlan(SysBusinessPlan model) { model.CreateUserId = OperatorProvider.Instance.Current.UserId; await _sysBusinessPlanService.UpdateAsync(model); return SuccessNoShow(); } [HttpPost] public async Task<ActionResult> DeleteSysBusinessPlan(int id) { await _sysBusinessPlanService.DeleteAsync(a=>a.Id == id); return SuccessNoShow(); } [HttpPost] public async Task<ActionResult> GetSysBusinessPlanList() { var res = await _sysBusinessPlanService.GetListAsync(); return SuccessNoShow(data:res); } } } GasolineBlend/GasolineBlend.csproj
@@ -324,6 +324,7 @@ <Compile Include="Controllers\SubjectExController.cs" /> <Compile Include="Controllers\SubjectGroupController.cs" /> <Compile Include="Controllers\SubjectGroupExController.cs" /> <Compile Include="Controllers\SysController.cs" /> <Compile Include="Controllers\TianYanChaController.cs" /> <Compile Include="Controllers\CrawlerMonitorController.cs" /> <Compile Include="Controllers\TushareController.cs" /> RiskControl.NewService/Entity/RiskControlRR/SysBusinessPlan.cs
New file @@ -0,0 +1,15 @@ using System; namespace RiskControl.NewService.Entity.RiskControlRR { public class SysBusinessPlan:BaseEntity { public string Name { get; set; } public string Type { get; set; } public string FreeDesc { get; set; } public string VipDesc { get; set; } public string Unit { get; set; } public DateTime CreateTime { get; set; } = DateTime.Now; public int CreateUserId { get; set; } } } RiskControl.NewService/RiskControl.NewService.csproj
@@ -112,6 +112,7 @@ <Compile Include="Entity\CreditRatingReportStar.cs" /> <Compile Include="Entity\QccDbEntity\SysCompanyOriginalName.cs" /> <Compile Include="Entity\RiskControlStockDL\BankFjcfTableDetail.cs" /> <Compile Include="Entity\RiskControlRR\SysBusinessPlan.cs" /> <Compile Include="Entity\RRAutoBIDB\EventKgAcquire.cs" /> <Compile Include="Entity\RRAutoBIDB\EventKgInvest.cs" /> <Compile Include="Entity\ZD\FinanceLeaseRev.cs" /> @@ -458,6 +459,7 @@ <Compile Include="Service\SelfReportService.cs" /> <Compile Include="Service\SqlService.cs" /> <Compile Include="Service\StockDlService.cs" /> <Compile Include="Service\SysBusinessPlanService.cs" /> <Compile Include="Service\TianYanChaService.cs" /> <Compile Include="Service\TushareService.cs" /> <Compile Include="Service\UrbanInvestmentService.cs" /> RiskControl.NewService/Service/SysBusinessPlanService.cs
New file @@ -0,0 +1,9 @@ using RiskControl.NewService.Entity.RiskControlRR; namespace RiskControl.NewService.Service { public class SysBusinessPlanService:BaseService<SysBusinessPlan> { } }