12345678910111213141516171819202122232425262728293031 |
- package com.huiju.estateagents.property.dao;
-
- import com.baomidou.mybatisplus.core.mapper.BaseMapper;
- import com.huiju.estateagents.property.model.TpPhase;
- import org.apache.ibatis.annotations.*;
-
- import java.util.List;
-
- /**
- * <p>
- * 小区期区资料表 Mapper 接口
- * </p>
- *
- * @author jobob
- * @since 2019-04-01
- */
- @Mapper
- public interface TpPhaseMapper extends BaseMapper<TpPhase> {
-
- /**
- * 根据小区查询 期
- * @param orgId
- * @return
- */
- @ResultType(TpPhase.class)
- @Select("select * from tp_phase where org_id = #{orgId} and community_id= #{communityId}")
- List<TpPhase> selectByAddress(@Param("orgId") Integer orgId, @Param("communityId") Integer communityId);
-
- @Update("update tp_phase set `name` = #{name} where id = #{id}")
- int updateName(@Param("orgId") Integer orgId, @Param("id") Integer id, @Param("name") String name);
- }
|