|
@@ -391,6 +391,11 @@ public class ProductService extends CrudService<ProductDao, Product> {
|
|
|
}
|
|
|
}
|
|
|
product.setQualificationImg(res);
|
|
|
+ if(product.getNewProductType()==1){
|
|
|
+ product.setShowFlag(1);
|
|
|
+ }else if(product.getNewProductType()==2){
|
|
|
+ product.setShowFlag(3);
|
|
|
+ }
|
|
|
// if(StringUtils.isNotBlank(product.getSplitCode())&&"0".equals(product.getSplitCode())){
|
|
|
// product.setSplitCode(null);
|
|
|
// }
|
|
@@ -408,11 +413,7 @@ public class ProductService extends CrudService<ProductDao, Product> {
|
|
|
if(StringUtils.isNotBlank(product.getCostProportional())){
|
|
|
product.setSqlCostProportional(Double.valueOf(product.getCostProportional()));
|
|
|
}
|
|
|
- if(product.getNewProductType()==1){
|
|
|
- product.setShowFlag(1);
|
|
|
- }else if(product.getNewProductType()==2){
|
|
|
- product.setShowFlag(3);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
//保存商品信息
|