|
@@ -241,6 +241,12 @@ func GetLzProductDetail() (err error) {
|
|
|
for _, v := range infoList {
|
|
|
totalPage := 10
|
|
|
for i := 1; i <= totalPage; i++ {
|
|
|
+
|
|
|
+ displayTime, _ := models.GetDisplayTime(v.LongzhonginfoId)
|
|
|
+ if displayTime != "" {
|
|
|
+ startDate = displayTime
|
|
|
+ }
|
|
|
+
|
|
|
fmt.Println("page:", i, totalPage)
|
|
|
timestamp := fmt.Sprintf("%d", time.Now().Unix())
|
|
|
token := utils.MD5(username + timestamp + utils.MD5(password))
|
|
@@ -582,7 +588,7 @@ func LzExportExcel() {
|
|
|
if len(dataList) <= 0 {
|
|
|
for n := 0; n < dataMax; n++ {
|
|
|
rowIndex := 5 + n
|
|
|
- row:= sheetNew.Row(rowIndex)
|
|
|
+ row := sheetNew.Row(rowIndex)
|
|
|
row.AddCell()
|
|
|
row.AddCell()
|
|
|
row.AddCell()
|
|
@@ -601,7 +607,7 @@ func LzExportExcel() {
|
|
|
dataLen := dataMax - len(dataList)
|
|
|
for n := 0; n < dataLen; n++ {
|
|
|
rowIndex := (endRowIndex + 1) + n
|
|
|
- row:= sheetNew.Row(rowIndex)
|
|
|
+ row := sheetNew.Row(rowIndex)
|
|
|
row.AddCell()
|
|
|
row.AddCell()
|
|
|
row.AddCell()
|
|
@@ -891,7 +897,7 @@ func LzPriceExportExcel() {
|
|
|
if len(dataList) <= 0 {
|
|
|
for n := 0; n < dataMax; n++ {
|
|
|
rowIndex := 8 + n
|
|
|
- row:= sheetNew.Row(rowIndex)
|
|
|
+ row := sheetNew.Row(rowIndex)
|
|
|
row.AddCell()
|
|
|
row.AddCell()
|
|
|
row.AddCell()
|
|
@@ -902,7 +908,7 @@ func LzPriceExportExcel() {
|
|
|
endRowIndex := 0
|
|
|
for rk, dv := range dataList {
|
|
|
rowIndex := 8 + rk
|
|
|
- row:= sheetNew.Row(rowIndex)
|
|
|
+ row := sheetNew.Row(rowIndex)
|
|
|
row.AddCell().SetValue(dv.PriceDate)
|
|
|
row.AddCell().SetFloat(dv.Price)
|
|
|
row.AddCell().SetFloat(dv.LowPrice)
|
|
@@ -915,7 +921,7 @@ func LzPriceExportExcel() {
|
|
|
dataLen := dataMax - len(dataList)
|
|
|
for n := 0; n < dataLen; n++ {
|
|
|
rowIndex := (endRowIndex + 1) + n
|
|
|
- row:= sheetNew.Row(rowIndex)
|
|
|
+ row := sheetNew.Row(rowIndex)
|
|
|
row.AddCell()
|
|
|
row.AddCell()
|
|
|
row.AddCell()
|