数量检验修改

This commit is contained in:
haozq 2025-01-17 14:04:51 +08:00
parent 0d9a6c8cea
commit 6daf3ccd46
2 changed files with 4 additions and 3 deletions

View File

@ -40,9 +40,10 @@
</update>
<select id="getPageList" resultType="com.bonus.aqgqj.business.backstage.entity.SupApplyVo">
select spos.sup_name supName,spos.sup_id supId,count(spos.pro_id) proNum,spos.contract_id contractId,
if(CURRENT_DATE() between sc.start_time and sc.end_time,'已生效','未生效') status
if(CURRENT_DATE() BETWEEN sc.start_time and sc.end_time,'已生效', if(CURRENT_DATE() &lt; sc.start_time,'未生效','已失效')) status
from st_plan_out_sup spos
LEFT JOIN st_contract sc on sc.id=spos.contract_id
LEFT JOIN st_contract sc on sc.id=spos.contract_id
<where >
<if test="keyWord!=null and keyWord!=''">
and spos.sup_name like concat('%',#{keyWord},'%')

View File

@ -66,7 +66,7 @@
stc.is_active isActive, stc.creator,ifNULL(file.num,0) fileNum,
stc.create_time createTime, stc.updater,
stc.update_time updateTime, stc.remark,
if(CURRENT_DATE() between stc.start_time and stc.end_time,'已生效','未生效') status
if(CURRENT_DATE() BETWEEN stc.start_time and stc.end_time,'已生效', if(CURRENT_DATE() &lt; stc.start_time,'未生效','已失效')) status
from st_contract stc
left join(
select count(1) num,own_id from bm_file_upload file where model_table='st_contract' GROUP BY own_id