Commit 0a43205e by 陶光胜

Merge branch 'developer' of…

Merge branch 'developer' of http://115.159.76.241/base_platform_enterprise/gic-webapp-plug into developer
parents 7f002278 289e97aa
......@@ -38,8 +38,11 @@ public class GoodsBrandController extends BaseGoodsController {
@Autowired
private GoodsSelectorApiService goodsSelectorApiService;
private static final int DEFAULT_PAGE_SIZE = 999;
@RequestMapping("/goods-brand-list")
public RestResponse goodsBrandList(int pageSize, int currentPage, String search, Long goodsDomainId, String channelCode, Long goodsSelectorId) {
pageSize = DEFAULT_PAGE_SIZE;
String goodsRightsBrands = null;
if (goodsSelectorId != null) {
ServiceResponse<GoodsSelectorDTO> selectorServiceResponse = goodsSelectorApiService
......@@ -91,6 +94,7 @@ public class GoodsBrandController extends BaseGoodsController {
}
private RestResponse findBrandListByParams(int currentPage, int pageSize, Long goodsDomainId, String search, Integer enterpriseId) {
pageSize = DEFAULT_PAGE_SIZE;
List<Long> branIdList = new ArrayList<>();
ServiceResponse<Page<BrandDTO>> serviceResponse = brandApiService.findBrandPage(currentPage, pageSize, goodsDomainId, search, branIdList, SortType.sortDescType, enterpriseId);
if (!serviceResponse.isSuccess()) {
......
......@@ -28,8 +28,12 @@ public class GoodsPropertyController extends BaseGoodsController {
@Autowired
private PropertyValueApiService propertyValueApiService;
private static final int DEFAULT_PAGE_SIZE = 999;
@RequestMapping("/property-list")
public RestResponse propertyList(int pageSize, int currentPage, String search, Long goodsDomainId) {
pageSize = DEFAULT_PAGE_SIZE;
List<String> arrayList = new ArrayList<>();
arrayList.add(Constant.PROPERTY_TYPE_TEXT);
arrayList.add(Constant.PROPERTY_TYPE_TIME);
......@@ -47,6 +51,7 @@ public class GoodsPropertyController extends BaseGoodsController {
@RequestMapping("/property-value-list")
public RestResponse propertyValueList(int pageSize, int currentPage, String search, Long specPropertyId) {
pageSize = DEFAULT_PAGE_SIZE;
ServiceResponse<Page<PropertyValueDTO>> serviceResponse = propertyValueApiService
.pagePropertyValue(currentPage, pageSize, specPropertyId, search, SortType.sortDescType, getEnterpriseId());
if (!serviceResponse.isSuccess()) {
......
......@@ -30,8 +30,11 @@ public class GoodsStandardController extends BaseGoodsController {
@Autowired
private StandardValueGroupApiService standardValueGroupApiService;
private static final int DEFAULT_PAGE_SIZE = 999;
@RequestMapping("/list-standard")
public RestResponse listStandard(int currentPage, int pageSize, String search, Long goodsDomainId) {
pageSize = DEFAULT_PAGE_SIZE;
ServiceResponse<Page<StandardDTO>> serviceResponse = standardApiService.listByPage(currentPage, pageSize, goodsDomainId, search, getEnterpriseId());
if (!serviceResponse.isSuccess()) {
return RestResponse.failure(serviceResponse.getCode(), serviceResponse.getMessage());
......@@ -43,6 +46,7 @@ public class GoodsStandardController extends BaseGoodsController {
@RequestMapping("/list-standard-value-group")
public RestResponse listStandardValueGroup(int currentPage, int pageSize, Long specStandardId, String search) {
pageSize = DEFAULT_PAGE_SIZE;
ServiceResponse<Page<StandardValueGroupDTO>> serviceResponse =
standardValueGroupApiService.listByPage(currentPage, pageSize, specStandardId, search, SortType.sortDescType, getEnterpriseId());
if (!serviceResponse.isSuccess()) {
......@@ -54,6 +58,7 @@ public class GoodsStandardController extends BaseGoodsController {
@RequestMapping("/list-standard-value")
public RestResponse listStandardValue(int currentPage, int pageSize, Long specStandardId, String search, Long specStandardValueGroupId) {
pageSize = DEFAULT_PAGE_SIZE;
ServiceResponse<Page<StandardValueDTO>> serviceResponse =
standardValueApiService.listByPage(currentPage, pageSize, specStandardId, search, SortType.sortDescType, specStandardValueGroupId, getEnterpriseId());
if (!serviceResponse.isSuccess()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment