| | |
| | | return "您已投票,不能重复投票!"; |
| | | } |
| | | } |
| | | for (TopicsVO topic : topics) { |
| | | if (topic.getMandatoryFlag().equals(2)) { |
| | | if (topic.getOptionNumberMin() > 1) { |
| | | JSONArray objects1 = JSON.parseArray(topic.getSelected()); |
| | | if (objects1.size() < topic.getOptionNumberMin()) { |
| | | return topic.getDiscussContent() + ":议题最少需要选择" + topic.getOptionNumberMin() + "项"; |
| | | } |
| | | } |
| | | if (topic.getOptionNumber() > 1) { |
| | | JSONArray objects1 = JSON.parseArray(topic.getSelected()); |
| | | if (objects1.size() <= topic.getOptionNumber()) { |
| | | return topic.getDiscussContent() + ":议题最多需要选择" + topic.getOptionNumber() + "项"; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | Boolean userTopics = getaBoolean(topics,householdEntity); |
| | | if (userTopics) return "200"; |
| | | return "操作失败!"; |