java110
2021-08-05 87b25901ef5c2ae19e5e991b9762388b7742425c
java110-db/src/main/resources/mapper/fee/PrestoreFeeServiceDaoImplMapper.xml
old mode 100644 new mode 100755
@@ -11,9 +11,9 @@
    <!-- 保存预存费用信息 add by wuxw 2018-07-03 -->
    <insert id="savePrestoreFeeInfo" parameterType="Map">
        insert into prestore_fee(
prestore_fee_amount,prestore_fee_obj_type,prestore_fee_id,remark,state,community_id,prestore_fee_type,room_id
prestore_fee_amount,reason,prestore_fee_obj_type,prestore_fee_id,remark,state,community_id,prestore_fee_type,room_id
) values (
#{prestoreFeeAmount},#{prestoreFeeObjType},#{prestoreFeeId},#{remark},#{state},#{communityId},#{prestoreFeeType},#{roomId}
#{prestoreFeeAmount},#{reason},#{prestoreFeeObjType},#{prestoreFeeId},#{remark},#{state},#{communityId},#{prestoreFeeType},#{roomId}
)
    </insert>
@@ -21,11 +21,14 @@
    <!-- 查询预存费用信息 add by wuxw 2018-07-03 -->
    <select id="getPrestoreFeeInfo" parameterType="Map" resultType="Map">
        select  t.prestore_fee_amount,t.prestore_fee_amount prestoreFeeAmount,t.prestore_fee_obj_type,t.prestore_fee_obj_type prestoreFeeObjType,t.prestore_fee_id,t.prestore_fee_id prestoreFeeId,t.remark,t.status_cd,t.status_cd statusCd,t.state,t.community_id,t.community_id communityId,t.prestore_fee_type,t.prestore_fee_type prestoreFeeType,t.room_id,t.room_id roomId
        select  t.prestore_fee_amount,t.prestore_fee_amount prestoreFeeAmount,t.reason,t.prestore_fee_obj_type,t.prestore_fee_obj_type prestoreFeeObjType,t.prestore_fee_id,t.prestore_fee_id prestoreFeeId,t.remark,t.status_cd,t.status_cd statusCd,t.state,t.community_id,t.community_id communityId,t.prestore_fee_type,t.prestore_fee_type prestoreFeeType,t.room_id,t.room_id roomId
from prestore_fee t 
where 1 =1 
<if test="prestoreFeeAmount !=null and prestoreFeeAmount != ''">
   and t.prestore_fee_amount= #{prestoreFeeAmount}
</if>
<if test="reason !=null and reason != ''">
   and t.reason= #{reason}
</if> 
<if test="prestoreFeeObjType !=null and prestoreFeeObjType != ''">
   and t.prestore_fee_obj_type= #{prestoreFeeObjType}
@@ -70,6 +73,9 @@
<if test="prestoreFeeAmount !=null and prestoreFeeAmount != ''">
, t.prestore_fee_amount= #{prestoreFeeAmount}
</if> 
<if test="reason !=null and reason != ''">
, t.reason= #{reason}
</if>
<if test="prestoreFeeObjType !=null and prestoreFeeObjType != ''">
, t.prestore_fee_obj_type= #{prestoreFeeObjType}
</if> 
@@ -102,6 +108,9 @@
<if test="prestoreFeeAmount !=null and prestoreFeeAmount != ''">
   and t.prestore_fee_amount= #{prestoreFeeAmount}
</if> 
<if test="reason !=null and reason != ''">
   and t.reason= #{reason}
</if>
<if test="prestoreFeeObjType !=null and prestoreFeeObjType != ''">
   and t.prestore_fee_obj_type= #{prestoreFeeObjType}
</if>