1. 增加获取任务返回详细信息接口
This commit is contained in:
parent
4e522e5ad0
commit
45e1305ed6
|
@ -12,6 +12,10 @@ public interface SensorTaskMapper {
|
||||||
|
|
||||||
List<SensorTask> selectAllByTaskId(@Param("taskId") Integer taskId);
|
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 addNewSensorTaskData(@Param("sensor") SensorTask sensorTask);
|
||||||
|
|
||||||
int addNewSensorTaskDatas(@Param("taskLists") List<SensorTask> taskLists);
|
int addNewSensorTaskDatas(@Param("taskLists") List<SensorTask> taskLists);
|
||||||
|
|
|
@ -4,6 +4,8 @@ import com.github.pagehelper.PageInfo;
|
||||||
import com.zjyr.beidouservice.pojo.entry.SensorTask;
|
import com.zjyr.beidouservice.pojo.entry.SensorTask;
|
||||||
import com.zjyr.beidouservice.pojo.vo.binary.SensorTaskAck;
|
import com.zjyr.beidouservice.pojo.vo.binary.SensorTaskAck;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface SensorTaskService {
|
public interface SensorTaskService {
|
||||||
void addSensorTaskResponse(Long controlId, SensorTaskAck sensorTaskAck);
|
void addSensorTaskResponse(Long controlId, SensorTaskAck sensorTaskAck);
|
||||||
|
|
||||||
|
@ -11,5 +13,8 @@ public interface SensorTaskService {
|
||||||
|
|
||||||
int getRespSuccessedSensors(int taskId);
|
int getRespSuccessedSensors(int taskId);
|
||||||
|
|
||||||
|
List<Long> getResponseSuccessedItems(int taskId);
|
||||||
|
List<Long> getResponsedItems(int taskId);
|
||||||
|
|
||||||
PageInfo<SensorTask> querySensorTaskData(int taskId, int page, int nItems);
|
PageInfo<SensorTask> querySensorTaskData(int taskId, int page, int nItems);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,6 +52,16 @@ public class SensorTaskServiceImpl implements SensorTaskService {
|
||||||
return sensorTaskMapper.countTaskResponseSuccessedSensor(taskId);
|
return sensorTaskMapper.countTaskResponseSuccessedSensor(taskId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Long> getResponseSuccessedItems(int taskId) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Long> getResponsedItems(int taskId) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageInfo<SensorTask> querySensorTaskData(int taskId, int page, int nItems) {
|
public PageInfo<SensorTask> querySensorTaskData(int taskId, int page, int nItems) {
|
||||||
PageHelper.startPage(page, nItems);
|
PageHelper.startPage(page, nItems);
|
||||||
|
|
|
@ -81,4 +81,10 @@
|
||||||
WHERE taskResult = ${@com.zjyr.beidouservice.common.impl.TaskResultName@TASK_RESULT_SUCCESSED.getValue()}
|
WHERE taskResult = ${@com.zjyr.beidouservice.common.impl.TaskResultName@TASK_RESULT_SUCCESSED.getValue()}
|
||||||
AND taskId = #{taskId};
|
AND taskId = #{taskId};
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectAllResponse" resultType="java.lang.Long">
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectAllRsponseSuccessed" resultType="java.lang.Long">
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue