|
|
|
@ -40,6 +40,7 @@ public class YpModel {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:获取任务信息
|
|
|
|
|
*
|
|
|
|
|
* @param task_id
|
|
|
|
|
*/
|
|
|
|
|
public Record getTask(int task_id) {
|
|
|
|
@ -275,17 +276,18 @@ 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<>();
|
|
|
|
|
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"));
|
|
|
|
|
_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")));
|
|
|
|
|
record.set("limit", _map.get(record.getInt("bx_id")));
|
|
|
|
|
} else {
|
|
|
|
|
record.set("selected", false);
|
|
|
|
|
record.set("limit", 0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return all;
|
|
|
|
|