|
|
@@ -13,6 +13,7 @@ import (
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/supplierfile"
|
|
|
"dashoo.cn/backend/api/business/organize"
|
|
|
"dashoo.cn/backend/api/business/paymentinfo"
|
|
|
+ baseparameter "dashoo.cn/business2/parameter"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
"strconv"
|
|
|
@@ -1312,8 +1313,10 @@ func (this *OilSupplierCertController) SendingSMS() {
|
|
|
func (this *OilSupplierCertController) SendingSMSSupplierFile() {
|
|
|
t := time.Now()
|
|
|
svcsupp := supplier.GetOilSupplierService(utils.DBE)
|
|
|
+ paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
|
|
|
+ month, _ := strconv.Atoi(paramSvc.GetBaseparameterMessage("GFGL", "paramset", "QualificationMonth"))
|
|
|
var expireFile []supplier.ExpireFile
|
|
|
- where := " b.EffectDate LIKE '%" + time.Now().AddDate(0, 1, 0).Format("2006-01-02") + "%'"
|
|
|
+ where := " b.EffectDate LIKE '%" + time.Now().AddDate(0, month, 0).Format("2006-01-02") + "%'"
|
|
|
err := svcsupp.GetExpireFile(OilSupplierName, OilSupplierFileName, &expireFile, where)
|
|
|
|
|
|
if err == nil {
|
|
|
@@ -1326,7 +1329,7 @@ func (this *OilSupplierCertController) SendingSMSSupplierFile() {
|
|
|
fileName = item.NeedAllFile
|
|
|
}
|
|
|
toMobile := item.Mobile
|
|
|
- msg := "您的" + fileName + "还有1个月到期"
|
|
|
+ msg := "您的" + fileName + "还有" + strconv.Itoa(month) + "个月到期"
|
|
|
msgService := msg2.GetMsgService(utils.DBE)
|
|
|
loginName := "TimingTask"
|
|
|
if this.User != nil {
|