| | |
| | | <if test="endTime !=null "> |
| | | and t.end_time= #{endTime} |
| | | </if> |
| | | <if test="valid !=null and valid == 1"> |
| | | and t.end_time > now() |
| | | </if> |
| | | <if test="curTime !=null "> |
| | | and t.end_time > #{curTime} |
| | | and t.start_time < #{curTime} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | |
| | | </if> |
| | | <if test="paymentCycle !=null and paymentCycle != ''"> |
| | | and t.payment_cycle= #{paymentCycle} |
| | | </if> |
| | | <if test="billType !=null and billType != ''"> |
| | | and t.bill_type= #{billType} |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | |
| | | <if test="computingFormula !=null and computingFormula != ''"> |
| | | , t.computing_formula= #{computingFormula} |
| | | </if> |
| | | <if test="additionalAmount !=null and additionalAmount != ''"> |
| | | <if test="additionalAmount !=null and additionalAmount != '' or additionalAmount == 0"> |
| | | , t.additional_amount= #{additionalAmount} |
| | | </if> |
| | | <if test="squarePrice !=null and squarePrice != ''"> |
| | | <if test="squarePrice !=null and squarePrice != '' or squarePrice == 0"> |
| | | , t.square_price= #{squarePrice} |
| | | </if> |
| | | <if test="paymentCd !=null and paymentCd != ''"> |
| | |
| | | <if test="endTime !=null "> |
| | | and t.end_time= #{endTime} |
| | | </if> |
| | | <if test="valid !=null and valid == 1"> |
| | | and t.end_time > now() |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | |
| | | <if test="paymentCycle !=null and paymentCycle != ''"> |
| | | and t.payment_cycle= #{paymentCycle} |
| | | </if> |
| | | <if test="billType !=null and billType != ''"> |
| | | and t.bill_type= #{billType} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存费用配置信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveFeeConfig" parameterType="Map"> |
| | | insert into pay_fee_config( |
| | | fee_type_cd,computing_formula,additional_amount,status_cd,square_price,is_default,config_id,fee_flag,fee_name, |
| | | start_time,end_time,community_id,b_id,bill_type,payment_cd,payment_cycle |
| | | ) values ( |
| | | #{feeTypeCd},#{computingFormula},#{additionalAmount},'0',#{squarePrice},#{isDefault},#{configId}, |
| | | #{feeFlag},#{feeName},#{startTime},#{endTime},#{communityId},'-1',#{billType},#{paymentCd},#{paymentCycle} |
| | | ) |
| | | </insert> |
| | | |
| | | </mapper> |