|
@@ -83,7 +83,7 @@ public interface FsPackageMapper
|
|
|
" <if test=\"maps.diseaseType != null \"> and disease_type = #{maps.diseaseType}</if>\n" +
|
|
|
" <if test=\"maps.isShow != null \"> and is_show = #{maps.isShow}</if>\n" +
|
|
|
" <if test=\"maps.solarTerm != null \"> and solar_term = #{maps.solarTerm}</if>\n" +
|
|
|
- " <if test=\"maps.appId != null and maps.appId != ''\"> and (FIND_IN_SET(#{maps.appId}, app_ids) > 0) or app_ids is null or app_ids = ''</if>\n" +
|
|
|
+ " <if test=\"maps.appId != null and maps.appId != ''\"> and ((FIND_IN_SET(#{maps.appId}, app_ids) > 0) or app_ids is null or app_ids = '')</if>\n" +
|
|
|
" order by sort,package_id desc"+
|
|
|
"</script>"})
|
|
|
|
|
@@ -126,10 +126,10 @@ public interface FsPackageMapper
|
|
|
"and p.is_show = #{maps.isShow} " +
|
|
|
"</if>" +
|
|
|
"<if test = 'maps.appId != null and maps.appId != \"\"'> " +
|
|
|
- "and (FIND_IN_SET(#{maps.appId}, app_ids) > 0) or app_ids is null or app_ids = ''" +
|
|
|
+ "and ((FIND_IN_SET(#{maps.appId}, app_ids) > 0) or app_ids is null or app_ids = '')" +
|
|
|
"</if>" +
|
|
|
"<if test = 'maps.appId == null or maps.appId == \"\"'> " +
|
|
|
- "and app_ids is null or app_ids = ''" +
|
|
|
+ "and (app_ids is null or app_ids = '')" +
|
|
|
"</if>" +
|
|
|
" order by p.sort desc,package_id "+
|
|
|
"</script>"})
|