|
@@ -12,7 +12,6 @@ import (
|
|
|
"fmt"
|
|
"fmt"
|
|
|
"strconv"
|
|
"strconv"
|
|
|
"strings"
|
|
"strings"
|
|
|
- "supplier_system/src/dashoo.cn/backend/api/business/msg"
|
|
|
|
|
"time"
|
|
"time"
|
|
|
|
|
|
|
|
"dashoo.cn/backend/api/business/auditsetting"
|
|
"dashoo.cn/backend/api/business/auditsetting"
|
|
@@ -949,6 +948,13 @@ func (this *OilSupplierCertController) AuditEntityFir() {
|
|
|
ActiComplete.CallbackUrl = ""
|
|
ActiComplete.CallbackUrl = ""
|
|
|
if dataother.SuccessStatus == 1 {
|
|
if dataother.SuccessStatus == 1 {
|
|
|
ActiComplete.Result = "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)
|
|
receiveVal := svcActiviti.TaskComplete(ActiComplete)
|
|
|
|
|
|
|
|
if receiveVal == "true" {
|
|
if receiveVal == "true" {
|
|
@@ -981,9 +987,6 @@ func (this *OilSupplierCertController) AuditEntityFir() {
|
|
|
"Step",
|
|
"Step",
|
|
|
}
|
|
}
|
|
|
certSrv.UpdateEntityByIdCols(certId, supplierCertEntity, cols)
|
|
certSrv.UpdateEntityByIdCols(certId, supplierCertEntity, cols)
|
|
|
- msgService:=msg.GetMsgService(utils.DBE)
|
|
|
|
|
- msg := "准入申请通过,请确认缴费信息"
|
|
|
|
|
- msgService.HandleMsg(supplierEntity.Mobile,msg,"1-1","test",supplierEntity.ContactName,"1")
|
|
|
|
|
} else {
|
|
} else {
|
|
|
supplierCertEntity.Status = suppliercert.STOREING_STATUS
|
|
supplierCertEntity.Status = suppliercert.STOREING_STATUS
|
|
|
supplierCertEntity.Step = step
|
|
supplierCertEntity.Step = step
|
|
@@ -1316,19 +1319,19 @@ func (this *OilSupplierCertController) SendingSMS() {
|
|
|
|
|
|
|
|
for _,item := range list {
|
|
for _,item := range list {
|
|
|
if currenttime.AddDate(0,3,0).Format("2006-01-02") == (item.ApplyTime.Format("2006-01-02")) {
|
|
if currenttime.AddDate(0,3,0).Format("2006-01-02") == (item.ApplyTime.Format("2006-01-02")) {
|
|
|
- toMobile := item.Mobile
|
|
|
|
|
|
|
+ toMobile := "15288965998,15863081686,15563862958"//item.Mobile
|
|
|
msg:= "您的" + item.SupplierTypeName + "准入还有3个月到期"
|
|
msg:= "您的" + item.SupplierTypeName + "准入还有3个月到期"
|
|
|
msgService := msg2.GetMsgService(utils.DBE)
|
|
msgService := msg2.GetMsgService(utils.DBE)
|
|
|
msgService.HandleMsg(toMobile,msg,"1-1",item.CreateBy,item.ContactName,strconv.Itoa(item.CreateUserId))
|
|
msgService.HandleMsg(toMobile,msg,"1-1",item.CreateBy,item.ContactName,strconv.Itoa(item.CreateUserId))
|
|
|
}
|
|
}
|
|
|
if currenttime.AddDate(0,2,0).Format("2006-01-02") == (item.ApplyTime.Format("2006-01-02")) {
|
|
if currenttime.AddDate(0,2,0).Format("2006-01-02") == (item.ApplyTime.Format("2006-01-02")) {
|
|
|
- toMobile := item.Mobile
|
|
|
|
|
|
|
+ toMobile := "15288965998,15863081686,15563862958"//item.Mobile
|
|
|
msg:= "您的" + item.SupplierTypeName + "准入还有2个月到期"
|
|
msg:= "您的" + item.SupplierTypeName + "准入还有2个月到期"
|
|
|
msgService := msg2.GetMsgService(utils.DBE)
|
|
msgService := msg2.GetMsgService(utils.DBE)
|
|
|
msgService.HandleMsg(toMobile,msg,"1-1",item.CreateBy,item.ContactName,strconv.Itoa(item.CreateUserId))
|
|
msgService.HandleMsg(toMobile,msg,"1-1",item.CreateBy,item.ContactName,strconv.Itoa(item.CreateUserId))
|
|
|
}
|
|
}
|
|
|
if currenttime.AddDate(0,1,0).Format("2006-01-02") == (item.ApplyTime.Format("2006-01-02")) {
|
|
if currenttime.AddDate(0,1,0).Format("2006-01-02") == (item.ApplyTime.Format("2006-01-02")) {
|
|
|
- toMobile := item.Mobile
|
|
|
|
|
|
|
+ toMobile := ",15863081686,15863081686,15563862958"//item.Mobile
|
|
|
msg:= "您的" + item.SupplierTypeName + "准入还有1个月到期"
|
|
msg:= "您的" + item.SupplierTypeName + "准入还有1个月到期"
|
|
|
msgService := msg2.GetMsgService(utils.DBE)
|
|
msgService := msg2.GetMsgService(utils.DBE)
|
|
|
msgService.HandleMsg(toMobile,msg,"1-1",item.CreateBy,item.ContactName,strconv.Itoa(item.CreateUserId))
|
|
msgService.HandleMsg(toMobile,msg,"1-1",item.CreateBy,item.ContactName,strconv.Itoa(item.CreateUserId))
|