服务指令-处理指令包生成工单时的语句错误
This commit is contained in:
parent
3e2b71e55b
commit
1b17c6ffa0
|
|
@ -29,30 +29,31 @@
|
|||
</select>
|
||||
|
||||
<select id="getSubDirectiveList" resultType="com.nu.modules.biz.order.entity.DirectiveOrderSub">
|
||||
select
|
||||
b.instruction_tag_id as instructionTagId,
|
||||
e.instruction_name as instructionTagName,
|
||||
b.category_id as categoryId,
|
||||
SELECT
|
||||
b.instruction_tag_id AS instructionTagId,
|
||||
e.instruction_name AS instructionTagName,
|
||||
b.category_id AS categoryId,
|
||||
c.category_name AS categoryName,
|
||||
b.type_id as typeId,
|
||||
d.type_name as typeName,
|
||||
b.id as directiveId,
|
||||
b.directive_name as directiveName,
|
||||
b.preview_file as previewFile,
|
||||
b.preview_file_small as previewFileSmall,
|
||||
b.mp3_file as mp3File,
|
||||
b.mp4_file as mp4File,
|
||||
b.service_duration as serviceDuration,
|
||||
b.service_content as serviceContent,
|
||||
b.timeout_duration as timeoutDuration
|
||||
from nu_config_package_directive a
|
||||
left join nu_config_service_directive b on a.directive_id = b.id
|
||||
left join nu_config_service_category c on b.category_id = c.id
|
||||
left join nu_config_service_type d on b.type_id = d.id
|
||||
left join nu_config_service_instruction_tag e on b.instruction_tag_id = e.id
|
||||
b.type_id AS typeId,
|
||||
d.type_name AS typeName,
|
||||
b.id AS directiveId,
|
||||
b.directive_name AS directiveName,
|
||||
b.preview_file AS previewFile,
|
||||
b.preview_file_small AS previewFileSmall,
|
||||
b.mp3_file AS mp3File,
|
||||
b.mp4_file AS mp4File,
|
||||
b.service_duration AS serviceDuration,
|
||||
b.service_content AS serviceContent,
|
||||
b.timeout_duration AS timeoutDuration
|
||||
FROM nu_config_directive_package p
|
||||
INNER JOIN nu_config_package_directive a ON p.id = a.package_id
|
||||
LEFT JOIN nu_config_service_directive b ON a.directive_id = b.id
|
||||
LEFT JOIN nu_config_service_category c ON b.category_id = c.id
|
||||
LEFT JOIN nu_config_service_type d ON b.type_id = d.id
|
||||
LEFT JOIN nu_config_service_instruction_tag e ON b.instruction_tag_id = e.id
|
||||
where a.package_id = #{packageId}
|
||||
and a.del_flag = '0'
|
||||
and a.iz_enabled = 'Y'
|
||||
and p.del_flag = '0'
|
||||
and p.iz_enabled = 'Y'
|
||||
and b.del_flag = '0'
|
||||
and b.iz_enabled = 'Y'
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue