Browse Source

UAS物料传输到公共库,型号填“无”时也更新为规格

dongbw 7 years ago
parent
commit
d071a2352b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/uas/ps/product/entity/Prod.java

+ 1 - 1
src/main/java/com/uas/ps/product/entity/Prod.java

@@ -388,7 +388,7 @@ public class Prod implements Serializable {
     public Product convert() {
         Product product = new Product();
         // 如果传过来的信息有原厂型号数据,赋值,否则将规格赋值给原厂型号
-        if (this.pr_orispeccode != null) {
+        if (this.pr_orispeccode != null && !"无".equals(this.pr_orispeccode)) {
             product.setCmpCode(this.pr_orispeccode);
         } else {
             product.setCmpCode(this.pr_spec);