Commit 89b4837a authored by fangxinjiang's avatar fangxinjiang

查询优化

parent 50d93542
...@@ -106,6 +106,8 @@ public class TDispatchInfoController { ...@@ -106,6 +106,8 @@ public class TDispatchInfoController {
@Operation(description = "简单分页查询--申请") @Operation(description = "简单分页查询--申请")
@GetMapping("/pageApply") @GetMapping("/pageApply")
public R<IPage<TDispatchInfoPageVo>> getTDispatchApplyPage(Page<TDispatchInfo> page, TDispatchInfoSearchVo tDispatchInfo) { public R<IPage<TDispatchInfoPageVo>> getTDispatchApplyPage(Page<TDispatchInfo> page, TDispatchInfoSearchVo tDispatchInfo) {
long start = System.currentTimeMillis();
log.error("派单申请查询开始:" + (System.currentTimeMillis()-start));
YifuUser user = SecurityUtils.getUser(); YifuUser user = SecurityUtils.getUser();
if (Common.isEmpty(user)){ if (Common.isEmpty(user)){
return R.failed(CommonConstants.USER_FAIL); return R.failed(CommonConstants.USER_FAIL);
...@@ -117,7 +119,10 @@ public class TDispatchInfoController { ...@@ -117,7 +119,10 @@ public class TDispatchInfoController {
if (Common.isNotNull(tDispatchInfo.getAuthSql()) && tDispatchInfo.getAuthSql().contains(CommonConstants.A_DEPT_ID)) { if (Common.isNotNull(tDispatchInfo.getAuthSql()) && tDispatchInfo.getAuthSql().contains(CommonConstants.A_DEPT_ID)) {
tDispatchInfo.setAuthSql(tDispatchInfo.getAuthSql().replace(CommonConstants.A_DEPT_ID, "a.SETTLE_DOMAIN")); tDispatchInfo.setAuthSql(tDispatchInfo.getAuthSql().replace(CommonConstants.A_DEPT_ID, "a.SETTLE_DOMAIN"));
} }
return new R<>(tDispatchInfoService.getTDispatchInfoPage(page,tDispatchInfo)); log.error("派单申请查询开始-获取权限:" + (System.currentTimeMillis()-start));
R<IPage<TDispatchInfoPageVo>> res = new R<>(tDispatchInfoService.getTDispatchInfoPage(page,tDispatchInfo));
log.error("派单申请查询开始-获取数据完毕:" + (System.currentTimeMillis()-start));
return res;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment