Authored by LUOXC

Revert "add log"

This reverts commit e72459b1.
@@ -4,12 +4,10 @@ import com.yoho.order.dal.ProductSizeMapper; @@ -4,12 +4,10 @@ import com.yoho.order.dal.ProductSizeMapper;
4 import com.yoho.order.model.ProductSize; 4 import com.yoho.order.model.ProductSize;
5 import com.yoho.ufo.dal.UfoSizeMapper; 5 import com.yoho.ufo.dal.UfoSizeMapper;
6 import com.yoho.ufo.model.commoditybasicrole.size.Size; 6 import com.yoho.ufo.model.commoditybasicrole.size.Size;
7 -import lombok.extern.slf4j.Slf4j;  
8 import org.apache.ibatis.annotations.Param; 7 import org.apache.ibatis.annotations.Param;
9 import org.springframework.beans.factory.annotation.Autowired; 8 import org.springframework.beans.factory.annotation.Autowired;
10 import org.springframework.stereotype.Service; 9 import org.springframework.stereotype.Service;
11 10
12 -@Slf4j  
13 @Service 11 @Service
14 public class SizeManage { 12 public class SizeManage {
15 13
@@ -28,9 +26,7 @@ public class SizeManage { @@ -28,9 +26,7 @@ public class SizeManage {
28 public int insertSize(Size size) { 26 public int insertSize(Size size) {
29 int rows = ufoSizeMapper.insertSize(size); 27 int rows = ufoSizeMapper.insertSize(size);
30 if (rows > 0) { 28 if (rows > 0) {
31 - if (productSizeMapper.insert(newProductSize(size)) == 0) {  
32 - log.warn("product size {} {} insert fail", size.getSizeId(), size.getSizeName());  
33 - } 29 + productSizeMapper.insert(newProductSize(size));
34 } 30 }
35 return rows; 31 return rows;
36 } 32 }
@@ -44,9 +40,7 @@ public class SizeManage { @@ -44,9 +40,7 @@ public class SizeManage {
44 public int updateSize(@Param("size") Size size) { 40 public int updateSize(@Param("size") Size size) {
45 int rows = ufoSizeMapper.updateSize(size); 41 int rows = ufoSizeMapper.updateSize(size);
46 if (rows > 0) { 42 if (rows > 0) {
47 - if (productSizeMapper.updateBySizeId(newProductSize(size)) == 0) {  
48 - log.warn("product size {} {} update fail", size.getSizeId(), size.getSizeName());  
49 - } 43 + productSizeMapper.updateBySizeId(newProductSize(size));
50 } 44 }
51 return rows; 45 return rows;
52 } 46 }