| | |
| | | @Insert(onConflict = OnConflictStrategy.REPLACE) |
| | | void insert(FailedProj proj); |
| | | |
| | | /** |
| | | * 查询 科目二 I类考场的失败项目 (多表查询) |
| | | * 如果要添加 科目二II III类考场失败项目,需要建立相应的评判标准表数据表 |
| | | * @return |
| | | */ |
| | | @Query("SELECT emp_id,stu_id, utc ,sn ,deducting_reason,score_deducting,item_content from criteria_one INNER JOIN fail_projects ON criteria_one.item_id= fail_projects.emp_id where fail_projects.stu_id=:stu_id and fail_projects.subject=1") |
| | | LiveData<List<FailedProj_select>> getFailedProjectsForI(long stu_id); |
| | | |
| | | /** |
| | | * 查询 suoyou 失败项目 (多表查询) |
| | | * @return |
| | | */ |
| | | @Query("SELECT emp_id,stu_id, utc ,sn ,deducting_reason,score_deducting,item_content from criteria INNER JOIN fail_projects ON criteria.item_id= fail_projects.emp_id where fail_projects.stu_id=:stu_id and fail_projects.subject=999") |
| | | LiveData<List<FailedProj_select>> getFailedProjects(long stu_id); |
| | | |
| | | /** |
| | | * 查询 科目三 路考考场的失败项目 (多表查询) |
| | | * 如果要添加 科目二II III类考场失败项目,需要建立相应的评判标准表数据表 |
| | | * @return |
| | | */ |
| | | @Query("SELECT emp_id,stu_id,utc,sn,deducting_reason,score_deducting,item_content from criteria_three INNER JOIN fail_projects ON criteria_three.item_id= fail_projects.emp_id where fail_projects.stu_id=:stu_id and fail_projects.subject=3") |
| | | LiveData<List<FailedProj_select>> getFailedProjectsForIII(long stu_id); |
| | | |
| | | /** |
| | | * 获取失败项目条数 |
| | |
| | | @Query("delete from fail_projects") |
| | | void deleteAll(); |
| | | |
| | | /** |
| | | * 查询 科目二 I类考场的所有失败项目 (多表查询) |
| | | * @return |
| | | */ |
| | | @Query("SELECT emp_id,stu_id, utc ,sn ,deducting_reason,score_deducting,item_content from criteria_one INNER JOIN fail_projects ON criteria_one.item_id= fail_projects.emp_id where fail_projects.stu_id=:stu_id and fail_projects.subject=1") |
| | | List<FailedProj_select> getAllFailProjI(long stu_id); |
| | | |
| | | } |