| | |
| | | cooperatecustomCustomer.Ywjltime = DateTime.Now; |
| | | var Cooper = _context.CooperatecustomCustomers.Count(x => x.RecStatus == "A" && x.Ywjl == cooperatecustomCustomer.Ywjl); |
| | | var Inten = _context.IntentionCustomers.Count(x => x.RecStatus == "A" && x.Ywjl == cooperatecustomCustomer.Ywjl); |
| | | if (Cooper + Inten >= 2000) |
| | | if (Cooper + Inten > 2000) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "该业务经理,客户单位和合作客户合计超过2000!"; |
| | |
| | | updateproject.Modifier = cooperatecustomCustomer.Modifier; |
| | | updateproject.Modifytime = cooperatecustomCustomer.Modifytime; |
| | | updateproject.Weixin = cooperatecustomCustomer.Weixin; |
| | | updateproject.HuiyuanId = cooperatecustomCustomer.HuiyuanId; |
| | | if (!string.IsNullOrEmpty(cooperatecustomCustomer.HuiyuanId)) |
| | | { |
| | | updateproject.HuiyuanId = cooperatecustomCustomer.HuiyuanId; |
| | | } |
| | | updateproject.Shifoutianjiaweixin = cooperatecustomCustomer.Shifoutianjiaweixin; |
| | | updateproject.Weixintime = cooperatecustomCustomer.Weixintime; |
| | | updateproject.Weixiner = cooperatecustomCustomer.Weixiner; |