Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
673482afd3
|
@ -55,9 +55,9 @@ public class ApprovalProcessController extends BaseController {
|
|||
}
|
||||
}
|
||||
|
||||
if (approvalProcess.getProcessTitle() != null) {
|
||||
queryWrapper.like("process_title", approvalProcess.getProcessTitle())
|
||||
.or().like("submitter_name", approvalProcess.getProcessTitle());
|
||||
if (approvalProcess.getProcessTitles() != null) {
|
||||
queryWrapper.like("process_title", approvalProcess.getProcessTitles())
|
||||
.or().like("submitter_name", approvalProcess.getProcessTitles());
|
||||
}
|
||||
|
||||
if (approvalProcess.getSubmitterId() != null) {
|
||||
|
@ -69,18 +69,19 @@ public class ApprovalProcessController extends BaseController {
|
|||
List<ApprovalProcess> newList = new ArrayList<>();
|
||||
for (ApprovalProcess process : list) {
|
||||
if (process.getMatterType() == 2) {
|
||||
gwglLog one = gwglLogService.lambdaQuery()
|
||||
List<gwglLog> list1 = gwglLogService.lambdaQuery()
|
||||
.eq(gwglLog::getUuid, process.getUuid())
|
||||
.orderByDesc(gwglLog::getCreateTime)
|
||||
.last("LIMIT 1")
|
||||
.one();
|
||||
if (one != null) {
|
||||
if ((one.getCheckUserId() != null && one.getCheckUserId().equals(getUserId().toString()))
|
||||
|| (one.getChecker() != null && one.getChecker().equals(getNickname()))) {
|
||||
if (one.getCheckState() == 0) {
|
||||
process.setApprovalStatus(0);
|
||||
} else {
|
||||
process.setApprovalStatus(1);
|
||||
.orderByAsc(gwglLog::getCreateTime).list();
|
||||
if (list1 != null && !list1.isEmpty()) {
|
||||
for (gwglLog gwglLog : list1) {
|
||||
if ((gwglLog.getCheckUserId() != null && gwglLog.getCheckUserId().equals(getUserId().toString()))
|
||||
|| (gwglLog.getChecker() != null && gwglLog.getChecker().equals(getNickname()))) {
|
||||
if (gwglLog.getCheckState() == 0) {
|
||||
process.setApprovalStatus(0);
|
||||
break;
|
||||
} else {
|
||||
process.setApprovalStatus(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -88,18 +89,19 @@ public class ApprovalProcessController extends BaseController {
|
|||
}
|
||||
}
|
||||
if (process.getMatterType() == 3) {
|
||||
gwglLog one = gwglLogService.lambdaQuery()
|
||||
List<gwglLog> list1 = gwglLogService.lambdaQuery()
|
||||
.eq(gwglLog::getApplyNo, process.getApprovalNo())
|
||||
.orderByDesc(gwglLog::getCreateTime)
|
||||
.last("LIMIT 1")
|
||||
.one();
|
||||
if (one != null) {
|
||||
if ((one.getCheckUserId() != null && one.getCheckUserId().equals(getUserId().toString()))
|
||||
|| (one.getChecker() != null && one.getChecker().equals(getNickname()))) {
|
||||
if (one.getCheckState() == 0) {
|
||||
process.setApprovalStatus(0);
|
||||
} else {
|
||||
process.setApprovalStatus(1);
|
||||
.orderByAsc(gwglLog::getCreateTime).list();
|
||||
if (list1 != null && !list1.isEmpty()) {
|
||||
for (gwglLog gwglLog : list1) {
|
||||
if ((gwglLog.getCheckUserId() != null && gwglLog.getCheckUserId().equals(getUserId().toString()))
|
||||
|| (gwglLog.getChecker() != null && gwglLog.getChecker().equals(getNickname()))) {
|
||||
if (gwglLog.getCheckState() == 0) {
|
||||
process.setApprovalStatus(0);
|
||||
break;
|
||||
} else {
|
||||
process.setApprovalStatus(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -107,18 +109,19 @@ public class ApprovalProcessController extends BaseController {
|
|||
}
|
||||
}
|
||||
if (process.getMatterType() == 4) {
|
||||
gwglLog one = gwglLogService.lambdaQuery()
|
||||
List<gwglLog> list1 = gwglLogService.lambdaQuery()
|
||||
.eq(gwglLog::getApplyNo, process.getApprovalNo())
|
||||
.orderByDesc(gwglLog::getCreateTime)
|
||||
.last("LIMIT 1")
|
||||
.one();
|
||||
if (one != null) {
|
||||
if ((one.getCheckUserId() != null && one.getCheckUserId().equals(getUserId().toString()))
|
||||
|| (one.getChecker() != null && one.getChecker().equals(getNickname()))) {
|
||||
if (one.getCheckState() == 0) {
|
||||
process.setApprovalStatus(0);
|
||||
} else {
|
||||
process.setApprovalStatus(1);
|
||||
.orderByAsc(gwglLog::getCreateTime).list();
|
||||
if (list1 != null && !list1.isEmpty()) {
|
||||
for (gwglLog gwglLog : list1) {
|
||||
if ((gwglLog.getCheckUserId() != null && gwglLog.getCheckUserId().equals(getUserId().toString()))
|
||||
|| (gwglLog.getChecker() != null && gwglLog.getChecker().equals(getNickname()))) {
|
||||
if (gwglLog.getCheckState() == 0) {
|
||||
process.setApprovalStatus(0);
|
||||
break;
|
||||
} else {
|
||||
process.setApprovalStatus(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -214,9 +217,9 @@ public class ApprovalProcessController extends BaseController {
|
|||
queryWrapper.ge("create_time", System.currentTimeMillis() - 30 * 24 * 60 * 60 * 1000L);
|
||||
}
|
||||
}
|
||||
if (approvalProcess.getProcessTitle() != null) {
|
||||
queryWrapper.like("process_title", approvalProcess.getProcessTitle())
|
||||
.or().like("submitter_name", approvalProcess.getProcessTitle());
|
||||
if (approvalProcess.getProcessTitles() != null) {
|
||||
queryWrapper.like("process_title", approvalProcess.getProcessTitles())
|
||||
.or().like("submitter_name", approvalProcess.getProcessTitles());
|
||||
}
|
||||
queryWrapper.eq("submitter_id", getLoginUser().getUserId());
|
||||
List<ApprovalProcess> list = approvalsProcessService.list(queryWrapper);
|
||||
|
|
|
@ -31,7 +31,7 @@ public class gwglLogController extends BaseController {
|
|||
public TableDataInfo query(@RequestBody gwglLog gwglLog){
|
||||
startPage();
|
||||
QueryWrapper<gwglLog> queryWrapper = new QueryWrapper<>(gwglLog);
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
// queryWrapper.orderByDesc("create_time");
|
||||
return getDataTable(gwglLogService.list(queryWrapper));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue