超市接口
This commit is contained in:
1 parent
c2e0d8c31d
commit
d7d73c863b
1 file changed
+2
-2
+2
-2
@@ -191,7 +191,7 @@ public class SupermarketSpuController {
|
||||
@Operation(summary = "APP根据条件查询分页SPU" , description = "APP条件分页查询" )
|
||||
@PostMapping("/app/selectListAll" )
|
||||
@PreAuthorize("@pms.hasPermission('supermarket_supermarketSpu_view')" )
|
||||
public R<List<SupermarketAppSpuVo>> getSupermarketSpu(@RequestBody SupermarketSpuAppQueryDTO supermarketSpuQueryDTO,@ParameterObject Page page) {
|
||||
public R getSupermarketSpu(@RequestBody SupermarketSpuAppQueryDTO supermarketSpuQueryDTO,@ParameterObject Page page) {
|
||||
LambdaQueryWrapper<SupermarketSpuEntity> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(supermarketSpuQueryDTO.getMerchantId() != null, SupermarketSpuEntity::getMerchantId, supermarketSpuQueryDTO.getMerchantId());
|
||||
// wrapper.eq(StrUtil.isNotBlank(supermarketSpuQueryDTO.getProductCode()), SupermarketSpuEntity::getProductCode, supermarketSpuQueryDTO.getProductCode());
|
||||
@@ -201,7 +201,7 @@ public class SupermarketSpuController {
|
||||
List list = pageDate.getRecords();
|
||||
List<SupermarketAppSpuVo> bean = BeanUtils.toBean(list, SupermarketAppSpuVo.class);
|
||||
pageDate.setRecords(bean);
|
||||
return R.ok(bean);
|
||||
return R.ok(pageDate);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user