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