This commit is contained in:
苏尹岚
2021-02-19 11:32:20 +08:00
parent 9c6e6e6c65
commit a2c7eecdca
5 changed files with 47 additions and 16 deletions

View File

@@ -527,11 +527,6 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
if vendorOrgCode == "" {
return "", fmt.Errorf("平台账号必传!")
}
place, err := dao.GetPlaceByCode(db, storeDetail.DistrictCode)
if err != nil {
return "", err
}
county := place.JdCode
//营业时间1开始传值规则每30分钟加1即00:00为000:30为1以此类推23:30为47,23:59为48
serviceTimeStart1, serviceTimeStart2, serviceTimeEnd1, serviceTimeEnd2 := 0, 0, 0, 0
@@ -562,7 +557,7 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
Phone: storeDetail.Tel1,
Mobile: storeDetail.Tel1,
City: storeDetail.JdCityCode,
County: county,
County: storeDetail.JdCode,
StationAddress: storeDetail.Address,
Operator: vendorOrgCode,
ServiceTimeStart1: serviceTimeStart1,