/// <summary> /// 插入合同内容 /// </summary> /// <param name="order">订单</param> /// <param name="content">合同内容</param> private void InsertContractContent(Order order, ContractContentDTO content) { var contractContent = order.AddNewContractContent(content.ContentDoc); contractContent.SetDescription(content.Description); contractContent.SetContentTag(content.ContentTags); }
/// <summary> /// 更新合同内容 /// </summary> /// <param name="dtoContent">合同内容DTO</param> /// <param name="content">合同内容</param> private void UpdateContractContent(ContractContentDTO dtoContent, ContractContent content) { content.UpdateContent(dtoContent.ContentDoc); content.SetContentTag(dtoContent.ContentTags); content.SetDescription(dtoContent.Description); }