|
|
@@ -13,6 +13,7 @@ import (
|
|
|
"dashoo.cn/backend/api/business/register"
|
|
|
"dashoo.cn/business2/parameter"
|
|
|
"dashoo.cn/business2/userRole"
|
|
|
+ "dashoo.cn/business3/items"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
"strconv"
|
|
|
@@ -848,13 +849,16 @@ func (this *OilSupplierCertAppendController) AuditEntityFir() {
|
|
|
|
|
|
if receiveVal == "true" {
|
|
|
if supplierCertAppendEntity.Status == "5" {
|
|
|
- if supplierCertAppendEntity.InStyle == "1" {
|
|
|
+ if supplierCertAppendEntity.InStyle == suppliercert.PINGSHEN { // 评审准入
|
|
|
|
|
|
wheresup := " SupplierCertAppendId=" + strconv.Itoa(supplierCertAppendEntity.Id) + " and Type='2'"
|
|
|
var sup []suppliercertsub.OilSupplierCertSub
|
|
|
total := svc.GetPagingEntitiesWithOrder(1,10,"Id",true,&sup,wheresup)
|
|
|
|
|
|
- if supplierCertAppendEntity.AppendType == "01" && total <= 50 {
|
|
|
+ dictSvc := items.GetItemsService(utils.DBE)
|
|
|
+ appendAmt := dictSvc.GetKeyValueItems("SupplierAppend")
|
|
|
+ appendi,_ := strconv.Atoi(appendAmt[0].Value)
|
|
|
+ if supplierCertAppendEntity.AppendType == suppliercert.DOOGS_TYPECODE && total <= int64(appendi) { // 物资类 小于等于50条不交费
|
|
|
status = suppliercert.ALL_PASE_STATUS
|
|
|
} else {
|
|
|
paysvc := paymentinfo.GetPaymentService(utils.DBE)
|