commit
This commit is contained in:
+36
-2
@@ -378,8 +378,42 @@ public class TeacherCongressDelegatePushController {
|
|||||||
if (allocation == null) {
|
if (allocation == null) {
|
||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
Sql sql = Sqls.create("""
|
Sql sql = Sqls.create("""
|
||||||
|
SELECT
|
||||||
|
info.*,
|
||||||
|
ins.id AS instanceId,
|
||||||
|
ins.businessNo,
|
||||||
|
ins.state instanceState,
|
||||||
|
ins.variable instanceVariable,
|
||||||
|
ins.processDefineId instanceProcessDefineId,
|
||||||
|
t.id taskId,
|
||||||
|
t.taskName AS taskKey,
|
||||||
|
t.displayName taskName,
|
||||||
|
t.taskType,
|
||||||
|
t.performType taskPerformType,
|
||||||
|
t.taskState,
|
||||||
|
t.finishTime,
|
||||||
|
t.taskParentId,
|
||||||
|
t.variable taskVariable,
|
||||||
|
IFNULL(GROUP_CONCAT(DISTINCT nt.displayName),'结束') curTaskName,
|
||||||
|
IF(rt.id IS NOT NULL, 1, 0) AS canRevoke
|
||||||
|
FROM
|
||||||
|
wf_process_task t
|
||||||
|
LEFT JOIN wf_process_instance ins ON ins.id = t.processInstanceId
|
||||||
|
LEFT JOIN teacher_congress_delegate_push info ON info.id = ins.businessNo
|
||||||
|
LEFT JOIN wf_process_task_actor ta ON ta.processTaskId = t.id
|
||||||
|
LEFT JOIN wf_process_task nt ON nt.processInstanceId = ins.id AND nt.taskState = 10
|
||||||
|
LEFT JOIN wf_process_task rt ON rt.processInstanceId = ins.id AND rt.taskParentId = t.id AND rt.taskState = 10
|
||||||
|
$condition
|
||||||
|
""");
|
||||||
|
Cnd cnd = Cnd.NEW();
|
||||||
|
cnd.and("t.taskName", "=", "0cacd1e7-7bb2-47dd-818b-6a73062e0c62");
|
||||||
|
cnd.and("t.taskState", "=", ProcessTaskStateEnum.DOING.getCode());
|
||||||
|
cnd.andEX("info.sessionId", "=", sessionId);
|
||||||
|
cnd.andEX("info.unionId", "=", unionId);
|
||||||
|
cnd.andEX("info.representativeType", "=", "正式代表");
|
||||||
|
cnd.groupBy("t.id");
|
||||||
|
/* Sql sql = Sqls.create("""
|
||||||
SELECT
|
SELECT
|
||||||
info.*,
|
info.*,
|
||||||
ins.id AS instanceId,
|
ins.id AS instanceId,
|
||||||
@@ -409,7 +443,7 @@ public class TeacherCongressDelegatePushController {
|
|||||||
cnd.andEX("info.sessionId", "=", sessionId);
|
cnd.andEX("info.sessionId", "=", sessionId);
|
||||||
cnd.andEX("info.unionId", "=", unionId);
|
cnd.andEX("info.unionId", "=", unionId);
|
||||||
cnd.andEX("info.representativeType", "=", "正式代表");
|
cnd.andEX("info.representativeType", "=", "正式代表");
|
||||||
cnd.and("ins.state", "=", ProcessTaskStateEnum.FINISHED.getCode());
|
cnd.and("ins.state", "=", ProcessTaskStateEnum.FINISHED.getCode());*/
|
||||||
sql.setCondition(cnd);
|
sql.setCondition(cnd);
|
||||||
List<NutMap> writeList = baseService.listMap(sql);
|
List<NutMap> writeList = baseService.listMap(sql);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user