Commit 2393b0e2 authored by tianbo's avatar tianbo

优化检查报告sql

parent 0941f6f6
......@@ -691,10 +691,7 @@ LEFT JOIN (
<select id="countDeptByCompanyId" resultType="java.util.Map">
SELECT (SELECT count(1)
FROM cb_org_usr
WHERE biz_org_code LIKE
concat((SELECT biz_org_code FROM `cb_org_usr` WHERE sequence_nbr = t1.sequence_nbr),
'%'
)
WHERE biz_org_code LIKE concat(t1.biz_org_code, '%')
AND biz_org_type = 'DEPARTMENT'
AND parent_id = t1.sequence_nbr) count,
sequence_nbr
......
......@@ -175,4 +175,9 @@ public class DangerDto implements Serializable {
* 创建时间
*/
private Date createDate;
/**
* 流程id
*/
private String instanceId;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment