提交 d209a849 authored 作者: zjm's avatar zjm

dev 合并 master

上级 edb1dfe4
...@@ -689,7 +689,8 @@ public class DeviceCheckController { ...@@ -689,7 +689,8 @@ public class DeviceCheckController {
Integer detailId = task.getBillId(); Integer detailId = task.getBillId();
Integer userCId = detailRepo.findById(detailId).get().getUserCId(); Integer userCId = detailRepo.findById(detailId).get().getUserCId();
if (task.getBillStatus().equals(END.id) && Objects.nonNull(userCId) && userIsProv(userCId)){ if (task.getBillStatus().equals(END.id) && Objects.nonNull(userCId) && userCId !=0 && userIsProv(userCId)){
checkResult = "无误"; checkResult = "无误";
}else { }else {
checkResult = "等待省审核"; checkResult = "等待省审核";
......
...@@ -2294,6 +2294,10 @@ public class RepairController { ...@@ -2294,6 +2294,10 @@ public class RepairController {
String currentUserUnitName = userUtils.getCurrentUserUnitName(); String currentUserUnitName = userUtils.getCurrentUserUnitName();
//查询维修详情 //查询维修详情
List<RepairDetail> byDeviceRepairBillId = repairDetailDao.findByDeviceRepairBillId(repairBill.getId()); List<RepairDetail> byDeviceRepairBillId = repairDetailDao.findByDeviceRepairBillId(repairBill.getId());
//进行过滤
// List<RepairDetail> repairDetails = byDeviceRepairBillId.stream().filter(repairDetail -> repairDetail.getRepairBackBillId() == null && repairDetail.getRepairStatus().equals(RepairStatusEnum.WAIT_REPAIR.id) && repairDetail.getLocationUnit().equals(repairDetail.getOwnUnit()))
// .collect(Collectors.toList());
List<RepairDetail> repairDetails = byDeviceRepairBillId.stream().filter(repairDetail -> { List<RepairDetail> repairDetails = byDeviceRepairBillId.stream().filter(repairDetail -> {
if (!repairDetail.getLocationUnit().equals(repairDetail.getOwnUnit())) { if (!repairDetail.getLocationUnit().equals(repairDetail.getOwnUnit())) {
return repairDetail.getRepairBackBillId() == null && repairDetail.getRepairStatus().equals(RepairStatusEnum.WAIT_REPAIR.id) && repairDetail.getLocationUnit().equals(currentUserUnitName); return repairDetail.getRepairBackBillId() == null && repairDetail.getRepairStatus().equals(RepairStatusEnum.WAIT_REPAIR.id) && repairDetail.getLocationUnit().equals(currentUserUnitName);
...@@ -2307,6 +2311,10 @@ public class RepairController { ...@@ -2307,6 +2311,10 @@ public class RepairController {
} }
repairDetail.setRepairStatus(RepairStatusEnum.WAIT_SEND.id); repairDetail.setRepairStatus(RepairStatusEnum.WAIT_SEND.id);
// if (repairDetail.getLocationUnit())
//
// repairDetail.setLocationUnit(repairDetail.getOwnUnit());
repairDetailDao.save(repairDetail); repairDetailDao.save(repairDetail);
}); });
//直接删除维修单 //直接删除维修单
......
...@@ -401,8 +401,8 @@ ...@@ -401,8 +401,8 @@
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;
right: 150px; right: 150px;
}
.oddrowcolor { .oddrowcolor {
background-color: #fff; background-color: #fff;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论