kgdxpr 2 years ago
commit 2b6e17d8ae

@ -705,8 +705,8 @@ public class CollectController extends Controller {
@IsNumericInterface({"job_id", "shiZhiSchool", "shiZhiJiaoFu", "quXiaoJiaoYuJu"}) @IsNumericInterface({"job_id", "shiZhiSchool", "shiZhiJiaoFu", "quXiaoJiaoYuJu"})
@EmptyInterface({"deadline_time"}) @EmptyInterface({"deadline_time"})
public void publishJob(int job_id, String deadline_time, int shiZhiSchool, public void publishJob(int job_id, String deadline_time, int shiZhiSchool,
int shiZhiJiaoFu, int quXiaoJiaoYuJu, String bureauIds, int group_id) throws ParseException { int shiZhiJiaoFu, int quXiaoJiaoYuJu, String bureauIds, String groupIds) throws ParseException {
cm.publishJob(job_id, deadline_time, shiZhiSchool, shiZhiJiaoFu, quXiaoJiaoYuJu, bureauIds,group_id); cm.publishJob(job_id, deadline_time, shiZhiSchool, shiZhiJiaoFu, quXiaoJiaoYuJu, bureauIds,groupIds);
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("success", true); map.put("success", true);
map.put("message", "保存成功!"); map.put("message", "保存成功!");
@ -852,7 +852,6 @@ public class CollectController extends Controller {
} }
} }
/** /**
* *
* *

@ -797,7 +797,7 @@ public class CollectModel {
* @param bureauIds ids * @param bureauIds ids
*/ */
public void publishJob(int job_id, String deadline_time, int shiZhiSchool, public void publishJob(int job_id, String deadline_time, int shiZhiSchool,
int shiZhiJiaoFu, int quXiaoJiaoYuJu, String bureauIds, int group_id) throws ParseException { int shiZhiJiaoFu, int quXiaoJiaoYuJu, String bureauIds, String groupIds) throws ParseException {
Set<String> bureauSet = new HashSet<>(); Set<String> bureauSet = new HashSet<>();
if (shiZhiSchool == 1) { if (shiZhiSchool == 1) {
Page<Record> list = getBureauList(9, null, 1, 9999); Page<Record> list = getBureauList(9, null, 1, 9999);
@ -817,17 +817,17 @@ public class CollectModel {
bureauSet.add(record.getStr("org_id")); bureauSet.add(record.getStr("org_id"));
} }
} }
if (!StrKit.isBlank(bureauIds)) { if (!StrKit.isBlank(bureauIds)) {
for (String s : bureauIds.split(",")) { for (String s : bureauIds.split(",")) {
bureauSet.add(s); bureauSet.add(s);
} }
} }
if (groupIds.length() > 0) {
if (group_id > 0) { for (String group_id : groupIds.split(",")) {
List<Record> list = getGroup(group_id); List<Record> list = getGroup(Integer.parseInt(group_id));
for (Record record : list) { for (Record record : list) {
bureauSet.add(record.getStr("bureau_id")); bureauSet.add(record.getStr("bureau_id"));
}
} }
} }
//写主表 //写主表

Loading…
Cancel
Save