Explorar o código

后:审批交费发短信

MAC %!s(int64=5) %!d(string=hai) anos
pai
achega
00fc838c2a

+ 13 - 0
src/dashoo.cn/backend/api/controllers/oilsupplier/annualListener.go

@@ -198,6 +198,19 @@ func (this *OilAnnualListenerController) GetPrePayer() {
 	var supplierEntity supplier.OilSupplier
 	supplierSrv.GetEntityById(annualEntity.SupplierId, &supplierEntity)
 
+	// 发短信通知交费
+	bFlag := ""
+	if supplierCertEntity.SupplierTypeCode == "01" {
+		bFlag = "物资类"
+	} else if supplierCertEntity.SupplierTypeCode == "02" {
+		bFlag = "基建类"
+	} else {
+		bFlag = "服务类"
+	}
+	msg := "您的" + bFlag + "年审申请已通过,请及时交费!"
+	msgService := msg2.GetMsgService(utils.DBE)
+	msgService.HandleMsg(supplierEntity.Mobile, msg, "5-1", supplierCertEntity.CreateBy, supplierEntity.ContactName, strconv.Itoa(supplierCertEntity.CreateUserId), this.User.Username)
+
 	paySvc := paymentinfo.GetPaymentService(utils.DBE)
 	var Amount float64
 	costSvc := oilcostmanage.GetOilCostManageService(utils.DBE)

+ 13 - 0
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercertAppendListener.go

@@ -245,6 +245,19 @@ func (this *OilSupplierCertAppendListenerController) GetPrePayer() {
 	var supplierEntity supplier.OilSupplier
 	supplierSrv.GetEntityById(supplierCertAppendEntity.SupplierId, &supplierEntity)
 
+	// 发短信通知交费
+	bFlag := ""
+	if supplierCertAppendEntity.AppendType == "01" {
+		bFlag = "物资类"
+	} else if supplierCertAppendEntity.AppendType == "02" {
+		bFlag = "基建类"
+	} else {
+		bFlag = "服务类"
+	}
+	msg := "您的" + bFlag + "增项申请已通过,请及时交费!"
+	msgService := msg2.GetMsgService(utils.DBE)
+	msgService.HandleMsg(supplierEntity.Mobile, msg, "5-1", supplierCertAppendEntity.CreateBy, supplierEntity.ContactName, strconv.Itoa(supplierCertAppendEntity.CreateUserId), this.User.Username)
+
 	paySvc := paymentinfo.GetPaymentService(utils.DBE)
 	var Amount float64
 	costSvc := oilcostmanage.GetOilCostManageService(utils.DBE)

+ 14 - 0
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercertListener.go

@@ -296,6 +296,20 @@ func (this *OilSupplierCertListenerController) GetPrePayer() {
 	var supplierEntity supplier.OilSupplier
 	supplierSrv.GetEntityById(supplierCertEntity.SupplierId, &supplierEntity)
 
+	// 发短信通知交费
+	bFlag := ""
+	if supplierCertEntity.SupplierTypeCode == "01" {
+		bFlag = "物资类"
+	} else if supplierCertEntity.SupplierTypeCode == "02" {
+		bFlag = "基建类"
+	} else {
+		bFlag = "服务类"
+	}
+	msg := "您的" + bFlag + "准入申请已通过,请及时交费!"
+	msgService := msg2.GetMsgService(utils.DBE)
+	msgService.HandleMsg(supplierEntity.Mobile, msg, "5-1", supplierCertEntity.CreateBy, supplierEntity.ContactName, strconv.Itoa(supplierCertEntity.CreateUserId), this.User.Username)
+
+
 	paySvc := paymentinfo.GetPaymentService(utils.DBE)
 	var Amount float64
 	costSvc := oilcostmanage.GetOilCostManageService(utils.DBE)