|
|
|
|
@ -30,7 +30,7 @@
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectKhVoteList" parameterType="KhVote" resultMap="KhVoteResult">
|
|
|
|
|
select v.*,it.type_id from kh_vote v left join kh_items 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>
|
|
|
|
|
<if test="pingceId != null "> and pingce_id = #{pingceId}</if>
|
|
|
|
|
<if test="pingceName != null and pingceName != ''"> and pingce_name like concat('%', #{pingceName}, '%')</if>
|
|
|
|
|
@ -47,7 +47,7 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectKhVoteById" parameterType="Long" resultMap="KhVoteResult">
|
|
|
|
|
select v.*,it.type_id from kh_vote v left join kh_items 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}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|