add: 增加延迟测试;
This commit is contained in:
@@ -46,7 +46,7 @@ public class AllocationBillController {
|
||||
*/
|
||||
@PostMapping("/allocationPage")
|
||||
@Log("分页查询")
|
||||
public ResponseEntity<CommonPage<AllocationBill>> allocationPage(@RequestBody AllocationBillQuery params) {
|
||||
public ResponseEntity<CommonPage<AllocationBill>> allocationPage(@RequestBody AllocationBillQuery params) throws InterruptedException {
|
||||
return new ResponseEntity<>(allocationBillService.allocationPage(params), HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,14 @@ public class EasOutInBillController {
|
||||
return RestBusinessTemplate.execute(() -> easOutInBillService.getBillsCount());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取组织机构信息
|
||||
*/
|
||||
@PostMapping("/getOrganizationInfo")
|
||||
@Log("获取组织机构信息")
|
||||
public CommonResult<List<WarehouseInfo>> getOrganizationInfo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,7 +25,7 @@ public interface IallocationBillService extends IService<AllocationBill> {
|
||||
* @param params 查询条件
|
||||
* @return IPage<EasOutInBill>
|
||||
*/
|
||||
CommonPage<AllocationBill> allocationPage(AllocationBillQuery params);
|
||||
CommonPage<AllocationBill> allocationPage(AllocationBillQuery params) throws InterruptedException;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -58,11 +58,12 @@ public class AllocationBillServiceImpl extends ServiceImpl<AllocationBillMapper,
|
||||
*/
|
||||
@Override
|
||||
@SaIgnore
|
||||
public CommonPage<AllocationBill> allocationPage(AllocationBillQuery params) {
|
||||
public CommonPage<AllocationBill> allocationPage(AllocationBillQuery params) throws InterruptedException {
|
||||
// 查询总记录数
|
||||
long totalCount = allocationBillMapper.getAllocationCount();
|
||||
Page<AllocationBill> pageObject = new Page<>(params.getPage(), params.getSize());
|
||||
Page<AllocationBill> allocationBills = allocationBillMapper.allocationPage(pageObject, params.getFuzzy());
|
||||
Thread.sleep(5000);
|
||||
return CommonPage.getPage(allocationBills, totalCount);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user