...
|
...
|
@@ -15,6 +15,7 @@ import org.slf4j.LoggerFactory; |
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -53,6 +54,17 @@ public class ProductColorServiceImpl implements IProductColorService { |
|
|
LOGGER.info("getProductColorById id = {}", id);
|
|
|
return OrikaUtils.map(ufoProductColorMapper.selectOneById(id), ProductColorResponsetBo.class);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public List<ProductColorResponsetBo> getAllColor() {
|
|
|
LOGGER.info("getAllColor");
|
|
|
List<ProductColorResponsetBo> result = new ArrayList<>();
|
|
|
List<ProductColor> colorList = ufoProductColorMapper.selectAllColor();
|
|
|
for(ProductColor color : colorList) {
|
|
|
result.add(OrikaUtils.map(color, ProductColorResponsetBo.class));
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public PageResponseBO<ProductColorResponsetBo> getProductColorPageList(ProductColorRequestBo productColorRequestBo) {
|
...
|
...
|
|