病例交流投票数据
This commit is contained in:
parent
0e5d8effa8
commit
3a8c82c459
@ -249,7 +249,8 @@ public class CaseExchangeController {
|
||||
}
|
||||
}
|
||||
|
||||
// 过期状态
|
||||
// 处理投票数据
|
||||
if (g.getCaseExchangeVote() != null){
|
||||
if (g.getCaseExchangeVote().getEndTime().isAfter(LocalDateTime.now())) {
|
||||
g.getCaseExchangeVote().setIsEnabled(1);
|
||||
}else{
|
||||
@ -279,6 +280,8 @@ public class CaseExchangeController {
|
||||
Integer proportion = (int) (Math.round((double) dto.getVoteNum() / voteNum * 10000) / 100.0);
|
||||
dto.setProportion(proportion);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return Response.success(g);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user