src/main/resources/mapper/SoftwareMapper.xml
@@ -11,6 +11,17 @@ select distinct file_url from tb_software <where> 1=1 <choose> <when test="lockFlag == 0"> and lock_flag = 0 </when> <when test="lockFlag == 12"> and lock_flag != 0 </when> <when test="lockFlag == -1"> and lock_flag = -1 </when> </choose> <if test="fileName!=null&&fileName!=''"> and file_name like '%${fileName}%' </if>