<?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.ycl.mapper.ProjectUnitRegistrationInfoMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProjectUnitRegistrationInfoVO">
|
<result column="project_id" property="projectId" />
|
<result column="total_investment" property="totalInvestment" />
|
<result column="project_unit" property="projectUnit" />
|
<result column="project_unit_type" property="projectUnitType" />
|
<result column="registration_type" property="registrationType" />
|
<result column="holding_situation" property="holdingSituation" />
|
<result column="certificate_type" property="certificateType" />
|
<result column="certificate_number" property="certificateNumber" />
|
<result column="registered_address" property="registeredAddress" />
|
<result column="registered_capital" property="registeredCapital" />
|
<result column="legal_representative" property="legalRepresentative" />
|
<result column="fixed_phone" property="fixedPhone" />
|
<result column="legal_person_idcard" property="legalPersonIdcard" />
|
<result column="project_contact_person" property="projectContactPerson" />
|
<result column="phone" property="phone" />
|
<result column="contact_idcard" property="contactIdcard" />
|
<result column="wechat" property="wechat" />
|
<result column="contact_address" property="contactAddress" />
|
<result column="post_code" property="postCode" />
|
<result column="email" property="email" />
|
<result column="create_by" property="createBy" />
|
<result column="update_by" property="updateBy" />
|
<result column="gmt_create" property="gmtCreateTime" />
|
<result column="gmt_update" property="gmtUpdateTime" />
|
</resultMap>
|
|
|
|
|
|
|
|
<select id="getById" resultMap="BaseResultMap">
|
SELECT
|
TPURI.project_id,
|
TPURI.total_investment,
|
TPURI.project_unit,
|
TPURI.project_unit_type,
|
TPURI.registration_type,
|
TPURI.holding_situation,
|
TPURI.certificate_type,
|
TPURI.certificate_number,
|
TPURI.registered_address,
|
TPURI.registered_capital,
|
TPURI.legal_representative,
|
TPURI.fixed_phone,
|
TPURI.legal_person_idcard,
|
TPURI.project_contact_person,
|
TPURI.phone,
|
TPURI.contact_idcard,
|
TPURI.wechat,
|
TPURI.contact_address,
|
TPURI.post_code,
|
TPURI.email,
|
TPURI.create_by,
|
TPURI.update_by,
|
TPURI.gmt_create,
|
TPURI.gmt_update,
|
TPURI.id
|
FROM
|
t_project_unit_registration_info TPURI
|
WHERE
|
TPURI.id = #{id} AND TPURI.deleted = 0
|
</select>
|
|
|
<select id="getPage" resultMap="BaseResultMap">
|
SELECT
|
TPURI.project_id,
|
TPURI.total_investment,
|
TPURI.project_unit,
|
TPURI.project_unit_type,
|
TPURI.registration_type,
|
TPURI.holding_situation,
|
TPURI.certificate_type,
|
TPURI.certificate_number,
|
TPURI.registered_address,
|
TPURI.registered_capital,
|
TPURI.legal_representative,
|
TPURI.fixed_phone,
|
TPURI.legal_person_idcard,
|
TPURI.project_contact_person,
|
TPURI.phone,
|
TPURI.contact_idcard,
|
TPURI.wechat,
|
TPURI.contact_address,
|
TPURI.post_code,
|
TPURI.email,
|
TPURI.create_by,
|
TPURI.update_by,
|
TPURI.gmt_create,
|
TPURI.gmt_update,
|
TPURI.id
|
FROM
|
t_project_unit_registration_info TPURI
|
WHERE
|
TPURI.deleted = 0
|
</select>
|
|
</mapper>
|