From b9cc263b8d1d31608a4c16cd157cc84b51e3d29d Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期五, 02 八月 2024 18:11:24 +0800 Subject: [PATCH] 变更 --- ruoyi-project/src/main/resources/mapper/project/ServiceDonorchargeorganMapper.xml | 86 ++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 81 insertions(+), 5 deletions(-) diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceDonorchargeorganMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceDonorchargeorganMapper.xml index 8be7cdc..984852b 100644 --- a/ruoyi-project/src/main/resources/mapper/project/ServiceDonorchargeorganMapper.xml +++ b/ruoyi-project/src/main/resources/mapper/project/ServiceDonorchargeorganMapper.xml @@ -6,8 +6,9 @@ <resultMap type="com.ruoyi.project.domain.ServiceDonorchargeorgan" id="ServiceDonorchargeorganResult"> <result property="id" column="ID"/> - <result property="id" column="ID"/> - <result property="donorchargelD" column="donorchargelD"/> + <result property="donorchargeid" column="donorchargeid"/> + <result property="paymentid" column="paymentid"/> + <result property="paymentno" column="paymentno"/> <result property="donorname" column="donorname"/> <result property="hospitalname" column="HospitalName"/> <result property="hospitalno" column="HospitalNo"/> @@ -26,11 +27,17 @@ <result property="createTime" column="create_time"/> <result property="updateBy" column="update_by"/> <result property="updateTime" column="update_time"/> + <result property="caseno" column="caseno"/> + <result property="name" column="name"/> + <result property="receiveTime" column="receive_time"/> + <result property="annexFiles" column="annex_files"/> </resultMap> <sql id="selectServiceDonorchargeorganVo"> select ID, - donorchargelD, + donorchargeid, + paymentid, + paymentno, InfoID, donorname, HospitalName, @@ -49,7 +56,11 @@ create_by, create_time, update_by, - update_time + update_time, + caseno, + name, + receive_time, + annex_files from service_donorchargeorgan </sql> @@ -58,7 +69,10 @@ <include refid="selectServiceDonorchargeorganVo"/> <where> <if test="infoid != null ">and InfoID = #{infoid}</if> - <if test="donorchargelD != null ">and donorchargelD = #{donorchargelD}</if> + <if test="receiveTime != null ">and receive_time = #{receiveTime}</if> + <if test="paymentid != null ">and paymentid = #{paymentid}</if> + <if test="paymentno != null ">and paymentno = #{paymentno}</if> + <if test="donorchargeid != null ">and donorchargeID = #{donorchargeid}</if> <if test="donorname != null and donorname != ''">and donorname like concat('%', #{donorname}, '%')</if> <if test="hospitalname != null and hospitalname != ''">and HospitalName like concat('%', #{hospitalname}, '%') @@ -77,4 +91,66 @@ </where> </select> + <select id="queryListBypaymentidIsNull" parameterType="com.ruoyi.project.domain.ServiceDonorchargeorgan" + resultMap="ServiceDonorchargeorganResult"> + <include refid="selectServiceDonorchargeorganVo"/> + <where> + paymentid IS NULL + <if test="infoid != null ">and InfoID = #{infoid}</if> + <if test="receiveTime != null ">and receive_time = #{receiveTime}</if> + <if test="paymentno != null ">and paymentno = #{paymentno}</if> + <if test="donorchargeid != null ">and donorchargeID = #{donorchargeid}</if> + <if test="donorname != null and donorname != ''">and donorname like concat('%', #{donorname}, '%')</if> + <if test="hospitalname != null and hospitalname != ''">and HospitalName like concat('%', #{hospitalname}, + '%') + </if> + <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="organcharge != null ">and organcharge = #{organcharge}</if> + <if test="organtime != null ">and organtime = #{organtime}</if> + <if test="chargeoperator != null and chargeoperator != ''">and chargeoperator = #{chargeoperator}</if> + <if test="amount != null ">and amount = #{amount}</if> + <if test="amounttime != null ">and amounttime = #{amounttime}</if> + <if test="amountoperator != null and amountoperator != ''">and amountoperator = #{amountoperator}</if> + <if test="chargestate != null ">and chargestate = #{chargestate}</if> + <if test="organchargedesc != null and organchargedesc != ''">and organchargedesc = #{organchargedesc}</if> + </where> + </select> + + <update id="updateDonorchargeorgan" parameterType="com.ruoyi.project.domain.ServiceDonorchargeorgan"> + update service_donorchargeorgan + <set> + <if test="infoid != null ">InfoID = #{infoid},</if> + <if test="receiveTime != null ">receive_time = #{receiveTime},</if> + <if test="paymentno != null ">paymentno = #{paymentno},</if> + <if test="donorchargeid != null ">donorchargeID = #{donorchargeid},</if> + <if test="donorname != null and donorname != ''">donorname=#{donorname},</if> + <if test="hospitalname != null and hospitalname != ''">HospitalName= #{hospitalname},</if> + <if test="hospitalno != null and hospitalno != ''">HospitalNo = #{hospitalno},</if> + <if test="organno != null and organno != ''">OrganNo = #{organno},</if> + <if test="organname != null and organname != ''">OrganName = #{organname},</if> + <if test="organcharge != null ">organcharge = #{organcharge},</if> + <if test="organtime != null ">organtime = #{organtime},</if> + <if test="chargeoperator != null and chargeoperator != ''">chargeoperator = #{chargeoperator},</if> + <if test="amount != null ">amount = #{amount},</if> + <if test="amounttime != null ">amounttime = #{amounttime},</if> + <if test="amountoperator != null and amountoperator != ''">amountoperator = #{amountoperator},</if> + <if test="chargestate != null ">chargestate = #{chargestate},</if> + <if test="organchargedesc != null and organchargedesc != ''">organchargedesc = #{organchargedesc},</if> + <if test="caseno != null and caseno != ''">caseno = #{caseno},</if> + <if test="name != null and name != ''">name = #{name},</if> + <if test="annexFiles != null and annexFiles != ''">annex_files = #{annexFiles},</if> + <if test="receiveTime != null">receive_time = #{receiveTime},</if> + paymentid = #{paymentid}, + update_time = sysdate() + </set> + where id = #{id} and del_flag=0 + </update> + + <select id="getListBySpStatChange" statementType="CALLABLE" + resultType="com.ruoyi.project.domain.SpStatChange"> + call `SP_STAT_CHANGE`(#{PAHOSPITALNO,mode=IN,jdbcType=VARCHAR},#{PACHAGEFLAG,mode=IN,jdbcType=VARCHAR}) + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3