Commit 916fbc9f authored by Quxl's avatar Quxl

x

parent b55960a0
......@@ -318,9 +318,6 @@ public class ReviewServiceImpl implements ReviewService {
Map<Integer, Integer> map = new HashMap<Integer, Integer>();
for(Fc_review_record record : records) {
Integer review_state = record.getReview_state();;
if(review_state == null) {
return 0;
}
map.put(review_state, map.get(review_state) == null ? 1 : (map.get(review_state) + 1));
}
Collection<Integer> ary = map.values();
......@@ -338,7 +335,7 @@ public class ReviewServiceImpl implements ReviewService {
i++;
}
}
if(i.intValue() == 1) {
if(i.intValue() == 1 && review_state != null) {
return review_state;
} else {
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment