| | |
| | | <if test="category22 != null">category_22,</if> |
| | | <if test="chargeStart != null">charge_start,</if> |
| | | <if test="chargeEnd != null">charge_end,</if> |
| | | <if test="communityId != null">community_id</if> |
| | | <if test="communityId != null">community_id,</if> |
| | | <if test="frequency != null">frequency</if> |
| | | <if test="receiptYearMonth != null">receipt_year_month,</if> |
| | | <if test="receiptYear != null">receipt_year,</if> |
| | | <if test="pendingProblem != null">pending_problem,</if> |
| | | <if test="roomNumber != null">room_number</if> |
| | | </trim> VALUES |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | #{chargeTime}, |
| | |
| | | <if test="category22 != null">#{category22},</if> |
| | | <if test="chargeStart != null">#{chargeStart},</if> |
| | | <if test="chargeEnd != null">#{chargeEnd},</if> |
| | | <if test="communityId != null">#{communityId}</if> |
| | | <if test="communityId != null">#{communityId},</if> |
| | | <if test="frequency != null">#{frequency}</if> |
| | | <if test="receiptYearMonth != null">#{receiptYearMonth},</if> |
| | | <if test="receiptYear != null">#{receiptYear},</if> |
| | | <if test="pendingProblem != null">#{pendingProblem},</if> |
| | | <if test="roomNumber != null">#{roomNumber}</if> |
| | | </trim> |
| | | </insert> |
| | | <select id="queryPropertyWhiteListFlow" parameterType="Map" resultType="Map"> |
| | |
| | | room_id AS roomId, |
| | | property_address AS propertyAddress, |
| | | door_room_num AS doorRoomNum, |
| | | SUBSTRING_INDEX(door_room_num, '-', 1) AS floorNum, |
| | | SUBSTRING_INDEX(SUBSTRING_INDEX(door_room_num, '-', 2), '-', -1) AS unitNum, |
| | | SUBSTRING_INDEX(door_room_num, '-', -1) AS roomNum, |
| | | secondary_fee_type_cd AS secondaryFeeTypeCd, |
| | | charge_amount AS chargeAmount, |
| | | charger, |
| | |
| | | category_22 AS category22, |
| | | charge_start AS chargeStart, |
| | | charge_end AS chargeEnd, |
| | | community_id AS communityId |
| | | community_id AS communityId, |
| | | frequency, |
| | | SUBSTRING_INDEX(frequency, '-', -1) as order_fre |
| | | FROM |
| | | property_white_list_flow |
| | | <where> |
| | |
| | | <if test="endChargeTime != null"> |
| | | AND charge_time <= #{endChargeTime} |
| | | </if> |
| | | |
| | | <if test="frequencyLike != null"> |
| | | AND frequency like concat(#{frequencyLike},"%") |
| | | </if> |
| | | <!-- 房号查询 --> |
| | | <if test="roomId != null and roomId != ''"> |
| | | AND room_id = #{roomId} |
| | |
| | | <if test="secondaryFeeTypeCd != null and secondaryFeeTypeCd != ''"> |
| | | AND secondary_fee_type_cd = #{secondaryFeeTypeCd} |
| | | </if> |
| | | |
| | | <if test="invoice_receipt_no != null"> |
| | | AND invoice_receipt_no = #{invoiceReceiptNo} |
| | | </if> |
| | | <!-- 收费金额范围查询 --> |
| | | <if test="minChargeAmount != null"> |
| | | AND charge_amount >= #{minChargeAmount} |
| | |
| | | and community_id = #{communityId} |
| | | </if> |
| | | </where> |
| | | |
| | | <!-- 排序 --> |
| | | <if test="orderBy != null and orderBy != ''"> |
| | | ORDER BY ${orderBy} |
| | | </if> |
| | | <if test="orderBy == null"> |
| | | ORDER BY charge_time DESC |
| | | </if> |
| | | |
| | | order by order_fre desc,door_room_num,secondary_fee_type_cd,charge_start |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <update id="updatePropertyWhiteListFlow"> |
| | | update property_white_list_flow set frequency = #{frequency} where id = #{id} |
| | | </update> |
| | | </mapper> |