@@ -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()
@@ -216,10 +216,6 @@ func UpdateProductBill(c *gin.Context, apictx *ApiSession) (interface{}, error)
-
@@ -312,10 +312,6 @@ func UpdateBill(c *gin.Context, apictx *ApiSession) (interface{}, error) {
@@ -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},
})