修改删除语句逻辑
This commit is contained in:
parent
4e7c6f6194
commit
e3405ff747
|
@ -89,7 +89,7 @@
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<delete id="removeCfsj" parameterType="org.jeecg.modules.kc.ktgl.entity.KcKechengbiao">
|
<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 maxid from (
|
||||||
select kcbh,kcmc,skjs,rwbh,kkdw,kcxz,skdd,sksj,kkdwid,xq,jgh,jzglb,sfcj,xqxn,max(id) as 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}
|
kc_kechengbiao t where t.xqxn = #{xqxn}
|
||||||
|
|
Loading…
Reference in New Issue