|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 全民护河领取积分 业务类 |
|
|
* 全民护河领取积分 业务类 |
|
|
* |
|
|
* |
|
|
|
|
|
|
|
|
userPointsDetail.setNickname(westreamUser.getNickname()); |
|
|
userPointsDetail.setNickname(westreamUser.getNickname()); |
|
|
userPointsDetail.setChangeName("阅读知识"); |
|
|
userPointsDetail.setChangeName("阅读知识"); |
|
|
userPointsDetail.setType(1); |
|
|
userPointsDetail.setType(1); |
|
|
|
|
|
userPointsDetail.setCreateTime(new Date()); |
|
|
Integer points = 0; |
|
|
Integer points = 0; |
|
|
if (ObjectUtil.isNotEmpty(dictData)) { |
|
|
if (ObjectUtil.isNotEmpty(dictData)) { |
|
|
points = Integer.parseInt(dictData.getValue()); |
|
|
points = Integer.parseInt(dictData.getValue()); |