yxh
10 天以前 5f971ca24e695f6b733910f5eac567656c7edd3b
修改了收费器官查询
已修改2个文件
29 ■■■■■ 文件已修改
ruoyi-project/src/main/java/com/ruoyi/project/domain/ServiceDonorchargeorgan.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-project/src/main/resources/mapper/project/ServiceDonorchargeorganMapper.xml 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-project/src/main/java/com/ruoyi/project/domain/ServiceDonorchargeorgan.java
@@ -231,6 +231,13 @@
    private String organState;
    /**
     * 回款状态查询(已付/未付,非数据库字段)
     */
    @ApiModelProperty("回款状态查询:已付、未付")
    @TableField(exist = false)
    private String payStatus;
    /**
     * 器官状态
     */
    @ApiModelProperty("器管收费状态:0未收、1已收")
ruoyi-project/src/main/resources/mapper/project/ServiceDonorchargeorganMapper.xml
@@ -88,6 +88,17 @@
            <if test="hospitalno != null  and hospitalno != ''">and HospitalNo = #{hospitalno}</if>
            <if test="organno != null  and organno != ''">and OrganNo = #{organno}</if>
            <if test="organname != null  and organname != ''">and OrganName like concat('%', #{organname}, '%')</if>
            <if test="organState != null  and organState != ''">and organ_state = #{organState}</if>
            <if test="payStatus != null  and payStatus != ''">
                <choose>
                    <when test="payStatus == '已付'">
                        and organcharge is not null and (organcharge - IFNULL(amount, 0)) = 0
                    </when>
                    <when test="payStatus == '未付'">
                        and organcharge is not null and (organcharge - IFNULL(amount, 0)) &lt;&gt; 0
                    </when>
                </choose>
            </if>
            <if test="organcharge != null ">and organcharge = #{organcharge}</if>
            <if test="organtime != null ">and organtime = #{organtime}</if>
            <if test="chargeoperator != null  and chargeoperator != ''">and chargeoperator = #{chargeoperator}</if>
@@ -150,6 +161,17 @@
            <if test="hospitalno != null  and hospitalno != ''">and o.HospitalNo = #{hospitalno}</if>
            <if test="organno != null  and organno != ''">and o.OrganNo = #{organno}</if>
            <if test="organname != null  and organname != ''">and o.OrganName like concat('%', #{organname}, '%')</if>
            <if test="organState != null  and organState != ''">and o.organ_state = #{organState}</if>
            <if test="payStatus != null  and payStatus != ''">
                <choose>
                    <when test="payStatus == '已付'">
                        and o.organcharge is not null and (o.organcharge - IFNULL(o.amount, 0)) = 0
                    </when>
                    <when test="payStatus == '未付'">
                        and o.organcharge is not null and (o.organcharge - IFNULL(o.amount, 0)) &lt;&gt; 0
                    </when>
                </choose>
            </if>
            <if test="organcharge != null ">and o.organcharge = #{organcharge}</if>
            <if test="organtime != null ">and o.organtime = #{organtime}</if>
            <if test="chargeoperator != null  and chargeoperator != ''">and o.chargeoperator = #{chargeoperator}</if>