lianbingjie 6 лет назад
Родитель
Сommit
981b737fa4
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      src/jfw/front/dataExport.go

+ 5 - 5
src/jfw/front/dataExport.go

@@ -284,17 +284,17 @@ func (d *DataExport) ToOrderDetail(orderCode string) error {
 			log.Println("筛选条件-关键词-结构体反序列化-错误", err)
 		}
 	}
-	if orderDetail["applybill_type"].(int64) == 0 {
+	if orderDetail["applybill_type"] != nil && orderDetail["applybill_type"].(int64) == 0 {
 		orderDetail["applybill_type"] = "个人"
-	} else if orderDetail["applybill_type"].(int64) == 1 {
+	} else if orderDetail["applybill_type"] != nil && orderDetail["applybill_type"].(int64) == 1 {
 		orderDetail["applybill_type"] = "单位"
 	} else {
 		orderDetail["applybill_type"] = "-"
 	}
-	if orderDetail["applybill_status"].(int64) == 0 {
-		orderDetail["applybill_status"] = "F" //未申请
-	} else {
+	if orderDetail["applybill_status"] != nil && orderDetail["applybill_status"].(int64) == 1 {
 		orderDetail["applybill_status"] = "T" //已申请
+	} else {
+		orderDetail["applybill_status"] = "F" //未申请
 	}
 	orderStatus := util.IntAll((orderDetail)["order_status"])
 	if orderStatus == 1 {