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

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

@@ -220,6 +220,10 @@ func UpdateProductBill(c *gin.Context, apictx *ApiSession) (interface{}, error)
 		bill.CompleteTime = time.Now()
 	}
 
+	if bill.Remark == "" {
+		bill.Remark = " "
+	}
+
 	bill.UpdateTime = time.Now()
 	return repo.RepoUpdateSetDoc(apictx.CreateRepoCtx(), repo.CollectionBillProduct, bill.Id.Hex(), &bill)
 }