延时监火改为多人同时监火,在同一个部门中都可以查看和发布监火信息2

pull/4/head
limingyu 2023-12-14 18:40:07 +08:00
parent 98dc83e051
commit f53539025c
2 changed files with 77 additions and 69 deletions

View File

@ -88,6 +88,7 @@ public class AppHomeController extends BaseController {
if(!Tools.isEmpty(pd.get("USER_ID"))){
varList = hotworkapplicationService.getCountByMyApproval(pd.getString("USER_ID"));
PageData delayedCount = hotworkapplicationService.getCountByMyApprovalForDelayedHotWork(pd.getString("USER_ID"));
if (Integer.parseInt(delayedCount.getString("count")) != 0) {
if (varList.size() > 0) {
boolean isDelayedExist = false;
for (PageData data : varList) {
@ -105,6 +106,7 @@ public class AppHomeController extends BaseController {
} else {
varList.add(delayedCount);
}
}
myGasAnaly = hotworkapplicationService.getCountByMyGasAnaly(pd.getString("USER_ID"));
}
map.put("result", errInfo);
@ -146,6 +148,7 @@ public class AppHomeController extends BaseController {
if(!Tools.isEmpty(pd.get("USER_ID"))){
varList = hotworkapplicationService.getCountByMyApproval(pd.getString("USER_ID"));
PageData delayedCount = hotworkapplicationService.getCountByMyApprovalForDelayedHotWork(pd.getString("USER_ID"));
if (Integer.parseInt(delayedCount.getString("count")) != 0) {
if (varList.size() > 0) {
boolean isDelayedExist = false;
for (PageData data : varList) {
@ -163,6 +166,7 @@ public class AppHomeController extends BaseController {
} else {
varList.add(delayedCount);
}
}
myGasAnaly = hotworkapplicationService.getCountByMyGasAnaly(pd.getString("USER_ID"));
}

View File

@ -746,6 +746,7 @@ public class AppHotWorkApplicationController extends BaseController {
}
}
PageData hotUser = new PageData();
if (hotIds.size() > 0) {
hotUser.put("hotIds", hotIds);
List<PageData> hotUserAllList = hotWorkApplicationUserService.listAll(hotUser);
for (PageData userPageData : hotUserAllList){
@ -785,6 +786,7 @@ public class AppHotWorkApplicationController extends BaseController {
}
}
}
}
map.put("varList", varList);
map.put("page", page);
map.put("result", errInfo);
@ -1361,6 +1363,7 @@ public class AppHotWorkApplicationController extends BaseController {
if(!Tools.isEmpty(pd.get("USER_ID"))){
varList = hotworkapplicationService.getCountByMyApproval(pd.getString("USER_ID"));
PageData delayedCount = hotworkapplicationService.getCountByMyApprovalForDelayedHotWork(pd.getString("USER_ID"));
if (Integer.parseInt(delayedCount.getString("count")) != 0) {
if (varList.size() > 0) {
boolean isDelayedExist = false;
for (PageData data : varList) {
@ -1378,6 +1381,7 @@ public class AppHotWorkApplicationController extends BaseController {
} else {
varList.add(delayedCount);
}
}
myGasAnaly = hotworkapplicationService.getCountByMyGasAnaly(pd.getString("USER_ID"));
}
map.put("varList", varList);