|
@@ -2448,8 +2448,13 @@ func DownloadEquipment(parammaps string) (string, error) {
|
|
|
}
|
|
|
//value := []interface{}{columns[z], v["pastureName"], "全厂区", v["monthBudget"], v["monthLimit"], v["qmonthBudget"], v["sumPrice"],
|
|
|
// v["asave"], v["realReason"], v["oneCowBudget"], v["oneCowLimit"], v["oneCowQmonthBudget"], v["oneCowSumPrice"], v["oneCowAsave"]}
|
|
|
+ s := v["realReason"]
|
|
|
+ if index := strings.Index(s, "."); index != -1 && len(s)-index-1 >= 2 {
|
|
|
+ s = s[:index+3]
|
|
|
+ }
|
|
|
+
|
|
|
value := []interface{}{columnName, v["pastureName"], "全厂区", v["monthBudget"], v["sumPrice"],
|
|
|
- v["asave"], v["realReason"], v["oneCowSumPrice"]}
|
|
|
+ v["asave"], s, v["oneCowSumPrice"]}
|
|
|
for a, b := range value {
|
|
|
f.SetCellValue("设备指标", letters[a]+strconv.Itoa(i+xx+3), b)
|
|
|
}
|
|
@@ -2521,8 +2526,13 @@ func DownloadEquipment(parammaps string) (string, error) {
|
|
|
//}
|
|
|
//value := []interface{}{v["sort"], v["pastureName"], v["deptname"], v["monthBudget"], v["monthLimit"], v["qmonthBudget"], v["sumPrice"],
|
|
|
// v["asave"], v["realReason"], v["oneCowBudget"], v["oneCowLimit"], v["oneCowQmonthBudget"], v["oneCowSumPrice"], v["oneCowAsave"]}
|
|
|
+
|
|
|
+ s := v["realReason"]
|
|
|
+ if index := strings.Index(s, "."); index != -1 && len(s)-index-1 >= 2 {
|
|
|
+ s = s[:index+3]
|
|
|
+ }
|
|
|
value := []interface{}{v["sort"], v["pastureName"], v["deptname"], v["monthBudget"], v["sumPrice"],
|
|
|
- v["asave"], v["realReason"], v["oneCowSumPrice"]}
|
|
|
+ v["asave"], s, v["oneCowSumPrice"]}
|
|
|
for a, b := range value {
|
|
|
f.SetCellValue(columnss[z], letters[a]+strconv.Itoa(i+3), b)
|
|
|
}
|