forked from integrated_whb/integrated_whb
Compare commits
No commits in common. "f0c62a73f3e413f17a31d3ce071efef4351ecb02" and "a7b3cbe1229160c27bf46778f95c368df98ef989" have entirely different histories.
f0c62a73f3
...
a7b3cbe122
|
@ -1,6 +1,5 @@
|
|||
package com.zcloud.controller.app;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
|
||||
|
@ -30,9 +29,7 @@ import com.zcloud.util.event.DeviceHiddenEvent;
|
|||
import com.zcloud.util.message.MessageService;
|
||||
import net.sf.json.JSONArray;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.lang.ObjectUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.bytedeco.javacpp.RealSense;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
@ -47,7 +44,6 @@ import javax.servlet.http.HttpServletRequest;
|
|||
import java.io.File;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 说明:隐患 作者:luoxiaobao 时间:2021-01-04 官网:www.zcloudchina.com
|
||||
|
@ -782,7 +778,7 @@ public class AppHiddenController extends BaseController {
|
|||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param
|
||||
* @param out
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/riskListCheckHiddenDelete") // /delete
|
||||
|
|
|
@ -20,8 +20,10 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/app/trafficNotice")
|
||||
|
@ -116,22 +118,8 @@ public class AppTrafficSecurityNoticeController extends BaseController {
|
|||
*/
|
||||
// pd.put("USER_ID", pd.getString("loginUserId"));
|
||||
page.setPd(pd);
|
||||
List<PageData> list = new ArrayList<>();
|
||||
List<PageData> varList = trafficSecurityReadDetailService.listByUserId(page);
|
||||
String level[] = new String[]{"紧急通知", "重要通知", "一般通知"};
|
||||
for (int i = 0; i < level.length; i++) {
|
||||
for (PageData data : varList) {
|
||||
if(StringUtils.equals(data.getString("LEVEL"),level[i]) && StringUtils.equals(data.getString("TYPE"),null)) {
|
||||
list.add(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
List<PageData> collect = varList.stream().parallel().filter(data -> StringUtils.equals(data.getString("TYPE"), "1")).collect(Collectors.toList());
|
||||
for (PageData data : collect) {
|
||||
list.add(data);
|
||||
}
|
||||
System.out.println("list = " + list);
|
||||
map.put("varList", list);
|
||||
map.put("varList", varList);
|
||||
map.put("page", page);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
|
|
|
@ -3427,6 +3427,7 @@ public class UsersController extends BaseController {
|
|||
|
||||
List<PageData> collect = resultList.stream().filter(data -> StringUtils.equals(data.getString("APPLY_TYPE"), "4")).collect(Collectors.toList());
|
||||
|
||||
System.out.println("collect = " + collect);
|
||||
/*List<PageData> dimissionList = userCorpService.getDimissionUser();
|
||||
System.out.println("dimissionList = " + dimissionList);*/
|
||||
map.put("userList", collect);
|
||||
|
|
|
@ -1481,7 +1481,7 @@ public class UsersServiceImpl implements UsersService {
|
|||
userCertificateService.save(idCard);*/
|
||||
|
||||
// 驾驶证
|
||||
/*driverLicense.put("USER_CERTIFICATE_ID", Warden.get32UUID());
|
||||
driverLicense.put("USER_CERTIFICATE_ID", Warden.get32UUID());
|
||||
driverLicense.put("USER_ID", pd.getString("USER_ID"));
|
||||
driverLicense.put("CERTIFICATE_CATEGORY", "2");
|
||||
driverLicense.put("ID_NO", pd.getString("DRIVER_LICENSE_NO"));
|
||||
|
@ -1522,7 +1522,7 @@ public class UsersServiceImpl implements UsersService {
|
|||
qualificationCertificateCategory.put("USER_ID", pd.getString("USER_ID"));
|
||||
qualificationCertificateCategory.put("ALLOW_QUALIFICATION", QUALIFICATION_CERTIFICATE_CATEGORY[i]);
|
||||
userCertificateAppendixService.save(qualificationCertificateCategory);
|
||||
}*/
|
||||
}
|
||||
// pd.put("TYPE_OF_WORK", pd.getString("POST_ID"));
|
||||
pd.put("CERTIFICATETYPE", "4bed7fac8fe24ad4b5c0c69321fd5916"); // sys_userinfo 证件类型:身份证
|
||||
pd.put("AUTHENTICATION", "0"); // sys_userinfo 学员是否认证 0否 1是
|
||||
|
|
|
@ -3811,7 +3811,7 @@
|
|||
f.CREATOR,f.STATE,f.CREATOR
|
||||
FROM
|
||||
BUS_HIDDEN f
|
||||
WHERE f.ISDELETE = '0' and f.STATE != '0'/* and f.HIDDENLEVEL = 'hiddenLevel0001'*/
|
||||
WHERE f.ISDELETE = '0' and f.STATE != '0' and f.HIDDENLEVEL = 'hiddenLevel0001'
|
||||
<if test="DEPARTMENT_IDS != null and DEPARTMENT_IDS != ''"><!-- 关键词检索 -->
|
||||
and
|
||||
(
|
||||
|
|
Loading…
Reference in New Issue