|
@@ -44,6 +44,8 @@ type ExcelDateRecord struct {
|
|
|
// HandleYongyiExcelWeekly1 周度-商品猪出栏价
|
|
|
func HandleYongyiExcelWeekly1(sheet *xlsx.Sheet) (indexList []*models.YongyiExcelIndex, err error) {
|
|
|
classifyName := "周度-商品猪出栏价"
|
|
|
+ classifyMap := getClassifySortMap()
|
|
|
+ classifySort, _ := classifyMap[classifyName]
|
|
|
frequency := "周度"
|
|
|
unit := "元/公斤"
|
|
|
namePrefix := "商品猪出栏价"
|
|
@@ -151,6 +153,7 @@ func HandleYongyiExcelWeekly1(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
indexItem = new(models.YongyiExcelIndex)
|
|
|
indexItem.IndexName = fullIndexName
|
|
|
indexItem.ClassifyName = classifyName
|
|
|
+ indexItem.ClassifySort = classifySort
|
|
|
indexItem.IndexCode = fullIndexNamePingyin
|
|
|
indexItem.Frequency = frequency
|
|
|
indexItem.Sort = sort
|
|
@@ -175,6 +178,8 @@ func HandleYongyiExcelWeekly1(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
// HandleYongyiExcelWeekly2 周度-体重
|
|
|
func HandleYongyiExcelWeekly2(sheet *xlsx.Sheet) (indexList []*models.YongyiExcelIndex, err error) {
|
|
|
classifyName := "周度-体重"
|
|
|
+ classifyMap := getClassifySortMap()
|
|
|
+ classifySort, _ := classifyMap[classifyName]
|
|
|
frequency := "周度"
|
|
|
unit := "公斤"
|
|
|
namePrefix := "商品猪出栏体重"
|
|
@@ -290,6 +295,7 @@ func HandleYongyiExcelWeekly2(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
indexItem = new(models.YongyiExcelIndex)
|
|
|
indexItem.IndexName = fullIndexName
|
|
|
indexItem.ClassifyName = classifyName
|
|
|
+ indexItem.ClassifySort = classifySort
|
|
|
indexItem.IndexCode = fullIndexNamePingyin
|
|
|
indexItem.Frequency = frequency
|
|
|
indexItem.Sort = sort
|
|
@@ -314,6 +320,8 @@ func HandleYongyiExcelWeekly2(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
// HandleYongyiExcelWeekly3 周度-屠宰厂宰前活猪重
|
|
|
func HandleYongyiExcelWeekly3(sheet *xlsx.Sheet) (indexList []*models.YongyiExcelIndex, err error) {
|
|
|
classifyName := "周度-屠宰厂宰前活猪重"
|
|
|
+ classifyMap := getClassifySortMap()
|
|
|
+ classifySort, _ := classifyMap[classifyName]
|
|
|
frequency := "周度"
|
|
|
unit := "公斤"
|
|
|
namePrefix := "商品猪宰前活猪重"
|
|
@@ -413,6 +421,7 @@ func HandleYongyiExcelWeekly3(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
indexItem = new(models.YongyiExcelIndex)
|
|
|
indexItem.IndexName = fullIndexName
|
|
|
indexItem.ClassifyName = classifyName
|
|
|
+ indexItem.ClassifySort = classifySort
|
|
|
indexItem.IndexCode = fullIndexNamePingyin
|
|
|
indexItem.Frequency = frequency
|
|
|
indexItem.Sort = sort
|
|
@@ -437,6 +446,8 @@ func HandleYongyiExcelWeekly3(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
// HandleYongyiExcelWeekly4 周度-各体重段价差
|
|
|
func HandleYongyiExcelWeekly4(sheet *xlsx.Sheet) (indexList []*models.YongyiExcelIndex, err error) {
|
|
|
classifyName := "周度-各体重段价差"
|
|
|
+ classifyMap := getClassifySortMap()
|
|
|
+ classifySort, _ := classifyMap[classifyName]
|
|
|
frequency := "周度"
|
|
|
unit := "元/斤"
|
|
|
namePrefixPingin := "yyzx"
|
|
@@ -529,6 +540,7 @@ func HandleYongyiExcelWeekly4(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
indexItem = new(models.YongyiExcelIndex)
|
|
|
indexItem.IndexName = fullIndexName
|
|
|
indexItem.ClassifyName = classifyName
|
|
|
+ indexItem.ClassifySort = classifySort
|
|
|
indexItem.IndexCode = fullIndexNamePingyin
|
|
|
indexItem.Frequency = frequency
|
|
|
indexItem.Sort = sort
|
|
@@ -557,6 +569,8 @@ func HandleYongyiExcelWeekly5(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
return
|
|
|
}
|
|
|
classifyName := info.ClassifyName
|
|
|
+ classifyMap := getClassifySortMap()
|
|
|
+ classifySort, _ := classifyMap[classifyName]
|
|
|
frequency := info.Frequency
|
|
|
unit := info.Unit
|
|
|
namePrefix := info.NamePrefix
|
|
@@ -660,6 +674,7 @@ func HandleYongyiExcelWeekly5(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
indexItem = new(models.YongyiExcelIndex)
|
|
|
indexItem.IndexName = fullIndexName
|
|
|
indexItem.ClassifyName = classifyName
|
|
|
+ indexItem.ClassifySort = classifySort
|
|
|
indexItem.IndexCode = fullIndexNamePingyin
|
|
|
indexItem.Frequency = frequency
|
|
|
indexItem.Sort = sort
|
|
@@ -688,6 +703,8 @@ func HandleYongyiExcelWeekly6(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
return
|
|
|
}
|
|
|
classifyName := info.ClassifyName
|
|
|
+ classifyMap := getClassifySortMap()
|
|
|
+ classifySort, _ := classifyMap[classifyName]
|
|
|
frequency := info.Frequency
|
|
|
unit := info.Unit
|
|
|
namePrefix := info.NamePrefix
|
|
@@ -773,6 +790,7 @@ func HandleYongyiExcelWeekly6(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
indexItem = new(models.YongyiExcelIndex)
|
|
|
indexItem.IndexName = fullIndexName
|
|
|
indexItem.ClassifyName = classifyName
|
|
|
+ indexItem.ClassifySort = classifySort
|
|
|
indexItem.IndexCode = fullIndexNamePingyin
|
|
|
indexItem.Frequency = frequency
|
|
|
indexItem.Sort = sort
|
|
@@ -797,6 +815,8 @@ func HandleYongyiExcelWeekly6(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
// HandleYongyiExcelWeekly7 月度计划出栏量
|
|
|
func HandleYongyiExcelWeekly7(sheet *xlsx.Sheet) (indexList []*models.YongyiExcelIndex, err error) {
|
|
|
classifyName := "月度计划出栏量"
|
|
|
+ classifyMap := getClassifySortMap()
|
|
|
+ classifySort, _ := classifyMap[classifyName]
|
|
|
frequency := "月度"
|
|
|
unit := "%"
|
|
|
namePrefix := "月度计划出栏量环比"
|
|
@@ -902,6 +922,7 @@ func HandleYongyiExcelWeekly7(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
indexItem = new(models.YongyiExcelIndex)
|
|
|
indexItem.IndexName = fullIndexName
|
|
|
indexItem.ClassifyName = classifyName
|
|
|
+ indexItem.ClassifySort = classifySort
|
|
|
indexItem.IndexCode = fullIndexNamePingyin
|
|
|
indexItem.Frequency = frequency
|
|
|
indexItem.Sort = sort
|
|
@@ -926,6 +947,8 @@ func HandleYongyiExcelWeekly7(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
// HandleYongyiExcelWeekly8 月度-能繁母猪存栏(2020年2月新增)
|
|
|
func HandleYongyiExcelWeekly8(sheet *xlsx.Sheet) (indexList []*models.YongyiExcelIndex, err error) {
|
|
|
classifyName := "月度-能繁母猪存栏(2020年2月新增)"
|
|
|
+ classifyMap := getClassifySortMap()
|
|
|
+ classifySort, _ := classifyMap[classifyName]
|
|
|
frequency := "月度"
|
|
|
unit := "头"
|
|
|
namePrefix := "能繁母猪存栏量"
|
|
@@ -1010,6 +1033,7 @@ func HandleYongyiExcelWeekly8(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
indexItem = new(models.YongyiExcelIndex)
|
|
|
indexItem.IndexName = fullIndexName
|
|
|
indexItem.ClassifyName = classifyName
|
|
|
+ indexItem.ClassifySort = classifySort
|
|
|
indexItem.IndexCode = fullIndexNamePingyin
|
|
|
indexItem.Frequency = frequency
|
|
|
indexItem.Sort = sort
|
|
@@ -1038,6 +1062,8 @@ func HandleYongyiExcelWeekly9(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
return
|
|
|
}
|
|
|
classifyName := info.ClassifyName
|
|
|
+ classifyMap := getClassifySortMap()
|
|
|
+ classifySort, _ := classifyMap[classifyName]
|
|
|
frequency := info.Frequency
|
|
|
unit := info.Unit
|
|
|
namePrefix := info.NamePrefix
|
|
@@ -1122,6 +1148,7 @@ func HandleYongyiExcelWeekly9(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
indexItem = new(models.YongyiExcelIndex)
|
|
|
indexItem.IndexName = fullIndexName
|
|
|
indexItem.ClassifyName = classifyName
|
|
|
+ indexItem.ClassifySort = classifySort
|
|
|
indexItem.IndexCode = fullIndexNamePingyin
|
|
|
indexItem.Frequency = frequency
|
|
|
indexItem.Sort = sort
|
|
@@ -1146,6 +1173,8 @@ func HandleYongyiExcelWeekly9(sheet *xlsx.Sheet) (indexList []*models.YongyiExce
|
|
|
// HandleYongyiExcelWeekly10 月度-商品猪出栏量
|
|
|
func HandleYongyiExcelWeekly10(sheet *xlsx.Sheet) (indexList []*models.YongyiExcelIndex, err error) {
|
|
|
classifyName := "月度-商品猪出栏量"
|
|
|
+ classifyMap := getClassifySortMap()
|
|
|
+ classifySort, _ := classifyMap[classifyName]
|
|
|
frequency := "月度"
|
|
|
unit := "头"
|
|
|
namePrefix := "商品猪出栏量"
|
|
@@ -1230,6 +1259,7 @@ func HandleYongyiExcelWeekly10(sheet *xlsx.Sheet) (indexList []*models.YongyiExc
|
|
|
indexItem = new(models.YongyiExcelIndex)
|
|
|
indexItem.IndexName = fullIndexName
|
|
|
indexItem.ClassifyName = classifyName
|
|
|
+ indexItem.ClassifySort = classifySort
|
|
|
indexItem.IndexCode = fullIndexNamePingyin
|
|
|
indexItem.Frequency = frequency
|
|
|
indexItem.Sort = sort
|