Skip to content

[错误报告]: 描述 在达梦数据库中 查询 SQL语句没问题 代码运行 SQL语句写在xml中 如下: #6854

Open
@jet-789

Description

@jet-789

确认

  • 我使用的版本是最新版, 并且使用插件确认过项目里无依赖版本冲突
  • 我已经在 issue 中搜索过, 确认问题没有被提出过
  • 我已经修改标题, 将标题中的 描述 替换为遇到的问题(不得删除 描述 前面的部分)

当前程序版本

3.5.3.2

问题描述

Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, Error SQL: select * from (
select
concat(?,ROWNUM) as "key",
tmp."value"
from
(select
case when t0.IS_CHOOSED = 1 and t.description not like '无%' then '√'
when t0.IS_CHOOSED = 1 and t.description like '无%' and length(t.description) < 3 then '无'
else then '' end as "value"
from
SECURITY_MEASURE_BD_TAB t0
join
SECURITY_MEASURE_TAB t on t.OBJID = t0.MEASURE_ID
where t.WO_NO = ?
and t."type" = 'OPR'

            and t.SEC_CODE = '1'
         
         
         
     
    order by t.SORT_NUM
    ) tmp)tab where tab."value" in ('√','无')

详细堆栈日志

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions