商品
This commit is contained in:
@@ -9,6 +9,8 @@ import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 15:49
|
||||
@@ -27,9 +29,9 @@ public class BaseGoodsBrandRest {
|
||||
return baseBrandInfoService.listPage(pq);
|
||||
}
|
||||
@ApiOperation("查询所有的品牌")
|
||||
@GetMapping("/getAllType")
|
||||
public ResultBean<BaseBrandInfo> getAllType() {
|
||||
return baseBrandInfoService.getAllType();
|
||||
@GetMapping("/listAll")
|
||||
public ResultBean<List<BaseBrandInfo>> listAll() {
|
||||
return baseBrandInfoService.listAll();
|
||||
}
|
||||
@ApiOperation("保存修改")
|
||||
@PostMapping("/saveOrUpdate")
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
package com.yxt.goods.apiadmin.base;
|
||||
|
||||
import com.yxt.goods.biz.base.basegoodstype.BaseGoodsTypeDto;
|
||||
import com.yxt.goods.biz.base.basegoodstype.BaseGoodsTypeQuery;
|
||||
import com.yxt.goods.biz.base.basegoodstype.BaseGoodsTypeService;
|
||||
import com.yxt.goods.biz.base.basegoodstype.BaseGoodsTypeVo;
|
||||
import com.yxt.goods.biz.base.basegoodstype.*;
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
@@ -12,6 +9,8 @@ import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/2/26 13:44
|
||||
@@ -30,9 +29,9 @@ public class BaseGoodsTypeRest {
|
||||
return baseGoodsTypeService.listPage(pq);
|
||||
}
|
||||
@ApiOperation("查询所有的类别")
|
||||
@GetMapping("/getAllType")
|
||||
public ResultBean<BaseGoodsTypeVo> getAllType() {
|
||||
return baseGoodsTypeService.getAllType();
|
||||
@GetMapping("/listAll")
|
||||
public ResultBean<List<BaseGoodsType>> listAll() {
|
||||
return baseGoodsTypeService.listAll();
|
||||
}
|
||||
|
||||
@ApiOperation("保存修改")
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
package com.yxt.goods.apiadmin.base;
|
||||
|
||||
import com.yxt.goods.biz.base.basegoodsunit.BaseGoodsUnitDto;
|
||||
import com.yxt.goods.biz.base.basegoodsunit.BaseGoodsUnitQuery;
|
||||
import com.yxt.goods.biz.base.basegoodsunit.BaseGoodsUnitService;
|
||||
import com.yxt.goods.biz.base.basegoodsunit.BaseGoodsUnitVo;
|
||||
import com.yxt.goods.biz.base.basegoodsunit.*;
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
@@ -12,6 +9,8 @@ import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangpengfei
|
||||
* @date 2024/3/8 9:19
|
||||
@@ -30,9 +29,9 @@ public class BaseGoodsUnitRest {
|
||||
return baseGoodsUnitService.listPage(pq);
|
||||
}
|
||||
@ApiOperation("查询所有的类别")
|
||||
@GetMapping("/getAllUnit")
|
||||
public ResultBean<BaseGoodsUnitVo> getAllType() {
|
||||
return baseGoodsUnitService.getAllType();
|
||||
@GetMapping("/listAll")
|
||||
public ResultBean<List<BaseGoodsUnit>> listAll() {
|
||||
return baseGoodsUnitService.listAll();
|
||||
}
|
||||
|
||||
@ApiOperation("保存修改")
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
package com.yxt.goods.apiadmin.base;
|
||||
|
||||
import com.yxt.goods.biz.base.basemanufacturer.BaseManufacturerDto;
|
||||
import com.yxt.goods.biz.base.basemanufacturer.BaseManufacturerQuery;
|
||||
import com.yxt.goods.biz.base.basemanufacturer.BaseManufacturerService;
|
||||
import com.yxt.goods.biz.base.basemanufacturer.BaseManufacturerVo;
|
||||
import com.yxt.goods.biz.base.basemanufacturer.*;
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
@@ -33,9 +30,9 @@ public class BaseManufacturerRest {
|
||||
}
|
||||
|
||||
@ApiOperation("查询所有的厂家")
|
||||
@GetMapping("/getAllType")
|
||||
public ResultBean<BaseManufacturerVo> getAllType() {
|
||||
return baseManufacturerService.getAllType();
|
||||
@GetMapping("/listAll")
|
||||
public ResultBean<List<BaseManufacturer>> listAll() {
|
||||
return baseManufacturerService.listAll();
|
||||
}
|
||||
|
||||
@ApiOperation("保存修改")
|
||||
|
||||
@@ -50,7 +50,7 @@ public class BaseBrandInfoService extends MybatisBaseService<BaseBrandInfoMapper
|
||||
// }
|
||||
return rb.success().setData(p);
|
||||
}
|
||||
public ResultBean<BaseBrandInfo> getAllType() {
|
||||
public ResultBean<List<BaseBrandInfo>> listAll() {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
List<BaseBrandInfo> pagging = baseMapper.selectList(new QueryWrapper<BaseBrandInfo>().eq("isEnable",1));
|
||||
return rb.success().setData(pagging);
|
||||
|
||||
@@ -44,7 +44,7 @@ public class BaseGoodsTypeService extends MybatisBaseService<BaseGoodsTypeMapper
|
||||
}
|
||||
}
|
||||
return rb.success().setData(p);
|
||||
} public ResultBean<BaseGoodsTypeVo> getAllType() {
|
||||
} public ResultBean<List<BaseGoodsType>> listAll() {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
List<BaseGoodsType> pagging = baseMapper.selectList(new QueryWrapper<BaseGoodsType>().eq("isEnable",1));
|
||||
return rb.success().setData(pagging);
|
||||
|
||||
@@ -37,7 +37,7 @@ public class BaseGoodsUnitService extends MybatisBaseService<BaseGoodsUnitMapper
|
||||
PagerVo<BaseGoodsUnitVo> p = PagerUtil.pageToVo(pagging, null);
|
||||
List<BaseGoodsUnitVo> records = pagging.getRecords();
|
||||
return rb.success().setData(p);
|
||||
} public ResultBean<BaseGoodsUnitVo> getAllType() {
|
||||
} public ResultBean<List<BaseGoodsUnit>> listAll() {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
List<BaseGoodsUnit> pagging = baseMapper.selectList(new QueryWrapper<BaseGoodsUnit>().eq("isEnable",1));
|
||||
return rb.success().setData(pagging);
|
||||
|
||||
@@ -38,7 +38,7 @@ public class BaseManufacturerService extends MybatisBaseService<BaseManufacturer
|
||||
List<BaseManufacturerVo> records = pagging.getRecords();
|
||||
return rb.success().setData(p);
|
||||
}
|
||||
public ResultBean<BaseManufacturerVo> getAllType() {
|
||||
public ResultBean<List<BaseManufacturer>> listAll() {
|
||||
ResultBean rb = ResultBean.fireFail();
|
||||
List<BaseManufacturer> pagging = baseMapper.selectList(new QueryWrapper<BaseManufacturer>().eq("isEnable",1));
|
||||
return rb.success().setData(pagging);
|
||||
|
||||
Reference in New Issue
Block a user