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

fix: SQL语句BUG修改

parent c5857cc5
......@@ -14,13 +14,17 @@
sign.`biz_org_code` bizOrgCode,
sign.`biz_org_name` bizOrgName,
sign.`sign_time` signTime,
sign.remarks
sign.remarks,
sign.photos
FROM
cb_sign sign
<where>
<if test="dto.name!=null and dto.name!=''">
and sign.`name` like CONCAT('%',#{dto.name},'%')
</if>
<if test="dto.signUserId !=null and dto.signUserId !=''">
and sign.user_id = #{dto.signUserId}
</if>
<if test="dto.type!=null and dto.type!=''">
and sign.type=#{dto.type}
</if>
......
......@@ -2368,7 +2368,7 @@
<if test="bizOrgCode !=null and bizOrgCode!='' ">
pc.org_code like CONCAT(#{bizOrgCode},'%')
</if>
<if test="bizOrgCode !=null and bizOrgCode!='' ">
<if test="userId !=null and userId!='' ">
AND pc.user_id = #{userId}
</if>
</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