Parcourir la source

集中评审通过短信

Signed-off-by: lijunqing <lijunqing@dashoo.cn>
lijunqing il y a 6 ans
Parent
commit
ed53dee1b8

+ 6 - 7
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercert.go

@@ -787,7 +787,7 @@ func (this *OilSupplierCertController) AuditEntityFir() {
 	var supplierCertEntity suppliercert.OilSupplierCert
 	var supplierEntity supplier.OilSupplier
 	certSrv.GetEntityById(certId, &supplierCertEntity)
-	wheresup := "SupplierId= " + strconv.Itoa(supplierCertEntity.SupplierId)
+	wheresup := "Id=" + strconv.Itoa(supplierCertEntity.SupplierId)
 	certSrv.GetEntity(&supplierEntity, wheresup)
 	var jsonblob = this.Ctx.Input.RequestBody
 	json.Unmarshal(jsonblob, &dataother)
@@ -949,12 +949,6 @@ func (this *OilSupplierCertController) AuditEntityFir() {
 	if dataother.SuccessStatus == 1 {
 		ActiComplete.Result = "1"
 
-		//
-		//toMobile := supplierEntity.Mobile
-		//msg:= supplierCertEntity.SupplierTypeName + "准入审批通过,请确认缴费信息!"
-		//msgService := msg2.GetMsgService(utils.DBE)
-		//msgService.HandleMsg(toMobile,msg,"1-1",supplierCertEntity.CreateBy,supplierEntity.ContactName,strconv.Itoa(supplierCertEntity.CreateUserId))
-
 		receiveVal := svcActiviti.TaskComplete(ActiComplete)
 
 		if receiveVal == "true" {
@@ -979,6 +973,11 @@ func (this *OilSupplierCertController) AuditEntityFir() {
 					payinfo.CreateBy = supplierCertEntity.CreateBy
 					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))
 					//paysvc.AddPaymentinfo(supplierCertEntity.SupplierId, supplierCertEntity.Id, Amount, "1")
 					supplierCertEntity.Status = status
 					supplierCertEntity.Step = step