@@ -19,7 +19,7 @@
<select id="queryByComAndBizCode" resultType="com.jeeplus.test.mould.domain.SysSerialnumTpl">
select a.*
from sys_serialnum_tpl a
- where a.company_id = #{id} and a.biz_code = #{bizCode}
+ where a.company_id = #{id} and a.biz_code = #{bizCode} and a.del_flag = 0
order by update_date desc
limit 1
</select>