|
|
|
@ -72,7 +72,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectDaCzrkdjList" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
<select id="selectDaCzrkdjList" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
select distinct c.* from da_czrkdj c
|
|
|
|
select distinct c.* from da_czrkdj c
|
|
|
|
left join da_user_catalog uc on c.mu_id = uc.mu_id
|
|
|
|
<if test="userId != null "> left join da_user_catalog uc on c.mu_id = uc.mu_id</if>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="userId != null ">and uc.user_id = #{userId}</if>
|
|
|
|
<if test="userId != null ">and uc.user_id = #{userId}</if>
|
|
|
|
<if test="taskId != null ">and task_id = #{taskId}</if>
|
|
|
|
<if test="taskId != null ">and task_id = #{taskId}</if>
|
|
|
|
@ -156,7 +156,7 @@
|
|
|
|
<!--检索+同音字-->
|
|
|
|
<!--检索+同音字-->
|
|
|
|
<select id="searchDaCzrkdjList" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
<select id="searchDaCzrkdjList" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
select distinct c.* from da_czrkdj c
|
|
|
|
select distinct c.* from da_czrkdj c
|
|
|
|
left join da_user_catalog uc on c.mu_id = uc.mu_id
|
|
|
|
<if test="userId != null "> left join da_user_catalog uc on c.mu_id = uc.mu_id</if>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="userId != null ">and uc.user_id = #{userId}</if>
|
|
|
|
<if test="userId != null ">and uc.user_id = #{userId}</if>
|
|
|
|
<if test="ywType != null and ywType != ''">and yw_type = #{ywType}</if>
|
|
|
|
<if test="ywType != null and ywType != ''">and yw_type = #{ywType}</if>
|
|
|
|
@ -198,7 +198,7 @@
|
|
|
|
<!--检索+无同音字-->
|
|
|
|
<!--检索+无同音字-->
|
|
|
|
<select id="searchDaCzrkdjList1" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
<select id="searchDaCzrkdjList1" parameterType="DaCzrkdj" resultMap="DaCzrkdjResult">
|
|
|
|
select distinct c.* from da_czrkdj c
|
|
|
|
select distinct c.* from da_czrkdj c
|
|
|
|
left join da_user_catalog uc on c.mu_id = uc.mu_id
|
|
|
|
<if test="userId != null "> left join da_user_catalog uc on c.mu_id = uc.mu_id</if>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="userId != null ">and uc.user_id = #{userId}</if>
|
|
|
|
<if test="userId != null ">and uc.user_id = #{userId}</if>
|
|
|
|
<if test="ywType != null and ywType != ''">and yw_type = #{ywType}</if>
|
|
|
|
<if test="ywType != null and ywType != ''">and yw_type = #{ywType}</if>
|
|
|
|
|