|
@ -74,6 +74,9 @@ |
|
|
AND DATE_FORMAT(CREATED_TIME, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d') |
|
|
AND DATE_FORMAT(CREATED_TIME, '%Y-%m-%d') = DATE_FORMAT(NOW(), '%Y-%m-%d') |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 未完成:无上限的、一次性任务未完成的、非一次性任务完成数量< 积分上限次数的 --> |
|
|
|
|
|
<!-- 已完成:有上线并且完成的、一次性任务完成的 --> |
|
|
<select id="queryMyPointTaskList" parameterType="map" resultType="com.epmet.dto.result.MyPointTaskResultDTO"> |
|
|
<select id="queryMyPointTaskList" parameterType="map" resultType="com.epmet.dto.result.MyPointTaskResultDTO"> |
|
|
select |
|
|
select |
|
|
temp.* |
|
|
temp.* |
|
@ -124,12 +127,19 @@ |
|
|
)temp |
|
|
)temp |
|
|
where 1=1 |
|
|
where 1=1 |
|
|
<if test='null != type and "unfinished" == type'> |
|
|
<if test='null != type and "unfinished" == type'> |
|
|
and temp.finishedCount=0 |
|
|
AND ( |
|
|
|
|
|
temp.upLimit='0' |
|
|
|
|
|
or ( temp.upLimit !='0' and temp.DISPOSABLE = '0' AND temp.finishedCount < upLimitCount ) |
|
|
|
|
|
OR ( temp.upLimit !='0' and temp.DISPOSABLE = '1' AND temp.finishedCount = 0 ) |
|
|
|
|
|
) |
|
|
</if> |
|
|
</if> |
|
|
<if test='null != type and "finished" == type'> |
|
|
<if test='null != type and "finished" == type'> |
|
|
and temp.upLimit !=0 |
|
|
and ( |
|
|
and temp.finishedCount=temp.upLimitCount |
|
|
( temp.upLimit !='0' and temp.DISPOSABLE='0' and temp.finishedCount=temp.upLimitCount and temp.finishedCount !=0) |
|
|
|
|
|
or(temp.DISPOSABLE='1'and temp.finishedCount=1) |
|
|
|
|
|
) |
|
|
</if> |
|
|
</if> |
|
|
ORDER BY temp.sort ASC |
|
|
ORDER BY temp.sort ASC |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |