|
|
|
@ -48,7 +48,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectKhVoteById" parameterType="Long" resultMap="KhVoteResult">
|
|
|
|
<select id="selectKhVoteById" parameterType="Long" resultMap="KhVoteResult">
|
|
|
|
select v.*,it.type_id from kh_vote v left join kh_items it on v.khitem_id =it.id
|
|
|
|
select v.*,it.type_id from kh_vote v left join kh_items it on v.khitem_id =it.id
|
|
|
|
where id = #{id}
|
|
|
|
where v.id = #{id}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertKhVote" parameterType="KhVote" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
<insert id="insertKhVote" parameterType="KhVote" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|