作者 陈志颖

fix:修改导入订单销售日期格式

@@ -1179,6 +1179,7 @@ func (service OrderInfoService) CreateNewOrderByImport(createOrderCommands []*co @@ -1179,6 +1179,7 @@ func (service OrderInfoService) CreateNewOrderByImport(createOrderCommands []*co
1179 PartnerInfo: partnerData.Partner, 1179 PartnerInfo: partnerData.Partner,
1180 SalesmanBonusPercent: cmd.SalesmanBonusPercent, 1180 SalesmanBonusPercent: cmd.SalesmanBonusPercent,
1181 CompanyId: cmd.CompanyId, 1181 CompanyId: cmd.CompanyId,
  1182 + SaleDate: cmd.SaleDate,
1182 } 1183 }
1183 1184
1184 // 批量校验合伙人分类数据 1185 // 批量校验合伙人分类数据
@@ -1151,7 +1151,10 @@ func (c *OrderInfoController) ImportOrderFromExcel() { @@ -1151,7 +1151,10 @@ func (c *OrderInfoController) ImportOrderFromExcel() {
1151 return 1151 return
1152 } 1152 }
1153 1153
1154 - fmt.Print(timeValue, "\n") 1154 + //saleDate, err := time.ParseInLocation("2006-01-02 15:04:05", param.SaleDate, time.Local)
  1155 + saleDateWithTz := time.Date(timeValue.Year(), timeValue.Month(), timeValue.Day(), time.Now().Hour(), time.Now().Minute(), time.Now().Second(), time.Now().Nanosecond(), time.Local)
  1156 +
  1157 + fmt.Print("销售日期:", saleDateWithTz, "\n")
1155 1158
1156 // 初始化建订单命令集 1159 // 初始化建订单命令集
1157 orderCommands[hashString] = &orderCmd.CreateOrderCommand{ 1160 orderCommands[hashString] = &orderCmd.CreateOrderCommand{
@@ -1160,7 +1163,7 @@ func (c *OrderInfoController) ImportOrderFromExcel() { @@ -1160,7 +1163,7 @@ func (c *OrderInfoController) ImportOrderFromExcel() {
1160 DeliveryCode: row[1], 1163 DeliveryCode: row[1],
1161 BuyerName: row[2], 1164 BuyerName: row[2],
1162 OrderRegion: row[3], 1165 OrderRegion: row[3],
1163 - SaleDate: timeValue, 1166 + SaleDate: saleDateWithTz,
1164 PartnerId: 0, // 根据合伙人类型+合伙人编号查找合伙人id 1167 PartnerId: 0, // 根据合伙人类型+合伙人编号查找合伙人id
1165 SalesmanBonusPercent: sbPercent, 1168 SalesmanBonusPercent: sbPercent,
1166 Goods: []orderCmd.OrderGoodData{ 1169 Goods: []orderCmd.OrderGoodData{