wujianwei
2026-01-15 89a782697ae5df39bbb27e896369cd076e4f2c9b
service/src/main/resources/mapper/cwgl/PayableBillManagementMapper.xml
@@ -65,7 +65,16 @@
        <if test="billGenerateDate != null "> and thisTab.bill_generate_date = #{billGenerateDate}</if>
        <if test="billSendDate != null "> and thisTab.bill_send_date = #{billSendDate}</if>
        <if test="billDueDate != null "> and thisTab.bill_due_date = #{billDueDate}</if>
        <if test="status != null  and status != ''"> and thisTab.status = #{status}</if>
        <if test="status != null and status != ''">
            <choose>
                <when test="status == -1">
                    and thisTab.status in (0, 1)
                </when>
                <when test="status > 0">
                    and thisTab.status = #{status}
                </when>
            </choose>
        </if>
        <if test="deleted != null "> and thisTab.deleted = #{deleted}</if>
    </sql>
@@ -90,6 +99,11 @@
        order by thisTab.id desc
    </select>
    <select id="selectPayableBillManagementBySystemNo" parameterType="String" resultMap="PayableBillManagementResult">
        <include refid="selectPayableBillManagementVo"/>
        where system_no = #{systemNo}
    </select>
    <!-- 新增 -->
    <insert id="insertPayableBillManagement" parameterType="com.ruoyi.cwgl.domain.PayableBillManagement"  useGeneratedKeys="true" keyProperty="id">
        insert into payable_bill_management