本人意见显示在最上面
This commit is contained in:
@@ -9,4 +9,5 @@ public class DetAllStandDto {
|
||||
String cid;
|
||||
String userId;
|
||||
String endTime;
|
||||
String Account;
|
||||
}
|
||||
|
||||
+25
-9
@@ -5,12 +5,15 @@ import com.adc.da.slrs.sarLawsDetailedList.Util.BeanConverUtil;
|
||||
import com.adc.da.slrs.sarStandIdea.dao.SarPublicIdeaAllDao;
|
||||
import com.adc.da.slrs.sarStandIdea.entity.*;
|
||||
import com.adc.da.slrs.sarStandIdea.service.ISarPublicIdeaAllService;
|
||||
import com.adc.da.sys.entity.LoginInfoEO;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@@ -53,11 +56,17 @@ public class SarPublicIdeaAllServiceImpl extends ServiceImpl<SarPublicIdeaAllDao
|
||||
System.out.println("总页数" + userIPage.getPages());
|
||||
List<SarPublicIdeaAll> list = userIPage.getRecords();
|
||||
List<SarPublicIdeaAllSUD> list1 = new ArrayList<>();
|
||||
list1 = BeanConverUtil.converList(list, SarPublicIdeaAllSUD.class);
|
||||
// for (SarPublicIdeaAllSUD sud:list1){
|
||||
// if (Time.compareTo(new Date())>=0)sud.setIdeaKey(0);
|
||||
// else {sud.setIdeaKey(1);}
|
||||
// }
|
||||
List<SarPublicIdeaAllSUD> partTwo = new ArrayList<>();
|
||||
list.forEach(sarPublicIdeaAll -> {
|
||||
SarPublicIdeaAllSUD sarPublicIdeaAllSUD=new SarPublicIdeaAllSUD();
|
||||
BeanUtils.copyProperties(sarPublicIdeaAll,sarPublicIdeaAllSUD);
|
||||
if (sarPublicIdeaAll.getUserId().equals(detAllStandDto.getUserId())){
|
||||
list1.add(sarPublicIdeaAllSUD);
|
||||
}else {
|
||||
partTwo.add(sarPublicIdeaAllSUD);
|
||||
}
|
||||
});
|
||||
list1.addAll(partTwo);
|
||||
IPage<SarPublicIdeaAllSUD> userIPage1 = new Page<>();
|
||||
userIPage1.setPages(userIPage.getPages());
|
||||
userIPage1.setSize(userIPage.getSize());
|
||||
@@ -74,10 +83,17 @@ public class SarPublicIdeaAllServiceImpl extends ServiceImpl<SarPublicIdeaAllDao
|
||||
System.out.println("总页数" + userIPage.getPages());
|
||||
List<SarPublicIdeaAll> list = userIPage.getRecords();
|
||||
List<SarPublicIdeaAllSUD> list1 = new ArrayList<>();
|
||||
list1 = BeanConverUtil.converList(list, SarPublicIdeaAllSUD.class);
|
||||
// for (SarPublicIdeaAllSUD sud:list1){
|
||||
// sud.setIdeaKey(0);
|
||||
// }
|
||||
List<SarPublicIdeaAllSUD> partTwo = new ArrayList<>();
|
||||
list.forEach(sarPublicIdeaAll -> {
|
||||
SarPublicIdeaAllSUD sarPublicIdeaAllSUD=new SarPublicIdeaAllSUD();
|
||||
BeanUtils.copyProperties(sarPublicIdeaAll,sarPublicIdeaAllSUD);
|
||||
if (sarPublicIdeaAll.getUserId().equals(detAllStandDto.getUserId())){
|
||||
list1.add(sarPublicIdeaAllSUD);
|
||||
}else {
|
||||
partTwo.add(sarPublicIdeaAllSUD);
|
||||
}
|
||||
});
|
||||
list1.addAll(partTwo);
|
||||
IPage<SarPublicIdeaAllSUD> userIPage1 = new Page<>();
|
||||
userIPage1.setPages(userIPage.getPages());
|
||||
userIPage1.setSize(userIPage.getSize());
|
||||
|
||||
Reference in New Issue
Block a user