|
@@ -3,7 +3,7 @@
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionEnterpriseMapper">
|
|
<mapper namespace="com.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionEnterpriseMapper">
|
|
-
|
|
|
|
|
|
+
|
|
<resultMap type="CenterdataTHousingconstructionEnterprise" id="CenterdataTHousingconstructionEnterpriseResult">
|
|
<resultMap type="CenterdataTHousingconstructionEnterprise" id="CenterdataTHousingconstructionEnterpriseResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="enterpriseName" column="enterprise_name" />
|
|
<result property="enterpriseName" column="enterprise_name" />
|
|
@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<select id="selectCenterdataTHousingconstructionEnterpriseList" parameterType="CenterdataTHousingconstructionEnterprise" resultMap="CenterdataTHousingconstructionEnterpriseResult">
|
|
<select id="selectCenterdataTHousingconstructionEnterpriseList" parameterType="CenterdataTHousingconstructionEnterprise" resultMap="CenterdataTHousingconstructionEnterpriseResult">
|
|
<include refid="selectCenterdataTHousingconstructionEnterpriseVo"/>
|
|
<include refid="selectCenterdataTHousingconstructionEnterpriseVo"/>
|
|
left join ${database_system}.sys_dept d on a.dept_id = d.dept_id
|
|
left join ${database_system}.sys_dept d on a.dept_id = d.dept_id
|
|
- <where>
|
|
|
|
|
|
+ <where>
|
|
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
|
|
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
|
|
<if test="enterpriseAdministrativeArea != null and enterpriseAdministrativeArea != ''"> and enterprise_administrative_area = #{enterpriseAdministrativeArea}</if>
|
|
<if test="enterpriseAdministrativeArea != null and enterpriseAdministrativeArea != ''"> and enterprise_administrative_area = #{enterpriseAdministrativeArea}</if>
|
|
<if test="legalRepresentative != null and legalRepresentative != ''"> and legal_representative = #{legalRepresentative}</if>
|
|
<if test="legalRepresentative != null and legalRepresentative != ''"> and legal_representative = #{legalRepresentative}</if>
|
|
@@ -51,12 +51,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
${params.dataScope}
|
|
${params.dataScope}
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<select id="selectCenterdataTHousingconstructionEnterpriseById" parameterType="String" resultMap="CenterdataTHousingconstructionEnterpriseResult">
|
|
<select id="selectCenterdataTHousingconstructionEnterpriseById" parameterType="String" resultMap="CenterdataTHousingconstructionEnterpriseResult">
|
|
<include refid="selectCenterdataTHousingconstructionEnterpriseVo"/>
|
|
<include refid="selectCenterdataTHousingconstructionEnterpriseVo"/>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="insertCenterdataTHousingconstructionEnterprise" parameterType="CenterdataTHousingconstructionEnterprise">
|
|
<insert id="insertCenterdataTHousingconstructionEnterprise" parameterType="CenterdataTHousingconstructionEnterprise">
|
|
insert into centerdata_t_housingconstruction_enterprise
|
|
insert into centerdata_t_housingconstruction_enterprise
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -139,9 +139,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteCenterdataTHousingconstructionEnterpriseByIds" parameterType="String">
|
|
<delete id="deleteCenterdataTHousingconstructionEnterpriseByIds" parameterType="String">
|
|
- delete from centerdata_t_housingconstruction_enterprise where id in
|
|
|
|
|
|
+ delete from centerdata_t_housingconstruction_enterprise where id in
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
-</mapper>
|
|
|
|
|
|
+
|
|
|
|
+ <select id="getEnterpriseList" parameterType="CenterdataTHousingconstructionEnterprise" resultType="map">
|
|
|
|
+ SELECT
|
|
|
|
+ enterprise_name enterpriseName,
|
|
|
|
+ enterprise_administrative_area enterpriseAdministrativeArea,
|
|
|
|
+ legal_representative legalRepresentative,
|
|
|
|
+ registered_address registeredAddress,
|
|
|
|
+ business_category businessCategory,
|
|
|
|
+ operating_area operatingArea,
|
|
|
|
+ issuing_time issuingTime,
|
|
|
|
+ license_period_start licensePeriodStart,
|
|
|
|
+ license_period_end licensePeriodEnd,
|
|
|
|
+ issuing_authority issuingAuthority,
|
|
|
|
+ longitude,
|
|
|
|
+ latitude
|
|
|
|
+ FROM
|
|
|
|
+ centerdata_t_housingconstruction_enterprise a
|
|
|
|
+ LEFT JOIN onest_system.sys_dept d ON a.dept_id = d.dept_id
|
|
|
|
+ <where>
|
|
|
|
+ <if test="id != null and id != ''"> and a.id = #{id}</if>
|
|
|
|
+ ${params.dataScope}
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
+</mapper>
|