Commit ef4c7371 authored by Quxl's avatar Quxl

x

parent b3e7e08f
package com.egolm.film.api.service.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
......@@ -205,12 +206,6 @@ public class ReviewServiceImpl implements ReviewService {
return jdbcTemplate.queryForList(sql, review_id);
}
public static void main(String[] args) {
String sql = "select rr.*, u.username, u.group_id from fc_review_record rr left join fc_user u on rr.user_id = u.uid where rr.review_id = ?";
sql = "select t.*, g.group_name from (" + sql + ") t left join fc_user_group g on g.group_id = t.group_id";
System.out.println(sql);
}
@Override
@Transactional
public void toFirstRound(Long member_film_id, Integer enroll_type_id) {
......@@ -272,10 +267,21 @@ public class ReviewServiceImpl implements ReviewService {
return null;
}
public static void main(String[] args) {
List<Fc_review_record> records = new ArrayList<Fc_review_record>();
Fc_review_record r1 = new Fc_review_record();
Fc_review_record r2 = new Fc_review_record();
r1.setReview_state(5);
r2.setReview_state(5);
records.add(r1);
records.add(r2);
System.out.println(new ReviewServiceImpl().reviewStateElection(records));
}
@Override
public void tryNextRound(Integer review_id) {
Fc_review review = jdbcTemplate.queryForBean("select * from fc_review where id = ?", Fc_review.class, review_id);
List<Fc_review_record> records = jdbcTemplate.queryForBeans("select * from fc_review_record where review_id = ?", Fc_review_record.class, review.getId());
List<Fc_review_record> records = jdbcTemplate.queryForBeans("select * from fc_review_record where review_id = ? and review_round = ?", Fc_review_record.class, review.getId(), review.getReview_round());
Integer enroll_type_id = review.getEnroll_type_id();
Integer review_round = review.getReview_round();
Integer review_state = this.reviewStateElection(records);
......
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