Sfoglia il codice sorgente

保存时间类型

xyxie 1 anno fa
parent
commit
1a403e9f0d
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      services/chart/chart_info.go

+ 2 - 1
services/chart/chart_info.go

@@ -59,6 +59,7 @@ func ModifyChartInfoAndMapping(edbInfoIdStr string, req *chartInfoModel.SaveChar
 			SET
             	edb_info_ids = ?,
 				modify_time = NOW(),
+				date_type = ?,
 				calendar = ?,
 				start_date = ?,
 				end_date = ?,
@@ -69,7 +70,7 @@ func ModifyChartInfoAndMapping(edbInfoIdStr string, req *chartInfoModel.SaveChar
 				right_min = ?,
 				right_max = ?,extra_config = ? 
 			WHERE chart_info_id = ?`
-		err = tx.Exec(sql, edbInfoIdStr, req.Calendar, req.StartDate, req.EndDate, req.StartDate, req.EndDate, req.LeftMin, req.LeftMax, req.RightMin, req.RightMax, req.ExtraConfig, req.ChartInfoId).Error
+		err = tx.Exec(sql, edbInfoIdStr, req.DateType, req.Calendar, req.StartDate, req.EndDate, req.StartDate, req.EndDate, req.LeftMin, req.LeftMax, req.RightMin, req.RightMax, req.ExtraConfig, req.ChartInfoId).Error
 	}
 	if err != nil {
 		fmt.Println("UPDATE chart_info Err:", err.Error())