Browse Source

fix: 巡检模块启动失败问题解决

zhongwei
haungxing 3 months ago
parent
commit
453a6f886b
  1. 3
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/feign/ImageAnalysisClient.java
  2. 2
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.java
  3. 2
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml

3
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/feign/ImageAnalysisClient.java

@ -4,6 +4,7 @@ import com.hnac.hzinfo.inspect.ai.service.IZhiPuBigModelService;
import com.hnac.hzinfo.inspect.ai.vo.ZhiPuImageAnalysisDTO;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -21,7 +22,7 @@ public class ImageAnalysisClient implements IImageAnalysisClient {
@Override
@PostMapping(ANALYSIS_BY_STATION_ID)
public List<ZhiPuImageAnalysisDTO> analysisByStationId(Long stationId) {
public List<ZhiPuImageAnalysisDTO> analysisByStationId(@RequestBody Long stationId) {
return zhiPuBigModelService.analysisImgByStationId(stationId);
}
}

2
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.java

@ -129,5 +129,5 @@ public interface TaskMapper extends UserDataScopeBaseMapper<TaskEntity> {
List<TaskEntity> getSameDayTask(@Param("taskIds") List<Long> taskIds, @Param("status") String status,@Param("startDate") String startDate,@Param("endDate") String endDate);
List<TaskEntity> getListByUserIdAndStatus(Long userId, String autoVideo, List<String> taskStatus,String time);
List<TaskEntity> getListByUserIdAndStatus(@Param("userId") Long userId, @Param("autoVideo") String autoVideo, @Param("taskStatus") List<String> taskStatus, @Param("time") String time);
}

2
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml

@ -238,7 +238,7 @@
<include refid="getTaskListSql"></include>
order by t.UPDATE_TIME desc
</select>
<select id="getFinishTaskList" parameterType="com.hnac.hzinfo.inspect.task.vo.TaskListQuery" resultType="com.hnac.hzinfo.inspect.task.vo.TaskVo">
SELECT t.* from HZ_ST_EX_TASK t
LEFT JOIN HZ_ST_EX_TASK_USER u on t.ID=u.TASK_ID

Loading…
Cancel
Save