TaCheckItemMapper.java 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.example.civilizedcity.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.baomidou.mybatisplus.core.metadata.IPage;
  4. import com.example.civilizedcity.entity.SysUser;
  5. import com.example.civilizedcity.entity.TaCheck;
  6. import com.example.civilizedcity.vo.CheckLocExport;
  7. import org.apache.ibatis.annotations.Mapper;
  8. import org.apache.ibatis.annotations.Param;
  9. import com.example.civilizedcity.entity.TaCheckItem;
  10. import java.util.List;
  11. /**
  12. * 测评点位;(ta_check_item)表数据库访问层
  13. * @author : http://njyunzhi.com
  14. * @date : 2022-12-13
  15. */
  16. @Mapper
  17. public interface TaCheckItemMapper extends BaseMapper<TaCheckItem>{
  18. IPage<TaCheckItem> getPageBy(IPage<TaCheckItem> pg,
  19. @Param("checkId") String checkId,
  20. @Param("itemType") String itemType);
  21. int createNewLocItems(@Param("checkId") String checkId);
  22. List<TaCheckItem> getListBy(@Param("checkId") String checkId, @Param("itemType") String itemType);
  23. long copyItems(@Param("oldCheckId") String oldCheckId, @Param("newCheckId") String newCheckId);
  24. Double sumScore(@Param("checkId") String checkId, @Param("itemType") String itemType);
  25. double sumEvlScore(@Param("itemId") String itemId);
  26. boolean updateFullScore(@Param("itemId") String itemId);
  27. int calcScore(@Param("checkId") String checkId);
  28. List<CheckLocExport> getExportByCheck(@Param("checkId") String checkId, @Param("itemType") String itemType);
  29. }