37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
		
		
			
		
	
	
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| 
								 | 
							
								using APT.Infrastructure.Core;
							 | 
						|||
| 
								 | 
							
								using APT.MS.Domain.Entities.OG;
							 | 
						|||
| 
								 | 
							
								using APT.Utility;
							 | 
						|||
| 
								 | 
							
								using Microsoft.AspNetCore.Mvc;
							 | 
						|||
| 
								 | 
							
								using System;
							 | 
						|||
| 
								 | 
							
								using System.Collections.Generic;
							 | 
						|||
| 
								 | 
							
								using System.Linq;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								namespace APT.SC.WebApi.Controllers.Api.OG
							 | 
						|||
| 
								 | 
							
								{
							 | 
						|||
| 
								 | 
							
								    //[Route("api/OG/OGConfig")]
							 | 
						|||
| 
								 | 
							
								    //public class OGConfigController : AuthorizeApiController<T_OG_OGCONFIG>
							 | 
						|||
| 
								 | 
							
								    //{
							 | 
						|||
| 
								 | 
							
								    //    /// <summary>
							 | 
						|||
| 
								 | 
							
								    //    /// 保存
							 | 
						|||
| 
								 | 
							
								    //    /// </summary>
							 | 
						|||
| 
								 | 
							
								    //    /// <param name="id"></param>
							 | 
						|||
| 
								 | 
							
								    //    /// <returns></returns>
							 | 
						|||
| 
								 | 
							
								    //    [HttpPost, Route("FullUpdate")]
							 | 
						|||
| 
								 | 
							
								    //    public JsonActionResult<bool> FullUpdate([FromBody]T_OG_OGCONFIG entity)
							 | 
						|||
| 
								 | 
							
								    //    {
							 | 
						|||
| 
								 | 
							
								    //        return SafeExecute<bool>(() =>
							 | 
						|||
| 
								 | 
							
								    //        {
							 | 
						|||
| 
								 | 
							
								    //            BaseFilter baseFilter = new BaseFilter(entity.ORG_ID);
							 | 
						|||
| 
								 | 
							
								    //            var config = GetEntities<T_OG_OGCONFIG>(t => t.ID != entity.ID, baseFilter).ToList();
							 | 
						|||
| 
								 | 
							
								    //            if (config != null && config.Count > 0)
							 | 
						|||
| 
								 | 
							
								    //            {
							 | 
						|||
| 
								 | 
							
								    //                throw new Exception("已存在一条数据,请勿重复新增!");
							 | 
						|||
| 
								 | 
							
								    //            }
							 | 
						|||
| 
								 | 
							
								    //            UpdateEntity(entity);
							 | 
						|||
| 
								 | 
							
								    //            return true;
							 | 
						|||
| 
								 | 
							
								    //        });
							 | 
						|||
| 
								 | 
							
								    //    }
							 | 
						|||
| 
								 | 
							
								    //}
							 | 
						|||
| 
								 | 
							
								}
							 |