This commit is contained in:
parent
77819056a5
commit
aaaaf826fd
|
@ -67,64 +67,60 @@ public class ApprovalProcessController extends BaseController {
|
||||||
List<ApprovalProcess> newList = new ArrayList<>();
|
List<ApprovalProcess> newList = new ArrayList<>();
|
||||||
for (ApprovalProcess process : list) {
|
for (ApprovalProcess process : list) {
|
||||||
if (process.getMatterType() == 2) {
|
if (process.getMatterType() == 2) {
|
||||||
gwglLog one = gwglLogService.lambdaQuery()
|
List<gwglLog> list1 = gwglLogService.lambdaQuery()
|
||||||
.eq(gwglLog::getUuid, process.getUuid())
|
.eq(gwglLog::getUuid, process.getUuid())
|
||||||
.orderByDesc(gwglLog::getCreateTime)
|
.orderByAsc(gwglLog::getCreateTime).list();
|
||||||
.last("LIMIT 1")
|
if (list1 != null && !list1.isEmpty()) {
|
||||||
.one();
|
for (gwglLog gwglLog : list1) {
|
||||||
if (one != null) {
|
if ((gwglLog.getCheckUserId() != null && gwglLog.getCheckUserId().equals(getUserId().toString()))
|
||||||
if ((one.getCheckUserId() != null && one.getCheckUserId().equals(getUserId().toString()))
|
|| (gwglLog.getChecker() != null && gwglLog.getChecker().equals(getNickname()))) {
|
||||||
|| (one.getChecker() != null && one.getChecker().equals(getNickname()))) {
|
if (gwglLog.getCheckState() == 0) {
|
||||||
if (one.getCheckState() == 0) {
|
process.setApprovalStatus(0);
|
||||||
process.setApprovalStatus(0);
|
break;
|
||||||
} else {
|
} else {
|
||||||
process.setApprovalStatus(1);
|
process.setApprovalStatus(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}else {
|
}else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (process.getMatterType() == 3) {
|
if (process.getMatterType() == 3) {
|
||||||
gwglLog one = gwglLogService.lambdaQuery()
|
List<gwglLog> list1 = gwglLogService.lambdaQuery()
|
||||||
.eq(gwglLog::getApplyNo, process.getApprovalNo())
|
.eq(gwglLog::getApplyNo, process.getApprovalNo())
|
||||||
.orderByDesc(gwglLog::getCreateTime)
|
.orderByAsc(gwglLog::getCreateTime).list();
|
||||||
.last("LIMIT 1")
|
if (list1 != null && !list1.isEmpty()) {
|
||||||
.one();
|
for (gwglLog gwglLog : list1) {
|
||||||
if (one != null) {
|
if ((gwglLog.getCheckUserId() != null && gwglLog.getCheckUserId().equals(getUserId().toString()))
|
||||||
if ((one.getCheckUserId() != null && one.getCheckUserId().equals(getUserId().toString()))
|
|| (gwglLog.getChecker() != null && gwglLog.getChecker().equals(getNickname()))) {
|
||||||
|| (one.getChecker() != null && one.getChecker().equals(getNickname()))) {
|
if (gwglLog.getCheckState() == 0) {
|
||||||
if (one.getCheckState() == 0) {
|
process.setApprovalStatus(0);
|
||||||
process.setApprovalStatus(0);
|
break;
|
||||||
} else {
|
} else {
|
||||||
process.setApprovalStatus(1);
|
process.setApprovalStatus(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}else {
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (process.getMatterType() == 4) {
|
if (process.getMatterType() == 4) {
|
||||||
gwglLog one = gwglLogService.lambdaQuery()
|
List<gwglLog> list1 = gwglLogService.lambdaQuery()
|
||||||
.eq(gwglLog::getApplyNo, process.getApprovalNo())
|
.eq(gwglLog::getApplyNo, process.getApprovalNo())
|
||||||
.orderByDesc(gwglLog::getCreateTime)
|
.orderByAsc(gwglLog::getCreateTime).list();
|
||||||
.last("LIMIT 1")
|
if (list1 != null && !list1.isEmpty()) {
|
||||||
.one();
|
for (gwglLog gwglLog : list1) {
|
||||||
if (one != null) {
|
if ((gwglLog.getCheckUserId() != null && gwglLog.getCheckUserId().equals(getUserId().toString()))
|
||||||
if ((one.getCheckUserId() != null && one.getCheckUserId().equals(getUserId().toString()))
|
|| (gwglLog.getChecker() != null && gwglLog.getChecker().equals(getNickname()))) {
|
||||||
|| (one.getChecker() != null && one.getChecker().equals(getNickname()))) {
|
if (gwglLog.getCheckState() == 0) {
|
||||||
if (one.getCheckState() == 0) {
|
process.setApprovalStatus(0);
|
||||||
process.setApprovalStatus(0);
|
break;
|
||||||
} else {
|
} else {
|
||||||
process.setApprovalStatus(1);
|
process.setApprovalStatus(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}else {
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue