1. 增加获取任务返回详细信息接口

This commit is contained in:
HuangXin 2023-08-22 22:01:42 +08:00
parent 4e522e5ad0
commit 45e1305ed6
4 changed files with 25 additions and 0 deletions

View File

@ -12,6 +12,10 @@ public interface SensorTaskMapper {
List<SensorTask> selectAllByTaskId(@Param("taskId") Integer taskId);
List<Long> selectAllResponse(@Param("taskId") Integer taskId);
List<Long> selectAllRsponseSuccessed(@Param("taskId") Integer taskId);
int addNewSensorTaskData(@Param("sensor") SensorTask sensorTask);
int addNewSensorTaskDatas(@Param("taskLists") List<SensorTask> taskLists);

View File

@ -4,6 +4,8 @@ import com.github.pagehelper.PageInfo;
import com.zjyr.beidouservice.pojo.entry.SensorTask;
import com.zjyr.beidouservice.pojo.vo.binary.SensorTaskAck;
import java.util.List;
public interface SensorTaskService {
void addSensorTaskResponse(Long controlId, SensorTaskAck sensorTaskAck);
@ -11,5 +13,8 @@ public interface SensorTaskService {
int getRespSuccessedSensors(int taskId);
List<Long> getResponseSuccessedItems(int taskId);
List<Long> getResponsedItems(int taskId);
PageInfo<SensorTask> querySensorTaskData(int taskId, int page, int nItems);
}

View File

@ -52,6 +52,16 @@ public class SensorTaskServiceImpl implements SensorTaskService {
return sensorTaskMapper.countTaskResponseSuccessedSensor(taskId);
}
@Override
public List<Long> getResponseSuccessedItems(int taskId) {
return null;
}
@Override
public List<Long> getResponsedItems(int taskId) {
return null;
}
@Override
public PageInfo<SensorTask> querySensorTaskData(int taskId, int page, int nItems) {
PageHelper.startPage(page, nItems);

View File

@ -81,4 +81,10 @@
WHERE taskResult = ${@com.zjyr.beidouservice.common.impl.TaskResultName@TASK_RESULT_SUCCESSED.getValue()}
AND taskId = #{taskId};
</select>
<select id="selectAllResponse" resultType="java.lang.Long">
</select>
<select id="selectAllRsponseSuccessed" resultType="java.lang.Long">
</select>
</mapper>