---
panlei
2019-08-02 906029ca6ac678b02e76994e43a1f8526fa3f2b6
ruleserver/readyDataForRule.go
@@ -50,7 +50,7 @@
   TableId      string  `json:"tableId"`
   TableName    string  `json:"tableName"`
   BwType       string  `json:"bwType"`
   CompareScore float32 `json:"compareScore"`
   CompareScore float64 `json:"compareScore"`
   PersonId     string  `json:"personId"`
   PersonName   string  `json:"personName"`
   PersonPicUrl string  `json:"personPicUrl"`
@@ -92,9 +92,9 @@
   // float32与float64互转会有位数保留不准的问题
   return v
}
func Decimal(value float32) float32 {
func Decimal(value float32) float64 {
   value1, _ := strconv.ParseFloat(fmt.Sprintf("%.4f", value), 32)
   return float32(value1)
   return value1
}
// 取出某个时间规则的第几天的规则段集合
func GetTimeById(id string, index int) []TimeRange {