|
|
@@ -281,24 +281,10 @@ public class ShowroomService {
|
|
|
|
|
|
public String getStatus(Collection collection) {
|
|
|
boolean salable = collection.isSalable();
|
|
|
- if (collection.getSaleTime() != null) {
|
|
|
- if (collection.getSaleTime().isAfter(LocalDateTime.now())) {
|
|
|
- return "仅展示";
|
|
|
- }
|
|
|
- }
|
|
|
- if (!salable) {
|
|
|
- return "仅展示";
|
|
|
- }
|
|
|
- if (collection.getSoldOut() > 1) {
|
|
|
- return "寄售中";
|
|
|
- }
|
|
|
- if (collection.isNoSoldOut()) {
|
|
|
- return "仅展示";
|
|
|
- }
|
|
|
- if (collection.getSoldOut() != 1 & collection.getStock() == 0) {
|
|
|
- return "仅展示";
|
|
|
+ if (salable) {
|
|
|
+ return "售卖中";
|
|
|
}
|
|
|
- return "寄售中";
|
|
|
+ return "仅展示";
|
|
|
}
|
|
|
|
|
|
public String getStatusById(Long collectionId) {
|