|
@@ -0,0 +1,53 @@
|
|
|
+<?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="cn.com.ty.lift.business.capital.dao.mapper.CapitalRepairMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="cn.com.ty.lift.business.capital.dao.entity.CapitalRepair" >
|
|
|
+ <id column="id" property="id" jdbcType="BIGINT" />
|
|
|
+ <result column="mt_company_id" property="mtCompanyId" jdbcType="BIGINT" />
|
|
|
+ <result column="pp_company_id" property="ppCompanyId" jdbcType="BIGINT" />
|
|
|
+ <result column="pp_contact_id" property="ppContactId" jdbcType="BIGINT" />
|
|
|
+ <result column="code" property="code" jdbcType="CHAR" />
|
|
|
+ <result column="name" property="name" jdbcType="VARCHAR" />
|
|
|
+ <result column="province_code" property="provinceCode" jdbcType="CHAR" />
|
|
|
+ <result column="province" property="province" jdbcType="VARCHAR" />
|
|
|
+ <result column="city_code" property="cityCode" jdbcType="CHAR" />
|
|
|
+ <result column="city" property="city" jdbcType="VARCHAR" />
|
|
|
+ <result column="district_code" property="districtCode" jdbcType="CHAR" />
|
|
|
+ <result column="district" property="district" jdbcType="VARCHAR" />
|
|
|
+ <result column="address" property="address" jdbcType="VARCHAR" />
|
|
|
+ <result column="num" property="num" jdbcType="INTEGER" />
|
|
|
+ <result column="actual_num" property="actualNum" jdbcType="INTEGER" />
|
|
|
+ <result column="start_date" property="startDate" jdbcType="DATE" />
|
|
|
+ <result column="end_date" property="endDate" jdbcType="DATE" />
|
|
|
+ <result column="status" property="status" jdbcType="TINYINT" />
|
|
|
+ <result column="push_flag" property="pushFlag" jdbcType="VARCHAR" />
|
|
|
+ <result column="creator_id" property="creatorId" jdbcType="BIGINT" />
|
|
|
+ <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="update_id" property="updateId" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="region_id" property="regionId" jdbcType="BIGINT" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
+ id, mt_company_id, pp_company_id, pp_contact_id, code, name, province_code, province,
|
|
|
+ city_code, city, district_code, district, address, num, actual_num, start_date, end_date,
|
|
|
+ status, push_flag, creator_id, create_date, update_id, update_date, region_id
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="findByCondition" resultMap="BaseResultMap"
|
|
|
+ parameterType="cn.com.ty.lift.business.capital.dao.entity.model.request.CapitalRepairRequest" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from capital_repair
|
|
|
+ WHERE 1=1
|
|
|
+ <if test="request.status!=null and request.status!=''">
|
|
|
+ AND status = #{request.status,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="request.code!=null and request.code!=''">
|
|
|
+ AND code LIKE #{request.code,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="request.name!=null and request.name!=''">
|
|
|
+ AND name LIKE #{request.name,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+</mapper>
|