|
@@ -1,126 +0,0 @@
|
|
|
-<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-<mapper namespace="com.dayou.mapper.HouseGuarantyTargetMapper">
|
|
|
-
|
|
|
- <resultMap id="targetMap" type="com.dayou.entity.HouseGuarantyTarget">
|
|
|
- <result column="id" property="id" />
|
|
|
- <result column="dId" property="docId" />
|
|
|
- <result column="tid" property="tid" />
|
|
|
- <result column="is_part" property="isPart" />
|
|
|
- <result column="has_building_year" property="hasBuildingYear" />
|
|
|
- <result column="building_year" property="buildingYear" />
|
|
|
- <result column="land_certificate_type" property="landCertificateType" />
|
|
|
- <result column="land_use_to" property="landUseTo" />
|
|
|
- <result column="land_expire_date" property="landExpireDate" />
|
|
|
- <result column="share_acreage1" property="shareAcreage1" />
|
|
|
- <result column="is_layer" property="isLayer" />
|
|
|
- <result column="has_layer_image" property="hasLayerImage" />
|
|
|
- <result column="floor1_acreage" property="floor1Acreage" />
|
|
|
- <result column="floor2_acreage" property="floor2Acreage" />
|
|
|
- <result column="floor3_acreage" property="floor3Acreage" />
|
|
|
- <result column="is_address_same" property="isAddressSame" />
|
|
|
- <result column="is_date_time_same" property="isDateTimeSame" />
|
|
|
- <result column="is_address_certificate" property="isAddressCertificate" />
|
|
|
- <result column="is_building_reduce_value" property="isBuildingReduceValue" />
|
|
|
- <result column="has_origin_certificate" property="hasOriginCertificate" />
|
|
|
- <result column="is_promise" property="isPromise" />
|
|
|
- <result column="has_land_use_right_contract" property="hasLandUseRightContract" />
|
|
|
- <result column="is_rent_out" property="isRentOut" />
|
|
|
- <result column="has_rent_out_contract" property="hasRentOutContract" />
|
|
|
- <result column="is_rent_limit" property="isRentLimit" />
|
|
|
- <result column="not_rent_limit_reason" property="notRentLimitReason" />
|
|
|
- <result column="rent_limit_reason" property="rentLimitReason" />
|
|
|
- <result column="rent_end_date" property="rentEndDate" />
|
|
|
- <result column="rent_start_date" property="rentStartDate" />
|
|
|
- <result column="rent_money" property="rentMoney" />
|
|
|
- <result column="rent_user" property="rentUser" />
|
|
|
- <result column="has_pledge" property="hasPledge" />
|
|
|
- <result column="pledge_type" property="pledgeType" />
|
|
|
- <result column="pledge_user" property="pledgeUser" />
|
|
|
- <result column="pledge_value" property="pledgeValue" />
|
|
|
- <result column="same_pledge_continue" property="samePledgeContinue" />
|
|
|
- <result column="new_pledge_user" property="newPledgeUser" />
|
|
|
- <result column="high_pledge_not_expire" property="highPledgeNotExpire" />
|
|
|
- <result column="same_pledge_high" property="samePledgeHigh" />
|
|
|
- <result column="first_money" property="firstMoney" />
|
|
|
- <result column="debt_money" property="debtMoney" />
|
|
|
- <result column="is_take_out_first_money" property="isTakeOutFirstMoney" />
|
|
|
- <result column="is_costing_share_method" property="isCostingShareMethod" />
|
|
|
- <result column="no_building_house_nos" property="noBuildingHouseNos" />
|
|
|
- <result column="explore_date" property="exploreDate" />
|
|
|
- <result column="land_year_lower_house_year" property="landYearLowerHouseYear" />
|
|
|
- <result column="is_promise_file" property="isPromiseFile" />
|
|
|
- <result column="is_in_cheng_du" property="isInChengDu" />
|
|
|
- <result column="house_get_land_info" property="houseGetLandInfo" />
|
|
|
- <result column="land_use_type" property="landUseType" />
|
|
|
- <result column="has_land_use_right" property="hasLandUseRight" />
|
|
|
- <result column="has_living_right" property="hasLivingRight" />
|
|
|
- <result column="land_use_right_from" property="landUseRightFrom" />
|
|
|
- <result column="land_use_right_to" property="landUseRightTo" />
|
|
|
- <collection property="aims" select="getAims" ofType="com.dayou.entity.HouseGuarantyAim"
|
|
|
- column="{dId=dId,tid=tid}" />
|
|
|
- </resultMap>
|
|
|
-
|
|
|
- <select id="getList" parameterType="java.lang.Long" resultMap="targetMap">
|
|
|
- select id,
|
|
|
- #{docId} as dId,
|
|
|
- tid,
|
|
|
- is_part,
|
|
|
- has_building_year,
|
|
|
- building_year,
|
|
|
- land_certificate_type,
|
|
|
- land_use_to,
|
|
|
- land_expire_date,
|
|
|
- share_acreage1,
|
|
|
- is_layer,
|
|
|
- has_layer_image,
|
|
|
- floor1_acreage,
|
|
|
- floor2_acreage,
|
|
|
- floor3_acreage,
|
|
|
- is_address_same,
|
|
|
- is_date_time_same,
|
|
|
- is_address_certificate,
|
|
|
- is_building_reduce_value,
|
|
|
- has_origin_certificate,
|
|
|
- is_promise,
|
|
|
- has_land_use_right_contract,
|
|
|
- is_rent_out,
|
|
|
- has_rent_out_contract,
|
|
|
- is_rent_limit,
|
|
|
- not_rent_limit_reason,
|
|
|
- rent_limit_reason,
|
|
|
- rent_end_date,
|
|
|
- rent_start_date,
|
|
|
- rent_money,
|
|
|
- rent_user,
|
|
|
- has_pledge,
|
|
|
- pledge_user,
|
|
|
- pledge_type,
|
|
|
- pledge_value,
|
|
|
- same_pledge_continue,
|
|
|
- new_pledge_user,
|
|
|
- high_pledge_not_expire,
|
|
|
- same_pledge_high,
|
|
|
- first_money,
|
|
|
- debt_money,
|
|
|
- is_take_out_first_money,
|
|
|
- is_costing_share_method,
|
|
|
- no_building_house_nos,
|
|
|
- explore_date,
|
|
|
- land_year_lower_house_year,
|
|
|
- is_promise_file,
|
|
|
- is_in_cheng_du,
|
|
|
- house_get_land_info,
|
|
|
- land_use_type,
|
|
|
- has_land_use_right,
|
|
|
- has_living_right,
|
|
|
- land_use_right_from,
|
|
|
- land_use_right_to
|
|
|
- from house_guaranty_target where doc_id = #{docId} and delete_status = 0
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="getAims" resultType="com.dayou.entity.HouseGuarantyAim">
|
|
|
- select * from house_guaranty_aim where doc_id = #{dId} and tid = #{tid} and delete_status = 0
|
|
|
- </select>
|
|
|
-
|
|
|
-</mapper>
|