|
@@ -7,10 +7,7 @@ import com.caimei365.commodity.model.dto.SecondDto;
|
|
|
import com.caimei365.commodity.model.po.ProductImagePo;
|
|
|
import com.caimei365.commodity.model.po.ProductPo;
|
|
|
import com.caimei365.commodity.model.po.ProductSecondPo;
|
|
|
-import com.caimei365.commodity.model.vo.AddressVo;
|
|
|
-import com.caimei365.commodity.model.vo.PaginationVo;
|
|
|
-import com.caimei365.commodity.model.vo.SecondDetailVo;
|
|
|
-import com.caimei365.commodity.model.vo.SecondListVo;
|
|
|
+import com.caimei365.commodity.model.vo.*;
|
|
|
import com.caimei365.commodity.service.SecondHandService;
|
|
|
import com.caimei365.commodity.utils.ImageUtils;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
@@ -296,6 +293,19 @@ public class SecondHandServiceImpl implements SecondHandService {
|
|
|
return ResponseJson.success(pageData);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 商品品牌列表
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public ResponseJson<List<BrandVo>> getBrandList() {
|
|
|
+ List<BrandVo> brandList = secondHandMapper.getBrandList();
|
|
|
+ BrandVo other = new BrandVo();
|
|
|
+ other.setId(161);
|
|
|
+ other.setName("其他");
|
|
|
+ brandList.add(other);
|
|
|
+ return ResponseJson.success(brandList);
|
|
|
+ }
|
|
|
+
|
|
|
private ResponseJson saveSecondHandProduct(SecondDto secondDto) {
|
|
|
// 设置日期时间格式
|
|
|
Date date = new Date();
|