修改删除语句逻辑

This commit is contained in:
yangjun 2023-10-26 09:23:30 +08:00
parent 4e7c6f6194
commit e3405ff747
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@
</insert>
<delete id="removeCfsj" parameterType="org.jeecg.modules.kc.ktgl.entity.KcKechengbiao">
select * from kc_kechengbiao where xqxn = #{xqxn} and id not in (
delete from kc_kechengbiao where xqxn = #{xqxn} and id not in (
select maxid from (
select kcbh,kcmc,skjs,rwbh,kkdw,kcxz,skdd,sksj,kkdwid,xq,jgh,jzglb,sfcj,xqxn,max(id) as maxid from
kc_kechengbiao t where t.xqxn = #{xqxn}