add: 增加延迟测试;

This commit is contained in:
2024-07-25 10:20:51 +08:00
parent 4ed3265369
commit 0402045eba
4 changed files with 12 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ public class AllocationBillController {
*/ */
@PostMapping("/allocationPage") @PostMapping("/allocationPage")
@Log("分页查询") @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); return new ResponseEntity<>(allocationBillService.allocationPage(params), HttpStatus.OK);
} }

View File

@@ -83,6 +83,14 @@ public class EasOutInBillController {
return RestBusinessTemplate.execute(() -> easOutInBillService.getBillsCount()); return RestBusinessTemplate.execute(() -> easOutInBillService.getBillsCount());
} }
/**
* 获取组织机构信息
*/
@PostMapping("/getOrganizationInfo")
@Log("获取组织机构信息")
public CommonResult<List<WarehouseInfo>> getOrganizationInfo() {
return null;
}
/** /**

View File

@@ -25,7 +25,7 @@ public interface IallocationBillService extends IService<AllocationBill> {
* @param params 查询条件 * @param params 查询条件
* @return IPage<EasOutInBill> * @return IPage<EasOutInBill>
*/ */
CommonPage<AllocationBill> allocationPage(AllocationBillQuery params); CommonPage<AllocationBill> allocationPage(AllocationBillQuery params) throws InterruptedException;
/** /**

View File

@@ -58,11 +58,12 @@ public class AllocationBillServiceImpl extends ServiceImpl<AllocationBillMapper,
*/ */
@Override @Override
@SaIgnore @SaIgnore
public CommonPage<AllocationBill> allocationPage(AllocationBillQuery params) { public CommonPage<AllocationBill> allocationPage(AllocationBillQuery params) throws InterruptedException {
// 查询总记录数 // 查询总记录数
long totalCount = allocationBillMapper.getAllocationCount(); long totalCount = allocationBillMapper.getAllocationCount();
Page<AllocationBill> pageObject = new Page<>(params.getPage(), params.getSize()); Page<AllocationBill> pageObject = new Page<>(params.getPage(), params.getSize());
Page<AllocationBill> allocationBills = allocationBillMapper.allocationPage(pageObject, params.getFuzzy()); Page<AllocationBill> allocationBills = allocationBillMapper.allocationPage(pageObject, params.getFuzzy());
Thread.sleep(5000);
return CommonPage.getPage(allocationBills, totalCount); return CommonPage.getPage(allocationBills, totalCount);
} }