Skip to content

Commit

Permalink
fix prefix match caused data privacy leak
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjseagull committed Oct 29, 2024
1 parent 73ee453 commit 7e13cce
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@
and `id` like concat(#{condition.id}, '%')
</if>
<if test="condition.applicant != null and condition.applicant !=''">
and `applicant` like concat(#{condition.applicant}, '%')
and `applicant` = #{condition.applicant}
</if>
<if test="condition.applicantAgency != null and condition.applicantAgency !=''">
and `applicant_agency` like concat(#{condition.applicantAgency}, '%')
and `applicant_agency` = #{condition.applicantAgency}
</if>
<if test="condition.currentApplyNode != null and condition.currentApplyNode !=''">
and `current_auth_node` = #{condition.currentApplyNode}
Expand Down Expand Up @@ -178,10 +178,10 @@
and `id` like concat(#{condition.id}, '%')
</if>
<if test="condition.applicant != null and condition.applicant !=''">
and `applicant` like concat(#{condition.applicant}, '%')
and `applicant` = #{condition.applicant}
</if>
<if test="condition.applicantAgency != null and condition.applicantAgency !=''">
and `applicant_agency` like concat(#{condition.applicantAgency}, '%')
and `applicant_agency` = #{condition.applicantAgency}
</if>
<if test="condition.applyType != null and condition.applyType !=''">
and `apply_type` = #{condition.applyType}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
and `owner` = #{condition.owner}
</if>
<if test="condition.agency != null and condition.agency !=''">
and `agency` like concat(#{condition.agency}, '%')
and `agency` = #{condition.agency}
</if>
<if test="condition.status!= null and condition.status !=''">
and `status` = #{condition.status}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
and `owner` = #{condition.owner}
</if>
<if test="condition.ownerAgency != null and condition.ownerAgency !=''">
and `owner_agency` like concat(#{condition.ownerAgency}, "%")
and `owner_agency` = #{condition.ownerAgency}
</if>
<if test="condition.status != null and condition.status !=''">
and `status` = #{condition.status}
Expand Down Expand Up @@ -276,7 +276,7 @@
and `owner` = #{condition.owner}
</if>
<if test="condition.ownerAgency != null and condition.ownerAgency !=''">
and `owner_agency` like concat(#{condition.ownerAgency}, "%")
and `owner_agency` = #{condition.ownerAgency}
</if>
<if test="condition.status != null and condition.status !=''">
and `status` = #{condition.status}
Expand Down Expand Up @@ -323,7 +323,7 @@
and `owner` = #{condition.owner}
</if>
<if test="condition.ownerAgency != null and condition.ownerAgency !=''">
and `owner_agency` like concat(#{condition.ownerAgency}, "%")
and `owner_agency` = #{condition.ownerAgency}
</if>
<if test="condition.status != null and condition.status !=''">
and `status` = #{condition.status}
Expand Down Expand Up @@ -367,7 +367,7 @@
and `owner` = #{condition.owner}
</if>
<if test="condition.ownerAgency != null and condition.ownerAgency !=''">
and `owner_agency` like concat(#{condition.ownerAgency}, "%")
and `owner_agency` = #{condition.ownerAgency}
</if>
<if test="condition.status != null and condition.status !=''">
and `status` = #{condition.status}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
and `id` like concat(#{condition.id}, '%')
</if>
<if test="condition.userName != null and condition.userName !=''">
and `user_name` like concat(#{condition.userName}, '%')
and `user_name` = #{condition.userName}
</if>
<if test="condition.agency != null and condition.agency !=''">
and `agency` = #{condition.agency}
Expand Down

0 comments on commit 7e13cce

Please sign in to comment.