TdgyMapper.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package com.siwei.apply.mapper;
  2. import com.siwei.apply.domain.Tdgy;
  3. import com.siwei.apply.domain.res.ProjectSupplyRes;
  4. import com.siwei.apply.domain.vo.TdgyUpdateVo;
  5. import org.apache.ibatis.annotations.Mapper;
  6. import org.apache.ibatis.annotations.Param;
  7. import java.util.List;
  8. // 土地供应 Mapper 接口
  9. @Mapper
  10. public interface TdgyMapper {
  11. /**
  12. * 根据项目id查询是否存在
  13. */
  14. Boolean isExit(String projectId);
  15. /**
  16. * 添加土地供应信息
  17. *
  18. * @param tdgy
  19. */
  20. void add(Tdgy tdgy);
  21. /**
  22. * 获取土地供应信息
  23. *
  24. * @param projectId
  25. * @return
  26. */
  27. Tdgy get(String projectId);
  28. /**
  29. * 更新土地供应信息
  30. *
  31. * @param tdgyUpdateVo
  32. */
  33. void update(TdgyUpdateVo tdgyUpdateVo);
  34. /**
  35. * 更新土地供应的上链状态
  36. * @param id 土地供应ID
  37. * @param hasOnchain 是否已上链
  38. */
  39. void updateHasOnchain(@Param("id") String id, @Param("hasOnchain") Boolean hasOnchain);
  40. /**
  41. * 按 gd_type 统计数量和求和 gd_area
  42. * 返回字段:gdType, count, gdArea, gdUnit,可选传入 projectType 过滤 t_project.project_type
  43. */
  44. List<ProjectSupplyRes> countAndSumByGdType(@Param("projectType") Integer projectType);
  45. }