Browse Source

修复已存在品牌更新审核失败bug

wangyc 8 years ago
parent
commit
da2068bd52

+ 2 - 2
src/main/java/com/uas/platform/b2c/prod/product/brand/service/impl/BrandSubmitServiceImpl.java

@@ -275,13 +275,13 @@ public class BrandSubmitServiceImpl implements BrandSubmitService {
 			if (CollectionUtils.isNotEmpty(existBrandCn)) {
 				for (Brand existBrand : existBrandCn) {
 					brandSubmit.setUuid(existBrand.getUuid());
-					brandSubmit.setVersion(existBrand.getVersion());
+					brandSubmit.setVersion((short) (existBrand.getVersion() + 1));
 				}
 			}
 			if (CollectionUtils.isNotEmpty(existBrandEn)) {
 				for (Brand existBrand : existBrandEn) {
 					brandSubmit.setUuid(existBrand.getUuid());
-					brandSubmit.setVersion(existBrand.getVersion());
+					brandSubmit.setVersion((short) (existBrand.getVersion() + 1));
 				}
 			}
 			brandSubmit.setDefinetime(brandSubmit.getLastModifyDate());