|
@@ -21,7 +21,7 @@ type CompanyApproval struct {
|
|
ApproveRealName string `description:"审批人姓名"`
|
|
ApproveRealName string `description:"审批人姓名"`
|
|
ApproveTime time.Time `description:"审批时间"`
|
|
ApproveTime time.Time `description:"审批时间"`
|
|
ApproveContent string `description:"待审内容"`
|
|
ApproveContent string `description:"待审内容"`
|
|
- ApplyMethod int `description:"申请类型:1:试用->正式,2:冻结—>试用,3:流失—>正式,4:试用延期,5:原销售申请领取流失客户,6:正式客户申请服务更新"`
|
|
|
|
|
|
+ ApplyMethod int `description:"申请类型:1:试用->正式,2:冻结—>试用,3:试用延期,4:原销售申请领取流失客户,5:正式客户申请服务更新,6:正式客户补充协议"`
|
|
ApplyReasons string `description:"申请原因"`
|
|
ApplyReasons string `description:"申请原因"`
|
|
ApplyUserId int `description:"申请人"`
|
|
ApplyUserId int `description:"申请人"`
|
|
ApplyRealName string `description:"申请人姓名"`
|
|
ApplyRealName string `description:"申请人姓名"`
|
|
@@ -99,7 +99,7 @@ type CompanyApprovalList struct {
|
|
Status string `description:"客户状态"`
|
|
Status string `description:"客户状态"`
|
|
ApproveContent string `description:"待审内容"`
|
|
ApproveContent string `description:"待审内容"`
|
|
ApproveStatus string `description:"当前状态"`
|
|
ApproveStatus string `description:"当前状态"`
|
|
- ApplyMethod int `description:"申请类型:申请类型:1:试用->正式,2:冻结—>试用,3:试用延期,4:原销售申请领取流失客户,5:正式客户申请服务更新"`
|
|
|
|
|
|
+ ApplyMethod int `description:"申请类型:1:试用->正式,2:冻结—>试用,3:试用延期,4:原销售申请领取流失客户,5:正式客户申请服务更新,6:正式客户补充协议"`
|
|
ApplyReasons string `description:"申请理由"`
|
|
ApplyReasons string `description:"申请理由"`
|
|
FreezeStartDate string `description:"冻结开始日期"`
|
|
FreezeStartDate string `description:"冻结开始日期"`
|
|
FreezeEndDate string `description:"冻结结束日期"`
|
|
FreezeEndDate string `description:"冻结结束日期"`
|
|
@@ -630,7 +630,7 @@ func ApplyServiceUpdate(companyId, productId, sellerId, companyApprovalId, compa
|
|
//如果 需要更新 字段 为 true,那么就去更新
|
|
//如果 需要更新 字段 为 true,那么就去更新
|
|
if needUpdate {
|
|
if needUpdate {
|
|
sql = `update company_report_permission set end_date=?,last_updated_time=now(),modify_time=now(),company_contract_id=?,status=? where company_report_permission_id=? `
|
|
sql = `update company_report_permission set end_date=?,last_updated_time=now(),modify_time=now(),company_contract_id=?,status=? where company_report_permission_id=? `
|
|
- _, tmpErr := o.Raw(sql, pv.EndDate, pv.CompanyContractId, pv.Status, nowPermission.CompanyReportPermissionId).Exec()
|
|
|
|
|
|
+ _, tmpErr := o.Raw(sql, pv.EndDate, pv.CompanyContractId, "正式", nowPermission.CompanyReportPermissionId).Exec()
|
|
err = tmpErr
|
|
err = tmpErr
|
|
if err != nil {
|
|
if err != nil {
|
|
return
|
|
return
|