|
@@ -24,14 +24,14 @@
|
|
(id_,person_id,company_id,del_flag,create_by,create_time,update_by,update_time)
|
|
(id_,person_id,company_id,del_flag,create_by,create_time,update_by,update_time)
|
|
values
|
|
values
|
|
(
|
|
(
|
|
-#{id,jdbcType=VARCHAR}
|
|
|
|
-,#{personId,jdbcType= NUMERIC }
|
|
|
|
-,#{companyId,jdbcType=VARCHAR}
|
|
|
|
-,#{delFlag,jdbcType= NUMERIC }
|
|
|
|
-,#{createBy,jdbcType=VARCHAR}
|
|
|
|
-,#{createTime,jdbcType= TIMESTAMP }
|
|
|
|
-,#{updateBy,jdbcType=VARCHAR}
|
|
|
|
-,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
|
|
|
+ #{id,jdbcType=VARCHAR}
|
|
|
|
+ ,#{personId,jdbcType= NUMERIC }
|
|
|
|
+ ,#{companyId,jdbcType=VARCHAR}
|
|
|
|
+ ,#{delFlag,jdbcType= NUMERIC }
|
|
|
|
+ ,#{createBy,jdbcType=VARCHAR}
|
|
|
|
+ ,#{createTime,jdbcType= TIMESTAMP }
|
|
|
|
+ ,#{updateBy,jdbcType=VARCHAR}
|
|
|
|
+ ,#{updateTime,jdbcType= TIMESTAMP }
|
|
)
|
|
)
|
|
]]>
|
|
]]>
|
|
</insert>
|
|
</insert>
|
|
@@ -66,8 +66,7 @@
|
|
where id_=#{id}
|
|
where id_=#{id}
|
|
</update>
|
|
</update>
|
|
<select id="get" parameterType="string" resultMap="PersonCompanyMap">
|
|
<select id="get" parameterType="string" resultMap="PersonCompanyMap">
|
|
- select
|
|
|
|
-id_,person_id,company_id,del_flag,create_by,create_time,update_by,update_time from base_person_company where id_=#{0}
|
|
|
|
|
|
+ select * from base_person_company where id_=#{0}
|
|
</select>
|
|
</select>
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
select count(*) from base_person_company where id_=#{0}
|
|
select count(*) from base_person_company where id_=#{0}
|
|
@@ -95,10 +94,7 @@ id_,person_id,company_id,del_flag,create_by,create_time,update_by,update_time f
|
|
<select id="findByPersonId" resultMap="PersonCompanyMap" parameterType="long">
|
|
<select id="findByPersonId" resultMap="PersonCompanyMap" parameterType="long">
|
|
select * from base_person_company where del_flag =0 and person_id=#{personId}
|
|
select * from base_person_company where del_flag =0 and person_id=#{personId}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
- <update id="deleteByPersonId" parameterType="long">
|
|
|
|
- update base_person_company
|
|
|
|
- set del_flag = 1
|
|
|
|
- where person_id = #{personId}
|
|
|
|
- </update>
|
|
|
|
|
|
+ <delete id="deleteByPersonId" parameterType="long">
|
|
|
|
+ delete base_person_company where person_id = #{personId}
|
|
|
|
+ </delete>
|
|
</mapper>
|
|
</mapper>
|