فهرست منبع

提供一个查询对接人的接口

lipf 2 ماه پیش
والد
کامیت
df5d1fa1b6

+ 14 - 0
tenant/organization/src/main/java/com/jzg/organization/controller/AgreementController.java

@@ -7,6 +7,7 @@ import com.jzg.commons.core.base.BaseController;
 import com.jzg.commons.core.page.HttpResult;
 import com.jzg.commons.entity.dto.*;
 import com.jzg.commons.entity.enums.YesNoEnum;
+import com.jzg.commons.entity.finance.vo.ContractVO;
 import com.jzg.commons.entity.po.PtlAgreement;
 import com.jzg.commons.entity.po.PtlAgreementCostExternal;
 import com.jzg.commons.entity.vo.AgreementInfoVo;
@@ -327,4 +328,17 @@ public class AgreementController extends BaseController {
         List<PtlAgreementCostExternal> costExternals = agreementService.getContactAgreementCost(agreementId, productId, isInquiry);
         return HttpResult.ok(costExternals);
     }
+
+    /**
+     * 查询协议中配置的所有对接人
+     *
+     * @author lipf
+     * @date 2026/7/28 9:13
+     */
+    @Operation(summary = "查询协议中配置的所有对接人")
+    @GetMapping("/queryContractVos")
+    HttpResult<List<ContractVO>> queryContractVos(){
+        List<ContractVO> vos = agreementService.queryContractVos();
+        return HttpResult.ok(vos);
+    }
 }

+ 3 - 0
tenant/organization/src/main/java/com/jzg/organization/controller/PtlNewAgreementController.java

@@ -4,6 +4,7 @@ package com.jzg.organization.controller;
 import com.jzg.commons.core.page.HttpResult;
 import com.jzg.commons.entity.agreement.vo.PtlAgreementUndwrtRulesAttrQueryVo;
 import com.jzg.commons.entity.dto.RulesAttParam;
+import com.jzg.commons.entity.finance.vo.ContractVO;
 import com.jzg.commons.entity.po.PtlAgreementUndwrtRulesAttr;
 import com.jzg.commons.entity.po.PtlAgreementUndwrtRulesDictLabal;
 import com.jzg.organization.service.PtlAgreementUndwrtRulesAttrService;
@@ -60,4 +61,6 @@ public class PtlNewAgreementController {
 
 
 
+
+
 }

+ 10 - 0
tenant/organization/src/main/java/com/jzg/organization/mapper/PtlAgreementMapper.java

@@ -3,6 +3,7 @@ package com.jzg.organization.mapper;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.jzg.commons.entity.dto.AgreementParam;
+import com.jzg.commons.entity.finance.vo.ContractVO;
 import com.jzg.commons.entity.po.PtlAgreement;
 import com.jzg.commons.entity.vo.AgreementVo;
 import org.apache.ibatis.annotations.Mapper;
@@ -42,6 +43,15 @@ public interface PtlAgreementMapper extends BaseMapper<PtlAgreement> {
      * @return
      */
     List<PtlAgreement> getByCompanyId(String companyId);
+
+    /**
+     * 查询协议中配置的所有对接人
+     *
+     * @author lipf
+     * @date 2026/7/28 9:13
+     */
+    List<ContractVO> queryContractVos(@Param("systemCode") String systemCode);
+
 }
 
 

+ 8 - 0
tenant/organization/src/main/java/com/jzg/organization/service/PtlAgreementService.java

@@ -2,6 +2,7 @@ package com.jzg.organization.service;
 
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.jzg.commons.entity.dto.*;
+import com.jzg.commons.entity.finance.vo.ContractVO;
 import com.jzg.commons.entity.po.PtlAgreement;
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.jzg.commons.entity.po.PtlAgreementCost;
@@ -158,4 +159,11 @@ public interface PtlAgreementService extends IService<PtlAgreement> {
      * @return
      */
     List<PtlAgreementCostExternal> getContactAgreementCost(String agreementId,String productId,String isInquiring);
+
+    /**
+     *
+     * @author lipf
+     * @date 2026/7/28 9:14
+     */
+    List<ContractVO> queryContractVos();
 }

+ 13 - 0
tenant/organization/src/main/java/com/jzg/organization/service/impl/PtlAgreementServiceImpl.java

@@ -10,6 +10,7 @@ import com.jzg.commons.core.base.BaseController;
 import com.jzg.commons.core.page.HttpResult;
 import com.jzg.commons.entity.dto.*;
 import com.jzg.commons.entity.enums.YesNoEnum;
+import com.jzg.commons.entity.finance.vo.ContractVO;
 import com.jzg.commons.entity.po.*;
 import com.jzg.commons.entity.vo.*;
 import com.jzg.commons.exception.SystemException;
@@ -588,6 +589,18 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
         return httpResult.getData();
     }
 
+    /**
+     * 查询协议中配置的所有对接人
+     *
+     * @author lipf
+     * @date 2026/7/28 9:13
+     */
+    @Override
+    public List<ContractVO> queryContractVos() {
+        String systemCode = baseController.getSystemCode();
+        log.info("查询对接人信息:systemCode=[{}]", systemCode);
+        return baseMapper.queryContractVos(systemCode);
+    }
 }
 
 

+ 16 - 0
tenant/organization/src/main/resources/mapper/PtlAgreementMapper.xml

@@ -235,4 +235,20 @@
             SELECT id FROM t)
         </where>
     </select>
+    <!--  查询对接人列表 lipf 2026年7月28日09:16:34 -->
+    <select id="queryContractVos" resultType="com.jzg.commons.entity.finance.vo.ContractVO">
+        select
+        distinct pa.system_code ,
+        pa.docking_person as contactPerson,
+        pa.docking_phone as contactPersonPhone
+        from
+        ptl_agreement pa
+        where
+        pa.docking_person is not null
+        and length(pa.docking_person) != 0
+        and pa.system_code = #{systemCode}
+        and pa.is_delete = 0
+        order by
+        pa.docking_person asc
+    </select>
 </mapper>