|
@@ -84,8 +84,8 @@ func GetTripRemainingtimesBycompany(user *models.WxUserItem, activityInfo *model
|
|
|
}
|
|
|
//condition += ` AND is_valid = 1 `
|
|
|
//查询当年的数据
|
|
|
- condition += ` AND create_time > ? `
|
|
|
- pars = append(pars, time.Now().Format(utils.FormatDate))
|
|
|
+ condition += ` AND create_time >= ? `
|
|
|
+ pars = append(pars, time.Now().Format(utils.FormatYearDate)+"-01-01")
|
|
|
listTripBill, e := models.GetCygxActivitySpecialTripBill(condition, pars)
|
|
|
if e != nil {
|
|
|
err = errors.New("GetActivitySpecialTripCountByActivitySpecial, Err: " + e.Error())
|
|
@@ -117,8 +117,8 @@ func GetTripRemainingtimesBycompany(user *models.WxUserItem, activityInfo *model
|
|
|
return
|
|
|
}
|
|
|
//查询当年的数据
|
|
|
- condition += ` AND create_time > ? `
|
|
|
- pars = append(pars, time.Now().Format(utils.FormatDate))
|
|
|
+ condition += ` AND create_time >= ? `
|
|
|
+ pars = append(pars, time.Now().Format(utils.FormatYearDate)+"-01-01")
|
|
|
listTripBill, e := models.GetCygxActivitySpecialTripBill(condition, pars)
|
|
|
if e != nil {
|
|
|
err = errors.New("GetActivitySpecialTripCountByActivitySpecial, Err: " + e.Error())
|