|
|
@@ -7,6 +7,7 @@ import (
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/oilcostmanage"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/supplier"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/suppliercertsub"
|
|
|
+ "dashoo.cn/backend/api/business/oilsupplier/supplierfile"
|
|
|
"dashoo.cn/backend/api/business/organize"
|
|
|
"dashoo.cn/backend/api/business/paymentinfo"
|
|
|
"dashoo.cn/backend/api/business/register"
|
|
|
@@ -851,12 +852,42 @@ func (this *OilSupplierCertAppendController) AuditEntityFir() {
|
|
|
msgService.HandleMsg(toMobile,msg,"4-1",supplierCertAppendEntity.CreateBy,supplierEntity.ContactName,strconv.Itoa(supplierCertAppendEntity.CreateUserId))
|
|
|
}
|
|
|
|
|
|
+ //var model suppliercertsub.OilSupplierCertSub
|
|
|
+ //model.Type = "3"
|
|
|
+ //model.ModifiedOn = time.Now()
|
|
|
+ //model.ModifiedBy = this.User.Realname
|
|
|
+ //model.ModifiedUserId, _ = utils.StrTo(this.User.Id).Int()
|
|
|
+ //colssup := []string{
|
|
|
+ // "Type",
|
|
|
+ // "ModifiedOn",
|
|
|
+ // "ModifiedUserId",
|
|
|
+ // "ModifiedBy",
|
|
|
+ //}
|
|
|
+ //svc.UpdateEntityBywheretbl(OilSupplierCertSubName, &model, colssup, wheresup)
|
|
|
|
|
|
//paysvc.AddPaymentinfo(supplierCertAppendEntity.SupplierId, supplierCertAppendEntity.Id, Amount, "3")
|
|
|
} else {
|
|
|
status = suppliercert.ALL_PASE_STATUS
|
|
|
}
|
|
|
}
|
|
|
+ if status == suppliercert.ALL_PASE_STATUS {
|
|
|
+ appsvc := suppliercertappend.GetOilSupplierCertAppendService(utils.DBE)
|
|
|
+ //更新准入项表
|
|
|
+ appendwhere := " SupplierId = " + utils.ToStr(supplierCertAppendEntity.SupplierId) + " and SupplierCertId = " + utils.ToStr(supplierCertAppendEntity.SupplierCertId) + " and Type = '2'"
|
|
|
+ var appendsubmodel suppliercertsub.OilSupplierCertSub
|
|
|
+ appendsubmodel.Type = "3"
|
|
|
+ appsvc.UpdateEntityBywheretbl(OilSupplierCertSubName, &appendsubmodel, []string{"Type"}, appendwhere)
|
|
|
+ //更新资质表
|
|
|
+ appendfilewhere := " SupplierId = " + utils.ToStr(supplierCertAppendEntity.SupplierId) + " and SupType = 2"
|
|
|
+ var appendsubfilemodel supplierfile.OilSupplierFile
|
|
|
+ appendsubfilemodel.SupType = 3
|
|
|
+ appsvc.UpdateEntityBywheretbl(OilSupplierCertSubName, &appendsubfilemodel, []string{"SupType"}, appendfilewhere)
|
|
|
+ //更新增项表
|
|
|
+ appdwhere := " SupplierId = " + utils.ToStr(supplierCertAppendEntity.SupplierId) + " and SupplierCertId = " + utils.ToStr(supplierCertAppendEntity.SupplierCertId) + " and Status = '6'"
|
|
|
+ var appendmodel suppliercertappend.OilSupplierCertAppend
|
|
|
+ appendmodel.Status = suppliercert.ALL_PASE_STATUS
|
|
|
+ appsvc.UpdateEntityBywheretbl(OilSupplierCertAppendName, &appendmodel, []string{"Status"}, appdwhere)
|
|
|
+ }
|
|
|
supplierCertAppendEntity.Status = status
|
|
|
supplierCertAppendEntity.Step = step
|
|
|
supplierCertAppendEntity.AuditDate = time.Now()
|