更新问题类型树增加字段

This commit is contained in:
panshuling321 2022-09-26 16:13:12 +08:00
parent 98e37b78b6
commit d1dc45551a

View File

@ -45,24 +45,30 @@
</select>
<select id="selectMapListByParentParams" resultType="map">
select
work_type_id as 'id',
name as 'name',
sort as 'sort',
parent_type_id as 'parentId'
from xhpc_work_type_dict
where del_flag = 0 and status = 1
t.work_type_id as 'id',
t.name as 'name',
t.sort as 'sort',
t.parent_type_id as 'parentId',
t.auto_send as 'autoSend',
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!=''">
and tenant_id=#{params.tenantId}
and t.tenant_id=#{params.tenantId}
</if>
<choose>
<when test="params.parentTypeId!=null and params.parentTypeId!='' ">
and parent_type_id=#{params.parentTypeId}
and t.parent_type_id=#{params.parentTypeId}
</when>
<otherwise>
and (parent_type_id is null or parent_type_id='')
and (t.parent_type_id is null or t.parent_type_id='')
</otherwise>
</choose>
order by sort desc, work_type_id asc
order by t.sort desc, t.work_type_id asc
</select>