Browse Source

add: 增加延迟测试;

test-20240527
龚宝雄 4 months ago
parent
commit
0402045eba
  1. 2
      nlsso-server/src/main/java/org/nl/wms/database/eas/controller/AllocationBillController.java
  2. 8
      nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillController.java
  3. 2
      nlsso-server/src/main/java/org/nl/wms/database/eas/service/IallocationBillService.java
  4. 3
      nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/AllocationBillServiceImpl.java

2
nlsso-server/src/main/java/org/nl/wms/database/eas/controller/AllocationBillController.java

@ -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);
}

8
nlsso-server/src/main/java/org/nl/wms/database/eas/controller/EasOutInBillController.java

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

2
nlsso-server/src/main/java/org/nl/wms/database/eas/service/IallocationBillService.java

@ -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;
/**

3
nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/AllocationBillServiceImpl.java

@ -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);
}

Loading…
Cancel
Save