|
@@ -146,6 +146,15 @@ public class AppUserCountDividendServiceImpl extends ServiceImpl<AppUserCountDiv
|
|
|
|
|
|
@Override
|
|
|
public List<AppUserCountDividend> selectUserDividendList(Long pid,Long userId,String dateNum,Integer status) {
|
|
|
+
|
|
|
+ String day = DateUtil.format(DateUtil.date(),"dd");
|
|
|
+ if(Integer.parseInt(day) > 15){
|
|
|
+
|
|
|
+ dateNum = DateUtil.format(DateUtil.date(),"yyyy-MM").concat("-15");
|
|
|
+ }else{
|
|
|
+
|
|
|
+ dateNum = DateUtil.format(DateUtil.endOfMonth(DateUtil.offsetMonth(DateUtil.date(),-1)),"yyyy-MM-dd");
|
|
|
+ }
|
|
|
List<AppUserCountDividend> dividendList = appUserCountDividendMapper.selectUserDividendList(pid,userId,dateNum,status);
|
|
|
if(null != dividendList && dividendList.size()>0){
|
|
|
List<Long> ids = dividendList.stream().map(AppUserCountDividend::getUserId).collect(Collectors.toList());
|