|
@@ -99,14 +99,14 @@ func (n *Network) ProjectExport() {
|
|
|
log.Println("人脉通项目导出", export_id, dataErr)
|
|
|
http.Error(n.ResponseWriter, dataErr.Error(), http.StatusInternalServerError)
|
|
|
return
|
|
|
+ } else if len(bidList) == 0 {
|
|
|
+ log.Println("人脉通项目导出", export_id, "未找到标讯信息")
|
|
|
+ http.Error(n.ResponseWriter, "未找到标讯信息", http.StatusInternalServerError)
|
|
|
+ return
|
|
|
}
|
|
|
log.Println("人脉通项目导出", export_id, len(bidList))
|
|
|
file, fileErr := util.ExportExcelFileForNw(version, bidList)
|
|
|
- if file == nil {
|
|
|
- log.Println("人脉通项目导出", export_id, "未找到标讯的情报信息")
|
|
|
- http.Error(n.ResponseWriter, "未找到标讯信息", http.StatusInternalServerError)
|
|
|
- return
|
|
|
- } else if fileErr != nil {
|
|
|
+ if fileErr != nil {
|
|
|
log.Println("人脉通项目导出", export_id, fileErr)
|
|
|
http.Error(n.ResponseWriter, fileErr.Error(), http.StatusInternalServerError)
|
|
|
return
|