|
|
|
@ -708,11 +708,20 @@ public class CollectController extends Controller {
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void isExistXianQuJiaoYuJu(String bureauIds, String groupIds) {
|
|
|
|
|
if (StrKit.isBlank(bureauIds) && StrKit.isBlank(groupIds)) {
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
|
map.put("success", false);
|
|
|
|
|
map.put("message", "bureauIds与groupIds同时为空,需要前端判断进行拦截!");
|
|
|
|
|
renderJson(map);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
List<Record> list = cm.getXianQuJiaoYuJu(bureauIds, groupIds);
|
|
|
|
|
boolean exist = list.size() > 0;
|
|
|
|
|
boolean exist = false;
|
|
|
|
|
if(list!=null && list.size() > 0) exist=true;
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
|
map.put("success", true);
|
|
|
|
|
map.put("exist", exist);
|
|
|
|
|
map.put("list",list);
|
|
|
|
|
if (exist) map.put("message", "存在县区教育局!");
|
|
|
|
|
else map.put("message", "不存在县区教育局!");
|
|
|
|
|
renderJson(map);
|
|
|
|
@ -1045,7 +1054,7 @@ public class CollectController extends Controller {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//通过检查
|
|
|
|
|
int job_id = cm.addFormJob(bureau_id,person_id, publish_role_id, job_name, table_name, json);
|
|
|
|
|
int job_id = cm.addFormJob(bureau_id, person_id, publish_role_id, job_name, table_name, json);
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
|
map.put("success", true);
|
|
|
|
|
map.put("message", "保存成功!");
|
|
|
|
@ -1458,7 +1467,7 @@ public class CollectController extends Controller {
|
|
|
|
|
String bureau_id = rs.get("bureau_id");
|
|
|
|
|
|
|
|
|
|
//转发任务
|
|
|
|
|
int child_job_id = cm.ForwardJob(job_id, deadline_time, allSchool, allJiaoFu, bureauIds, groupIds, bureau_id,person_id);
|
|
|
|
|
int child_job_id = cm.ForwardJob(job_id, deadline_time, allSchool, allJiaoFu, bureauIds, groupIds, bureau_id, person_id);
|
|
|
|
|
//返回
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
|
map.put("success", true);
|
|
|
|
|