|
|
@@ -1030,7 +1030,7 @@ func (this *OilSupplierCertController) AuditEntityFir() {
|
|
|
total := paysvc.GetPagingEntitiesWithOrder(1,10,"Id",true,&sup,wheresup)
|
|
|
|
|
|
if supplierCertEntity.SupplierTypeCode == "01" && total <= 50 {
|
|
|
-
|
|
|
+ status = suppliercert.STOREING_STATUS
|
|
|
} else {
|
|
|
paysvc.InsertEntity(&payinfo)
|
|
|
//发短信
|
|
|
@@ -1389,19 +1389,19 @@ func (this *OilSupplierCertController) SendingSMS() {
|
|
|
|
|
|
for _,item := range list {
|
|
|
if currenttime.AddDate(0,3,0).Format("2006-01-02") == (item.ApplyTime.Format("2006-01-02")) {
|
|
|
- toMobile := "15288965998,15863081686,15563862958"//item.Mobile
|
|
|
+ toMobile := item.Mobile
|
|
|
msg:= "您的" + item.SupplierTypeName + "准入还有3个月到期"
|
|
|
msgService := msg2.GetMsgService(utils.DBE)
|
|
|
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")) {
|
|
|
- toMobile := "15288965998,15863081686,15563862958"//item.Mobile
|
|
|
+ toMobile :=item.Mobile
|
|
|
msg:= "您的" + item.SupplierTypeName + "准入还有2个月到期"
|
|
|
msgService := msg2.GetMsgService(utils.DBE)
|
|
|
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")) {
|
|
|
- toMobile := ",15863081686,15863081686,15563862958"//item.Mobile
|
|
|
+ toMobile := item.Mobile
|
|
|
msg:= "您的" + item.SupplierTypeName + "准入还有1个月到期"
|
|
|
msgService := msg2.GetMsgService(utils.DBE)
|
|
|
msgService.HandleMsg(toMobile,msg,"1-1",item.CreateBy,item.ContactName,strconv.Itoa(item.CreateUserId))
|
|
|
@@ -1427,7 +1427,7 @@ func (this *OilSupplierCertController) SendingSMSSupplierFile() {
|
|
|
|
|
|
if err == nil {
|
|
|
for _, item := range expireFile {
|
|
|
- toMobile := "15288965998,15863081686,15563862958"//item.Mobile
|
|
|
+ toMobile := item.Mobile
|
|
|
msg:= "您的" + item.ExpireAllFile + "还有1个月到期"
|
|
|
msgService := msg2.GetMsgService(utils.DBE)
|
|
|
msgService.HandleMsg(toMobile,msg,"1-1",item.CreateBy,item.ContactName,strconv.Itoa(item.CreateUserId))
|