瀏覽代碼

[合同管理][修改][未签约状态下其他状态不计算]

release_toaliyun_real
gongbiao 8 年之前
父節點
當前提交
94f0e88cc2
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      mallinkService/src/main/resources/mapper/WxRentContractMapper.xml

+ 3
- 3
mallinkService/src/main/resources/mapper/WxRentContractMapper.xml 查看文件

@@ -97,15 +97,15 @@
</select> </select>
<select id="queryRentContractEndSoonStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract"> <select id="queryRentContractEndSoonStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract">
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and DATEDIFF(rental_end_date,now()) &lt;= 30
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=1 and DATEDIFF(rental_end_date,now()) &lt;= 30
</select> </select>
<select id="queryRentContractPaidStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract"> <select id="queryRentContractPaidStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract">
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and rental_start_date &lt;= now() and rental_end_date >= now()
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=1 and rental_start_date &lt;= now() and rental_end_date >= now()
</select> </select>
<select id="queryRentContractEndStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract"> <select id="queryRentContractEndStatus" resultType="int" parameterType="com.iformall.domain.po.WxRentContract">
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and rental_end_date &lt;now()
select count(id) from wx_rent_contract where tenant_id=#{tenantId} and status!=1 and rental_end_date &lt;now()
</select> </select>
<update id="updateRentContractEndSoonStatus" parameterType="com.iformall.domain.po.WxRentContract"> <update id="updateRentContractEndSoonStatus" parameterType="com.iformall.domain.po.WxRentContract">


Loading…
取消
儲存