Línea 12... |
Línea 12... |
12 |
import java.util.List;
|
12 |
import java.util.List;
|
Línea 13... |
Línea 13... |
13 |
|
13 |
|
14 |
@Dao
|
14 |
@Dao
|
Línea -... |
Línea 15... |
- |
|
15 |
public interface CapsuleDao {
|
- |
|
16 |
|
- |
|
17 |
@Query("SELECT * FROM tb_capsules WHERE uuid IN (select capsule_uuid from tb_progress WHERE user_uuid = :useruUuid AND type = 'c' AND progress <= 100 AND completed = 0 ORDER BY updated_on DESC LIMIT 1) LIMIT 1")
|
- |
|
18 |
Capsule selectLastInProgress(String useruUuid);
|
- |
|
19 |
|
- |
|
20 |
@Query("SELECT * FROM tb_capsules WHERE uuid NOT IN (select capsule_uuid from tb_progress WHERE user_uuid = :useruUuid AND type = 'c') ORDER BY name")
|
- |
|
21 |
List<Capsule> selectAllPending(String useruUuid);
|
- |
|
22 |
|
- |
|
23 |
@Query("SELECT * FROM tb_capsules WHERE name LIKE :search AND uuid NOT IN (select capsule_uuid from tb_progress WHERE user_uuid = :useruUuid AND type = 'c') ORDER BY name")
|
- |
|
24 |
List<Capsule> selectAllPendingWithSearch(String useruUuid, String search);
|
- |
|
25 |
|
- |
|
26 |
@Query("SELECT * FROM tb_capsules WHERE uuid IN (select capsule_uuid from tb_progress WHERE user_uuid = :useruUuid AND type = 'c' AND progress <= 100 AND completed = 0 ORDER BY updated_on DESC) ORDER BY name")
|
- |
|
27 |
List<Capsule> selectAllInProgress(String useruUuid);
|
- |
|
28 |
|
- |
|
29 |
@Query("SELECT * FROM tb_capsules WHERE name LIKE :search AND uuid IN (select capsule_uuid from tb_progress WHERE user_uuid = :useruUuid AND type = 'c' AND progress <= 100 AND completed = 0 ORDER BY updated_on DESC) ORDER BY name")
|
- |
|
30 |
List<Capsule> selectAllInProgressWithSearch(String useruUuid, String search);
|
- |
|
31 |
|
- |
|
32 |
|
- |
|
33 |
|
- |
|
34 |
@Query("SELECT * FROM tb_capsules WHERE uuid IN (select capsule_uuid from tb_progress WHERE user_uuid = :useruUuid AND type = 'c' AND progress >= 100 AND completed = 1 ORDER BY updated_on DESC) ORDER BY name")
|
- |
|
35 |
List<Capsule> selectAllCompleted(String useruUuid);
|
- |
|
36 |
|
- |
|
37 |
@Query("SELECT * FROM tb_capsules WHERE name LIKE :search AND uuid IN (select capsule_uuid from tb_progress WHERE user_uuid = :useruUuid AND type = 'c' AND progress >= 100 AND completed = 1 ORDER BY updated_on DESC) ORDER BY name")
|
15 |
public interface CapsuleDao {
|
38 |
List<Capsule> selectAllCompletedWithSearch(String useruUuid, String search);
|
16 |
|
39 |
|
Línea 17... |
Línea 40... |
17 |
@Query("SELECT * FROM tb_capsules ORDER BY position, name")
|
40 |
@Query("SELECT * FROM tb_capsules ORDER BY position, name")
|
18 |
List<Capsule> selectAll();
|
41 |
List<Capsule> selectAll();
|