|
@@ -6,6 +6,7 @@ import (
|
|
|
msg2 "dashoo.cn/backend/api/business/msg"
|
|
msg2 "dashoo.cn/backend/api/business/msg"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/oilcostmanage"
|
|
"dashoo.cn/backend/api/business/oilsupplier/oilcostmanage"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/supplier"
|
|
"dashoo.cn/backend/api/business/oilsupplier/supplier"
|
|
|
|
|
+ "dashoo.cn/backend/api/business/oilsupplier/suppliercertsub"
|
|
|
"dashoo.cn/backend/api/business/organize"
|
|
"dashoo.cn/backend/api/business/organize"
|
|
|
"dashoo.cn/backend/api/business/paymentinfo"
|
|
"dashoo.cn/backend/api/business/paymentinfo"
|
|
|
"dashoo.cn/business2/parameter"
|
|
"dashoo.cn/business2/parameter"
|
|
@@ -1006,12 +1007,22 @@ func (this *OilSupplierCertController) AuditEntityFir() {
|
|
|
payinfo.CreateUserId = supplierCertEntity.CreateUserId
|
|
payinfo.CreateUserId = supplierCertEntity.CreateUserId
|
|
|
payinfo.CreateBy = supplierCertEntity.CreateBy
|
|
payinfo.CreateBy = supplierCertEntity.CreateBy
|
|
|
payinfo.CreateOn = time.Now()
|
|
payinfo.CreateOn = time.Now()
|
|
|
- paysvc.InsertEntity(&payinfo)
|
|
|
|
|
- //发短信
|
|
|
|
|
- toMobile := supplierEntity.Mobile
|
|
|
|
|
- msg:= "您的"+supplierCertEntity.SupplierTypeName + "准入审核通过,请及时确认缴费信息!"
|
|
|
|
|
- msgService := msg2.GetMsgService(utils.DBE)
|
|
|
|
|
- msgService.HandleMsg(toMobile,msg,"3-1",supplierCertEntity.CreateBy,supplierEntity.ContactName,strconv.Itoa(supplierCertEntity.CreateUserId))
|
|
|
|
|
|
|
+
|
|
|
|
|
+ wheresup := " SupplierCertId=" + strconv.Itoa(supplierCertEntity.Id)
|
|
|
|
|
+ var sup []suppliercertsub.OilSupplierCertSub
|
|
|
|
|
+ total := paysvc.GetPagingEntitiesWithOrder(1,10,"Id",true,&sup,wheresup)
|
|
|
|
|
+
|
|
|
|
|
+ if supplierCertEntity.SupplierTypeCode == "01" && total <= 50 {
|
|
|
|
|
+
|
|
|
|
|
+ } else {
|
|
|
|
|
+ paysvc.InsertEntity(&payinfo)
|
|
|
|
|
+ //发短信
|
|
|
|
|
+ toMobile := supplierEntity.Mobile
|
|
|
|
|
+ msg:= "您的"+supplierCertEntity.SupplierTypeName + "准入审核通过,请及时确认缴费信息!"
|
|
|
|
|
+ msgService := msg2.GetMsgService(utils.DBE)
|
|
|
|
|
+ msgService.HandleMsg(toMobile,msg,"3-1",supplierCertEntity.CreateBy,supplierEntity.ContactName,strconv.Itoa(supplierCertEntity.CreateUserId))
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//paysvc.AddPaymentinfo(supplierCertEntity.SupplierId, supplierCertEntity.Id, Amount, "1")
|
|
//paysvc.AddPaymentinfo(supplierCertEntity.SupplierId, supplierCertEntity.Id, Amount, "1")
|
|
|
supplierCertEntity.Status = status
|
|
supplierCertEntity.Status = status
|
|
|
supplierCertEntity.Step = step
|
|
supplierCertEntity.Step = step
|