Commit b59bb9ea authored by Quxl's avatar Quxl

x

parent 92b641fa
......@@ -64,7 +64,7 @@ public class FilmServiceImpl implements FilmService {
@Override
public void doApply(Integer member_id, Long member_film_id) {
jdbcTemplate.executeUpdate("update fc_member_film set state = ?, apply_state = ? where id = ? and member_id = ?", 2, 1, member_film_id, member_id);
jdbcTemplate.executeUpdate("update fc_member_film set state = 2, apply_state = 1 where id = ? and member_id = ? and state = 1", member_film_id, member_id);
}
@Override
......
......@@ -98,10 +98,11 @@ public class SqlWhere {
if(i > 0) {
sb.append(" or ");
}
sb.append(name[i] + " like '%" + obj + "%'");
sb.append(name[i] + " like ?");
}
sb.append(")");
this.strList.add(sb.toString());
this.objList.add("%" + obj + "%");
}
return this;
}
......
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