Compare commits

...

2 Commits

Author SHA1 Message Date
xiepeng f0c62a73f3 优化BUG 平台公告数据展示 企业公告修改样式 2024-06-25 10:28:19 +08:00
xiepeng d020c8e377 优化BUG 2024-06-21 17:58:20 +08:00
5 changed files with 25 additions and 10 deletions

View File

@ -1,5 +1,6 @@
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;
@ -29,7 +30,9 @@ 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;
@ -44,6 +47,7 @@ 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
@ -778,7 +782,7 @@ public class AppHiddenController extends BaseController {
/**
*
*
* @param out
* @param
* @throws Exception
*/
@RequestMapping(value = "/riskListCheckHiddenDelete") // /delete

View File

@ -20,10 +20,8 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.util.stream.Collectors;
@Controller
@RequestMapping("/app/trafficNotice")
@ -118,8 +116,22 @@ 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);
map.put("varList", varList);
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("page", page);
map.put("result", errInfo);
return map;

View File

@ -3427,7 +3427,6 @@ 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);

View File

@ -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是

View File

@ -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
(