更新问题类型树增加字段
This commit is contained in:
parent
98e37b78b6
commit
d1dc45551a
@ -45,24 +45,30 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="selectMapListByParentParams" resultType="map">
|
<select id="selectMapListByParentParams" resultType="map">
|
||||||
select
|
select
|
||||||
work_type_id as 'id',
|
t.work_type_id as 'id',
|
||||||
name as 'name',
|
t.name as 'name',
|
||||||
sort as 'sort',
|
t.sort as 'sort',
|
||||||
parent_type_id as 'parentId'
|
t.parent_type_id as 'parentId',
|
||||||
from xhpc_work_type_dict
|
t.auto_send as 'autoSend',
|
||||||
where del_flag = 0 and status = 1
|
t.auto_run as 'autoRun',
|
||||||
|
t.measure,
|
||||||
|
t.user_id as 'userId',
|
||||||
|
u.user_name as 'userName'
|
||||||
|
from xhpc_work_type_dict t
|
||||||
|
left join xhpc_work_user u on u.work_user_id=t.user_id
|
||||||
|
where t.del_flag = 0 and t.status = 1
|
||||||
<if test="params.tenantId !=null and params.tenantId!=''">
|
<if test="params.tenantId !=null and params.tenantId!=''">
|
||||||
and tenant_id=#{params.tenantId}
|
and t.tenant_id=#{params.tenantId}
|
||||||
</if>
|
</if>
|
||||||
<choose>
|
<choose>
|
||||||
<when test="params.parentTypeId!=null and params.parentTypeId!='' ">
|
<when test="params.parentTypeId!=null and params.parentTypeId!='' ">
|
||||||
and parent_type_id=#{params.parentTypeId}
|
and t.parent_type_id=#{params.parentTypeId}
|
||||||
</when>
|
</when>
|
||||||
<otherwise>
|
<otherwise>
|
||||||
and (parent_type_id is null or parent_type_id='')
|
and (t.parent_type_id is null or t.parent_type_id='')
|
||||||
</otherwise>
|
</otherwise>
|
||||||
</choose>
|
</choose>
|
||||||
order by sort desc, work_type_id asc
|
order by t.sort desc, t.work_type_id asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user