sql语句修改

main 78
hshansha 1 month ago
parent fb0c0a977a
commit 48a46ecabc

@ -57,11 +57,11 @@
</sql> </sql>
<select id="selectKhVoteEmpList" parameterType="KhVoteEmp" resultMap="KhVoteEmpResult"> <select id="selectKhVoteEmpList" parameterType="KhVoteEmp" resultMap="KhVoteEmpResult">
select ve.* ,ve.pingce_name from kh_vote_emp join kh_vote v on ve.voteId=v.id select ve.* ,v.pingce_name from kh_vote_emp ve join kh_vote v on ve.vote_id=v.id
<where> <where>
<if test="khitemTypeid != null ">and khitem_typeId = #{khitemTypeid}</if> <if test="khitemTypeid != null ">and khitem_typeId = #{khitemTypeid}</if>
<if test="voteId != null ">and vote_id = #{voteId}</if> <if test="voteId != null ">and vote_id = #{voteId}</if>
<if test="voteTitle != null and voteTitle != ''">and vote_title = #{voteTitle}</if> <if test="voteTitle != null and voteTitle != ''">and ve.vote_title = #{voteTitle}</if>
<if test="pcName != null and pcName != '' "> and ve.pingce_name like concat('%', #{pcName}, '%')</if> <if test="pcName != null and pcName != '' "> and ve.pingce_name like concat('%', #{pcName}, '%')</if>
<if test="bkhdxId != null ">and bkhdx_id = #{bkhdxId}</if> <if test="bkhdxId != null ">and bkhdx_id = #{bkhdxId}</if>
<if test="bkhdxName != null and bkhdxName != ''">and bkhdx_name like concat('%', #{bkhdxName}, '%')</if> <if test="bkhdxName != null and bkhdxName != ''">and bkhdx_name like concat('%', #{bkhdxName}, '%')</if>

Loading…
Cancel
Save