MrShi
2025-07-02 39ae52b3f65e2bba3b6570adb51e791cb3befff7
server/service/src/main/resources/mappers/SystemPermissionMapper.xml
@@ -30,6 +30,15 @@
      <if test="dto.type != null">
        AND ifnull(perm.type,0) in(0, ${dto.type})
      </if>
      <if test="dto.iscom != null">
        AND ifnull(perm.iscom,0) =${dto.iscom}
      </if>
      <if test="dto.isshop != null">
        AND ifnull(perm.isshop,0)=${dto.isshop}
      </if>
      <if test="dto.isadmin != null">
        AND ifnull(perm.isadmin,0) = ${dto.isadmin}
      </if>
      <if test="dto.name != null  and dto.name!=''">
        AND perm.`NAME` LIKE CONCAT('%', #{dto.name}, '%')
      </if>