TpPhaseMapper.java 887B

12345678910111213141516171819202122232425262728293031
  1. package com.huiju.estateagents.property.dao;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.huiju.estateagents.property.model.TpPhase;
  4. import org.apache.ibatis.annotations.*;
  5. import java.util.List;
  6. /**
  7. * <p>
  8. * 小区期区资料表 Mapper 接口
  9. * </p>
  10. *
  11. * @author jobob
  12. * @since 2019-04-01
  13. */
  14. @Mapper
  15. public interface TpPhaseMapper extends BaseMapper<TpPhase> {
  16. /**
  17. * 根据小区查询 期
  18. * @param orgId
  19. * @return
  20. */
  21. @ResultType(TpPhase.class)
  22. @Select("select * from tp_phase where org_id = #{orgId} and community_id= #{communityId}")
  23. List<TpPhase> selectByAddress(@Param("orgId") Integer orgId, @Param("communityId") Integer communityId);
  24. @Update("update tp_phase set `name` = #{name} where id = #{id}")
  25. int updateName(@Param("orgId") Integer orgId, @Param("id") Integer id, @Param("name") String name);
  26. }