Commit da9aa408 authored by daniel's avatar daniel

fix(MicroApi): 合作信息新增耗时

parent 5a46ceba
......@@ -401,6 +401,8 @@ public class MicroApiController {
@ApiResponse(code = -1, message = "失败", response = ObjectUtils.Null.class),
@ApiResponse(code = 200, message = "成功", response = Result.class, responseContainer = "List")})
public Result getCustomer(@PathVariable("cmptId") Integer cmptId) {
// 新增耗时计算
long startTime = System.currentTimeMillis();
Customer customer = customerService.getCusomerServiceInfo(cmptId);
FuncSetting setting = funcSettingService.getSettingByCmptId(cmptId);
Map<String,String> result = new HashMap<>();
......@@ -409,6 +411,10 @@ public class MicroApiController {
}else{
result.put("mobile",customer == null ? "" : customer.getMobile());
}
// 新增耗时计算
long endTime = System.currentTimeMillis();
long duration = endTime - startTime;
log.info("获取合作信息耗时:" + duration + "毫秒");
return Result.success().setContent(result);
}
......
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