|
|
|
@ -74,6 +74,29 @@ public class CustomerInvoiceController extends JeecgController<CustomerInvoice, |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 分页列表查询 |
|
|
|
|
* |
|
|
|
|
* @param customerInvoice |
|
|
|
|
* @param pageNo |
|
|
|
|
* @param pageSize |
|
|
|
|
* @param req |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@AutoLog(value = "客户发票信息-分页列表查询") |
|
|
|
|
@ApiOperation(value="客户发票信息-分页列表查询", notes="客户发票信息-分页列表查询") |
|
|
|
|
@GetMapping(value = "/list1") |
|
|
|
|
public Result<?> queryPageList1(CustomerInvoice customerInvoice, |
|
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
|
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
QueryWrapper<CustomerInvoice> queryWrapper = QueryGenerator.initQueryWrapper(customerInvoice, req.getParameterMap()); |
|
|
|
|
queryWrapper.eq("user_id",customerInvoice.getUserId()); |
|
|
|
|
Page<CustomerInvoice> page = new Page<CustomerInvoice>(pageNo, pageSize); |
|
|
|
|
IPage<CustomerInvoice> pageList = customerInvoiceService.page(page, queryWrapper); |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 添加 |
|
|
|
|
* |
|
|
|
@ -243,7 +266,27 @@ public class CustomerInvoiceController extends JeecgController<CustomerInvoice, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AutoLog(value = "排序") |
|
|
|
|
@ApiOperation(value="排序", notes="排序") |
|
|
|
|
@GetMapping(value = "/up") |
|
|
|
|
public Result<?> shang(@RequestParam(name="id",required=true) String id) { |
|
|
|
|
System.out.println(id); |
|
|
|
|
customerInvoiceService.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=customerInvoiceService.findSort(id); |
|
|
|
|
if(a==0){ |
|
|
|
|
return Result.error("当前已经是最低级别!!!");}else { |
|
|
|
|
customerInvoiceService.down(id); |
|
|
|
|
return Result.ok("降序成功"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|