Authored by LUOXC

Revert "add log"

This reverts commit e72459b1.
... ... @@ -4,12 +4,10 @@ import com.yoho.order.dal.ProductSizeMapper;
import com.yoho.order.model.ProductSize;
import com.yoho.ufo.dal.UfoSizeMapper;
import com.yoho.ufo.model.commoditybasicrole.size.Size;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class SizeManage {
... ... @@ -28,9 +26,7 @@ public class SizeManage {
public int insertSize(Size size) {
int rows = ufoSizeMapper.insertSize(size);
if (rows > 0) {
if (productSizeMapper.insert(newProductSize(size)) == 0) {
log.warn("product size {} {} insert fail", size.getSizeId(), size.getSizeName());
}
productSizeMapper.insert(newProductSize(size));
}
return rows;
}
... ... @@ -44,9 +40,7 @@ public class SizeManage {
public int updateSize(@Param("size") Size size) {
int rows = ufoSizeMapper.updateSize(size);
if (rows > 0) {
if (productSizeMapper.updateBySizeId(newProductSize(size)) == 0) {
log.warn("product size {} {} update fail", size.getSizeId(), size.getSizeName());
}
productSizeMapper.updateBySizeId(newProductSize(size));
}
return rows;
}
... ...