| | |
| | | " </if> " + |
| | | "</script>") |
| | | List<ComActVO> listCommunity(ComActVO comActVO); |
| | | |
| | | @Select("select district_name from com_mng_struct_area_district where district_adcode=#{areaCode}") |
| | | String selectAreaName(String areaCode); |
| | | |
| | | @Select("<script> " + |
| | | "select id,"+ |
| | | " <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\n" + |
| | | "a.* \n" + |
| | | "FROM\n" + |
| | | "com_act a \n" + |
| | | " <where>" + |
| | | "<if test='pageComActDTO.name != null and pageComActDTO.name.trim() != ""'>" + |
| | | "and a.name LIKE concat( #{pageComActDTO.name}, '%' ) \n" + |
| | | " </if> " + |
| | | "<if test='pageComActDTO.areaCode != null and pageComActDTO.areaCode.trim() != ""'>" + |
| | | "AND a.area_code = #{pageComActDTO.areaCode} \n" + |
| | | " </if> " + |
| | | "<if test='pageComActDTO.createAtBegin != null '>" + |
| | | "AND a.create_at BETWEEN " + |
| | | "#{pageComActDTO.createAtBegin} \n" + |
| | | "AND #{pageComActDTO.createAtEnd}" + |
| | | " </if> " + |
| | | " </where>" + |
| | | "</script>") |
| | | IPage<ComActVO> pageCommunity(Page page, @Param("pageComActDTO") PageComActDTO pageComActDTO); |
| | | } |