|
@ -385,13 +385,13 @@ public class FactOriginProjectMainDailyServiceImpl extends BaseServiceImpl<FactO |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public List<ScreenProjectDataDTO> initNewScreenProjectData(String customerId,Integer rows , String dateId,Integer exceedLimit,Integer about2exceedLimit) { |
|
|
public List<ScreenProjectDataDTO> initNewScreenProjectData(String customerId,Integer rows , String dateId,Integer exceedLimit,Integer about2exceedLimit) { |
|
|
boolean ifYesterday = true; |
|
|
boolean ifBeforeYesterday = true; |
|
|
if(!StringUtils.equals(DateUtils.getBeforeNDay(NumConstant.ONE),dateId)){ |
|
|
if(Integer.parseInt(DateUtils.getBeforeNDay(NumConstant.ONE)) > Integer.parseInt(dateId)){ |
|
|
ifYesterday = false; |
|
|
ifBeforeYesterday = false; |
|
|
} |
|
|
} |
|
|
List<ScreenProjectDataDTO> projects = baseDao.initNewScreenProjectData(customerId, rows == NumConstant.ZERO && ifYesterday ? "" : dateId, dateId); |
|
|
List<ScreenProjectDataDTO> projects = baseDao.initNewScreenProjectData(customerId, rows <= NumConstant.ZERO ? "" : dateId, dateId); |
|
|
//如果不是昨天立项
|
|
|
//如果不是昨天立项
|
|
|
if(!CollectionUtils.isEmpty(projects) && !ifYesterday) |
|
|
if(!CollectionUtils.isEmpty(projects) && !ifBeforeYesterday) |
|
|
computerIfExceed(projects,exceedLimit,about2exceedLimit); |
|
|
computerIfExceed(projects,exceedLimit,about2exceedLimit); |
|
|
|
|
|
|
|
|
return projects; |
|
|
return projects; |
|
|