|
|
|
@@ -40,6 +40,8 @@ |
|
|
|
<result column="rent_contract_agile_fees_type" jdbcType="INTEGER" property="rentContractAgileFeesType"/> |
|
|
|
<result column="property_contract_id" jdbcType="BIGINT" property="propertyContractId"/> |
|
|
|
<result column="parent_bill_id" jdbcType="BIGINT" property="parentBillId"/> |
|
|
|
<result column="virtual_compose_id" jdbcType="BIGINT" property="virtualComposeId"/> |
|
|
|
<result column="parent_virtual_compose_id" jdbcType="BIGINT" property="parentVirtualComposeId"/> |
|
|
|
<result column="energy_reading_calcuteId" jdbcType="BIGINT" property="energyReadingCalcuteId" /> |
|
|
|
<result column="energy_reading_id" jdbcType="BIGINT" property="energyReadingId" /> |
|
|
|
<result column="extra_create_from" jdbcType="INTEGER" property="extraCreateFrom" /> |
|
|
|
@@ -52,8 +54,8 @@ |
|
|
|
`id`,`tenant_id`,`parent_tenant_id`,`shop_id`,`createtime`,`create_by`,`create_by_name`,`updatetime`,`update_by`,`update_by_name`, |
|
|
|
`price_detail`,`need_pay`,`receive_pay`,`pay`,`bill_type`,`pay_way`,`pay_date`,`set_off`,`use_money`,`starttime`,`endtime`,`status`,`energy_fees_id`,`return_pay`, |
|
|
|
`bill_remark`,`last_owe_call_time`,`last_owe_call_user`,`bussiness_manage_fee_need_pay`,`operating_manage_fee_need_pay`,`receive_date`,`period`, |
|
|
|
`is_preview`,`shop_info`,`rent_contract_id`,`rent_contract_agile_fees_type`,`property_contract_id`,`parent_bill_id`,`energy_reading_calcuteId`,`energy_reading_id`,`extra_create_from`,`rent_area`, |
|
|
|
`can_edit`,`cus_name` |
|
|
|
`is_preview`,`shop_info`,`rent_contract_id`,`rent_contract_agile_fees_type`,`property_contract_id`,`parent_bill_id`,`virtual_compose_id`,`parent_virtual_compose_id`, |
|
|
|
`energy_reading_calcuteId`,`energy_reading_id`,`extra_create_from`,`rent_area`,`can_edit`,`cus_name` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -71,6 +73,8 @@ |
|
|
|
<if test=" null != rentContractAgileFeesType ">and `rent_contract_agile_fees_type` = #{rentContractAgileFeesType}</if> |
|
|
|
<if test=" null != propertyContractId ">and `property_contract_id` = #{propertyContractId}</if> |
|
|
|
<if test=" null != parentBillId ">and `parent_bill_id` = #{parentBillId}</if> |
|
|
|
<if test=" null != virtualComposeId ">and `virtual_compose_id` = #{virtualComposeId}</if> |
|
|
|
<if test=" null != parentVirtualComposeId ">and `parent_virtual_compose_id` = #{parentVirtualComposeId}</if> |
|
|
|
<if test=" null != isPreview ">and `is_preview` = #{isPreview}</if> |
|
|
|
<if test=" null != starttime">and `starttime` >= #{starttime}</if> |
|
|
|
<if test=" null != endtime">and `endtime` <= #{endtime}</if> |
|
|
|
@@ -233,7 +237,8 @@ |
|
|
|
starttime, |
|
|
|
endtime, |
|
|
|
receive_date, |
|
|
|
parent_bill_id |
|
|
|
virtual_compose_id, |
|
|
|
parent_virtual_compose_id |
|
|
|
from wx_all_bill |
|
|
|
<include refid="dynamicWhereConditions"/> |
|
|
|
group by starttime,endtime |
|
|
|
@@ -391,7 +396,8 @@ |
|
|
|
#{item.starttime},#{item.endtime},#{item.status},#{item.energyFeesId},#{item.returnPay},#{item.billRemark}, |
|
|
|
#{item.lastOweCallTime},#{item.lastOweCallUser},#{item.bussinessManageFeeNeedPay},#{item.operatingManageFeeNeedPay}, |
|
|
|
#{item.receiveDate},#{item.period},#{item.isPreview},#{item.shopInfo},#{item.rentContractId},#{item.rentContractAgileFeesType},#{item.propertyContractId}, |
|
|
|
#{item.parentBillId},#{item.energyReadingCalcuteId},#{item.energyReadingId},#{item.extraCreateFrom},#{item.rentArea},#{item.canEdit},#{item.cusName} |
|
|
|
#{item.parentBillId},#{item.virtualComposeId},#{item.parentVirtualComposeId},#{item.energyReadingCalcuteId}, |
|
|
|
#{item.energyReadingId},#{item.extraCreateFrom},#{item.rentArea},#{item.canEdit},#{item.cusName} |
|
|
|
) |
|
|
|
</foreach> |
|
|
|
</insert> |
|
|
|
|