| | |
| | | <select id="getPage" resultType="org.springblade.modules.property.vo.PropertyChargeRecordVO"> |
| | | SELECT * FROM jczz_property_charge_record where is_deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <resultMap type="org.springblade.modules.property.dto.PropertyChargeRecordDTO" id="PropertyChargeRecordDTOResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="propertyId" column="property_id" /> |
| | | <result property="chargeId" column="charge_id" /> |
| | | <result property="no" column="no" /> |
| | | <result property="payUser" column="pay_user" /> |
| | | <result property="payTime" column="pay_time" /> |
| | | <result property="payFunc" column="pay_func" /> |
| | | <result property="payPrice" column="pay_price" /> |
| | | <result property="houseCode" column="house_code" /> |
| | | <result property="payContent" column="pay_content" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUser" column="create_user" /> |
| | | <result property="createDept" column="create_dept" /> |
| | | <result property="updateUser" column="update_user" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="status" column="status" /> |
| | | <result property="isDeleted" column="is_deleted" /> |
| | | <result property="startTime" column="start_time" /> |
| | | <result property="endTime" column="end_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPropertyChargeRecord"> |
| | | select |
| | | id, |
| | | property_id, |
| | | charge_id, |
| | | no, |
| | | pay_user, |
| | | pay_time, |
| | | pay_func, |
| | | pay_price, |
| | | house_code, |
| | | pay_content, |
| | | create_time, |
| | | create_user, |
| | | create_dept, |
| | | update_user, |
| | | update_time, |
| | | status, |
| | | is_deleted, |
| | | start_time, |
| | | end_time |
| | | from |
| | | jczz_property_charge_record |
| | | </sql> |
| | | |
| | | <select id="selectPropertyChargeRecordById" parameterType="long" resultMap="PropertyChargeRecordDTOResult"> |
| | | <include refid="selectPropertyChargeRecord"/> |
| | | where |
| | | id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectPropertyChargeRecordList" parameterType="org.springblade.modules.property.dto.PropertyChargeRecordDTO" resultMap="PropertyChargeRecordDTOResult"> |
| | | <include refid="selectPropertyChargeRecord"/> |
| | | <where> |
| | | <if test="id != null "> and id = #{id}</if> |
| | | <if test="propertyId != null and propertyId != ''"> and property_id = #{propertyId}</if> |
| | | <if test="chargeId != null and chargeId != ''"> and charge_id = #{chargeId}</if> |
| | | <if test="no != null and no != ''"> and no = #{no}</if> |
| | | <if test="payUser != null and payUser != ''"> and pay_user = #{payUser}</if> |
| | | <if test="payTime != null "> and pay_time = #{payTime}</if> |
| | | <if test="payFunc != null and payFunc != ''"> and pay_func = #{payFunc}</if> |
| | | <if test="payPrice != null "> and pay_price = #{payPrice}</if> |
| | | <if test="houseCode != null and houseCode != ''"> and house_code = #{houseCode}</if> |
| | | <if test="payContent != null and payContent != ''"> and pay_content = #{payContent}</if> |
| | | <if test="createTime != null "> and create_time = #{createTime}</if> |
| | | <if test="createUser != null "> and create_user = #{createUser}</if> |
| | | <if test="createDept != null "> and create_dept = #{createDept}</if> |
| | | <if test="updateUser != null "> and update_user = #{updateUser}</if> |
| | | <if test="updateTime != null "> and update_time = #{updateTime}</if> |
| | | <if test="status != null "> and status = #{status}</if> |
| | | <if test="isDeleted != null "> and is_deleted = #{isDeleted}</if> |
| | | <if test="startTime != null "> and start_time = #{startTime}</if> |
| | | <if test="endTime != null "> and end_time = #{endTime}</if> |
| | | </where> |
| | | </select> |
| | | </mapper> |