PtlAgreementGroupLinkDeptServiceImpl.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.ydtech.modules.protocol.service.impl;
  2. import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  3. import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  4. import com.ydtech.modules.protocol.dao.PtlAgreementGroupLinkDeptMapper;
  5. import com.ydtech.modules.protocol.entity.po.PtlAgreementGroupLinkDept;
  6. import com.ydtech.modules.protocol.service.PtlAgreementGroupLinkDeptService;
  7. import org.springframework.stereotype.Service;
  8. import java.util.List;
  9. /**
  10. * @author Administrator
  11. * @description 针对表【ptl_agreement_group_link_dept(协议组关联部门)】的数据库操作Service实现
  12. * @createDate 2024-10-24 09:54:37
  13. */
  14. @Service
  15. public class PtlAgreementGroupLinkDeptServiceImpl extends ServiceImpl<PtlAgreementGroupLinkDeptMapper, PtlAgreementGroupLinkDept>
  16. implements PtlAgreementGroupLinkDeptService {
  17. /**
  18. * @version
  19. * @author: hxl
  20. * @Date: 2024/10/25 8:59
  21. * @Description: 通过协议组id查询绑定机构
  22. */
  23. @Override
  24. public List<PtlAgreementGroupLinkDept> findByGroupId(Long agreementGroupId) {
  25. LambdaQueryWrapper<PtlAgreementGroupLinkDept> infoWapper = new LambdaQueryWrapper<>();
  26. infoWapper.eq(PtlAgreementGroupLinkDept::getPtlAgreementGroupId, agreementGroupId);
  27. return this.list(infoWapper);
  28. }
  29. }