|
@@ -3,6 +3,7 @@ package oilcontract
|
|
|
import (
|
|
import (
|
|
|
"dashoo.cn/backend/api/business/oilcontract/contract"
|
|
"dashoo.cn/backend/api/business/oilcontract/contract"
|
|
|
"dashoo.cn/backend/api/business/oilcontract/contractEvaluationItems"
|
|
"dashoo.cn/backend/api/business/oilcontract/contractEvaluationItems"
|
|
|
|
|
+ "dashoo.cn/backend/api/business/oilcontract/evaluationItems"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/supplier"
|
|
"dashoo.cn/backend/api/business/oilsupplier/supplier"
|
|
|
"dashoo.cn/backend/api/business/organize"
|
|
"dashoo.cn/backend/api/business/organize"
|
|
|
"dashoo.cn/business2/permission"
|
|
"dashoo.cn/business2/permission"
|
|
@@ -505,8 +506,10 @@ func (this *OilContractReviewController) UpdateEntity() {
|
|
|
for i,v := range modeVO.Items{
|
|
for i,v := range modeVO.Items{
|
|
|
fmt.Print(i)
|
|
fmt.Print(i)
|
|
|
var temp contractEvaluationItems.OilContractEvaluationItems
|
|
var temp contractEvaluationItems.OilContractEvaluationItems
|
|
|
|
|
+ var temp1 evaluationItems.OilEvaluationItems
|
|
|
|
|
+ svc.GetEntityById(v.ItemId, &temp1)
|
|
|
temp.ContentReviewId ,_ = strconv.Atoi(id)
|
|
temp.ContentReviewId ,_ = strconv.Atoi(id)
|
|
|
- temp.Type = v.Category
|
|
|
|
|
|
|
+ temp.Type = temp1.Category
|
|
|
temp.ItemId = v.ItemId
|
|
temp.ItemId = v.ItemId
|
|
|
temp.Category = 0
|
|
temp.Category = 0
|
|
|
temp.ParentId = v.ParentId
|
|
temp.ParentId = v.ParentId
|
|
@@ -533,7 +536,9 @@ func (this *OilContractReviewController) UpdateEntity() {
|
|
|
fmt.Print(i)
|
|
fmt.Print(i)
|
|
|
var temp2 contractEvaluationItems.OilContractEvaluationItems
|
|
var temp2 contractEvaluationItems.OilContractEvaluationItems
|
|
|
temp2.ContentReviewId ,_ = strconv.Atoi(id)
|
|
temp2.ContentReviewId ,_ = strconv.Atoi(id)
|
|
|
- temp2.Type = v.Category
|
|
|
|
|
|
|
+ var temp1 evaluationItems.OilEvaluationItems
|
|
|
|
|
+ svc.GetEntityById(v.ItemId, &temp1)
|
|
|
|
|
+ temp2.Type = temp1.Category
|
|
|
temp2.ItemId = v.ItemId
|
|
temp2.ItemId = v.ItemId
|
|
|
temp2.Category = 1
|
|
temp2.Category = 1
|
|
|
temp2.ParentId = v.ParentId
|
|
temp2.ParentId = v.ParentId
|