fuliqi
2024-08-21 db86411bb09d9a3450d14a91125adb26a53cc191
ycl-server/src/main/resources/mapper/zgyw/TContractMapper.xml
@@ -41,12 +41,12 @@
        from t_contract tc
        left join t_calculate_rule tcr on tc.id = tcr.contract_id
        <where>
            tc.deleted =0 and #{time} between tc.start_time and tc.end_time
            tc.deleted =0 and #{date} between tc.start_time and tc.end_time
            <if test="ruleName !=null and ruleName!=''">
                tcr.rule_name = #{ruleName}
                and tcr.rule_name = #{ruleName}
            </if>
            <if test="ruleCondition !=null and ruleCondition!=''">
                tcr.rule_condition = #{ruleCondition}
                and tcr.rule_condition = #{ruleCondition}
            </if>
        </where>