|
@@ -24,10 +24,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateName" column="update_name" />
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
+ <result property="merchantName" column="merchant_name" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCenterdataTHousingconstructionRealnameuserVo">
|
|
|
- select a.id, a.enterprise_id, a.enterprise_user_type, a.user_code, a.user_name, a.gas_address, a.license_code, a.contact_number, a.account_open_time, a.longitude, a.latitude, a.create_time, a.create_by, a.create_name, a.update_time, a.update_by, a.update_name, a.dept_id, a.dept_name from centerdata_t_housingconstruction_realnameuser a
|
|
|
+ select a.id, a.enterprise_id, a.enterprise_user_type, a.user_code, a.user_name, a.gas_address, a.license_code, a.contact_number, a.account_open_time, a.longitude, a.latitude, a.create_time, a.create_by, a.create_name, a.update_time, a.update_by, a.update_name, a.dept_id, a.dept_name,a.merchant_name from centerdata_t_housingconstruction_realnameuser a
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCenterdataTHousingconstructionRealnameuserList" parameterType="CenterdataTHousingconstructionRealnameuser" resultMap="CenterdataTHousingconstructionRealnameuserResult">
|
|
@@ -66,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateName != null">update_name,</if>
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
+ <if test="merchantName != null">merchant_name,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="enterpriseId != null">#{enterpriseId},</if>
|
|
@@ -86,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateName != null">#{updateName},</if>
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
+ <if test="merchantName != null">#{merchantName},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -110,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateName != null">update_name = #{updateName},</if>
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
|
|
+ <if test="merchantName != null">merchant_name = #{merchantName},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -138,7 +142,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
contact_number contactNumber,
|
|
|
account_open_time accountOpenTime,
|
|
|
longitude,
|
|
|
- latitude
|
|
|
+ latitude,
|
|
|
+ a.merchant_name merchantName
|
|
|
FROM
|
|
|
centerdata_t_housingconstruction_realnameuser a
|
|
|
left join ${database_system}.sys_dict_data b on a.enterprise_user_type = b.dict_value
|