|
@@ -692,20 +692,22 @@ public class ActBusinessController {
|
|
|
|
|
|
Map<String,Object> map=new HashMap<>();
|
|
|
map.put("userId",loginUser.getUsername());
|
|
|
+
|
|
|
+
|
|
|
if(loginUser.getUsername().equals("admin")){
|
|
|
map.put("userId",null);
|
|
|
}
|
|
|
- if(param.getTableName().equals("incident_ticket")){
|
|
|
- map.put("userId",null);
|
|
|
- }
|
|
|
-
|
|
|
- if(loginUser.getUsername().equals("T0003")){
|
|
|
- if(param.getTableName().equals("supplieses_apply_a") ||
|
|
|
- param.getTableName().equals("employee_leave") ||
|
|
|
- param.getTableName().equals("expense_account")){
|
|
|
- map.put("userId",null);
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -723,23 +725,30 @@ public class ActBusinessController {
|
|
|
|
|
|
|
|
|
|
|
|
- if(param.getTableName().equals("expense_account")){
|
|
|
- String userIds = sysBaseAPI.getUserByRoleCode("SY013",null);
|
|
|
- if(StringUtils.isNotBlank(userIds)){
|
|
|
- if(userIds.contains(loginUser.getUsername())){
|
|
|
- map.put("userId",null);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- String userIds = "";
|
|
|
- if(param.getTableName().equals("seal_apply")){
|
|
|
- userIds = sysBaseAPI.getUserByRoleCode("SY002", null);
|
|
|
- }else{
|
|
|
- userIds = sysBaseAPI.getUserByRoleCode("SY003", null);
|
|
|
- }
|
|
|
- if(StringUtils.isNotBlank(userIds)){
|
|
|
- if(userIds.contains(loginUser.getUsername())){
|
|
|
+ if(map.get("userId") != null){
|
|
|
+ int ifExist = sysBaseAPI.queryDictCountBy("special_powers_user",loginUser.getUsername(),param.getTableName());
|
|
|
+ if(ifExist > 0){
|
|
|
map.put("userId",null);
|
|
|
}
|
|
|
}
|
|
@@ -920,8 +929,17 @@ public class ActBusinessController {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
if (type.equals("text")){
|
|
|
- sb2.append(" and cl.").append(name).append(" like '%").append(val1).append("%' ");
|
|
|
+
|
|
|
+ if("responsibility_person1".equals(name) && "incident_ticket".equals(param.getTableName())){
|
|
|
+ sb2.append(" and CONCAT(cl.responsibility_person1,responsibility_person2,responsibility_person3,responsibility_person4) ")
|
|
|
+ .append(" like '%").append(val1).append("%' ");
|
|
|
+ }else{
|
|
|
+ sb2.append(" and cl.").append(name).append(" like '%").append(val1).append("%' ");
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
if (type.equals("list")){
|
|
|
sb2.append(" and cl.").append(name).append(" = '").append(val1).append("' ");
|