延时监火改为多人同时监火,在同一个部门中都可以查看和发布监火信息2
parent
98dc83e051
commit
f53539025c
|
@ -88,15 +88,16 @@ 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) {
|
||||
if (StringUtils.equals(data.getString("STATE"),"10")) isDelayedExist = true;
|
||||
if (StringUtils.equals(data.getString("STATE"), "10")) isDelayedExist = true;
|
||||
}
|
||||
if (isDelayedExist) {
|
||||
for (PageData pageData : varList){
|
||||
if (StringUtils.equals(pageData.getString("STATE"),"10")) {
|
||||
pageData.put("count",delayedCount.getString("count"));
|
||||
for (PageData pageData : varList) {
|
||||
if (StringUtils.equals(pageData.getString("STATE"), "10")) {
|
||||
pageData.put("count", delayedCount.getString("count"));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -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,15 +148,16 @@ 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) {
|
||||
if (StringUtils.equals(data.getString("STATE"),"10")) isDelayedExist = true;
|
||||
if (StringUtils.equals(data.getString("STATE"), "10")) isDelayedExist = true;
|
||||
}
|
||||
if (isDelayedExist) {
|
||||
for (PageData pageData : varList){
|
||||
if (StringUtils.equals(pageData.getString("STATE"),"10")) {
|
||||
pageData.put("count",delayedCount.getString("count"));
|
||||
for (PageData pageData : varList) {
|
||||
if (StringUtils.equals(pageData.getString("STATE"), "10")) {
|
||||
pageData.put("count", delayedCount.getString("count"));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -163,6 +166,7 @@ public class AppHomeController extends BaseController {
|
|||
} else {
|
||||
varList.add(delayedCount);
|
||||
}
|
||||
}
|
||||
myGasAnaly = hotworkapplicationService.getCountByMyGasAnaly(pd.getString("USER_ID"));
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue