|
|
@@ -140,10 +140,12 @@ public class Prod {
|
|
|
product.setLtinstock(this.pr_ltinstock);
|
|
|
product.setSourceId(this.pr_id);
|
|
|
product.setBrand(this.pr_brand);
|
|
|
- if (this.pr_status.equals("已审核")) {
|
|
|
- product.setIsSale((short) 1);
|
|
|
- } else if (this.pr_status.equals("已禁用")) {
|
|
|
- product.setIsSale((short) 0);
|
|
|
+ if (this.pr_status != null) {
|
|
|
+ if (this.pr_status.equals("已审核")) {
|
|
|
+ product.setIsSale((short) 1);
|
|
|
+ } else if (this.pr_status.equals("已禁用")) {
|
|
|
+ product.setIsSale((short) 0);
|
|
|
+ }
|
|
|
}
|
|
|
product.setCmpCode(this.pr_orispeccode);
|
|
|
product.setCmpUuId(this.pr_uuid);
|