From b3c6911c1e78563dc04998dd7bfb510130a9fcec Mon Sep 17 00:00:00 2001 From: huanghongfa <18228131219@163.com> Date: 星期一, 01 二月 2021 16:37:52 +0800 Subject: [PATCH] auth --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructAreaDAO.java | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructAreaDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructAreaDAO.java new file mode 100644 index 0000000..e120c39 --- /dev/null +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructAreaDAO.java @@ -0,0 +1,47 @@ +package com.panzhihua.service_community.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.vos.community.ComActDynVO; +import com.panzhihua.common.model.vos.community.ComMngStructAreaVO; +import com.panzhihua.service_community.model.dos.ComMngStructAreaDO; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; + +/** + * @program: springcloud_k8s_panzhihuazhihuishequ + * @description: 小区 + * @author: huang.hongfa weixin hhf9596 qq 959656820 + * @create: 2020-12-14 17:00 + **/ +@Mapper +public interface ComMngStructAreaDAO extends BaseMapper<ComMngStructAreaDO> { + // @Select("<script> " + +// " <where>" + +// "<if test='nameCn != null and nameCn.trim() != ""'>" + +// " </if> " + +// "<if test='nameCn != null and nameCn.trim() != ""'>" + +// " </if> " + +// "<if test='nameCn != null and nameCn.trim() != ""'>" + +// " </if> " + +// " </where>" + +// "</script>") + @Select("<script> " + + "SELECT\n" + + "id,\n" + + "area_name,\n" + + "area_code,\n" + + "address_detail,\n" + + "create_at \n" + + "FROM\n" + + "com_mng_struct_area \n" + + "WHERE\n" + + "community_id = #{comMngStructAreaVO.communityId} \n" + + "<if test='comMngStructAreaVO.areaName != null and comMngStructAreaVO.areaName.trim() != ""'>" + + "AND area_name = #{comMngStructAreaVO.areaName}" + + " </if> " + + "</script>") + IPage<ComMngStructAreaVO> pageArea(Page page, @Param("comMngStructAreaVO") ComMngStructAreaVO comMngStructAreaVO); +} -- Gitblit v1.7.1