From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 20 五月 2025 23:48:08 +0800 Subject: [PATCH] 修改文件上传类型限制 --- springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbServiceTeamDAO.java | 69 ++++++++++++++++------------------ 1 files changed, 32 insertions(+), 37 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbServiceTeamDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbServiceTeamDAO.java index 4f2cbec..a4ad550 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbServiceTeamDAO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbServiceTeamDAO.java @@ -1,18 +1,17 @@ package com.panzhihua.service_dangjian.dao; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.panzhihua.common.model.dtos.partybuilding.PageComPbServiceTeamDTO; -import com.panzhihua.common.model.vos.community.ComActEasyPhotoCommentVO; -import com.panzhihua.common.model.vos.partybuilding.ComPbServiceTeamVO; -import com.panzhihua.common.model.vos.partybuilding.PartyCommitteeVO; -import com.panzhihua.service_dangjian.model.dos.ComPbServiceTeamDO; +import java.util.List; + import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; -import java.util.List; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.panzhihua.common.model.dtos.partybuilding.PageComPbServiceTeamDTO; +import com.panzhihua.common.model.vos.partybuilding.ComPbServiceTeamVO; +import com.panzhihua.service_dangjian.model.dos.ComPbServiceTeamDO; /** * @program: springcloud_k8s_panzhihuazhihuishequ @@ -23,34 +22,30 @@ @Mapper public interface ComPbServiceTeamDAO extends BaseMapper<ComPbServiceTeamDO> { - @Select("<script> " + - "SELECT\n" + - "* \n" + - "FROM\n" + - "com_pb_service_team \n" + - " where community_id=#{pageComPbServiceTeamDTO.communityId}" + - "<if test='pageComPbServiceTeamDTO.name != null and pageComPbServiceTeamDTO.name.trim() != ""'>" + - " and name LIKE concat( #{pageComPbServiceTeamDTO.name}, '%' ) \n" + - " </if> " + - "<if test='pageComPbServiceTeamDTO.job != null and pageComPbServiceTeamDTO.job.trim() != ""'>" + - "AND job LIKE concat(\n" + - "#{pageComPbServiceTeamDTO.job},\n" + - "'%')" + - " </if> " + - "</script>") - IPage<ComPbServiceTeamVO> PageComPbServiceTeamDTO(Page page, @Param("pageComPbServiceTeamDTO") PageComPbServiceTeamDTO pageComPbServiceTeamDTO); - @Select("select * from com_pb_service_team where id=#{id}") - ComPbServiceTeamDO selectComPbServiceTeamById(@Param("id")Long id); + @Select("<script> " + "SELECT\n" + "* \n" + "FROM\n" + "com_pb_service_team \n" + + " where community_id = ${pageComPbServiceTeamDTO.communityId}" + + "<if test='pageComPbServiceTeamDTO.name != null and pageComPbServiceTeamDTO.name.trim() != ""'>" + + " and name LIKE concat( #{pageComPbServiceTeamDTO.name}, '%' ) \n" + " </if> " + + "<if test='pageComPbServiceTeamDTO.propertyId != null and pageComPbServiceTeamDTO.propertyId != ""'>" + + " and property_id = #{pageComPbServiceTeamDTO.propertyId} </if> " + + "<if test='pageComPbServiceTeamDTO.type != null and pageComPbServiceTeamDTO.type != ""'>" + + " and type = #{pageComPbServiceTeamDTO.type} </if> " + + "<if test='pageComPbServiceTeamDTO.job != null and pageComPbServiceTeamDTO.job.trim() != ""'>" + + "AND job LIKE concat(\n" + "#{pageComPbServiceTeamDTO.job},\n" + "'%')" + " </if> " + "</script>") + IPage<ComPbServiceTeamVO> PageComPbServiceTeamDTO(Page page, + @Param("pageComPbServiceTeamDTO") PageComPbServiceTeamDTO pageComPbServiceTeamDTO); - @Select("<script> " + - "SELECT\n" + - "* \n" + - "FROM\n" + - "com_pb_service_team \n" + - " where community_id=#{communityId}" + - "<if test='param != null and param != ""'>" + - " and name LIKE concat( #{param}, '%' ) \n" + - " </if> " + - "</script>") + @Select("select * from com_pb_service_team where id=#{id}") + ComPbServiceTeamDO selectComPbServiceTeamById(@Param("id") Long id); + + @Select("<script> " + "SELECT\n" + "* \n" + "FROM\n" + "com_pb_service_team \n" + + " where community_id = ${communityId}" + "<if test='param != null and param != ""'>" + + " and name LIKE concat( #{param}, '%' ) \n" + " </if> " + "</script>") List<ComPbServiceTeamVO> getTotlePerson(@Param("param") String param, @Param("communityId") Long communityId); + + IPage<ComPbServiceTeamVO> pageServiceTeamProperty(Page page, @Param("pageComPbServiceTeamDTO")PageComPbServiceTeamDTO pageComPbServiceTeamDTO); + + + ComPbServiceTeamVO getComPbServiceTeamData(@Param("communityId") String communityId, + @Param("phone") String phone); } -- Gitblit v1.7.1