Przeglądaj źródła

fix:导出新增频度字段校验

Roc 6 miesięcy temu
rodzic
commit
10208f9d7a
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      controllers/target.go

+ 5 - 5
controllers/target.go

@@ -946,7 +946,7 @@ func (this *TargetController) ExportDataList() {
 	keyWord := this.GetString("KeyWord")
 	startDate := this.GetString("StartDate")
 	endDate := this.GetString("EndDate")
-	//frequency := this.GetString("Frequency")
+	frequency := this.GetString("Frequency")
 	classifyId, _ := this.GetInt("ClassifyId") //分类
 	mobile := this.GetString("Mobile")         //分类
 	tradeCode := this.GetString("TradeCode")   //指标唯一编码
@@ -971,10 +971,10 @@ func (this *TargetController) ExportDataList() {
 		condition += ` AND c.DT <= ? `
 		pars = append(pars, endDate)
 	}
-	//if frequency != "" {
-	//	condition += ` AND a.frequency = ? `
-	//	pars = append(pars, frequency)
-	//}
+	if frequency != "" {
+		condition += ` AND a.frequency = ? `
+		pars = append(pars, frequency)
+	}
 	permissionUserId := sysUser.AdminId
 	if sysUser.RoleTypeCode == utils.ROLE_TYPE_CODE_ADMIN {
 		permissionUserId = 0