wujianwei
2025-09-28 fe9ae222e5823f85d14cfe6f7c825172b0d43830
service/src/main/resources/mapper/cwgl/EstimatedReceivableMapper.xml
@@ -40,7 +40,8 @@
        <if test="dispatchNo != null  and dispatchNo != ''"> and thisTab.dispatch_no = #{dispatchNo}</if>
        <if test="customerName != null  and customerName != ''"> and  thisTab.customer_name like concat('%', #{customerName}, '%')</if>
        <if test="projectName != null  and projectName != ''"> and  thisTab.project_name like concat('%', #{projectName}, '%')</if>
        <if test="orderDate != null "> and thisTab.order_date = #{orderDate}</if>
        <if test="orderDateBegin != null and orderDateBegin!='' and orderDateEnd != null and orderDateEnd!='' "> and thisTab.order_date between #{orderDateBegin} and #{orderDateEnd}</if>
        <if test="feeName != null  and feeName != ''"> and  thisTab.fee_name like concat('%', #{feeName}, '%')</if>
        <if test="estimatedAmount != null "> and thisTab.estimated_amount = #{estimatedAmount}</if>
        <if test="currency != null  and currency != ''"> and thisTab.currency = #{currency}</if>
@@ -191,6 +192,18 @@
        where id = #{item.id}
        </foreach>
    </update>
    <update id="updateEstimatedReceivableBillStatus">
        UPDATE estimated_receivable
        SET related_bill_status = #{status}
        <if test="billName !=null and billName != ''">
            , related_bill_name = #{billName}
        </if>
        WHERE dispatch_no IN
        <foreach item="item" collection="list" open="(" separator="," close=")">
            #{item}
        </foreach>
    </update>
    <!--删除-->
    <delete id="deleteEstimatedReceivableById" parameterType="Integer">