| | |
| | | updateproject.Weixintime = cooperatecustomCustomer.Weixintime; |
| | | updateproject.Weixiner = cooperatecustomCustomer.Weixiner; |
| | | updateproject.Shouxinedu = cooperatecustomCustomer.Shouxinedu; |
| | | updateproject.Taocanjianshu = cooperatecustomCustomer.Taocanjianshu; |
| | | } |
| | | |
| | | _context.SaveChanges(); |
| | | resultEntity.ReturnID = cooperatecustomCustomer.Id; |
| | | resultEntity.Result = true; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "保存失败,请联系管理员"; |
| | | |
| | | } |
| | | return resultEntity; |
| | | } |
| | | |
| | | |
| | | public ResultEntity saveyufukuan(CooperatecustomCustomerDTO cooperatecustomCustomerDTO) |
| | | { |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | try |
| | | { |
| | | |
| | | |
| | | var cooperatecustomCustomer = _mapper.Map<CooperatecustomCustomer>(cooperatecustomCustomerDTO); |
| | | |
| | | |
| | | |
| | | var updateproject = _context.CooperatecustomCustomers.Find(cooperatecustomCustomer.Id); |
| | | |
| | | |
| | | updateproject.Yufukuan = cooperatecustomCustomer.Yufukuan; |
| | | updateproject.Shenyushouxin = cooperatecustomCustomer.Shenyushouxin; |
| | | updateproject.Shouxinedu = cooperatecustomCustomer.Shouxinedu; |
| | | |
| | | |
| | | _context.SaveChanges(); |
| | | resultEntity.ReturnID = cooperatecustomCustomer.Id; |
| | |
| | | YufukuanName = a.Yufukuan.HasValue ? a.Yufukuan.Value.ToString("f2") : "", |
| | | ShouxineduName = a.Shouxinedu.HasValue ? a.Shouxinedu.Value.ToString("f2") : "", |
| | | ShenyushouxinName = a.Shenyushouxin.HasValue ? a.Shenyushouxin.Value.ToString("f2") : "", |
| | | Taocanjianshu = a.Taocanjianshu ?? 0, |
| | | } |
| | | ).OrderByDescending(x => x.Modifytime).ToList(); |
| | | |