and tzjia.application_unit_code = #{currentApplicationUnitCode}
and tzjia.application_unit_code = #{currentApplicationUnitCode} OR tzjia.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' )
</when>
</when>
<whentest="identity == 'receive'">
<whentest="identity == 'receive'">
and tzjia.inspection_unit_code = #{currentInspectionUnitCode}
and tzjia.inspection_unit_code = #{currentInspectionUnitCode} OR tzjia.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' )
</when>
</when>
<whentest="identity == 'all'">
<whentest="identity == 'all'">
and (tzjia.application_unit_code = #{currentApplicationUnitCode} or tzjia.inspection_unit_code = #{currentInspectionUnitCode})
and (tzjia.application_unit_code = #{currentApplicationUnitCode} or tzjia.inspection_unit_code = #{currentInspectionUnitCode}) OR tzjia.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' )
</when>
</when>
<otherwise>
<otherwise>
1=2
1=2
</otherwise>
</otherwise>
</choose>
</choose>
OR (tzjia.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ) )