ziwen %!s(int64=2) %!d(string=hai) anos
pai
achega
48e7b3ac42
Modificáronse 2 ficheiros con 2 adicións e 3 borrados
  1. 1 1
      models/crm/contract.go
  2. 1 2
      services/crm/contract.go

+ 1 - 1
models/crm/contract.go

@@ -125,7 +125,7 @@ type ContractDetail struct {
 	RescindTimeStr             string `description:"解约时间(字符串形式)"`
 	ModifyTimeStr              string `description:"最近一次更新时间(字符串形式)"`
 	CreateTimeStr              string `description:"合同添加时间(字符串形式)"`
-	Service                    []*ContractServiceAndDetail
+	Service                    []*ContractServiceAndDetailRespItem
 	RelationContractDetailList []*ContractDetail     `description:"关联合同详情"`
 	PermissionLookList         []*PermissionLookList `description:"合同里面的权限列表"`
 }

+ 1 - 2
services/crm/contract.go

@@ -9,7 +9,6 @@ import (
 	"hongze/fms_api/models/system"
 	"hongze/fms_api/utils"
 	"reflect"
-	"strconv"
 	"strings"
 )
 
@@ -147,7 +146,7 @@ func getContractServiceAndDetailList(contractId int) (serviceList []*crm.Contrac
 }
 
 // GetServicePermissionMap 获取合同服务中的权限id  map
-func GetServicePermissionMap(serviceList []*crm.ContractServiceAndDetail) (checkPermissionIdMap map[int]int, err error) {
+func GetServicePermissionMap(serviceList []*crm.ContractServiceAndDetailRespItem) (checkPermissionIdMap map[int]int, err error) {
 	checkPermissionIdMap = make(map[int]int)
 
 	// 获取品种分类配置