Browse Source

Merge pull request '运单导入增加对格式列的限制' (#425) from feature_shipOrder into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_GAAS_GFrame_BACKEND/pulls/425
Reviewed-by: 娄文智 <wenzhi.lou@le-it.com.cn>
pull/426/head
娄文智 3 years ago
parent
commit
c7e45110f3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      services/jit/implments/ShipOrder.service.impl.go

+ 3
- 0
services/jit/implments/ShipOrder.service.impl.go View File

@ -136,6 +136,9 @@ func (impl *ShipOrderServiceImplement) InsertOne(user *models.Usertab, entity *m
return fmt.Errorf("文件格式错误")
}
for rowIndex, row := range output[0] {
if len(row)<12{
return fmt.Errorf("文件格式无法解析")
}
if rowIndex == 8 {
entity.ShipOrderId = row[11]
entity.ShipTemplateId = row[11]


Loading…
Cancel
Save