Commit 362f4f4c authored by 李秀明's avatar 李秀明

fix: SQL语句BUG修改

parent c5857cc5
...@@ -14,13 +14,17 @@ ...@@ -14,13 +14,17 @@
sign.`biz_org_code` bizOrgCode, sign.`biz_org_code` bizOrgCode,
sign.`biz_org_name` bizOrgName, sign.`biz_org_name` bizOrgName,
sign.`sign_time` signTime, sign.`sign_time` signTime,
sign.remarks sign.remarks,
sign.photos
FROM FROM
cb_sign sign cb_sign sign
<where> <where>
<if test="dto.name!=null and dto.name!=''"> <if test="dto.name!=null and dto.name!=''">
and sign.`name` like CONCAT('%',#{dto.name},'%') and sign.`name` like CONCAT('%',#{dto.name},'%')
</if> </if>
<if test="dto.signUserId !=null and dto.signUserId !=''">
and sign.user_id = #{dto.signUserId}
</if>
<if test="dto.type!=null and dto.type!=''"> <if test="dto.type!=null and dto.type!=''">
and sign.type=#{dto.type} and sign.type=#{dto.type}
</if> </if>
......
...@@ -2368,7 +2368,7 @@ ...@@ -2368,7 +2368,7 @@
<if test="bizOrgCode !=null and bizOrgCode!='' "> <if test="bizOrgCode !=null and bizOrgCode!='' ">
pc.org_code like CONCAT(#{bizOrgCode},'%') pc.org_code like CONCAT(#{bizOrgCode},'%')
</if> </if>
<if test="bizOrgCode !=null and bizOrgCode!='' "> <if test="userId !=null and userId!='' ">
AND pc.user_id = #{userId} AND pc.user_id = #{userId}
</if> </if>
</where> </where>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment