Browse Source

打log

tags/v1.1.0^2
wanghaoran 1 year ago
parent
commit
643bae4d28
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java

+ 4
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java View File

@@ -135,11 +135,15 @@ public class ThInspectionServiceImpl extends BaseServiceImpl<ThInspectionMapper,
public JsonResult executeTask(String missionId,PushAndPullURLRequest pushAndPull) throws ServiceException{
log.info("executeTask准备就绪");
ThMission thMission = missionMapper.selectById(Integer.parseInt(missionId));
log.info("mission查询完成");
User user = userMapper.selectById(thMission.getCreateUser());
log.info("user查询完成");
Tenant tenant = tenantMapper.selectById(user.getTenantId());
log.info("tenant查询完成");
Assert.notNull(thMission,"任务不能为空!");

//这边需要配置到yml文件里面
log.info("executeTask准备入参");
String url = tenant.getAirportUrl() + "/api/airportInterface/executeTask";
JSONObject jsonObject = new JSONObject();
jsonObject.put("code", "lc");

Loading…
Cancel
Save