|
|
@ -72,6 +72,32 @@ public class CustomerReceivingAddressController extends JeecgController<Customer |
|
|
|
return Result.OK(pageList); |
|
|
|
return Result.OK(pageList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 分页列表查询 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param customerReceivingAddress |
|
|
|
|
|
|
|
* @param pageNo |
|
|
|
|
|
|
|
* @param pageSize |
|
|
|
|
|
|
|
* @param req |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@AutoLog(value = "顾客地址表-分页列表查询") |
|
|
|
|
|
|
|
@ApiOperation(value="顾客地址表-分页列表查询", notes="顾客地址表-分页列表查询") |
|
|
|
|
|
|
|
@GetMapping(value = "/list1") |
|
|
|
|
|
|
|
public Result<?> queryPageList1(CustomerReceivingAddress customerReceivingAddress, |
|
|
|
|
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
|
|
|
|
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
|
|
|
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
|
|
|
QueryWrapper<CustomerReceivingAddress> queryWrapper = QueryGenerator.initQueryWrapper(customerReceivingAddress, req.getParameterMap()); |
|
|
|
|
|
|
|
System.out.println(customerReceivingAddress.getUserId()); |
|
|
|
|
|
|
|
queryWrapper.eq("user_id",customerReceivingAddress.getUserId()); |
|
|
|
|
|
|
|
Page<CustomerReceivingAddress> page = new Page<CustomerReceivingAddress>(pageNo, pageSize); |
|
|
|
|
|
|
|
IPage<CustomerReceivingAddress> pageList = customerReceivingAddressService.page(page, queryWrapper); |
|
|
|
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 添加 |
|
|
|
* 添加 |
|
|
|
* |
|
|
|
* |
|
|
@ -176,4 +202,27 @@ public class CustomerReceivingAddressController extends JeecgController<Customer |
|
|
|
return super.importExcel(request, response, CustomerReceivingAddress.class); |
|
|
|
return super.importExcel(request, response, CustomerReceivingAddress.class); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AutoLog(value = "排序") |
|
|
|
|
|
|
|
@ApiOperation(value="排序", notes="排序") |
|
|
|
|
|
|
|
@GetMapping(value = "/up") |
|
|
|
|
|
|
|
public Result<?> shang(@RequestParam(name="id",required=true) String id) { |
|
|
|
|
|
|
|
customerReceivingAddressService.up(id); |
|
|
|
|
|
|
|
return Result.ok("升序成功"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AutoLog(value = "排序") |
|
|
|
|
|
|
|
@ApiOperation(value="排序", notes="排序") |
|
|
|
|
|
|
|
@GetMapping(value = "/down") |
|
|
|
|
|
|
|
public Result<?> xia(@RequestParam(name="id",required=true) String id) { |
|
|
|
|
|
|
|
int a=customerReceivingAddressService.findSort(id); |
|
|
|
|
|
|
|
if(a==0){ |
|
|
|
|
|
|
|
return Result.error("当前已经是最低级别!!!");}else { |
|
|
|
|
|
|
|
customerReceivingAddressService.down(id); |
|
|
|
|
|
|
|
return Result.ok("降序成功"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|