|
|
@@ -1,8 +1,10 @@
|
|
|
package oilsupplier
|
|
|
|
|
|
import (
|
|
|
+ msg2 "dashoo.cn/backend/api/business/msg"
|
|
|
"dashoo.cn/backend/api/business/audithistory"
|
|
|
"dashoo.cn/backend/api/business/auditsetting"
|
|
|
+ "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/register"
|
|
|
@@ -641,6 +643,9 @@ func (this *OilSupplierCertAppendController) AuditEntityFir() {
|
|
|
var supplierCertAppendEntity suppliercertappend.OilSupplierCertAppend
|
|
|
svc.GetEntityById(appendId, &supplierCertAppendEntity)
|
|
|
|
|
|
+ var supplierEntity supplier.OilSupplier
|
|
|
+ wheresup := "Id=" + strconv.Itoa(supplierCertAppendEntity.SupplierId)
|
|
|
+ svc.GetEntity(&supplierEntity, wheresup)
|
|
|
var jsonblob = this.Ctx.Input.RequestBody
|
|
|
var dataother AppShenHeModel
|
|
|
json.Unmarshal(jsonblob, &dataother)
|
|
|
@@ -810,6 +815,19 @@ func (this *OilSupplierCertAppendController) AuditEntityFir() {
|
|
|
payinfo.CreateBy = supplierCertAppendEntity.CreateBy
|
|
|
payinfo.CreateOn = time.Now()
|
|
|
paysvc.InsertEntity(&payinfo)
|
|
|
+ //发短信
|
|
|
+ toMobile := supplierEntity.Mobile
|
|
|
+ bFlag:=""
|
|
|
+ if supplierCertAppendEntity.AppendType == "01"{
|
|
|
+ bFlag="物资类"
|
|
|
+ }else if supplierCertAppendEntity.AppendType == "02"{
|
|
|
+ bFlag="基建类"
|
|
|
+ }else{
|
|
|
+ bFlag="技术服务类"
|
|
|
+ }
|
|
|
+ msg:= "您的"+ bFlag + "增项审核通过,请及时确认缴费信息!"
|
|
|
+ msgService := msg2.GetMsgService(utils.DBE)
|
|
|
+ msgService.HandleMsg(toMobile,msg,"4-1",supplierCertAppendEntity.CreateBy,supplierEntity.ContactName,strconv.Itoa(supplierCertAppendEntity.CreateUserId))
|
|
|
//paysvc.AddPaymentinfo(supplierCertAppendEntity.SupplierId, supplierCertAppendEntity.Id, Amount, "3")
|
|
|
}
|
|
|
}
|