|
|
|
@ -7,11 +7,9 @@ import com.jfinal.plugin.activerecord.Db;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Page;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
import com.jfinal.plugin.activerecord.SqlPara;
|
|
|
|
|
import jnr.ffi.annotations.In;
|
|
|
|
|
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
import java.util.HashSet;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
public class YpModel {
|
|
|
|
|
|
|
|
|
@ -277,12 +275,15 @@ public class YpModel {
|
|
|
|
|
String sql = "select * from t_yp_task_bx_limit where task_id=?";
|
|
|
|
|
List<Record> list = Db.find(sql, task_id);
|
|
|
|
|
Set<Integer> set = new HashSet<>();
|
|
|
|
|
Map<Integer,Integer> _map=new HashMap<>();
|
|
|
|
|
for (Record record : list) {
|
|
|
|
|
set.add(record.getInt("bx_id"));
|
|
|
|
|
_map.put(record.getInt("bx_id"),record.getInt("limit"));
|
|
|
|
|
}
|
|
|
|
|
for (Record record : all) {
|
|
|
|
|
if (set.contains(record.getInt("bx_id"))) {
|
|
|
|
|
record.set("selected", true);
|
|
|
|
|
record.set("limit",_map.get(record.getInt("bx_id")));
|
|
|
|
|
} else {
|
|
|
|
|
record.set("selected", false);
|
|
|
|
|
}
|
|
|
|
|