少判断条件

This commit is contained in:
clunt 2022-05-23 17:13:38 +08:00
parent 000af7f7da
commit b1dff3834d
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,11 @@
<select id="getWorkerList" resultMap="WorkerResult"> <select id="getWorkerList" resultMap="WorkerResult">
<include refid="selectWorker" /> <include refid="selectWorker" />
<where>
<if test="openId != null and openId != ''">
AND open_id = #{openId}
</if>
</where>
</select> </select>
<insert id="insertWorker" parameterType="com.ghy.worker.domain.Worker" useGeneratedKeys="true" keyProperty="workerId"> <insert id="insertWorker" parameterType="com.ghy.worker.domain.Worker" useGeneratedKeys="true" keyProperty="workerId">