| | |
| | | |
| | | public List<ServiceSubtaskDetailDTO> queryFillCount(@Param("subids") List<Long> subids, @Param("questiontext") String questiontext); |
| | | |
| | | /** |
| | | * 按 scriptid 批量统计填写记录数(一次 SQL 替代逐个 scriptid 查明细) |
| | | * <p> |
| | | * 口径与原来「query.setScriptid(scriptId) 后 selectServiceSubtaskDetailList(...).size()」一致: |
| | | * 只按 scriptid 过滤,不带 del_flag(原 SQL 里并没有 del_flag 条件)。 |
| | | * |
| | | * @param scriptIds 问题ID集合 |
| | | * @return 每行含 scriptid、cnt |
| | | */ |
| | | public List<Map<String, Object>> countDetailByScriptIds(@Param("scriptIds") List<Long> scriptIds); |
| | | |
| | | public ServiceSubtaskDetailDTO isExistServiceSubtaskDetail(@Param("subid") Long subid, @Param("scriptid") Long scriptid); |
| | | |
| | | /** |
| | |
| | | */ |
| | | public int deleteServiceSubtaskDetailByCalldetailids(String[] calldetailids); |
| | | |
| | | |
| | | /** |
| | | * 指标统计 |
| | | * |
| | |
| | | * @return 指标统计 |
| | | */ |
| | | public List<ServiceSubtaskDetailTarget> countPatByTarget(Long targetid); |
| | | |
| | | /** |
| | | * 查询同个subid重复的detail数据ID列表 |
| | | * |
| | | * @return 重复记录ID列表 |
| | | */ |
| | | public List<Long> selectRepeatDetailIds(); |
| | | |
| | | /** |
| | | * 根据ID列表批量标记重复detail数据为删除 |
| | | * |
| | | * @param ids 重复记录ID列表 |
| | | * @return 更新行数 |
| | | */ |
| | | public Integer deleteRepeatDetailByIds(@Param("ids") List<Long> ids); |
| | | } |