From 457890d43a4d42eb6d3ab5112bb5266e9909d1e2 Mon Sep 17 00:00:00 2001
From: chenjiahe <763432473@qq.com>
Date: 星期五, 05 十一月 2021 17:52:21 +0800
Subject: [PATCH] 新增优化

---
 phi_platform_common/src/main/java/com/hx/phip/tool/ApplyParameterTool.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/phi_platform_common/src/main/java/com/hx/phip/tool/ApplyParameterTool.java b/phi_platform_common/src/main/java/com/hx/phip/tool/ApplyParameterTool.java
index c0a1047..971d9b5 100644
--- a/phi_platform_common/src/main/java/com/hx/phip/tool/ApplyParameterTool.java
+++ b/phi_platform_common/src/main/java/com/hx/phip/tool/ApplyParameterTool.java
@@ -47,5 +47,22 @@
         return spplyParameter;
     }
 
+    /**浼佷笟鑱旂郴鎴�
+     * @param corpId
+     * @param commonService
+     * @return
+     */
+    public static ApplyParameter getContact(String corpId, CommonService commonService){
+        SqlSentence sqlSentence = new SqlSentence();
+        Map<String,Object> values = new HashMap<>();
+
+        values.put("isDel",ApplyParameter.NO);
+        values.put("corpId",corpId);
+        values.put("type",ApplyParameter.TYPE_CORP_CONTACT);
+        sqlSentence.sqlSentence("SELECT * FROM pla_apply_parameter WHERE isDel = #{m.isDel} AND corpId = #{m.corpId} AND type = #{m.type}",values);
+        ApplyParameter spplyParameter = commonService.selectOne(ApplyParameterMapper.class,sqlSentence);
+        return spplyParameter;
+    }
+
 
 }

--
Gitblit v1.8.0