导出平台门店
This commit is contained in:
@@ -2378,20 +2378,25 @@ func GetVendorStoreInfo(ctx *jxcontext.Context, vendorIDList []int, isAsync, isC
|
||||
}
|
||||
db := dao.GetDB()
|
||||
storeDetail2, err := dao.GetStoreDetailByVendorStoreID(db, storeDetail.VendorStoreID, vendorID)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if storeDetail.Status != model.StoreStatusOpened {
|
||||
var storeExcel = VendorStoreExcel{
|
||||
StoreID: storeDetail.ID,
|
||||
VendorStoreName: storeDetail.Name,
|
||||
Tel1: storeDetail.Tel1,
|
||||
Tel2: storeDetail.Tel2,
|
||||
Address: storeDetail.Address,
|
||||
Status: StoreStatus2Chinese(storeDetail.Status),
|
||||
CityName: storeDetail.CityName,
|
||||
MarketManName: storeDetail2.MarketManName,
|
||||
OperatorName: storeDetail2.OperatorName,
|
||||
OperatorName2: storeDetail2.OperatorName2,
|
||||
if storeDetail2 != nil {
|
||||
var storeExcel = VendorStoreExcel{
|
||||
StoreID: storeDetail.ID,
|
||||
VendorStoreName: storeDetail.Name,
|
||||
Tel1: storeDetail.Tel1,
|
||||
Tel2: storeDetail.Tel2,
|
||||
Address: storeDetail.Address,
|
||||
Status: StoreStatus2Chinese(storeDetail.Status),
|
||||
CityName: storeDetail.CityName,
|
||||
MarketManName: storeDetail2.MarketManName,
|
||||
OperatorName: storeDetail2.OperatorName,
|
||||
OperatorName2: storeDetail2.OperatorName2,
|
||||
}
|
||||
retVal = []VendorStoreExcel{storeExcel}
|
||||
}
|
||||
retVal = []VendorStoreExcel{storeExcel}
|
||||
}
|
||||
return retVal, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user