|
|
@@ -2,6 +2,7 @@ package com.uas.platform.b2b.erp.model;
|
|
|
|
|
|
import com.uas.platform.b2b.model.Product;
|
|
|
import com.uas.platform.b2b.support.SystemSession;
|
|
|
+import com.uas.platform.core.model.Status;
|
|
|
|
|
|
/**
|
|
|
* ERP系统的产品
|
|
|
@@ -141,9 +142,9 @@ public class Prod {
|
|
|
product.setSourceId(this.pr_id);
|
|
|
product.setBrand(this.pr_brand);
|
|
|
if (this.pr_status != null) {
|
|
|
- if (this.pr_status.equals("已审核")) {
|
|
|
+ if (this.pr_status.equals(Status.AUDITED.getPhrase())) {
|
|
|
product.setIsSale((short) 1);
|
|
|
- } else if (this.pr_status.equals("已禁用")) {
|
|
|
+ } else if (this.pr_status.equals(Status.DISABLED.getPhrase())) {
|
|
|
product.setIsSale((short) 0);
|
|
|
}
|
|
|
}
|