Просмотр исходного кода

[租赁物业合同][修改][mapper.xml]

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
3b85f141df
2 измененных файлов: 12 добавлений и 2 удалений
  1. +6
    -1
      mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml
  2. +6
    -1
      mallinkService/src/main/resources/mapper/WxRentContractMapper.xml

+ 6
- 1
mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml Просмотреть файл

@@ -42,6 +42,9 @@
<result column="rent_price" property="rentPrice"/>
<result column="subject_name" property="subjectName"/>
<result column="rent_start_type" property="rentStartType"/>
<result column="operation_type" property="operationType"/>
</resultMap>
<sql id="allColumns">
@@ -51,7 +54,7 @@
`shop_type`,`shop_id`,`updatetime`,`createtime`,`rent_area`,
`link_person`,`link_phone`,`pay_account`,`filename`,`lease`,`rent_contract_id`,
`start_date`,`end_date`,`apply_status`,`adjust_period`,`business_type`,adjust_ratio,`rent_info`,
`file_names`,price_unit,rent_price,subject_name,rent_start_type
`file_names`,price_unit,rent_price,subject_name,rent_start_type,`operation_type`
</sql>
<sql id="dynamicWhereConditions">
@@ -87,6 +90,7 @@
<if test=" null != startDate ">and `start_date` = #{startDate}</if>
<if test=" null != endDate ">and `end_date` = #{endDate}</if>
<if test=" null != rentShopType">and `rent_shop_type` = #{rentShopType}</if>
<if test=" null != operationType ">and `operation_type` = #{operationType}</if>
<if test=" null != ids ">
and id in
@@ -137,6 +141,7 @@
<if test=" null != applyStatus ">and rc.`apply_status` = #{applyStatus}</if>
<if test=" null != building and ''!= building">and b.id = #{building}</if>
<if test=" null != floor and ''!= floor">and f.id = #{floor}</if>
<if test=" null != operationType ">and `operation_type` = #{operationType}</if>
</where>

<if test=" null != sortColumns"> order by ${sortColumns} </if>


+ 6
- 1
mallinkService/src/main/resources/mapper/WxRentContractMapper.xml Просмотреть файл

@@ -51,6 +51,9 @@
<result column="rent_input_way" property="rentInputWay"/>
<result column="adjust_ratio_way" property="adjustRatioWay"/>
<result column="operation_type" property="operationType"/>
</resultMap>
@@ -62,7 +65,7 @@
`start_date`,`end_date`,
`apply_status`,`bank_name`,`rent_shop_type`,`fix_start_date`,`fix_end_date`,
`business_type`,`rent_info`, `file_names`,price_unit,rent_price,`subject_name`,rent_start_type,
`rent_input_way`,`adjust_ratio_way`
`rent_input_way`,`adjust_ratio_way`,`operation_type`
</sql>
@@ -98,6 +101,7 @@
<if test=" null != startDate ">and `start_date` = #{startDate}</if>
<if test=" null != endDate ">and `end_date` = #{endDate}</if>
<if test=" null != rentShopType ">and `rent_shop_type` = #{rentShopType}</if>
<if test=" null != operationType ">and `operation_type` = #{operationType}</if>
<if test=" null != ids ">
and id in
@@ -145,6 +149,7 @@
<if test=" null != applyStatus ">and rc.`apply_status` = #{applyStatus}</if>
<if test=" null != building and ''!= building">and b.id = #{building}</if>
<if test=" null != floor and ''!= floor">and f.id = #{floor}</if>
<if test=" null != operationType ">and `operation_type` = #{operationType}</if>
</where>
<if test=" null != sortColumns"> order by ${sortColumns} </if>
<if test=" null == sortColumns"> order by rc.id desc </if>


Загрузка…
Отмена
Сохранить