animeic 2 년 전
부모
커밋
3db5900925
4개의 변경된 파일1개의 추가작업 그리고 12개의 파일을 삭제
  1. 0 3
      boxcost/api/bill-produce.go
  2. 0 4
      boxcost/api/bill-product.go
  3. 0 4
      boxcost/api/bill.go
  4. 1 1
      boxcost/api/supplier.go

+ 0 - 3
boxcost/api/bill-produce.go

@@ -216,9 +216,6 @@ func UpdateProduceBill(c *gin.Context, apictx *ApiSession) (interface{}, error)
 
 		}
 	}
-	if bill.IsSend {
-		bill.SendTime = time.Now()
-	}
 	// 计算结算价格
 	if bill.Status == "complete" {
 		bill.CompleteTime = time.Now()

+ 0 - 4
boxcost/api/bill-product.go

@@ -216,10 +216,6 @@ func UpdateProductBill(c *gin.Context, apictx *ApiSession) (interface{}, error)
 
 		}
 	}
-	if bill.IsSend {
-		bill.SendTime = time.Now()
-	}
-
 	// 计算结算价格
 	if bill.Status == "complete" {
 		bill.CompleteTime = time.Now()

+ 0 - 4
boxcost/api/bill.go

@@ -312,10 +312,6 @@ func UpdateBill(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 
 		}
 	}
-	if bill.IsSend {
-		bill.SendTime = time.Now()
-	}
-
 	if bill.Status == "complete" {
 		bill.CompleteTime = time.Now()
 	}

+ 1 - 1
boxcost/api/supplier.go

@@ -173,7 +173,7 @@ func SupplierBillList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 		Page:        page,
 		Size:        size,
 		Query:       query,
-		Sort:        repo.Map{"sendTime": 1},
+		Sort:        repo.Map{"sendTime": -1},
 	})
 }