Browse Source

bug修改

dev_shibei_match
yinzuomei 4 years ago
parent
commit
1700d1f08b
  1. 2
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointActionLogServiceImpl.java
  2. 2
      epmet-module/epmet-point/epmet-point-server/src/main/resources/logback-spring.xml
  3. 16
      epmet-module/epmet-point/epmet-point-server/src/main/resources/mapper/UserPointActionLogDao.xml

2
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointActionLogServiceImpl.java

@ -535,7 +535,7 @@ public class UserPointActionLogServiceImpl extends BaseServiceImpl<UserPointActi
if(dto.getUpLimitCount().equals(dto.getFinishedCount())){
dto.setFinishFlag("已完成");
}else{
dto.setFinishFlag("完成");
dto.setFinishFlag("完成");
}
}
//一次性任务,已完成。

2
epmet-module/epmet-point/epmet-point-server/src/main/resources/logback-spring.xml

@ -138,7 +138,7 @@
</appender>
<!-- 开发、测试环境 -->
<springProfile name="dev,test">
<springProfile name="dev,test,local">
<logger name="org.springframework.web" level="INFO"/>
<logger name="org.springboot.sample" level="INFO"/>
<logger name="com.epmet.dao" level="INFO"/>

16
epmet-module/epmet-point/epmet-point-server/src/main/resources/mapper/UserPointActionLogDao.xml

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