|
@ -18,11 +18,13 @@ public class CrowdfundingServiceImpl implements CrowdfundingService { |
|
|
public CrowdfundingInfo loadPage() { |
|
|
public CrowdfundingInfo loadPage() { |
|
|
CrowdfundingInfo crowdfundingInfoList = crowdfundingMapper.loadPage(); |
|
|
CrowdfundingInfo crowdfundingInfoList = crowdfundingMapper.loadPage(); |
|
|
//如果当前进度大于等于目标人数,将status变更为0 |
|
|
//如果当前进度大于等于目标人数,将status变更为0 |
|
|
if (crowdfundingInfoList.getNowNumber() >= crowdfundingInfoList.getTargetNumber()) { |
|
|
|
|
|
|
|
|
if (crowdfundingInfoList != null && crowdfundingInfoList.getNowNumber() >= crowdfundingInfoList.getTargetNumber()) { |
|
|
crowdfundingMapper.updateStatus(0); |
|
|
crowdfundingMapper.updateStatus(0); |
|
|
} |
|
|
} |
|
|
List<Participant> participants = crowdfundingMapper.queryCrowdUser(null); |
|
|
List<Participant> participants = crowdfundingMapper.queryCrowdUser(null); |
|
|
crowdfundingInfoList.setParticipantList(participants); |
|
|
|
|
|
|
|
|
if (crowdfundingInfoList != null) { |
|
|
|
|
|
crowdfundingInfoList.setParticipantList(participants); |
|
|
|
|
|
} |
|
|
return crowdfundingInfoList; |
|
|
return crowdfundingInfoList; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|