|
|
@@ -215,11 +215,10 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByKeys" resultType="com.sckw.system.model.KwsEnterprise">
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from kws_enterprise
|
|
|
+ select a.*
|
|
|
+ from kws_enterprise a
|
|
|
where del_flag = 0
|
|
|
- and approval = 1
|
|
|
+ and exists( select 1 from kws_ent_check_track b where a.id = b.ent_id and b.status = 0)
|
|
|
<if test="list != null and list.size() > 0">
|
|
|
and id in
|
|
|
<foreach collection="list" item="item" open="(" close=")" separator=",">
|