|
@@ -507,7 +507,7 @@ func (this *ContractAllocationController) CompanyContracDetail() {
|
|
}
|
|
}
|
|
|
|
|
|
//var contractPermissionList []*company.ContractPermissionList
|
|
//var contractPermissionList []*company.ContractPermissionList
|
|
- expMap := map[int]string{0: "(3w)", 1: "(5w)"} // 买方研选价格
|
|
|
|
|
|
+ expMap := map[int]string{0: "(3w)", 1: "(5w)", 2: "(10w)"} // 买方研选价格
|
|
hasPermissions, e := company.GetCompanyContractPermissionByCompanyContractId(companyContractId)
|
|
hasPermissions, e := company.GetCompanyContractPermissionByCompanyContractId(companyContractId)
|
|
if e != nil {
|
|
if e != nil {
|
|
br.Msg = "获取失败"
|
|
br.Msg = "获取失败"
|
|
@@ -534,7 +534,7 @@ func (this *ContractAllocationController) CompanyContracDetail() {
|
|
}
|
|
}
|
|
|
|
|
|
mapPermissionNameHave[n.PermissionName] = true
|
|
mapPermissionNameHave[n.PermissionName] = true
|
|
- // 买方研选(3w/5w)
|
|
|
|
|
|
+ // 买方研选(3w/5w/10w)
|
|
if n.PermissionName == utils.CHART_PERMISSION_NAME_MF_YANXUAN {
|
|
if n.PermissionName == utils.CHART_PERMISSION_NAME_MF_YANXUAN {
|
|
expensiveYx = match.ExpensiveYx
|
|
expensiveYx = match.ExpensiveYx
|
|
n.PermissionName += expMap[match.ExpensiveYx]
|
|
n.PermissionName += expMap[match.ExpensiveYx]
|
|
@@ -734,10 +734,12 @@ func (this *ContractAllocationController) CompanyContracUpdate() {
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
|
|
|
|
- // 买方研选(3w/5w)
|
|
|
|
|
|
+ // 买方研选(3w/5w/10W)
|
|
if n.PermissionName == utils.CHART_PERMISSION_NAME_MF_YANXUAN {
|
|
if n.PermissionName == utils.CHART_PERMISSION_NAME_MF_YANXUAN {
|
|
if match.ExpensiveYx == 1 {
|
|
if match.ExpensiveYx == 1 {
|
|
money = money - 5
|
|
money = money - 5
|
|
|
|
+ } else if match.ExpensiveYx == 2 {
|
|
|
|
+ money = money - 10
|
|
} else {
|
|
} else {
|
|
money = money - 3
|
|
money = money - 3
|
|
}
|
|
}
|