From 6dec1dfc0a93a9558710022890cb59738b3e7d0a Mon Sep 17 00:00:00 2001 From: hanzhenchao Date: Thu, 16 Jun 2022 19:28:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=8F=AF=E4=BF=A1=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customer/common/enums/ChargingModelEnum.java | 54 + .../customer/common/enums/CommonStatusEnum.java | 63 + .../common/enums/DoctorProductTypeEnum.java | 56 + .../ywx/customer/common/enums/FirmProperEnum.java | 7 +- .../ywx/customer/common/enums/FirmProperEnum2.java | 34 + .../ywx/customer/common/enums/NetworkTypeEnum.java | 64 + .../customer/common/enums/ProjectStatusEnum.java | 60 + .../common/enums/PublicProductTypeEnum.java | 55 + .../customer/common/model/FirmPropertyModel.java | 56 + customer/pom.xml | 19 +- .../java/com/trust/ywx/customer/Application.java | 4 +- .../ywx/customer/dao/DoctorProductTypeDao.java | 54 + .../java/com/trust/ywx/customer/dao/FirmDao.java | 78 + .../com/trust/ywx/customer/dao/FirmExtendDao.java | 63 + .../com/trust/ywx/customer/dao/FirmGroupDao.java | 46 + .../customer/dao/mapper/CustomerInfoMapper.java | 44 - .../ywx/customer/dao/mapper/FirmGroupMapper.java | 36 + .../dao/mapper/FirmUsercertChannelMapper.java | 36 + .../dao/mapper/custom/FirmCustomMapper.java | 38 + .../com/trust/ywx/customer/dao/po/FirmGroup.java | 216 + .../ywx/customer/dao/po/FirmGroupExample.java | 978 +++ .../ywx/customer/dao/po/FirmUsercertChannel.java | 175 + .../dao/po/FirmUsercertChannelExample.java | 697 ++ .../ywx/customer/service/TrustCustomerService.java | 34 - .../service/dto/request/SearchFirmParam.java | 2 +- .../service/dto/request/SearchTrustFirmParam.java | 53 +- .../service/impl/FirmQueryServiceImpl.java | 203 +- .../service/impl/FirmQueryServiceImpl_bak.java | 202 + .../service/impl/TrustCustomerServiceimpl.java | 31 - .../service/manager/FirmManagerService.java | 4 + .../customer/service/query/FirmQueryService.java | 19 +- .../customer/web/controller/FirmController.java | 29 + .../web/controller/TrustComsumerController.java | 29 - customer/src/main/resources/generatorConfig.xml | 58 +- .../mybatis/mapper/CustomerInfoMapper.xml | 8976 -------------------- .../resources/mybatis/mapper/FirmGroupMapper.xml | 312 + .../mybatis/mapper/FirmUsercertChannelMapper.xml | 763 ++ .../mybatis/mapper/custom/FirmCustomMapper.xml | 19 + .../src/main/resources/spring/dubbo-provider.xml | 2 +- 39 files changed, 4487 insertions(+), 9182 deletions(-) create mode 100644 common/src/main/java/com/trust/ywx/customer/common/enums/ChargingModelEnum.java create mode 100644 common/src/main/java/com/trust/ywx/customer/common/enums/CommonStatusEnum.java create mode 100644 common/src/main/java/com/trust/ywx/customer/common/enums/DoctorProductTypeEnum.java create mode 100644 common/src/main/java/com/trust/ywx/customer/common/enums/FirmProperEnum2.java create mode 100644 common/src/main/java/com/trust/ywx/customer/common/enums/NetworkTypeEnum.java create mode 100644 common/src/main/java/com/trust/ywx/customer/common/enums/ProjectStatusEnum.java create mode 100644 common/src/main/java/com/trust/ywx/customer/common/enums/PublicProductTypeEnum.java create mode 100644 common/src/main/java/com/trust/ywx/customer/common/model/FirmPropertyModel.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/DoctorProductTypeDao.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/FirmDao.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/FirmExtendDao.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/FirmGroupDao.java delete mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/mapper/CustomerInfoMapper.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/mapper/FirmGroupMapper.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/mapper/FirmUsercertChannelMapper.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/mapper/custom/FirmCustomMapper.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/po/FirmGroup.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/po/FirmGroupExample.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/po/FirmUsercertChannel.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/dao/po/FirmUsercertChannelExample.java delete mode 100644 customer/src/main/java/com/trust/ywx/customer/service/TrustCustomerService.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/service/impl/FirmQueryServiceImpl_bak.java delete mode 100644 customer/src/main/java/com/trust/ywx/customer/service/impl/TrustCustomerServiceimpl.java create mode 100644 customer/src/main/java/com/trust/ywx/customer/web/controller/FirmController.java delete mode 100644 customer/src/main/java/com/trust/ywx/customer/web/controller/TrustComsumerController.java delete mode 100644 customer/src/main/resources/mybatis/mapper/CustomerInfoMapper.xml create mode 100644 customer/src/main/resources/mybatis/mapper/FirmGroupMapper.xml create mode 100644 customer/src/main/resources/mybatis/mapper/FirmUsercertChannelMapper.xml create mode 100644 customer/src/main/resources/mybatis/mapper/custom/FirmCustomMapper.xml diff --git a/common/src/main/java/com/trust/ywx/customer/common/enums/ChargingModelEnum.java b/common/src/main/java/com/trust/ywx/customer/common/enums/ChargingModelEnum.java new file mode 100644 index 0000000..91eb8a8 --- /dev/null +++ b/common/src/main/java/com/trust/ywx/customer/common/enums/ChargingModelEnum.java @@ -0,0 +1,54 @@ +package com.trust.ywx.customer.common.enums; + +/** + *

+ *
+ * @文件名称: Firm.java
+ * @包 路  径: com.trust.ywx.customer.common.enums
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description: 目前数据库中存的是code(varchar),希望以后改成tinyint
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 13:31
+ * @Modify:
+ */
+public enum ChargingModelEnum {
+    NORMAL(0, "规则计费"),
+    ERROR(1, "异常计费"),
+    ;
+
+    private int code;
+    private String name;
+
+    private ChargingModelEnum(int code, String name) {
+        this.code = code;
+        this.name = name;
+    }
+
+    public static String getNameOfCode(int code) {
+        switch (code) {
+            case 0:
+                return NORMAL.getName();
+            case 1:
+                return ERROR.getName();
+            default:
+                return "unknow";
+        }
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+}
diff --git a/common/src/main/java/com/trust/ywx/customer/common/enums/CommonStatusEnum.java b/common/src/main/java/com/trust/ywx/customer/common/enums/CommonStatusEnum.java
new file mode 100644
index 0000000..a56136f
--- /dev/null
+++ b/common/src/main/java/com/trust/ywx/customer/common/enums/CommonStatusEnum.java
@@ -0,0 +1,63 @@
+package com.trust.ywx.customer.common.enums;
+
+/**
+ * 

+ *
+ * @文件名称: Firm.java
+ * @包 路  径: com.trust.ywx.customer.common.enums
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description: 通用枚举值 0-false;1-true
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 13:31
+ * @Modify:
+ */
+public enum CommonStatusEnum {
+    YES(1, "true"), // 是
+    NO(0, "false"), // 否
+    ;
+
+    private int code;
+    private String name;
+
+    private CommonStatusEnum(int code, String name) {
+        this.code = code;
+        this.name = name;
+    }
+
+    public static String getNameOfCode(int code) {
+        switch (code) {
+            case 1:
+                return YES.getName();
+            case 0:
+                return NO.getName();
+            default:
+                return "unknow";
+        }
+    }
+    public static int getCodeOfName(String name) {
+        switch (name) {
+            case "true":
+                return YES.getCode();
+            case "false":
+                return NO.getCode();
+            default:
+                return 0;
+        }
+    }
+    public String getName() {
+        return name;
+    }
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+}
diff --git a/common/src/main/java/com/trust/ywx/customer/common/enums/DoctorProductTypeEnum.java b/common/src/main/java/com/trust/ywx/customer/common/enums/DoctorProductTypeEnum.java
new file mode 100644
index 0000000..57c026c
--- /dev/null
+++ b/common/src/main/java/com/trust/ywx/customer/common/enums/DoctorProductTypeEnum.java
@@ -0,0 +1,56 @@
+package com.trust.ywx.customer.common.enums;
+
+import javax.print.Doc;
+
+/**
+ * 

+ *
+ * @文件名称: Firm.java
+ * @包 路  径: com.trust.ywx.customer.common.enums
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description:
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 13:31
+ * @Modify:
+ */
+public enum DoctorProductTypeEnum {
+    APP(0,"APP"),
+    SDK(1,"SDK"),;
+
+    private int code;
+    private String name;
+
+    private DoctorProductTypeEnum(int code,String name){
+        this.code= code;
+        this.name = name;
+    }
+
+
+    public static String valueOfCode(int code) {
+        switch (code) {
+            case 1:
+                return APP.getName();
+            case 2:
+                return SDK.getName();
+            default:
+                return "unknow";
+        }
+    }
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+}
diff --git a/common/src/main/java/com/trust/ywx/customer/common/enums/FirmProperEnum.java b/common/src/main/java/com/trust/ywx/customer/common/enums/FirmProperEnum.java
index 21a0c19..1782220 100644
--- a/common/src/main/java/com/trust/ywx/customer/common/enums/FirmProperEnum.java
+++ b/common/src/main/java/com/trust/ywx/customer/common/enums/FirmProperEnum.java
@@ -15,8 +15,11 @@ package com.trust.ywx.customer.common.enums;
 public enum FirmProperEnum {
 
 	//---------------------------基础配置-------------------------------------
-	FIRM_NETWORK_TYPE("network_type", "客户类型"),//互联网/通讯平台(网关版-gateway,网闸版-it互联网)
-	FIRM_GATEWAY_VERSION("gateway_version", "通讯平台版本"),//网络环境,若网关或网闸版本需注明版本
+	NETWORK_TYPE("network_type", "客户类型"),//互联网/通讯平台(网关版-gateway,网闸版-it互联网)
+	GATEWAY_VERSION("gateway_version", "通讯平台版本"),//网络环境,若网关或网闸版本需注明版本
+	PUBLIC_PRODUCT_TYPE("public_product_type", "公众产品形态"),//网络环境,若网关或网闸版本需注明版本
+	DOCTOR_PRODUCT_TYPE("doctor_product_type", "医师产品形态"),//网络环境,若网关或网闸版本需注明版本
+	CHARGING_MODEL("charging_model", "计费模式"),//网络环境,若网关或网闸版本需注明版本
 
 	//---------------------------患者签名配置-------------------------------------
 	//---------------------------可选择配置及服务-------------------------------------
diff --git a/common/src/main/java/com/trust/ywx/customer/common/enums/FirmProperEnum2.java b/common/src/main/java/com/trust/ywx/customer/common/enums/FirmProperEnum2.java
new file mode 100644
index 0000000..ead5623
--- /dev/null
+++ b/common/src/main/java/com/trust/ywx/customer/common/enums/FirmProperEnum2.java
@@ -0,0 +1,34 @@
+package com.trust.ywx.customer.common.enums;
+/***************************************************************************
+ * 

+ * @文件名称:  FirmProperEnum.java
+ * @包   路   径:  cn.org.bjca.ywq.firm.cons
+ * @版权所有:北京数字认证股份有限公司 (C) 2018
+ *
+ * @类描述:  
+ * @版本: V1.5
+ * @创建人: hudan
+ * @创建时间:2018年2月27日 下午7:36:58
+ *
+ * @修改记录:
+ **/
+public enum FirmProperEnum2 {
+
+	//---------------------------基础配置-------------------------------------
+	NETWORK_TYPE("network_type", "客户类型"),//互联网/通讯平台(网关版-gateway,网闸版-it互联网)
+	GATEWAY_VERSION("gateway_version", "通讯平台版本"),//网络环境,若网关或网闸版本需注明版本
+	PUBLIC_PRODUCT_TYPE("public_product_type", "公众产品形态"),//网络环境,若网关或网闸版本需注明版本
+	DOCTOR_PRODUCT_TYPE("doctor_product_type", "医师产品形态"),//网络环境,若网关或网闸版本需注明版本
+	CHARGING_MODEL("charging_model", "计费模式"),
+	;
+
+
+	private String propName;
+	private String propDesc;
+
+	private FirmProperEnum2(String propName, String propDesc) {
+		this.propName = propName;
+		this.propDesc = propDesc;
+	}
+
+}
diff --git a/common/src/main/java/com/trust/ywx/customer/common/enums/NetworkTypeEnum.java b/common/src/main/java/com/trust/ywx/customer/common/enums/NetworkTypeEnum.java
new file mode 100644
index 0000000..2aa4a64
--- /dev/null
+++ b/common/src/main/java/com/trust/ywx/customer/common/enums/NetworkTypeEnum.java
@@ -0,0 +1,64 @@
+package com.trust.ywx.customer.common.enums;
+
+/**
+ * 

+ *
+ * @文件名称: Firm.java
+ * @包 路  径: com.trust.ywx.customer.common.enums
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description: fixme 目前数据库中存的是name,以后希望改成code(int)
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 13:31
+ * @Modify:
+ */
+public enum NetworkTypeEnum {
+    GATEWAY(1, "gateway"),
+    IT(2, "it"),
+    ;
+
+    private int code;
+    private String name;
+
+    private NetworkTypeEnum(int code, String name) {
+        this.code = code;
+        this.name = name;
+    }
+
+    public static String getNameOfCode(int code) {
+        switch (code) {
+            case 1:
+                return GATEWAY.getName();
+            case 2:
+                return IT.getName();
+            default:
+                return "unknow";
+        }
+    }
+    public static int getCodeOfName(String name) {
+        switch (name) {
+            case "gateway":
+                return GATEWAY.getCode();
+            case "it":
+                return IT.getCode();
+            default:
+                return 0;
+        }
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+}
diff --git a/common/src/main/java/com/trust/ywx/customer/common/enums/ProjectStatusEnum.java b/common/src/main/java/com/trust/ywx/customer/common/enums/ProjectStatusEnum.java
new file mode 100644
index 0000000..4f19733
--- /dev/null
+++ b/common/src/main/java/com/trust/ywx/customer/common/enums/ProjectStatusEnum.java
@@ -0,0 +1,60 @@
+package com.trust.ywx.customer.common.enums;
+
+/**
+ * 

+ *
+ * @文件名称: Firm.java
+ * @包 路  径: com.trust.ywx.customer.common.enums
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description: 项目状态
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 13:31
+ * @Modify:
+ */
+public enum ProjectStatusEnum {
+    NORMAL(1, "正常"),
+    TRYING(2, "试用"),
+    EXTINCT(3, "消亡"),
+    DEL(4, "删除"),
+    ;
+
+    private int code;
+    private String name;
+
+    private ProjectStatusEnum(int code, String name) {
+        this.code = code;
+        this.name = name;
+    }
+
+    public static String getNameOfCode(int code) {
+        switch (code) {
+            case 1:
+                return NORMAL.getName();
+            case 2:
+                return TRYING.getName();
+            case 3:
+                return EXTINCT.getName();
+            case 4:
+                return DEL.getName();
+            default:
+                return "unknow";
+        }
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+}
diff --git a/common/src/main/java/com/trust/ywx/customer/common/enums/PublicProductTypeEnum.java b/common/src/main/java/com/trust/ywx/customer/common/enums/PublicProductTypeEnum.java
new file mode 100644
index 0000000..282ed03
--- /dev/null
+++ b/common/src/main/java/com/trust/ywx/customer/common/enums/PublicProductTypeEnum.java
@@ -0,0 +1,55 @@
+package com.trust.ywx.customer.common.enums;
+
+/**
+ * 

+ *
+ * @文件名称: Firm.java
+ * @包 路  径: com.trust.ywx.customer.common.enums
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description:
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 13:31
+ * @Modify:
+ */
+public enum PublicProductTypeEnum {
+    SDK(0,"SDK"),
+    H5(1,"H5"),;
+
+    private int code;
+    private String name;
+
+    private PublicProductTypeEnum(int code, String name){
+        this.code= code;
+        this.name = name;
+    }
+
+
+    public static String getNameOfCode(int code) {
+        switch (code) {
+            case 1:
+                return SDK.getName();
+            case 2:
+                return H5.getName();
+            default:
+                return "unknow";
+        }
+    }
+
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+}
diff --git a/common/src/main/java/com/trust/ywx/customer/common/model/FirmPropertyModel.java b/common/src/main/java/com/trust/ywx/customer/common/model/FirmPropertyModel.java
new file mode 100644
index 0000000..e3bcc7c
--- /dev/null
+++ b/common/src/main/java/com/trust/ywx/customer/common/model/FirmPropertyModel.java
@@ -0,0 +1,56 @@
+package com.trust.ywx.customer.common.model;
+
+/**
+ * 

+ *
+ * @文件名称: FirmPropertyModel.java
+ * @包 路  径: com.trust.ywx.customer.common.model
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description:
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 16:12
+ * @Modify:
+ */
+public class FirmPropertyModel {
+    /**
+     * 医师产品形态
+     * see com.trust.ywx.customer.common.enums.DoctorProductTypeEnum
+     */
+    private Integer doctorProductType;
+    /**
+     * 公众产品形态 SDK\H5
+     * see com.trust.ywx.customer.common.enums.PublicProductTypeEnum
+     */
+    private Integer publicProductType;
+
+    /**
+     * 客户类型:互联网医院、实体医院等
+     * see com.trust.ywx.customer.common.enums.NetworkTypeEnum
+     *
+     */
+    private Integer networkType;
+    /**
+     * 计费模式 0正常 1异常
+     * see com.trust.ywx.customer.common.enums.ChargingModelEnum
+     */
+    private Integer chargingModel;
+    /**
+     * 客户白名单 1:true 0:false
+     * see com.trust.ywx.customer.common.enums.CommonStatusEnum
+     */
+    private Integer isFirmWhite;
+
+    /**
+     * 是否允许医生挂靠
+     * see com.trust.ywx.customer.common.enums.CommonStatusEnum
+     */
+    private Integer allowUserBind;
+
+    /**
+     * 附件PDF增加水印
+     * see com.trust.ywx.customer.common.enums.CommonStatusEnum
+     */
+    private Integer pdfWater;
+
+}
diff --git a/customer/pom.xml b/customer/pom.xml
index 802027b..e1b257e 100644
--- a/customer/pom.xml
+++ b/customer/pom.xml
@@ -19,15 +19,26 @@
     
 
         
-            com.51trust.ywx
-            ywx-customer-common
-            0.0.1-SNAPSHOT
+            org.springframework.boot
+            spring-boot-starter-web
+            
+                
+                    spring-webmvc
+                    org.springframework
+                
+            
         
         
             org.springframework.boot
-            spring-boot-starter-web
+            spring-boot-starter
+        
+        
+            com.51trust.ywx
+            ywx-customer-common
+            0.0.1-SNAPSHOT
         
 
+
         
             org.mybatis.spring.boot
             mybatis-spring-boot-starter
diff --git a/customer/src/main/java/com/trust/ywx/customer/Application.java b/customer/src/main/java/com/trust/ywx/customer/Application.java
index 447f73c..b2a23c5 100644
--- a/customer/src/main/java/com/trust/ywx/customer/Application.java
+++ b/customer/src/main/java/com/trust/ywx/customer/Application.java
@@ -26,8 +26,8 @@ import org.springframework.context.annotation.ImportResource;
 @Slf4j
 @ImportResource(locations = {"classpath:spring/spring-applicationContext.xml",})
 //@ComponentScan(basePackages = {"com.trust.ywx.customer",})
-//@MapperScan(value = {"com.trust.ywx.customer.*.mapper"})
-@SpringBootApplication(exclude = {
+@MapperScan(value = {"com.trust.ywx.customer.*.mapper"})
+@SpringBootApplication(scanBasePackages = {"com.trust.ywx.customer"},exclude = {
         DataSourceAutoConfiguration.class,
         DataSourceTransactionManagerAutoConfiguration.class,})
 public class Application {
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/DoctorProductTypeDao.java b/customer/src/main/java/com/trust/ywx/customer/dao/DoctorProductTypeDao.java
new file mode 100644
index 0000000..38fd8bd
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/dao/DoctorProductTypeDao.java
@@ -0,0 +1,54 @@
+package com.trust.ywx.customer.dao;
+
+import com.trust.ywx.customer.dao.mapper.FirmGroupMapper;
+import com.trust.ywx.customer.dao.mapper.FirmUsercertChannelMapper;
+import com.trust.ywx.customer.dao.po.FirmGroup;
+import com.trust.ywx.customer.dao.po.FirmGroupExample;
+import com.trust.ywx.customer.dao.po.FirmUsercertChannel;
+import com.trust.ywx.customer.dao.po.FirmUsercertChannelExample;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.util.CollectionUtils;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.stream.Collectors;
+
+/**
+ * 

+ *
+ * @文件名称: FirmDao.java
+ * @包 路  径: com.trust.ywx.customer.dao
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description: 医师产品形态dao fixme 以后要合并到firm_info_extends
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 10:31
+ * @Modify:
+ */
+public class DoctorProductTypeDao {
+
+    @Autowired
+    private FirmUsercertChannelMapper usercertChannelMapper;
+
+    public List getClientIdByProp(List clientIdList,Integer doctorProductType){
+        FirmUsercertChannelExample example = new FirmUsercertChannelExample();
+        example.createCriteria().andChannelTypeEqualTo(doctorProductType).andClientidIn(clientIdList);
+        List list = usercertChannelMapper.selectByExample(example);
+        if(CollectionUtils.isEmpty(list)) {
+            return Arrays.asList();
+        }
+        return  list.stream().map(group->{return group.getFirmId();}).collect(Collectors.toList());
+    }
+
+    public List getByClientId(String clientId){
+        FirmUsercertChannelExample example = new FirmUsercertChannelExample();
+        example.createCriteria().andClientidEqualTo(clientId);
+        List list = usercertChannelMapper.selectByExample(example);
+        if(CollectionUtils.isEmpty(list)) {
+            return Arrays.asList();
+        }
+        return list;
+    }
+
+
+}
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/FirmDao.java b/customer/src/main/java/com/trust/ywx/customer/dao/FirmDao.java
new file mode 100644
index 0000000..160ca79
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/dao/FirmDao.java
@@ -0,0 +1,78 @@
+package com.trust.ywx.customer.dao;
+
+import com.trust.ywx.customer.common.enums.ProjectStatusEnum;
+import com.trust.ywx.customer.dao.mapper.FirmInfoMapper;
+import com.trust.ywx.customer.dao.mapper.custom.FirmCustomMapper;
+import com.trust.ywx.customer.dao.po.FirmInfo;
+import com.trust.ywx.customer.dao.po.FirmInfoExample;
+import org.springframework.beans.factory.annotation.Autowired;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 

+ *
+ * @文件名称: FirmDao.java
+ * @包 路  径: com.trust.ywx.customer.dao
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description: 客户查询DAO fixme 每次查询都要加项目状态!=删除的。 为什么不直接物理删除呢
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 10:31
+ * @Modify:
+ */
+public class FirmDao {
+
+    @Autowired
+    private FirmInfoMapper firmInfoMapper;
+
+    @Autowired
+    private FirmCustomMapper firmCustomMapper;
+
+    public List getListByIds(List clientIdList,int pageSize,int pageNo) {
+        FirmInfoExample example = new FirmInfoExample();
+        example.createCriteria().andClientIdIn(clientIdList).andProjectStatusNotEqualTo(ProjectStatusEnum.DEL.getCode());
+        example.page(pageNo,pageSize);
+        return firmInfoMapper.selectByExample(example);
+    }
+
+    /**
+     * 根据合同关键字查询合同表获取客户id
+     * @param keyword
+     * @return
+     */
+    public String getClientIdByKeyword(String keyword) {
+        return firmCustomMapper.getClientIdByKeyword(keyword);
+    }
+  /**
+     * 根据合同关键字查询合同表获取客户id
+     * @param channelType
+     * @return
+     */
+    public List getClientIdByChannelType(int channelType) {
+        return firmCustomMapper.getClientIdByChannelType(channelType);
+    }
+
+
+    /**
+     * 根据客户Id查询客户信息
+     * @param clientId
+     * @return
+     */
+    public FirmInfo getFrimByClientId(String clientId) {
+        FirmInfoExample example = new FirmInfoExample();
+        example.createCriteria().andClientIdEqualTo(clientId).andProjectStatusNotEqualTo(ProjectStatusEnum.DEL.getCode());
+        return firmInfoMapper.selectOneByExample(example);
+    }
+
+    /**
+     * 根据属性集合获取客户id
+     * @param propMap
+     */
+    public List getClientIdByProps(Map propMap) {
+//        firmCustomMapper.getClientIdByProps(propMap);
+        return null;
+    }
+
+}
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/FirmExtendDao.java b/customer/src/main/java/com/trust/ywx/customer/dao/FirmExtendDao.java
new file mode 100644
index 0000000..f84095a
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/dao/FirmExtendDao.java
@@ -0,0 +1,63 @@
+package com.trust.ywx.customer.dao;
+
+import com.trust.ywx.customer.dao.mapper.FirmInfoExtendMapper;
+import com.trust.ywx.customer.dao.po.FirmInfoExtend;
+import com.trust.ywx.customer.dao.po.FirmInfoExtendExample;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.util.CollectionUtils;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.stream.Collectors;
+
+/**
+ * 

+ *
+ * @文件名称: FirmExtendDao.java
+ * @包 路  径: com.trust.ywx.customer.dao.mapper
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description:
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 17:31
+ * @Modify:
+ */
+public class FirmExtendDao {
+    @Autowired
+    FirmInfoExtendMapper extendMapper;
+
+    /**
+     * 根据属性集合获取客户id
+     * @param propName
+     * @param clientIdList
+     */
+    public List getByPropsAndClientId(String propName,String propValue, List clientIdList){
+        FirmInfoExtendExample example = new FirmInfoExtendExample();
+        FirmInfoExtendExample.Criteria where = example.createCriteria();
+        where.andPropNameEqualTo(propName).andPropValueEqualTo(propValue);
+        if(!CollectionUtils.isEmpty(clientIdList)){
+            where.andClientIdIn(clientIdList);
+        }
+        List poList = extendMapper.selectByExample(example);
+        if(CollectionUtils.isEmpty(poList)){
+            return Arrays.asList();
+        }
+
+        return poList.stream().map(extend->{
+            return extend.getClientId();
+        }).collect(Collectors.toList());
+    }
+
+    public List getListByClientId(String clientId){
+        FirmInfoExtendExample example = new FirmInfoExtendExample();
+        FirmInfoExtendExample.Criteria where = example.createCriteria();
+        where.andClientIdEqualTo(clientId);
+        List poList = extendMapper.selectByExample(example);
+        if(CollectionUtils.isEmpty(poList)){
+            return Arrays.asList();
+        }
+
+        return poList;
+    }
+
+}
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/FirmGroupDao.java b/customer/src/main/java/com/trust/ywx/customer/dao/FirmGroupDao.java
new file mode 100644
index 0000000..956953b
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/dao/FirmGroupDao.java
@@ -0,0 +1,46 @@
+package com.trust.ywx.customer.dao;
+
+import com.trust.ywx.customer.dao.mapper.FirmGroupMapper;
+import com.trust.ywx.customer.dao.mapper.FirmInfoMapper;
+import com.trust.ywx.customer.dao.mapper.custom.FirmCustomMapper;
+import com.trust.ywx.customer.dao.po.FirmGroup;
+import com.trust.ywx.customer.dao.po.FirmGroupExample;
+import com.trust.ywx.customer.service.dto.request.SearchTrustFirmParam;
+import org.springframework.beans.factory.annotation.Autowired;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.stream.Collectors;
+
+/**
+ * 

+ *
+ * @文件名称: FirmDao.java
+ * @包 路  径: com.trust.ywx.customer.dao
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description: 客户组查询DAO
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 10:31
+ * @Modify:
+ */
+public class FirmGroupDao {
+
+    @Autowired
+    private FirmGroupMapper firmGroupMapper;
+
+    public List getClientIdByGroupId(String groupId){
+        List groupsList = getListByGroupId(groupId);
+        List clientIdList = groupsList.stream().map(group->{return group.getFirmId();}).collect(Collectors.toList());
+        return clientIdList;
+    }
+
+
+    public List getListByGroupId(String groupId){
+        FirmGroupExample example = new FirmGroupExample();
+        example.createCriteria().andGroupIdEqualTo(groupId).andIsDelEqualTo(0);
+
+        return firmGroupMapper.selectByExample(example);
+    }
+
+}
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/mapper/CustomerInfoMapper.java b/customer/src/main/java/com/trust/ywx/customer/dao/mapper/CustomerInfoMapper.java
deleted file mode 100644
index 6dbd3e5..0000000
--- a/customer/src/main/java/com/trust/ywx/customer/dao/mapper/CustomerInfoMapper.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.trust.ywx.customer.dao.mapper;
-
-import com.trust.ywx.customer.dao.po.CustomerInfo;
-import com.trust.ywx.customer.dao.po.CustomerInfoExample;
-import java.util.List;
-import org.apache.ibatis.annotations.Param;
-
-public interface CustomerInfoMapper {
-    long countByExample(CustomerInfoExample example);
-
-    int deleteByExample(CustomerInfoExample example);
-
-    int deleteByPrimaryKey(String uniqueid);
-
-    int insert(CustomerInfo record);
-
-    int insertSelective(CustomerInfo record);
-
-    CustomerInfo selectOneByExample(CustomerInfoExample example);
-
-    CustomerInfo selectOneByExampleWithBLOBs(CustomerInfoExample example);
-
-    List selectByExampleWithBLOBs(CustomerInfoExample example);
-
-    List selectByExample(CustomerInfoExample example);
-
-    CustomerInfo selectByPrimaryKey(String uniqueid);
-
-    int updateByExampleSelective(@Param("record") CustomerInfo record, @Param("example") CustomerInfoExample example);
-
-    int updateByExampleWithBLOBs(@Param("record") CustomerInfo record, @Param("example") CustomerInfoExample example);
-
-    int updateByExample(@Param("record") CustomerInfo record, @Param("example") CustomerInfoExample example);
-
-    int updateByPrimaryKeySelective(CustomerInfo record);
-
-    int updateByPrimaryKeyWithBLOBs(CustomerInfo record);
-
-    int updateByPrimaryKey(CustomerInfo record);
-
-    int batchInsert(@Param("list") List list);
-
-    int batchInsertSelective(@Param("list") List list, @Param("selective") CustomerInfo.Column ... selective);
-}
\ No newline at end of file
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/mapper/FirmGroupMapper.java b/customer/src/main/java/com/trust/ywx/customer/dao/mapper/FirmGroupMapper.java
new file mode 100644
index 0000000..ca6d521
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/dao/mapper/FirmGroupMapper.java
@@ -0,0 +1,36 @@
+package com.trust.ywx.customer.dao.mapper;
+
+import com.trust.ywx.customer.dao.po.FirmGroup;
+import com.trust.ywx.customer.dao.po.FirmGroupExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface FirmGroupMapper {
+    long countByExample(FirmGroupExample example);
+
+    int deleteByExample(FirmGroupExample example);
+
+    int deleteByPrimaryKey(String uniqueid);
+
+    int insert(FirmGroup record);
+
+    int insertSelective(FirmGroup record);
+
+    FirmGroup selectOneByExample(FirmGroupExample example);
+
+    List selectByExample(FirmGroupExample example);
+
+    FirmGroup selectByPrimaryKey(String uniqueid);
+
+    int updateByExampleSelective(@Param("record") FirmGroup record, @Param("example") FirmGroupExample example);
+
+    int updateByExample(@Param("record") FirmGroup record, @Param("example") FirmGroupExample example);
+
+    int updateByPrimaryKeySelective(FirmGroup record);
+
+    int updateByPrimaryKey(FirmGroup record);
+
+    int batchInsert(@Param("list") List list);
+
+    int batchInsertSelective(@Param("list") List list, @Param("selective") FirmGroup.Column ... selective);
+}
\ No newline at end of file
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/mapper/FirmUsercertChannelMapper.java b/customer/src/main/java/com/trust/ywx/customer/dao/mapper/FirmUsercertChannelMapper.java
new file mode 100644
index 0000000..6a00736
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/dao/mapper/FirmUsercertChannelMapper.java
@@ -0,0 +1,36 @@
+package com.trust.ywx.customer.dao.mapper;
+
+import com.trust.ywx.customer.dao.po.FirmUsercertChannel;
+import com.trust.ywx.customer.dao.po.FirmUsercertChannelExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface FirmUsercertChannelMapper {
+    long countByExample(FirmUsercertChannelExample example);
+
+    int deleteByExample(FirmUsercertChannelExample example);
+
+    int deleteByPrimaryKey(String uniqueid);
+
+    int insert(FirmUsercertChannel record);
+
+    int insertSelective(FirmUsercertChannel record);
+
+    FirmUsercertChannel selectOneByExample(FirmUsercertChannelExample example);
+
+    List selectByExample(FirmUsercertChannelExample example);
+
+    FirmUsercertChannel selectByPrimaryKey(String uniqueid);
+
+    int updateByExampleSelective(@Param("record") FirmUsercertChannel record, @Param("example") FirmUsercertChannelExample example);
+
+    int updateByExample(@Param("record") FirmUsercertChannel record, @Param("example") FirmUsercertChannelExample example);
+
+    int updateByPrimaryKeySelective(FirmUsercertChannel record);
+
+    int updateByPrimaryKey(FirmUsercertChannel record);
+
+    int batchInsert(@Param("list") List list);
+
+    int batchInsertSelective(@Param("list") List list, @Param("selective") FirmUsercertChannel.Column ... selective);
+}
\ No newline at end of file
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/mapper/custom/FirmCustomMapper.java b/customer/src/main/java/com/trust/ywx/customer/dao/mapper/custom/FirmCustomMapper.java
new file mode 100644
index 0000000..0b35a29
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/dao/mapper/custom/FirmCustomMapper.java
@@ -0,0 +1,38 @@
+package com.trust.ywx.customer.dao.mapper.custom;
+
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 

+ *
+ * @文件名称: FirmCustomMapper.java
+ * @包 路  径: com.trust.ywx.customer.dao.mapper.custom
+ * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+ * @Description:
+ * @Version: V1.0
+ * @Author: hanzhenchao
+ * @Date:2022/6/16 11:08
+ * @Modify:
+ */
+@Mapper
+public interface FirmCustomMapper {
+    /**
+     * 根据合同关键字获取客户id
+     * @param keyword
+     * @return
+     */
+    String getClientIdByKeyword(@Param("keyword") String keyword);
+
+    /**
+     * 根据channelType( 医师产品形态)获取客户id
+     * @param channelType
+     * @return
+     */
+    List getClientIdByChannelType(@Param("channelType") int channelType);
+
+
+}
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmGroup.java b/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmGroup.java
new file mode 100644
index 0000000..2f6cb7e
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmGroup.java
@@ -0,0 +1,216 @@
+package com.trust.ywx.customer.dao.po;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * Table: firm_group
+ */
+@Data
+public class FirmGroup implements Serializable {
+    /**
+     * 唯一标识
+     *
+     * Table:     firm_group
+     * Column:    uniqueId
+     * Nullable:  false
+     */
+    private String uniqueid;
+
+    /**
+     * Table:     firm_group
+     * Column:    group_name
+     * Nullable:  false
+     */
+    private String groupName;
+
+    /**
+     * Table:     firm_group
+     * Column:    group_num
+     * Nullable:  false
+     */
+    private String groupId;
+
+    /**
+     * Table:     firm_group
+     * Column:    firm_id
+     * Nullable:  false
+     */
+    private String firmId;
+
+    /**
+     * 1组长 2组员
+     *
+     * Table:     firm_group
+     * Column:    firm_role
+     * Nullable:  false
+     */
+    private Integer firmRole;
+
+    /**
+     * Table:     firm_group
+     * Column:    create_time
+     * Nullable:  false
+     */
+    private Date createTime;
+
+    /**
+     * 1已删除  0未删除
+     *
+     * Table:     firm_group
+     * Column:    is_del
+     * Nullable:  true
+     */
+    private Integer isDel;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", uniqueid=").append(uniqueid);
+        sb.append(", groupName=").append(groupName);
+        sb.append(", groupId=").append(groupId);
+        sb.append(", firmId=").append(firmId);
+        sb.append(", firmRole=").append(firmRole);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", isDel=").append(isDel);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+
+    public static FirmGroup.Builder builder() {
+        return new FirmGroup.Builder();
+    }
+
+    public static class Builder {
+        private FirmGroup obj;
+
+        public Builder() {
+            this.obj = new FirmGroup();
+        }
+
+        public Builder uniqueid(String uniqueid) {
+            obj.setUniqueid(uniqueid);
+            return this;
+        }
+
+        public Builder groupName(String groupName) {
+            obj.setGroupName(groupName);
+            return this;
+        }
+
+        public Builder groupId(String groupId) {
+            obj.setGroupId(groupId);
+            return this;
+        }
+
+        public Builder firmId(String firmId) {
+            obj.setFirmId(firmId);
+            return this;
+        }
+
+        public Builder firmRole(Integer firmRole) {
+            obj.setFirmRole(firmRole);
+            return this;
+        }
+
+        public Builder createTime(Date createTime) {
+            obj.setCreateTime(createTime);
+            return this;
+        }
+
+        public Builder isDel(Integer isDel) {
+            obj.setIsDel(isDel);
+            return this;
+        }
+
+        public FirmGroup build() {
+            return this.obj;
+        }
+    }
+
+    public enum Column {
+        uniqueid("uniqueId", "uniqueid", "VARCHAR", false),
+        groupName("group_name", "groupName", "VARCHAR", false),
+        groupId("group_num", "groupId", "VARCHAR", false),
+        firmId("firm_id", "firmId", "VARCHAR", false),
+        firmRole("firm_role", "firmRole", "INTEGER", false),
+        createTime("create_time", "createTime", "TIMESTAMP", false),
+        isDel("is_del", "isDel", "INTEGER", false);
+
+        private static final String BEGINNING_DELIMITER = "\"";
+
+        private static final String ENDING_DELIMITER = "\"";
+
+        private final String column;
+
+        private final boolean isColumnNameDelimited;
+
+        private final String javaProperty;
+
+        private final String jdbcType;
+
+        public String value() {
+            return this.column;
+        }
+
+        public String getValue() {
+            return this.column;
+        }
+
+        public String getJavaProperty() {
+            return this.javaProperty;
+        }
+
+        public String getJdbcType() {
+            return this.jdbcType;
+        }
+
+        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
+            this.column = column;
+            this.javaProperty = javaProperty;
+            this.jdbcType = jdbcType;
+            this.isColumnNameDelimited = isColumnNameDelimited;
+        }
+
+        public String desc() {
+            return this.getEscapedColumnName() + " DESC";
+        }
+
+        public String asc() {
+            return this.getEscapedColumnName() + " ASC";
+        }
+
+        public static Column[] excludes(Column ... excludes) {
+            ArrayList columns = new ArrayList<>(Arrays.asList(Column.values()));
+            if (excludes != null && excludes.length > 0) {
+                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
+            }
+            return columns.toArray(new Column[]{});
+        }
+
+        public static Column[] all() {
+            return Column.values();
+        }
+
+        public String getEscapedColumnName() {
+            if (this.isColumnNameDelimited) {
+                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
+            } else {
+                return this.column;
+            }
+        }
+
+        public String getAliasedEscapedColumnName() {
+            return this.getEscapedColumnName();
+        }
+    }
+}
\ No newline at end of file
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmGroupExample.java b/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmGroupExample.java
new file mode 100644
index 0000000..59b84ad
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmGroupExample.java
@@ -0,0 +1,978 @@
+package com.trust.ywx.customer.dao.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class FirmGroupExample {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List oredCriteria;
+
+    protected Integer offset;
+
+    protected Integer rows;
+
+    public FirmGroupExample() {
+        oredCriteria = new ArrayList();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public FirmGroupExample orderBy(String orderByClause) {
+        this.setOrderByClause(orderByClause);
+        return this;
+    }
+
+    public FirmGroupExample orderBy(String ... orderByClauses) {
+        StringBuffer sb = new StringBuffer();
+        for (int i = 0; i < orderByClauses.length; i++) {
+            sb.append(orderByClauses[i]);
+            if (i < orderByClauses.length - 1) {
+                sb.append(" , ");
+            }
+        }
+        this.setOrderByClause(sb.toString());
+        return this;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria(this);
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+        rows = null;
+        offset = null;
+    }
+
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    public Integer getOffset() {
+        return this.offset;
+    }
+
+    public void setRows(Integer rows) {
+        this.rows = rows;
+    }
+
+    public Integer getRows() {
+        return this.rows;
+    }
+
+    public FirmGroupExample limit(Integer rows) {
+        this.rows = rows;
+        return this;
+    }
+
+    public FirmGroupExample limit(Integer offset, Integer rows) {
+        this.offset = offset;
+        this.rows = rows;
+        return this;
+    }
+
+    public FirmGroupExample page(Integer page, Integer pageSize) {
+        this.offset = page * pageSize;
+        this.rows = pageSize;
+        return this;
+    }
+
+    public static Criteria newAndCreateCriteria() {
+        FirmGroupExample example = new FirmGroupExample();
+        return example.createCriteria();
+    }
+
+    public FirmGroupExample when(boolean condition, IExampleWhen then) {
+        if (condition) {
+            then.example(this);
+        }
+        return this;
+    }
+
+    public FirmGroupExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
+        if (condition) {
+            then.example(this);
+        } else {
+            otherwise.example(this);
+        }
+        return this;
+    }
+
+    protected abstract static class GeneratedCriteria {
+        protected List criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List getAllCriteria() {
+            return criteria;
+        }
+
+        public List getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andUniqueidIsNull() {
+            addCriterion("uniqueId is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidIsNotNull() {
+            addCriterion("uniqueId is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidEqualTo(String value) {
+            addCriterion("uniqueId =", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("uniqueId = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidNotEqualTo(String value) {
+            addCriterion("uniqueId <>", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidNotEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("uniqueId <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidGreaterThan(String value) {
+            addCriterion("uniqueId >", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidGreaterThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("uniqueId > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidGreaterThanOrEqualTo(String value) {
+            addCriterion("uniqueId >=", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidGreaterThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("uniqueId >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidLessThan(String value) {
+            addCriterion("uniqueId <", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidLessThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("uniqueId < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidLessThanOrEqualTo(String value) {
+            addCriterion("uniqueId <=", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidLessThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("uniqueId <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidLike(String value) {
+            addCriterion("uniqueId like", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidNotLike(String value) {
+            addCriterion("uniqueId not like", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidIn(List values) {
+            addCriterion("uniqueId in", values, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidNotIn(List values) {
+            addCriterion("uniqueId not in", values, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidBetween(String value1, String value2) {
+            addCriterion("uniqueId between", value1, value2, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidNotBetween(String value1, String value2) {
+            addCriterion("uniqueId not between", value1, value2, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameIsNull() {
+            addCriterion("group_name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameIsNotNull() {
+            addCriterion("group_name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameEqualTo(String value) {
+            addCriterion("group_name =", value, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_name = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameNotEqualTo(String value) {
+            addCriterion("group_name <>", value, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameNotEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_name <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameGreaterThan(String value) {
+            addCriterion("group_name >", value, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameGreaterThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_name > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameGreaterThanOrEqualTo(String value) {
+            addCriterion("group_name >=", value, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameGreaterThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_name >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameLessThan(String value) {
+            addCriterion("group_name <", value, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameLessThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_name < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameLessThanOrEqualTo(String value) {
+            addCriterion("group_name <=", value, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameLessThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_name <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameLike(String value) {
+            addCriterion("group_name like", value, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameNotLike(String value) {
+            addCriterion("group_name not like", value, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameIn(List values) {
+            addCriterion("group_name in", values, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameNotIn(List values) {
+            addCriterion("group_name not in", values, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameBetween(String value1, String value2) {
+            addCriterion("group_name between", value1, value2, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupNameNotBetween(String value1, String value2) {
+            addCriterion("group_name not between", value1, value2, "groupName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdIsNull() {
+            addCriterion("group_num is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdIsNotNull() {
+            addCriterion("group_num is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdEqualTo(String value) {
+            addCriterion("group_num =", value, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_num = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdNotEqualTo(String value) {
+            addCriterion("group_num <>", value, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdNotEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_num <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdGreaterThan(String value) {
+            addCriterion("group_num >", value, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdGreaterThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_num > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdGreaterThanOrEqualTo(String value) {
+            addCriterion("group_num >=", value, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdGreaterThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_num >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdLessThan(String value) {
+            addCriterion("group_num <", value, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdLessThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_num < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdLessThanOrEqualTo(String value) {
+            addCriterion("group_num <=", value, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdLessThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("group_num <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdLike(String value) {
+            addCriterion("group_num like", value, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdNotLike(String value) {
+            addCriterion("group_num not like", value, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdIn(List values) {
+            addCriterion("group_num in", values, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdNotIn(List values) {
+            addCriterion("group_num not in", values, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdBetween(String value1, String value2) {
+            addCriterion("group_num between", value1, value2, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGroupIdNotBetween(String value1, String value2) {
+            addCriterion("group_num not between", value1, value2, "groupId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdIsNull() {
+            addCriterion("firm_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdIsNotNull() {
+            addCriterion("firm_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdEqualTo(String value) {
+            addCriterion("firm_id =", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdNotEqualTo(String value) {
+            addCriterion("firm_id <>", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdNotEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdGreaterThan(String value) {
+            addCriterion("firm_id >", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdGreaterThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdGreaterThanOrEqualTo(String value) {
+            addCriterion("firm_id >=", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdGreaterThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdLessThan(String value) {
+            addCriterion("firm_id <", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdLessThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdLessThanOrEqualTo(String value) {
+            addCriterion("firm_id <=", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdLessThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdLike(String value) {
+            addCriterion("firm_id like", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdNotLike(String value) {
+            addCriterion("firm_id not like", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdIn(List values) {
+            addCriterion("firm_id in", values, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdNotIn(List values) {
+            addCriterion("firm_id not in", values, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdBetween(String value1, String value2) {
+            addCriterion("firm_id between", value1, value2, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdNotBetween(String value1, String value2) {
+            addCriterion("firm_id not between", value1, value2, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleIsNull() {
+            addCriterion("firm_role is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleIsNotNull() {
+            addCriterion("firm_role is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleEqualTo(Integer value) {
+            addCriterion("firm_role =", value, "firmRole");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_role = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleNotEqualTo(Integer value) {
+            addCriterion("firm_role <>", value, "firmRole");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleNotEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_role <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleGreaterThan(Integer value) {
+            addCriterion("firm_role >", value, "firmRole");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleGreaterThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_role > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleGreaterThanOrEqualTo(Integer value) {
+            addCriterion("firm_role >=", value, "firmRole");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleGreaterThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_role >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleLessThan(Integer value) {
+            addCriterion("firm_role <", value, "firmRole");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleLessThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_role < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleLessThanOrEqualTo(Integer value) {
+            addCriterion("firm_role <=", value, "firmRole");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleLessThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("firm_role <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleIn(List values) {
+            addCriterion("firm_role in", values, "firmRole");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleNotIn(List values) {
+            addCriterion("firm_role not in", values, "firmRole");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleBetween(Integer value1, Integer value2) {
+            addCriterion("firm_role between", value1, value2, "firmRole");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmRoleNotBetween(Integer value1, Integer value2) {
+            addCriterion("firm_role not between", value1, value2, "firmRole");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNull() {
+            addCriterion("create_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNotNull() {
+            addCriterion("create_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualTo(Date value) {
+            addCriterion("create_time =", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("create_time = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("create_time <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("create_time > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("create_time >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("create_time < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("create_time <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIn(List values) {
+            addCriterion("create_time in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotIn(List values) {
+            addCriterion("create_time not in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeBetween(Date value1, Date value2) {
+            addCriterion("create_time between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("create_time not between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelIsNull() {
+            addCriterion("is_del is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelIsNotNull() {
+            addCriterion("is_del is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelEqualTo(Integer value) {
+            addCriterion("is_del =", value, "isDel");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("is_del = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelNotEqualTo(Integer value) {
+            addCriterion("is_del <>", value, "isDel");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelNotEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("is_del <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelGreaterThan(Integer value) {
+            addCriterion("is_del >", value, "isDel");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelGreaterThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("is_del > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelGreaterThanOrEqualTo(Integer value) {
+            addCriterion("is_del >=", value, "isDel");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelGreaterThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("is_del >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelLessThan(Integer value) {
+            addCriterion("is_del <", value, "isDel");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelLessThanColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("is_del < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelLessThanOrEqualTo(Integer value) {
+            addCriterion("is_del <=", value, "isDel");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelLessThanOrEqualToColumn(FirmGroup.Column column) {
+            addCriterion(new StringBuilder("is_del <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelIn(List values) {
+            addCriterion("is_del in", values, "isDel");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelNotIn(List values) {
+            addCriterion("is_del not in", values, "isDel");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelBetween(Integer value1, Integer value2) {
+            addCriterion("is_del between", value1, value2, "isDel");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDelNotBetween(Integer value1, Integer value2) {
+            addCriterion("is_del not between", value1, value2, "isDel");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria {
+        private FirmGroupExample example;
+
+        protected Criteria(FirmGroupExample example) {
+            super();
+            this.example = example;
+        }
+
+        public FirmGroupExample example() {
+            return this.example;
+        }
+
+        public Criteria when(boolean condition, ICriteriaWhen then) {
+            if (condition) {
+                then.criteria(this);
+            }
+            return this;
+        }
+
+        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
+            if (condition) {
+                then.criteria(this);
+            } else {
+                otherwise.criteria(this);
+            }
+            return this;
+        }
+    }
+
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+
+    public interface ICriteriaWhen {
+        void criteria(Criteria criteria);
+    }
+
+    public interface IExampleWhen {
+        void example(com.trust.ywx.customer.dao.po.FirmGroupExample example);
+    }
+}
\ No newline at end of file
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmUsercertChannel.java b/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmUsercertChannel.java
new file mode 100644
index 0000000..30d81dd
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmUsercertChannel.java
@@ -0,0 +1,175 @@
+package com.trust.ywx.customer.dao.po;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import lombok.Data;
+
+/**
+ * Table: firm_usercert_channel
+ */
+@Data
+public class FirmUsercertChannel implements Serializable {
+    /**
+     * 主键id
+     *
+     * Table:     firm_usercert_channel
+     * Column:    uniqueid
+     * Nullable:  false
+     */
+    private String uniqueid;
+
+    /**
+     * 证书渠道对应厂商id
+     *
+     * Table:     firm_usercert_channel
+     * Column:    clientid
+     * Nullable:  false
+     */
+    private String clientid;
+
+    /**
+     * 厂商表主键
+     *
+     * Table:     firm_usercert_channel
+     * Column:    firm_id
+     * Nullable:  false
+     */
+    private String firmId;
+
+    /**
+     * 渠道类型 0 app 1 sdk
+     *
+     * Table:     firm_usercert_channel
+     * Column:    channel_type
+     * Nullable:  false
+     */
+    private Integer channelType;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", uniqueid=").append(uniqueid);
+        sb.append(", clientid=").append(clientid);
+        sb.append(", firmId=").append(firmId);
+        sb.append(", channelType=").append(channelType);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+
+    public static FirmUsercertChannel.Builder builder() {
+        return new FirmUsercertChannel.Builder();
+    }
+
+    public static class Builder {
+        private FirmUsercertChannel obj;
+
+        public Builder() {
+            this.obj = new FirmUsercertChannel();
+        }
+
+        public Builder uniqueid(String uniqueid) {
+            obj.setUniqueid(uniqueid);
+            return this;
+        }
+
+        public Builder clientid(String clientid) {
+            obj.setClientid(clientid);
+            return this;
+        }
+
+        public Builder firmId(String firmId) {
+            obj.setFirmId(firmId);
+            return this;
+        }
+
+        public Builder channelType(Integer channelType) {
+            obj.setChannelType(channelType);
+            return this;
+        }
+
+        public FirmUsercertChannel build() {
+            return this.obj;
+        }
+    }
+
+    public enum Column {
+        uniqueid("uniqueid", "uniqueid", "VARCHAR", false),
+        clientid("clientid", "clientid", "VARCHAR", false),
+        firmId("firm_id", "firmId", "VARCHAR", false),
+        channelType("channel_type", "channelType", "BIT", false);
+
+        private static final String BEGINNING_DELIMITER = "\"";
+
+        private static final String ENDING_DELIMITER = "\"";
+
+        private final String column;
+
+        private final boolean isColumnNameDelimited;
+
+        private final String javaProperty;
+
+        private final String jdbcType;
+
+        public String value() {
+            return this.column;
+        }
+
+        public String getValue() {
+            return this.column;
+        }
+
+        public String getJavaProperty() {
+            return this.javaProperty;
+        }
+
+        public String getJdbcType() {
+            return this.jdbcType;
+        }
+
+        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
+            this.column = column;
+            this.javaProperty = javaProperty;
+            this.jdbcType = jdbcType;
+            this.isColumnNameDelimited = isColumnNameDelimited;
+        }
+
+        public String desc() {
+            return this.getEscapedColumnName() + " DESC";
+        }
+
+        public String asc() {
+            return this.getEscapedColumnName() + " ASC";
+        }
+
+        public static Column[] excludes(Column ... excludes) {
+            ArrayList columns = new ArrayList<>(Arrays.asList(Column.values()));
+            if (excludes != null && excludes.length > 0) {
+                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
+            }
+            return columns.toArray(new Column[]{});
+        }
+
+        public static Column[] all() {
+            return Column.values();
+        }
+
+        public String getEscapedColumnName() {
+            if (this.isColumnNameDelimited) {
+                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
+            } else {
+                return this.column;
+            }
+        }
+
+        public String getAliasedEscapedColumnName() {
+            return this.getEscapedColumnName();
+        }
+    }
+}
\ No newline at end of file
diff --git a/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmUsercertChannelExample.java b/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmUsercertChannelExample.java
new file mode 100644
index 0000000..9b13713
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/dao/po/FirmUsercertChannelExample.java
@@ -0,0 +1,697 @@
+package com.trust.ywx.customer.dao.po;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class FirmUsercertChannelExample {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List oredCriteria;
+
+    protected Integer offset;
+
+    protected Integer rows;
+
+    public FirmUsercertChannelExample() {
+        oredCriteria = new ArrayList();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public FirmUsercertChannelExample orderBy(String orderByClause) {
+        this.setOrderByClause(orderByClause);
+        return this;
+    }
+
+    public FirmUsercertChannelExample orderBy(String ... orderByClauses) {
+        StringBuffer sb = new StringBuffer();
+        for (int i = 0; i < orderByClauses.length; i++) {
+            sb.append(orderByClauses[i]);
+            if (i < orderByClauses.length - 1) {
+                sb.append(" , ");
+            }
+        }
+        this.setOrderByClause(sb.toString());
+        return this;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria(this);
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+        rows = null;
+        offset = null;
+    }
+
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    public Integer getOffset() {
+        return this.offset;
+    }
+
+    public void setRows(Integer rows) {
+        this.rows = rows;
+    }
+
+    public Integer getRows() {
+        return this.rows;
+    }
+
+    public FirmUsercertChannelExample limit(Integer rows) {
+        this.rows = rows;
+        return this;
+    }
+
+    public FirmUsercertChannelExample limit(Integer offset, Integer rows) {
+        this.offset = offset;
+        this.rows = rows;
+        return this;
+    }
+
+    public FirmUsercertChannelExample page(Integer page, Integer pageSize) {
+        this.offset = page * pageSize;
+        this.rows = pageSize;
+        return this;
+    }
+
+    public static Criteria newAndCreateCriteria() {
+        FirmUsercertChannelExample example = new FirmUsercertChannelExample();
+        return example.createCriteria();
+    }
+
+    public FirmUsercertChannelExample when(boolean condition, IExampleWhen then) {
+        if (condition) {
+            then.example(this);
+        }
+        return this;
+    }
+
+    public FirmUsercertChannelExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
+        if (condition) {
+            then.example(this);
+        } else {
+            otherwise.example(this);
+        }
+        return this;
+    }
+
+    protected abstract static class GeneratedCriteria {
+        protected List criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List getAllCriteria() {
+            return criteria;
+        }
+
+        public List getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andUniqueidIsNull() {
+            addCriterion("uniqueid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidIsNotNull() {
+            addCriterion("uniqueid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidEqualTo(String value) {
+            addCriterion("uniqueid =", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("uniqueid = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidNotEqualTo(String value) {
+            addCriterion("uniqueid <>", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidNotEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("uniqueid <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidGreaterThan(String value) {
+            addCriterion("uniqueid >", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidGreaterThanColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("uniqueid > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidGreaterThanOrEqualTo(String value) {
+            addCriterion("uniqueid >=", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidGreaterThanOrEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("uniqueid >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidLessThan(String value) {
+            addCriterion("uniqueid <", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidLessThanColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("uniqueid < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidLessThanOrEqualTo(String value) {
+            addCriterion("uniqueid <=", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidLessThanOrEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("uniqueid <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidLike(String value) {
+            addCriterion("uniqueid like", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidNotLike(String value) {
+            addCriterion("uniqueid not like", value, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidIn(List values) {
+            addCriterion("uniqueid in", values, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidNotIn(List values) {
+            addCriterion("uniqueid not in", values, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidBetween(String value1, String value2) {
+            addCriterion("uniqueid between", value1, value2, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUniqueidNotBetween(String value1, String value2) {
+            addCriterion("uniqueid not between", value1, value2, "uniqueid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidIsNull() {
+            addCriterion("clientid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidIsNotNull() {
+            addCriterion("clientid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidEqualTo(String value) {
+            addCriterion("clientid =", value, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("clientid = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidNotEqualTo(String value) {
+            addCriterion("clientid <>", value, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidNotEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("clientid <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidGreaterThan(String value) {
+            addCriterion("clientid >", value, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidGreaterThanColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("clientid > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidGreaterThanOrEqualTo(String value) {
+            addCriterion("clientid >=", value, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidGreaterThanOrEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("clientid >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidLessThan(String value) {
+            addCriterion("clientid <", value, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidLessThanColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("clientid < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidLessThanOrEqualTo(String value) {
+            addCriterion("clientid <=", value, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidLessThanOrEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("clientid <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidLike(String value) {
+            addCriterion("clientid like", value, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidNotLike(String value) {
+            addCriterion("clientid not like", value, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidIn(List values) {
+            addCriterion("clientid in", values, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidNotIn(List values) {
+            addCriterion("clientid not in", values, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidBetween(String value1, String value2) {
+            addCriterion("clientid between", value1, value2, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andClientidNotBetween(String value1, String value2) {
+            addCriterion("clientid not between", value1, value2, "clientid");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdIsNull() {
+            addCriterion("firm_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdIsNotNull() {
+            addCriterion("firm_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdEqualTo(String value) {
+            addCriterion("firm_id =", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("firm_id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdNotEqualTo(String value) {
+            addCriterion("firm_id <>", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdNotEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("firm_id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdGreaterThan(String value) {
+            addCriterion("firm_id >", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdGreaterThanColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("firm_id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdGreaterThanOrEqualTo(String value) {
+            addCriterion("firm_id >=", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdGreaterThanOrEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("firm_id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdLessThan(String value) {
+            addCriterion("firm_id <", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdLessThanColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("firm_id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdLessThanOrEqualTo(String value) {
+            addCriterion("firm_id <=", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdLessThanOrEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("firm_id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdLike(String value) {
+            addCriterion("firm_id like", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdNotLike(String value) {
+            addCriterion("firm_id not like", value, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdIn(List values) {
+            addCriterion("firm_id in", values, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdNotIn(List values) {
+            addCriterion("firm_id not in", values, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdBetween(String value1, String value2) {
+            addCriterion("firm_id between", value1, value2, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andFirmIdNotBetween(String value1, String value2) {
+            addCriterion("firm_id not between", value1, value2, "firmId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeIsNull() {
+            addCriterion("channel_type is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeIsNotNull() {
+            addCriterion("channel_type is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeEqualTo(Integer value) {
+            addCriterion("channel_type =", value, "channelType");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("channel_type = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeNotEqualTo(Integer value) {
+            addCriterion("channel_type <>", value, "channelType");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeNotEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("channel_type <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeGreaterThan(Integer value) {
+            addCriterion("channel_type >", value, "channelType");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeGreaterThanColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("channel_type > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeGreaterThanOrEqualTo(Integer value) {
+            addCriterion("channel_type >=", value, "channelType");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeGreaterThanOrEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("channel_type >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeLessThan(Integer value) {
+            addCriterion("channel_type <", value, "channelType");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeLessThanColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("channel_type < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeLessThanOrEqualTo(Integer value) {
+            addCriterion("channel_type <=", value, "channelType");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeLessThanOrEqualToColumn(FirmUsercertChannel.Column column) {
+            addCriterion(new StringBuilder("channel_type <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeIn(List values) {
+            addCriterion("channel_type in", values, "channelType");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeNotIn(List values) {
+            addCriterion("channel_type not in", values, "channelType");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeBetween(Integer value1, Integer value2) {
+            addCriterion("channel_type between", value1, value2, "channelType");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelTypeNotBetween(Integer value1, Integer value2) {
+            addCriterion("channel_type not between", value1, value2, "channelType");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria {
+        private FirmUsercertChannelExample example;
+
+        protected Criteria(FirmUsercertChannelExample example) {
+            super();
+            this.example = example;
+        }
+
+        public FirmUsercertChannelExample example() {
+            return this.example;
+        }
+
+        public Criteria when(boolean condition, ICriteriaWhen then) {
+            if (condition) {
+                then.criteria(this);
+            }
+            return this;
+        }
+
+        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
+            if (condition) {
+                then.criteria(this);
+            } else {
+                otherwise.criteria(this);
+            }
+            return this;
+        }
+    }
+
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+
+    public interface ICriteriaWhen {
+        void criteria(Criteria criteria);
+    }
+
+    public interface IExampleWhen {
+        void example(com.trust.ywx.customer.dao.po.FirmUsercertChannelExample example);
+    }
+}
\ No newline at end of file
diff --git a/customer/src/main/java/com/trust/ywx/customer/service/TrustCustomerService.java b/customer/src/main/java/com/trust/ywx/customer/service/TrustCustomerService.java
deleted file mode 100644
index 7a92938..0000000
--- a/customer/src/main/java/com/trust/ywx/customer/service/TrustCustomerService.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.trust.ywx.customer.service;
-
-import com.trust.ywx.customer.service.dto.TrustFirmDto;
-import com.trust.ywx.customer.service.exception.BizException;
-/**
- * 

- *
- * @文件名称: TrustCustomerService.java
- * @包 路  径: com.trust.ywx.customer.service.exceptions
- * @Copyright:北京数字医信责任有限公司 (C) 2022 *
- * @Description: 可信客户服务类
- * @Version: V1.0
- * @Author: hanzhenchao
- * @Date:2022/6/11 21:15
- * @Modify:
- */
-public interface TrustCustomerService {
-
-    /**
-     * 添加可信客户
-     * @param customerInfoDto
-     */
-    void addTrustCustomer(TrustFirmDto customerInfoDto) throws BizException;
-
-    /**
-     * 根据clientId查询可信客户信息
-     * @param clientId
-     * @return
-     */
-    TrustFirmDto getCustomerInfo(String clientId);
-
-
-
-}
diff --git a/customer/src/main/java/com/trust/ywx/customer/service/dto/request/SearchFirmParam.java b/customer/src/main/java/com/trust/ywx/customer/service/dto/request/SearchFirmParam.java
index 0263a49..515c21e 100644
--- a/customer/src/main/java/com/trust/ywx/customer/service/dto/request/SearchFirmParam.java
+++ b/customer/src/main/java/com/trust/ywx/customer/service/dto/request/SearchFirmParam.java
@@ -31,6 +31,6 @@ public class SearchFirmParam extends PageParam {
 	/**
 	 * 审核状态
 	 */
-	private String status;
+	private Integer firmStatus;
 
 }
diff --git a/customer/src/main/java/com/trust/ywx/customer/service/dto/request/SearchTrustFirmParam.java b/customer/src/main/java/com/trust/ywx/customer/service/dto/request/SearchTrustFirmParam.java
index e0e8e37..126abd8 100644
--- a/customer/src/main/java/com/trust/ywx/customer/service/dto/request/SearchTrustFirmParam.java
+++ b/customer/src/main/java/com/trust/ywx/customer/service/dto/request/SearchTrustFirmParam.java
@@ -1,5 +1,6 @@
 package com.trust.ywx.customer.service.dto.request;
 
+import com.fiftyonetrust.common.model.param.PageParam;
 import lombok.Data;
 
 import java.util.List;
@@ -10,60 +11,70 @@ import java.util.List;
  * @包   路   径:  cn.org.bjca.ywq.api.param.req
  * @版权所有:北京数字认证股份有限公司 (C) 2017
  *
- * @类描述:  
+ * @类描述: 查询可信客户参数
  * @版本: V1.5
  * @创建人: hbx
  * @创建时间:2017年3月13日 下午1:54:17
  */
 @Data
-public class SearchTrustFirmParam extends SearchFirmParam {
+public class SearchTrustFirmParam extends PageParam{
 	/**
-     * 客户clientId
+	 * 客户id
 	 */
 	private String clientId;
-
-	/**
-     * 客户类型:互联网医院、实体医院等
-	 */
-	private List networkType;
 	/**
-     * 公众产品形态 SDK\H5
+	 * 客户名称
 	 */
-	private List publicProductType;
+	private String firmName;
 	/**
-     *
+	 * 代理商id
 	 */
-	private List channelType;
+	private String agentClientId;
 	/**
-     * 证书状态:无证书、正常、已过期、待更新
+	 * 审核状态
 	 */
-	private Integer certStatus;
+	private Integer firmStatus;
+
 	/**
 	 * 销售人员id
 	 */
 	private String saleId;
 
 	/**
-     * 实施人员id
+	 * 实施人员id
 	 */
 	private String techId;
+
 	/**
-	 * 计费模式 0正常 1异常
+     * 客户类型:互联网医院、实体医院等
+	 * see com.trust.ywx.customer.common.enums.NetworkTypeEnum
+	 */
+	private Integer networkType;
+	/**
+     * 医师产品形态
+	 * see com.trust.ywx.customer.common.enums.DoctorProductTypeEnum
 	 */
-	private String chargingMode;
+	private Integer doctorProductType;
+	/**
+     * 公众产品形态 SDK\H5
+	 * see com.trust.ywx.customer.common.enums.PublicProductTypeEnum
+	 */
+	private Integer publicProductType;
 
 	/**
-	 * 客户编号/合同方/合同号
+	 * 计费模式 0正常 1异常
+	 * see com.trust.ywx.customer.common.enums.ChargingModelEnum
 	 */
-	private String likeCron;
+	private Integer chargingMode;
 
 	/**
 	 * 厂商组id
 	 */
-	private String groupNum;
+	private String groupId;
 
 	/**
-	 * 项目状态 1、正常/2、试用/3、消亡
+	 * 项目状态 1、正常/2、试用/3、消亡/4、删除
+	 * see com.trust.ywx.customer.common.enums.ChargingModelEnum
 	 */
 	private Integer projectStatus;
 
diff --git a/customer/src/main/java/com/trust/ywx/customer/service/impl/FirmQueryServiceImpl.java b/customer/src/main/java/com/trust/ywx/customer/service/impl/FirmQueryServiceImpl.java
index cd1687d..4c8f31d 100644
--- a/customer/src/main/java/com/trust/ywx/customer/service/impl/FirmQueryServiceImpl.java
+++ b/customer/src/main/java/com/trust/ywx/customer/service/impl/FirmQueryServiceImpl.java
@@ -1,17 +1,29 @@
 package com.trust.ywx.customer.service.impl;
 
+import com.fiftyonetrust.common.model.result.Page;
+import com.fiftyonetrust.common.model.result.PageList;
+import com.trust.ywx.customer.common.enums.FirmProperEnum;
+import com.trust.ywx.customer.common.enums.NetworkTypeEnum;
+import com.trust.ywx.customer.dao.DoctorProductTypeDao;
+import com.trust.ywx.customer.dao.FirmDao;
+import com.trust.ywx.customer.dao.FirmExtendDao;
+import com.trust.ywx.customer.dao.FirmGroupDao;
+import com.trust.ywx.customer.dao.po.FirmInfo;
+import com.trust.ywx.customer.dao.po.FirmInfoExtend;
+import com.trust.ywx.customer.dao.po.FirmUsercertChannel;
 import com.trust.ywx.customer.service.dto.TrustFirmDto;
 import com.trust.ywx.customer.service.dto.request.SearchCrmFirmParam;
 import com.trust.ywx.customer.service.dto.request.SearchFirmParam;
 import com.trust.ywx.customer.service.dto.request.SearchTrustFirmParam;
 import com.trust.ywx.customer.service.dto.response.AuditFirmDto;
 import com.trust.ywx.customer.service.dto.response.CrmFirmDto;
-import com.trust.ywx.customer.service.exception.BizException;
 import com.trust.ywx.customer.service.query.FirmQueryService;
 import org.apache.commons.lang.StringUtils;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.util.CollectionUtils;
 
-import java.util.List;
-import java.util.Map;
+import java.util.*;
 
 /**
  * 

@@ -26,23 +38,100 @@ import java.util.Map;
  * @Modify:
  */
 public class FirmQueryServiceImpl implements FirmQueryService {
+    @Autowired
+    private FirmDao firmDao;
+    @Autowired
+    private FirmGroupDao firmGroupDao;
+    @Autowired
+    private FirmExtendDao firmExtendDao;
+    @Autowired
+    private DoctorProductTypeDao doctorProductTypeDao;
+
     @Override
     public List getTrustFirmList(SearchTrustFirmParam param) {
-        return null;
+        List clientIdList = new ArrayList<>();
+
+        // clientId筛选
+        if (StringUtils.isNotEmpty(param.getClientId())) {
+            FirmInfo firmInfo = firmDao.getFrimByClientId(param.getClientId());
+            if (null == firmInfo) {
+                return Arrays.asList();
+            }
+            // 增加项目状态的判断
+            if (null != param.getFirmStatus() && Objects.equals(firmInfo.getFirmStatus(), param.getFirmStatus())) {
+                return Arrays.asList();
+            }
+            clientIdList.add(param.getClientId());
+        }
+
+        return doSearch(param, false);
+    }
+
+    @Override
+    public PageList> getTrustFirmListWithPage(SearchTrustFirmParam param) {
+        List clientIdList = new ArrayList<>();
+        // clientId筛选
+        if (StringUtils.isNotEmpty(param.getClientId())) {
+            FirmInfo firmInfo = firmDao.getFrimByClientId(param.getClientId());
+            if (null == firmInfo) {
+                return new PageList();
+            }
+            // 增加项目状态的判断
+            if (null != param.getFirmStatus() && Objects.equals(firmInfo.getFirmStatus(), param.getFirmStatus())) {
+                return new PageList();
+            }
+            clientIdList.add(param.getClientId());
+        }
+
+        List dtoList = doSearch(param, true);
+
+        // fixme 组装好麻烦,需要改进下
+        PageList pageList = new PageList();
+        pageList.setItems(dtoList);
+        Page page = new Page();
+        page.setPageNo(param.getPageNo());
+        page.setPageSize(param.getPageSize());
+        page.setTotal(dtoList.size());
+        pageList.setPage(page);
+        return pageList;
+    }
+
+
+    private TrustFirmDto converPoToDto(FirmInfo po) {
+        if (null == po) {
+            return null;
+        }
+        TrustFirmDto dto = new TrustFirmDto();
+        BeanUtils.copyProperties(po, dto);
+
+        // TODO 差异属性转换
+        return dto;
     }
 
     @Override
     public TrustFirmDto getTrustFirm(String clientId) {
-        return null;
+        FirmInfo po = firmDao.getFrimByClientId(clientId);
+        return converPoToDto(po);
     }
 
     @Override
-    public Map getProp(String clientId) throws Exception{
-        if(StringUtils.isEmpty(clientId)){
-            throw new BizException("400","clientId不能为空");
+    public Map getAllProp(String clientId) {
+        if (StringUtils.isEmpty(clientId)) {
+            return new HashMap<>();
         }
-        // 从firm_info_extend获取全量属性
-        return null;
+        Map map = new HashMap<>(64);
+        // 1、从firm_info_extend获取全量属性
+        List extendList = firmExtendDao.getListByClientId(clientId);
+        for (FirmInfoExtend extendPo : extendList) {
+            map.put(extendPo.getPropName(), extendPo.getPropValue());
+        }
+
+        //2、从firm_usercert_channel 获取医师产品形态属性 fixme 以后要去掉
+        List doctorList = doctorProductTypeDao.getByClientId(clientId);
+        for (FirmUsercertChannel doctorPo : doctorList) {
+            map.put(FirmProperEnum.DOCTOR_PRODUCT_TYPE.getProperName(), doctorPo.getChannelType() + "");
+        }
+        return map;
     }
 
     @Override
@@ -54,4 +143,98 @@ public class FirmQueryServiceImpl implements FirmQueryService {
     public List getCrmFirmList(SearchCrmFirmParam param) {
         return null;
     }
+
+    private List getClientIdListByProp(String propName, Integer propValue, List clientIdList) {
+        String convertPropValue = "";
+        if (Objects.equals(propName, FirmProperEnum.DOCTOR_PRODUCT_TYPE.getProperName())) {
+            //fixme,目前医师产品形态单独存储在firm_usercert_channel表,后期挪到firm_info_extends表
+            return doctorProductTypeDao.getClientIdByProp(clientIdList, propValue);
+        } else {
+            // 其他属性都在firm_info_extends表
+            if (Objects.equals(propName, FirmProperEnum.NETWORK_TYPE.getProperName())) {
+                convertPropValue = NetworkTypeEnum.getNameOfCode(propValue);
+            } else {
+                convertPropValue = String.valueOf(propValue);
+            }
+            return firmExtendDao.getByPropsAndClientId(propName, convertPropValue, clientIdList);
+        }
+    }
+
+    private List doSearch(SearchTrustFirmParam param, boolean isPage) {
+        List clientIdList = new ArrayList<>();
+        // 客户组筛选
+        if (StringUtils.isNotEmpty(param.getGroupId())) {
+            List groupClientIdList = firmGroupDao.getClientIdByGroupId(param.getGroupId());
+            if (CollectionUtils.isEmpty(clientIdList)) {
+                clientIdList = groupClientIdList;
+            } else {
+                clientIdList.retainAll(groupClientIdList);
+                if (CollectionUtils.isEmpty(clientIdList)) {
+                    return Arrays.asList();
+                }
+            }
+        }
+
+        // 医师产品形态筛选
+        if (null != param.getDoctorProductType()) {
+            List subClientIdList;
+            if (StringUtils.isNotEmpty(param.getClientId())) {
+                subClientIdList = getClientIdListByProp(FirmProperEnum.DOCTOR_PRODUCT_TYPE.getProperName(), param.getDoctorProductType(), Arrays.asList(param.getClientId()));
+            } else {
+                subClientIdList = getClientIdListByProp(FirmProperEnum.DOCTOR_PRODUCT_TYPE.getProperName(), param.getDoctorProductType(), null);
+            }
+            // 与clientIdList求并集
+            clientIdList.retainAll(subClientIdList);
+            if (CollectionUtils.isEmpty(clientIdList)) {
+                return Arrays.asList();
+            }
+        }
+
+        /**
+         * 属性过滤暂时没想到好办法,只能一个个去查询了
+         */
+        if (null != param.getNetworkType()) {
+            List subClientIdList = getClientIdListByProp(FirmProperEnum.NETWORK_TYPE.getProperName(), param.getNetworkType(), clientIdList);
+            // 与clientIdList求并集
+            clientIdList.retainAll(subClientIdList);
+            if (CollectionUtils.isEmpty(clientIdList)) {
+                return Arrays.asList();
+            }
+        }
+        if (null != param.getChargingMode()) {
+            List subClientIdList = getClientIdListByProp(FirmProperEnum.CHARGING_MODEL.getProperName(), param.getChargingMode(), clientIdList);
+            // 与clientIdList求并集
+            clientIdList.retainAll(subClientIdList);
+            if (CollectionUtils.isEmpty(clientIdList)) {
+                return Arrays.asList();
+            }
+        }
+        if (null != param.getPublicProductType()) {
+            List subClientIdList = getClientIdListByProp(FirmProperEnum.PUBLIC_PRODUCT_TYPE.getProperName(), param.getPublicProductType(), clientIdList);
+            // 与clientIdList求并集
+            clientIdList.retainAll(subClientIdList);
+            if (CollectionUtils.isEmpty(clientIdList)) {
+                return Arrays.asList();
+            }
+        }
+        List firmList = null;
+        if (isPage) {
+            firmList = firmDao.getListByIds(clientIdList, 100000, 0);
+        } else {
+            if (clientIdList.size() < param.getPageSize() * param.getPageNo()) {
+                return Arrays.asList();
+            }
+            firmList = firmDao.getListByIds(clientIdList, param.getPageSize(), param.getPageNo());
+        }
+
+        List dtoList = new ArrayList<>(firmList.size());
+        if (CollectionUtils.isEmpty(firmList)) {
+            return Arrays.asList();
+        }
+        for (FirmInfo po : firmList) {
+            TrustFirmDto dto = converPoToDto(po);
+            dtoList.add(dto);
+        }
+        return dtoList;
+    }
 }
diff --git a/customer/src/main/java/com/trust/ywx/customer/service/impl/FirmQueryServiceImpl_bak.java b/customer/src/main/java/com/trust/ywx/customer/service/impl/FirmQueryServiceImpl_bak.java
new file mode 100644
index 0000000..f4628af
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/service/impl/FirmQueryServiceImpl_bak.java
@@ -0,0 +1,202 @@
+//package com.trust.ywx.customer.service.impl;
+//
+//import com.fiftyonetrust.common.model.result.Page;
+//import com.fiftyonetrust.common.model.result.PageList;
+//import com.trust.ywx.customer.common.enums.FirmProperEnum;
+//import com.trust.ywx.customer.common.enums.NetworkTypeEnum;
+//import com.trust.ywx.customer.dao.FirmDao;
+//import com.trust.ywx.customer.dao.FirmExtendDao;
+//import com.trust.ywx.customer.dao.FirmGroupDao;
+//import com.trust.ywx.customer.dao.mapper.FirmUsercertChannelMapper;
+//import com.trust.ywx.customer.dao.po.FirmInfo;
+//import com.trust.ywx.customer.dao.po.FirmUsercertChannelExample;
+//import com.trust.ywx.customer.service.dto.TrustFirmDto;
+//import com.trust.ywx.customer.service.dto.request.SearchCrmFirmParam;
+//import com.trust.ywx.customer.service.dto.request.SearchFirmParam;
+//import com.trust.ywx.customer.service.dto.request.SearchTrustFirmWithPageParam;
+//import com.trust.ywx.customer.service.dto.response.AuditFirmDto;
+//import com.trust.ywx.customer.service.dto.response.CrmFirmDto;
+//import com.trust.ywx.customer.service.exception.BizException;
+//import com.trust.ywx.customer.service.query.FirmQueryService;
+//import org.apache.commons.lang.StringUtils;
+//import org.springframework.beans.BeanUtils;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.util.CollectionUtils;
+//
+//import java.util.ArrayList;
+//import java.util.List;
+//import java.util.Map;
+//import java.util.Objects;
+//
+///**
+// * 

+// *
+// * @文件名称: FirmQueryServiceImpl.java
+// * @包 路  径: com.trust.ywx.customer.service.impl
+// * @Copyright:北京数字医信责任有限公司 (C) 2022 *
+// * @Description:
+// * @Version: V1.0
+// * @Author: hanzhenchao
+// * @Date:2022/6/15 18:43
+// * @Modify:
+// */
+//public class FirmQueryServiceImpl_bak implements FirmQueryService {
+//    @Autowired
+//    private FirmDao firmDao;
+//    @Autowired
+//    private FirmGroupDao firmGroupDao;
+//    @Autowired
+//    private FirmExtendDao firmExtendDao;
+//    @Autowired
+//    private FirmUsercertChannelMapper usercertChannelMapper;
+//
+//    @Override
+//    public PageList> getTrustFirmList(SearchTrustFirmWithPageParam param) {
+//        List clientIdList = new ArrayList<>();
+//
+//        // 客户id/合同编号/合同方 筛选
+//        if(!Objects.equals(param.getClientId(),param.getLikeCron())){
+//            // 如果clientId不为空,比较likeCron是否一致,不一致说明likeCron是合同编号/合同方
+//            if(StringUtils.isNotEmpty(param.getLikeCron())){
+//                //查询合同表
+//                String clientId = firmDao.getClientIdByKeyword(param.getLikeCron());
+//                if(StringUtils.isEmpty(clientId) || !Objects.equals(param.getClientId(),clientId)){
+//                    // 未查到或查到的clientId和选择的客户不匹配,返回空
+//                    return new PageList();
+//                }
+//            }
+//        }
+//
+//        // clientId筛选
+//        if(StringUtils.isNotEmpty(param.getClientId())){
+//            FirmInfo firmInfo = firmDao.getFrimByClientId(param.getClientId());
+//            if(null == firmInfo){
+//                return new PageList();
+//            }
+//            // 增加项目状态的判断
+//            if(null != param.getFirmStatus() && Objects.equals(firmInfo.getFirmStatus(),param.getFirmStatus())){
+//                return new PageList();
+//            }
+//            clientIdList.add(param.getClientId());
+//
+//        }
+//
+//        // 客户组筛选
+//        if(StringUtils.isNotEmpty(param.getGroupId())){
+//            List groupClientIdList = firmGroupDao.getClientIdByGroupId(param.getGroupId());
+//            if(CollectionUtils.isEmpty(clientIdList)){
+//                clientIdList = groupClientIdList;
+//            }else{
+//                clientIdList.retainAll(groupClientIdList);
+//                if(CollectionUtils.isEmpty(clientIdList)){
+//                    return new PageList();
+//                }
+//            }
+//        }
+//
+//        // 医师产品形态筛选(fixme,目前单独存储在firm_usercert_channel表,后期挪到firm_info_extends表)
+//        if(null!=param.getDoctorProductType()){
+//            if(StringUtils.isNotEmpty(param.getClientId())){
+//                // 携带客户Id和产品形态一起去查
+//                FirmUsercertChannelExample example = new FirmUsercertChannelExample();
+//                example.createCriteria().andChannelTypeEqualTo(param.getDoctorProductType()).andClientidEqualTo(param.getClientId());
+//                long count = usercertChannelMapper.countByExample(example);
+//                if(count==0){
+//                    return new PageList();
+//                }else{
+//                    clientIdList.add(param.getClientId());
+//                }
+//            }else{
+//                List subClientIdList = firmDao.getClientIdByChannelType(param.getDoctorProductType());
+//                // 与clientIdList求并集
+//                clientIdList.retainAll(subClientIdList);
+//                if(CollectionUtils.isEmpty(clientIdList)){
+//                    return new PageList();
+//                }
+//            }
+//        }
+//
+//        /**
+//         * 属性过滤暂时没想到好办法,只能一个个去查询了
+//         */
+//        if(null!=param.getNetworkType()){
+//            List subClientIdList = firmExtendDao.getByPropsAndClientId(FirmProperEnum.NETWORK_TYPE.getProperName(),NetworkTypeEnum.getNameOfCode(param.getNetworkType()),clientIdList);
+//            // 与clientIdList求并集
+//            clientIdList.retainAll(subClientIdList);
+//            if(CollectionUtils.isEmpty(clientIdList)){
+//                return new PageList();
+//            }
+//        }
+//        if(null!=param.getChargingMode()){
+//            List subClientIdList = firmExtendDao.getByPropsAndClientId(FirmProperEnum.CHARGING_MODEL.getProperName(), param.getChargingMode()+"", clientIdList);
+//            // 与clientIdList求并集
+//            clientIdList.retainAll(subClientIdList);
+//            if(CollectionUtils.isEmpty(clientIdList)){
+//                return new PageList();
+//            }
+//        }
+//        if(null!=param.getPublicProductType()){
+//            List subClientIdList = firmExtendDao.getByPropsAndClientId(FirmProperEnum.PUBLIC_PRODUCT_TYPE.getProperName(),param.getPublicProductType()+"",clientIdList);
+//            // 与clientIdList求并集
+//            clientIdList.retainAll(subClientIdList);
+//            if(CollectionUtils.isEmpty(clientIdList)){
+//                return new PageList();
+//            }
+//        }
+//
+//
+//        List firmList = firmDao.getListByIds(clientIdList);
+//        List dtoList = new ArrayList<>(firmList.size());
+//        for (FirmInfo po: firmList) {
+//            TrustFirmDto dto = converPoToDto(po);
+//            dtoList.add(dto);
+//        }
+//
+//        // fixme 组装好麻烦,需要改进下
+//        PageList pageList = new PageList();
+//        pageList.setItems(dtoList);
+//        Page page = new Page();
+//        page.setPageNo(param.getPageNo());
+//        page.setPageSize(param.getPageSize());
+//        page.setTotal(dtoList.size());
+//        pageList.setPage(page);
+//        return pageList;
+//    }
+//
+//
+//    private TrustFirmDto converPoToDto(FirmInfo po) {
+//        if(null == po){
+//            return null;
+//        }
+//        TrustFirmDto dto = new TrustFirmDto();
+//        BeanUtils.copyProperties(po,dto);
+//
+//        // TODO 差异属性转换
+//        return dto;
+//    }
+//
+//    @Override
+//    public TrustFirmDto getTrustFirm(String clientId) {
+//        return null;
+//    }
+//
+//    @Override
+//    public Map getProp(String clientId) throws Exception{
+//        if(StringUtils.isEmpty(clientId)){
+//            throw new BizException("400","clientId不能为空");
+//        }
+//        // 从firm_info_extend\、firm_usercert_channel获取全量属性
+//
+//        return null;
+//    }
+//
+//    @Override
+//    public List getAuditFirmList(SearchFirmParam param) {
+//        return null;
+//    }
+//
+//    @Override
+//    public List getCrmFirmList(SearchCrmFirmParam param) {
+//        return null;
+//    }
+//}
diff --git a/customer/src/main/java/com/trust/ywx/customer/service/impl/TrustCustomerServiceimpl.java b/customer/src/main/java/com/trust/ywx/customer/service/impl/TrustCustomerServiceimpl.java
deleted file mode 100644
index b02df19..0000000
--- a/customer/src/main/java/com/trust/ywx/customer/service/impl/TrustCustomerServiceimpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package com.trust.ywx.customer.service.impl;
-
-import com.trust.ywx.customer.service.TrustCustomerService;
-import com.trust.ywx.customer.service.dto.TrustFirmDto;
-import org.springframework.stereotype.Service;
-/**
- * 

- *
- * @文件名称: TrustComstomerServiceimpl.java
- * @包 路  径: com.trust.ywx.customer.service.exceptions
- * @Copyright:北京数字医信责任有限公司 (C) 2022 *
- * @Description: 客户服务实现类
- * @Version: V1.0
- * @Author: hanzhenchao
- * @Date:2022/6/11 21:15
- * @Modify:
- */
-@Service
-public class TrustCustomerServiceimpl implements TrustCustomerService {
-    @Override
-    public void addTrustCustomer(TrustFirmDto customerInfoDto) {
-        System.out.println("创建成功!");
-    }
-
-    @Override
-    public TrustFirmDto getCustomerInfo(String clientId) {
-        TrustFirmDto dto = new TrustFirmDto();
-        dto.setCaType("carType");
-        return dto;
-    }
-}
diff --git a/customer/src/main/java/com/trust/ywx/customer/service/manager/FirmManagerService.java b/customer/src/main/java/com/trust/ywx/customer/service/manager/FirmManagerService.java
index 9cbe587..3b56057 100644
--- a/customer/src/main/java/com/trust/ywx/customer/service/manager/FirmManagerService.java
+++ b/customer/src/main/java/com/trust/ywx/customer/service/manager/FirmManagerService.java
@@ -17,6 +17,10 @@ public interface FirmManagerService {
      * 添加可信客户
      */
     void addTrustFirm();
+
+    /**
+     * 更新可信客户
+     */
     void updateTrustFirm();
 
 
diff --git a/customer/src/main/java/com/trust/ywx/customer/service/query/FirmQueryService.java b/customer/src/main/java/com/trust/ywx/customer/service/query/FirmQueryService.java
index 127f3b6..10840ff 100644
--- a/customer/src/main/java/com/trust/ywx/customer/service/query/FirmQueryService.java
+++ b/customer/src/main/java/com/trust/ywx/customer/service/query/FirmQueryService.java
@@ -1,5 +1,6 @@
 package com.trust.ywx.customer.service.query;
 
+import com.fiftyonetrust.common.model.result.PageList;
 import com.trust.ywx.customer.service.dto.TrustFirmDto;
 import com.trust.ywx.customer.service.dto.request.SearchCrmFirmParam;
 import com.trust.ywx.customer.service.dto.request.SearchFirmParam;
@@ -28,10 +29,18 @@ public interface FirmQueryService {
     /**
      * 获取可信客户列表
      * @param param
+     * @return
      */
     List getTrustFirmList(SearchTrustFirmParam param);
 
     /**
+     * 获取可信客户列表 (分页)
+     * @param param
+     * @return
+     */
+    PageList> getTrustFirmListWithPage(SearchTrustFirmParam param);
+
+    /**
      * 获取可信客户详情
      * @param clientId
      * @return
@@ -39,13 +48,17 @@ public interface FirmQueryService {
     TrustFirmDto getTrustFirm(String clientId);
 
     /**
-     * 获取客户配置
+     * 获取客户配置属性集合
+     * 主要给customer-client内部使用!
      */
-    Map getProp(String clientId) throws Exception;
+    Map getAllProp(String clientId);
 
     /**
-     *
+     * 根据属性值获取客户列表
+     * fixme 要不要提供这个接口呢?
+     * 例如:白名单 感觉最好是明确获取白名单的接口
      */
+//    List getListByProp(String propName,String propValue);
 
     //------------------------待审核客户--------------------
     /**
diff --git a/customer/src/main/java/com/trust/ywx/customer/web/controller/FirmController.java b/customer/src/main/java/com/trust/ywx/customer/web/controller/FirmController.java
new file mode 100644
index 0000000..e067fc4
--- /dev/null
+++ b/customer/src/main/java/com/trust/ywx/customer/web/controller/FirmController.java
@@ -0,0 +1,29 @@
+package com.trust.ywx.customer.web.controller;
+
+
+import com.trust.ywx.customer.service.query.FirmQueryService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import org.springframework.web.bind.annotation.RestController;
+
+
+/**
+ * @author paida 派哒 zeyu.pzy@alibaba-inc.com
+ */
+@RestController
+public class FirmController {
+
+	@Autowired
+	private FirmQueryService firmQueryService;
+
+	@RequestMapping("/greeting")
+	public String greeting(@RequestParam(name="name", required=false, defaultValue="1") String name, Model model) throws Exception {
+
+		firmQueryService.getAllProp("");
+		//这里返回的数据类型是String,但实际上更多的数据通过本函数中Model model传给了前端。返回值String也会被SpringMVC整合为一个ModelAndView,以供前端使用。(Controller可以返回多种数值,比如void、String、ModelAndView。同学们可以自行搜索学习)
+		return "greeting";
+	}
+}
diff --git a/customer/src/main/java/com/trust/ywx/customer/web/controller/TrustComsumerController.java b/customer/src/main/java/com/trust/ywx/customer/web/controller/TrustComsumerController.java
deleted file mode 100644
index cf9734c..0000000
--- a/customer/src/main/java/com/trust/ywx/customer/web/controller/TrustComsumerController.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.trust.ywx.customer.web.controller;
-
-
-import com.trust.ywx.customer.service.TrustCustomerService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.ui.Model;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-
-import org.springframework.web.bind.annotation.RestController;
-
-
-/**
- * @author paida 派哒 zeyu.pzy@alibaba-inc.com
- */
-@RestController
-public class TrustComsumerController {
-
-	@Autowired
-	private TrustCustomerService trustCustomerService;
-
-	@RequestMapping("/greeting")
-	public String greeting(@RequestParam(name="name", required=false, defaultValue="1") String name, Model model) {
-
-		trustCustomerService.getCustomerInfo("");
-		//这里返回的数据类型是String,但实际上更多的数据通过本函数中Model model传给了前端。返回值String也会被SpringMVC整合为一个ModelAndView,以供前端使用。(Controller可以返回多种数值,比如void、String、ModelAndView。同学们可以自行搜索学习)
-		return "greeting";
-	}
-}
diff --git a/customer/src/main/resources/generatorConfig.xml b/customer/src/main/resources/generatorConfig.xml
index 2bc6642..abdfcc2 100644
--- a/customer/src/main/resources/generatorConfig.xml
+++ b/customer/src/main/resources/generatorConfig.xml
@@ -81,36 +81,46 @@
         
 
         
-        
 
 
-            
-        
- - - - -
- - -
- - -
- - + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/customer/src/main/resources/mybatis/mapper/CustomerInfoMapper.xml b/customer/src/main/resources/mybatis/mapper/CustomerInfoMapper.xml deleted file mode 100644 index b4a8296..0000000 --- a/customer/src/main/resources/mybatis/mapper/CustomerInfoMapper.xml +++ /dev/null @@ -1,8976 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - uniqueid, client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, agent_client_id, - agent_sale_id, ca_channel, project_status, plat_app_id - - - app_cert, app_icon - - - - - - delete from firm_info - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - delete from firm_info - - - - - - insert into firm_info (client_id, firm_person, app_secret, - firm_name, firm_phone, cert_alg, - firm_address, note, firm_email, - status, client_org_code, mssp_appid, - cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, - tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, - project_status, plat_app_id, app_cert, - app_icon) - values (#{clientId,jdbcType=VARCHAR}, #{firmPerson,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, - #{firmName,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{certAlg,jdbcType=VARCHAR}, - #{firmAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{firmEmail,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{clientOrgCode,jdbcType=VARCHAR}, #{msspAppid,jdbcType=VARCHAR}, - #{certAgency,jdbcType=VARCHAR}, #{stampType,jdbcType=CHAR}, #{stampName,jdbcType=VARCHAR}, - #{openId,jdbcType=VARCHAR}, #{sendSms,jdbcType=VARCHAR}, #{salePersonId,jdbcType=VARCHAR}, - #{techPersonId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, - #{agentClientId,jdbcType=VARCHAR}, #{agentSaleId,jdbcType=VARCHAR}, #{caChannel,jdbcType=INTEGER}, - #{projectStatus,jdbcType=INTEGER}, #{platAppId,jdbcType=INTEGER}, #{appCert,jdbcType=LONGVARCHAR}, - #{appIcon,jdbcType=LONGVARCHAR}) - - - insert into firm_info - - - client_id, - - - firm_person, - - - app_secret, - - - firm_name, - - - firm_phone, - - - cert_alg, - - - firm_address, - - - note, - - - firm_email, - - - status, - - - client_org_code, - - - mssp_appid, - - - cert_agency, - - - stamp_type, - - - stamp_name, - - - open_id, - - - send_sms, - - - sale_person_id, - - - tech_person_id, - - - create_time, - - - update_time, - - - agent_client_id, - - - agent_sale_id, - - - ca_channel, - - - project_status, - - - plat_app_id, - - - app_cert, - - - app_icon, - - - - - #{clientId,jdbcType=VARCHAR}, - - - #{firmPerson,jdbcType=VARCHAR}, - - - #{appSecret,jdbcType=VARCHAR}, - - - #{firmName,jdbcType=VARCHAR}, - - - #{firmPhone,jdbcType=VARCHAR}, - - - #{certAlg,jdbcType=VARCHAR}, - - - #{firmAddress,jdbcType=VARCHAR}, - - - #{note,jdbcType=VARCHAR}, - - - #{firmEmail,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{clientOrgCode,jdbcType=VARCHAR}, - - - #{msspAppid,jdbcType=VARCHAR}, - - - #{certAgency,jdbcType=VARCHAR}, - - - #{stampType,jdbcType=CHAR}, - - - #{stampName,jdbcType=VARCHAR}, - - - #{openId,jdbcType=VARCHAR}, - - - #{sendSms,jdbcType=VARCHAR}, - - - #{salePersonId,jdbcType=VARCHAR}, - - - #{techPersonId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{agentClientId,jdbcType=VARCHAR}, - - - #{agentSaleId,jdbcType=VARCHAR}, - - - #{caChannel,jdbcType=INTEGER}, - - - #{projectStatus,jdbcType=INTEGER}, - - - #{platAppId,jdbcType=INTEGER}, - - - #{appCert,jdbcType=LONGVARCHAR}, - - - #{appIcon,jdbcType=LONGVARCHAR}, - - - - - - update firm_info - - - uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - - - client_id = #{record.clientId,jdbcType=VARCHAR}, - - - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - - - firm_name = #{record.firmName,jdbcType=VARCHAR}, - - - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - - - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - - - note = #{record.note,jdbcType=VARCHAR}, - - - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{record.stampType,jdbcType=CHAR}, - - - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - - - project_status = #{record.projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - - - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR}, - - - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR} - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER} - - - - - - update firm_info - - - client_id = #{clientId,jdbcType=VARCHAR}, - - - firm_person = #{firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{appSecret,jdbcType=VARCHAR}, - - - firm_name = #{firmName,jdbcType=VARCHAR}, - - - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{certAlg,jdbcType=VARCHAR}, - - - firm_address = #{firmAddress,jdbcType=VARCHAR}, - - - note = #{note,jdbcType=VARCHAR}, - - - firm_email = #{firmEmail,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{stampType,jdbcType=CHAR}, - - - stamp_name = #{stampName,jdbcType=VARCHAR}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - send_sms = #{sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{caChannel,jdbcType=INTEGER}, - - - project_status = #{projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{platAppId,jdbcType=INTEGER}, - - - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{appIcon,jdbcType=LONGVARCHAR}, - - - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER}, - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - app_icon = #{appIcon,jdbcType=LONGVARCHAR} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - - - - - - - - - - insert into firm_info - (client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, - stamp_name, open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, project_status, plat_app_id, app_cert, - app_icon) - values - - (#{item.clientId,jdbcType=VARCHAR}, #{item.firmPerson,jdbcType=VARCHAR}, #{item.appSecret,jdbcType=VARCHAR}, - #{item.firmName,jdbcType=VARCHAR}, #{item.firmPhone,jdbcType=VARCHAR}, #{item.certAlg,jdbcType=VARCHAR}, - #{item.firmAddress,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}, #{item.firmEmail,jdbcType=VARCHAR}, - #{item.status,jdbcType=INTEGER}, #{item.clientOrgCode,jdbcType=VARCHAR}, #{item.msspAppid,jdbcType=VARCHAR}, - #{item.certAgency,jdbcType=VARCHAR}, #{item.stampType,jdbcType=CHAR}, #{item.stampName,jdbcType=VARCHAR}, - #{item.openId,jdbcType=VARCHAR}, #{item.sendSms,jdbcType=VARCHAR}, #{item.salePersonId,jdbcType=VARCHAR}, - #{item.techPersonId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, - #{item.agentClientId,jdbcType=VARCHAR}, #{item.agentSaleId,jdbcType=VARCHAR}, #{item.caChannel,jdbcType=INTEGER}, - #{item.projectStatus,jdbcType=INTEGER}, #{item.platAppId,jdbcType=INTEGER}, #{item.appCert,jdbcType=LONGVARCHAR}, - #{item.appIcon,jdbcType=LONGVARCHAR}) - - - - insert into firm_info ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.clientId,jdbcType=VARCHAR} - - - #{item.firmPerson,jdbcType=VARCHAR} - - - #{item.appSecret,jdbcType=VARCHAR} - - - #{item.firmName,jdbcType=VARCHAR} - - - #{item.firmPhone,jdbcType=VARCHAR} - - - #{item.certAlg,jdbcType=VARCHAR} - - - #{item.firmAddress,jdbcType=VARCHAR} - - - #{item.note,jdbcType=VARCHAR} - - - #{item.firmEmail,jdbcType=VARCHAR} - - - #{item.status,jdbcType=INTEGER} - - - #{item.clientOrgCode,jdbcType=VARCHAR} - - - #{item.msspAppid,jdbcType=VARCHAR} - - - #{item.certAgency,jdbcType=VARCHAR} - - - #{item.stampType,jdbcType=CHAR} - - - #{item.stampName,jdbcType=VARCHAR} - - - #{item.openId,jdbcType=VARCHAR} - - - #{item.sendSms,jdbcType=VARCHAR} - - - #{item.salePersonId,jdbcType=VARCHAR} - - - #{item.techPersonId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=TIMESTAMP} - - - #{item.updateTime,jdbcType=TIMESTAMP} - - - #{item.agentClientId,jdbcType=VARCHAR} - - - #{item.agentSaleId,jdbcType=VARCHAR} - - - #{item.caChannel,jdbcType=INTEGER} - - - #{item.projectStatus,jdbcType=INTEGER} - - - #{item.platAppId,jdbcType=INTEGER} - - - #{item.appCert,jdbcType=LONGVARCHAR} - - - #{item.appIcon,jdbcType=LONGVARCHAR} - - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - uniqueid, client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, agent_client_id, - agent_sale_id, ca_channel, project_status, plat_app_id - - - app_cert, app_icon - - - - - - delete from firm_info - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - delete from firm_info - - - - - - insert into firm_info (client_id, firm_person, app_secret, - firm_name, firm_phone, cert_alg, - firm_address, note, firm_email, - status, client_org_code, mssp_appid, - cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, - tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, - project_status, plat_app_id, app_cert, - app_icon) - values (#{clientId,jdbcType=VARCHAR}, #{customerPerson,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, - #{customerName,jdbcType=VARCHAR}, #{customerPhone,jdbcType=VARCHAR}, #{certAlg,jdbcType=VARCHAR}, - #{customerAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{customerEmail,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{clientOrgCode,jdbcType=VARCHAR}, #{msspAppid,jdbcType=VARCHAR}, - #{certAgency,jdbcType=VARCHAR}, #{stampType,jdbcType=CHAR}, #{stampName,jdbcType=VARCHAR}, - #{openId,jdbcType=VARCHAR}, #{sendSms,jdbcType=VARCHAR}, #{salePersonId,jdbcType=VARCHAR}, - #{techPersonId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, - #{agentClientId,jdbcType=VARCHAR}, #{agentSaleId,jdbcType=VARCHAR}, #{caChannel,jdbcType=INTEGER}, - #{projectStatus,jdbcType=INTEGER}, #{platAppId,jdbcType=INTEGER}, #{appCert,jdbcType=LONGVARCHAR}, - #{appIcon,jdbcType=LONGVARCHAR}) - - - insert into firm_info - - - client_id, - - - firm_person, - - - app_secret, - - - firm_name, - - - firm_phone, - - - cert_alg, - - - firm_address, - - - note, - - - firm_email, - - - status, - - - client_org_code, - - - mssp_appid, - - - cert_agency, - - - stamp_type, - - - stamp_name, - - - open_id, - - - send_sms, - - - sale_person_id, - - - tech_person_id, - - - create_time, - - - update_time, - - - agent_client_id, - - - agent_sale_id, - - - ca_channel, - - - project_status, - - - plat_app_id, - - - app_cert, - - - app_icon, - - - - - #{clientId,jdbcType=VARCHAR}, - - - #{customerPerson,jdbcType=VARCHAR}, - - - #{appSecret,jdbcType=VARCHAR}, - - - #{customerName,jdbcType=VARCHAR}, - - - #{customerPhone,jdbcType=VARCHAR}, - - - #{certAlg,jdbcType=VARCHAR}, - - - #{customerAddress,jdbcType=VARCHAR}, - - - #{note,jdbcType=VARCHAR}, - - - #{customerEmail,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{clientOrgCode,jdbcType=VARCHAR}, - - - #{msspAppid,jdbcType=VARCHAR}, - - - #{certAgency,jdbcType=VARCHAR}, - - - #{stampType,jdbcType=CHAR}, - - - #{stampName,jdbcType=VARCHAR}, - - - #{openId,jdbcType=VARCHAR}, - - - #{sendSms,jdbcType=VARCHAR}, - - - #{salePersonId,jdbcType=VARCHAR}, - - - #{techPersonId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{agentClientId,jdbcType=VARCHAR}, - - - #{agentSaleId,jdbcType=VARCHAR}, - - - #{caChannel,jdbcType=INTEGER}, - - - #{projectStatus,jdbcType=INTEGER}, - - - #{platAppId,jdbcType=INTEGER}, - - - #{appCert,jdbcType=LONGVARCHAR}, - - - #{appIcon,jdbcType=LONGVARCHAR}, - - - - - - update firm_info - - - uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - - - client_id = #{record.clientId,jdbcType=VARCHAR}, - - - firm_person = #{record.customerPerson,jdbcType=VARCHAR}, - - - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - - - firm_name = #{record.customerName,jdbcType=VARCHAR}, - - - firm_phone = #{record.customerPhone,jdbcType=VARCHAR}, - - - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - - - firm_address = #{record.customerAddress,jdbcType=VARCHAR}, - - - note = #{record.note,jdbcType=VARCHAR}, - - - firm_email = #{record.customerEmail,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{record.stampType,jdbcType=CHAR}, - - - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - - - project_status = #{record.projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - - - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR}, - - - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.customerPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.customerName,jdbcType=VARCHAR}, - firm_phone = #{record.customerPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.customerAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.customerEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR} - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.customerPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.customerName,jdbcType=VARCHAR}, - firm_phone = #{record.customerPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.customerAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.customerEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER} - - - - - - update firm_info - - - client_id = #{clientId,jdbcType=VARCHAR}, - - - firm_person = #{customerPerson,jdbcType=VARCHAR}, - - - app_secret = #{appSecret,jdbcType=VARCHAR}, - - - firm_name = #{customerName,jdbcType=VARCHAR}, - - - firm_phone = #{customerPhone,jdbcType=VARCHAR}, - - - cert_alg = #{certAlg,jdbcType=VARCHAR}, - - - firm_address = #{customerAddress,jdbcType=VARCHAR}, - - - note = #{note,jdbcType=VARCHAR}, - - - firm_email = #{customerEmail,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{stampType,jdbcType=CHAR}, - - - stamp_name = #{stampName,jdbcType=VARCHAR}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - send_sms = #{sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{caChannel,jdbcType=INTEGER}, - - - project_status = #{projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{platAppId,jdbcType=INTEGER}, - - - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{appIcon,jdbcType=LONGVARCHAR}, - - - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{customerPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{customerName,jdbcType=VARCHAR}, - firm_phone = #{customerPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{customerAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{customerEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER}, - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - app_icon = #{appIcon,jdbcType=LONGVARCHAR} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{customerPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{customerName,jdbcType=VARCHAR}, - firm_phone = #{customerPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{customerAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{customerEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - - - - - - - - - - insert into firm_info - (client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, - stamp_name, open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, project_status, plat_app_id, app_cert, - app_icon) - values - - (#{item.clientId,jdbcType=VARCHAR}, #{item.customerPerson,jdbcType=VARCHAR}, #{item.appSecret,jdbcType=VARCHAR}, - #{item.customerName,jdbcType=VARCHAR}, #{item.customerPhone,jdbcType=VARCHAR}, - #{item.certAlg,jdbcType=VARCHAR}, #{item.customerAddress,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}, - #{item.customerEmail,jdbcType=VARCHAR}, #{item.status,jdbcType=INTEGER}, #{item.clientOrgCode,jdbcType=VARCHAR}, - #{item.msspAppid,jdbcType=VARCHAR}, #{item.certAgency,jdbcType=VARCHAR}, #{item.stampType,jdbcType=CHAR}, - #{item.stampName,jdbcType=VARCHAR}, #{item.openId,jdbcType=VARCHAR}, #{item.sendSms,jdbcType=VARCHAR}, - #{item.salePersonId,jdbcType=VARCHAR}, #{item.techPersonId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, - #{item.updateTime,jdbcType=TIMESTAMP}, #{item.agentClientId,jdbcType=VARCHAR}, - #{item.agentSaleId,jdbcType=VARCHAR}, #{item.caChannel,jdbcType=INTEGER}, #{item.projectStatus,jdbcType=INTEGER}, - #{item.platAppId,jdbcType=INTEGER}, #{item.appCert,jdbcType=LONGVARCHAR}, #{item.appIcon,jdbcType=LONGVARCHAR} - ) - - - - insert into firm_info ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.clientId,jdbcType=VARCHAR} - - - #{item.customerPerson,jdbcType=VARCHAR} - - - #{item.appSecret,jdbcType=VARCHAR} - - - #{item.customerName,jdbcType=VARCHAR} - - - #{item.customerPhone,jdbcType=VARCHAR} - - - #{item.certAlg,jdbcType=VARCHAR} - - - #{item.customerAddress,jdbcType=VARCHAR} - - - #{item.note,jdbcType=VARCHAR} - - - #{item.customerEmail,jdbcType=VARCHAR} - - - #{item.status,jdbcType=INTEGER} - - - #{item.clientOrgCode,jdbcType=VARCHAR} - - - #{item.msspAppid,jdbcType=VARCHAR} - - - #{item.certAgency,jdbcType=VARCHAR} - - - #{item.stampType,jdbcType=CHAR} - - - #{item.stampName,jdbcType=VARCHAR} - - - #{item.openId,jdbcType=VARCHAR} - - - #{item.sendSms,jdbcType=VARCHAR} - - - #{item.salePersonId,jdbcType=VARCHAR} - - - #{item.techPersonId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=TIMESTAMP} - - - #{item.updateTime,jdbcType=TIMESTAMP} - - - #{item.agentClientId,jdbcType=VARCHAR} - - - #{item.agentSaleId,jdbcType=VARCHAR} - - - #{item.caChannel,jdbcType=INTEGER} - - - #{item.projectStatus,jdbcType=INTEGER} - - - #{item.platAppId,jdbcType=INTEGER} - - - #{item.appCert,jdbcType=LONGVARCHAR} - - - #{item.appIcon,jdbcType=LONGVARCHAR} - - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - uniqueid, client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, agent_client_id, - agent_sale_id, ca_channel, project_status, plat_app_id - - - app_cert, app_icon - - - - - - delete from firm_info - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - delete from firm_info - - - - - - insert into firm_info (client_id, firm_person, app_secret, - firm_name, firm_phone, cert_alg, - firm_address, note, firm_email, - status, client_org_code, mssp_appid, - cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, - tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, - project_status, plat_app_id, app_cert, - app_icon) - values (#{clientId,jdbcType=VARCHAR}, #{firmPerson,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, - #{CustomerName,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{certAlg,jdbcType=VARCHAR}, - #{firmAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{firmEmail,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{clientOrgCode,jdbcType=VARCHAR}, #{msspAppid,jdbcType=VARCHAR}, - #{certAgency,jdbcType=VARCHAR}, #{stampType,jdbcType=CHAR}, #{stampName,jdbcType=VARCHAR}, - #{openId,jdbcType=VARCHAR}, #{sendSms,jdbcType=VARCHAR}, #{salePersonId,jdbcType=VARCHAR}, - #{techPersonId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, - #{agentClientId,jdbcType=VARCHAR}, #{agentSaleId,jdbcType=VARCHAR}, #{caChannel,jdbcType=INTEGER}, - #{projectStatus,jdbcType=INTEGER}, #{platAppId,jdbcType=INTEGER}, #{appCert,jdbcType=LONGVARCHAR}, - #{appIcon,jdbcType=LONGVARCHAR}) - - - insert into firm_info - - - client_id, - - - firm_person, - - - app_secret, - - - firm_name, - - - firm_phone, - - - cert_alg, - - - firm_address, - - - note, - - - firm_email, - - - status, - - - client_org_code, - - - mssp_appid, - - - cert_agency, - - - stamp_type, - - - stamp_name, - - - open_id, - - - send_sms, - - - sale_person_id, - - - tech_person_id, - - - create_time, - - - update_time, - - - agent_client_id, - - - agent_sale_id, - - - ca_channel, - - - project_status, - - - plat_app_id, - - - app_cert, - - - app_icon, - - - - - #{clientId,jdbcType=VARCHAR}, - - - #{firmPerson,jdbcType=VARCHAR}, - - - #{appSecret,jdbcType=VARCHAR}, - - - #{CustomerName,jdbcType=VARCHAR}, - - - #{firmPhone,jdbcType=VARCHAR}, - - - #{certAlg,jdbcType=VARCHAR}, - - - #{firmAddress,jdbcType=VARCHAR}, - - - #{note,jdbcType=VARCHAR}, - - - #{firmEmail,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{clientOrgCode,jdbcType=VARCHAR}, - - - #{msspAppid,jdbcType=VARCHAR}, - - - #{certAgency,jdbcType=VARCHAR}, - - - #{stampType,jdbcType=CHAR}, - - - #{stampName,jdbcType=VARCHAR}, - - - #{openId,jdbcType=VARCHAR}, - - - #{sendSms,jdbcType=VARCHAR}, - - - #{salePersonId,jdbcType=VARCHAR}, - - - #{techPersonId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{agentClientId,jdbcType=VARCHAR}, - - - #{agentSaleId,jdbcType=VARCHAR}, - - - #{caChannel,jdbcType=INTEGER}, - - - #{projectStatus,jdbcType=INTEGER}, - - - #{platAppId,jdbcType=INTEGER}, - - - #{appCert,jdbcType=LONGVARCHAR}, - - - #{appIcon,jdbcType=LONGVARCHAR}, - - - - - - update firm_info - - - uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - - - client_id = #{record.clientId,jdbcType=VARCHAR}, - - - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - - - firm_name = #{record.CustomerName,jdbcType=VARCHAR}, - - - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - - - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - - - note = #{record.note,jdbcType=VARCHAR}, - - - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{record.stampType,jdbcType=CHAR}, - - - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - - - project_status = #{record.projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - - - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR}, - - - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.CustomerName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR} - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.CustomerName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER} - - - - - - update firm_info - - - client_id = #{clientId,jdbcType=VARCHAR}, - - - firm_person = #{firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{appSecret,jdbcType=VARCHAR}, - - - firm_name = #{CustomerName,jdbcType=VARCHAR}, - - - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{certAlg,jdbcType=VARCHAR}, - - - firm_address = #{firmAddress,jdbcType=VARCHAR}, - - - note = #{note,jdbcType=VARCHAR}, - - - firm_email = #{firmEmail,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{stampType,jdbcType=CHAR}, - - - stamp_name = #{stampName,jdbcType=VARCHAR}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - send_sms = #{sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{caChannel,jdbcType=INTEGER}, - - - project_status = #{projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{platAppId,jdbcType=INTEGER}, - - - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{appIcon,jdbcType=LONGVARCHAR}, - - - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{CustomerName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER}, - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - app_icon = #{appIcon,jdbcType=LONGVARCHAR} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{CustomerName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - - - - - - - - - - insert into firm_info - (client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, - stamp_name, open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, project_status, plat_app_id, app_cert, - app_icon) - values - - (#{item.clientId,jdbcType=VARCHAR}, #{item.firmPerson,jdbcType=VARCHAR}, #{item.appSecret,jdbcType=VARCHAR}, - #{item.CustomerName,jdbcType=VARCHAR}, #{item.firmPhone,jdbcType=VARCHAR}, #{item.certAlg,jdbcType=VARCHAR}, - #{item.firmAddress,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}, #{item.firmEmail,jdbcType=VARCHAR}, - #{item.status,jdbcType=INTEGER}, #{item.clientOrgCode,jdbcType=VARCHAR}, #{item.msspAppid,jdbcType=VARCHAR}, - #{item.certAgency,jdbcType=VARCHAR}, #{item.stampType,jdbcType=CHAR}, #{item.stampName,jdbcType=VARCHAR}, - #{item.openId,jdbcType=VARCHAR}, #{item.sendSms,jdbcType=VARCHAR}, #{item.salePersonId,jdbcType=VARCHAR}, - #{item.techPersonId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, - #{item.agentClientId,jdbcType=VARCHAR}, #{item.agentSaleId,jdbcType=VARCHAR}, #{item.caChannel,jdbcType=INTEGER}, - #{item.projectStatus,jdbcType=INTEGER}, #{item.platAppId,jdbcType=INTEGER}, #{item.appCert,jdbcType=LONGVARCHAR}, - #{item.appIcon,jdbcType=LONGVARCHAR}) - - - - insert into firm_info ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.clientId,jdbcType=VARCHAR} - - - #{item.firmPerson,jdbcType=VARCHAR} - - - #{item.appSecret,jdbcType=VARCHAR} - - - #{item.CustomerName,jdbcType=VARCHAR} - - - #{item.firmPhone,jdbcType=VARCHAR} - - - #{item.certAlg,jdbcType=VARCHAR} - - - #{item.firmAddress,jdbcType=VARCHAR} - - - #{item.note,jdbcType=VARCHAR} - - - #{item.firmEmail,jdbcType=VARCHAR} - - - #{item.status,jdbcType=INTEGER} - - - #{item.clientOrgCode,jdbcType=VARCHAR} - - - #{item.msspAppid,jdbcType=VARCHAR} - - - #{item.certAgency,jdbcType=VARCHAR} - - - #{item.stampType,jdbcType=CHAR} - - - #{item.stampName,jdbcType=VARCHAR} - - - #{item.openId,jdbcType=VARCHAR} - - - #{item.sendSms,jdbcType=VARCHAR} - - - #{item.salePersonId,jdbcType=VARCHAR} - - - #{item.techPersonId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=TIMESTAMP} - - - #{item.updateTime,jdbcType=TIMESTAMP} - - - #{item.agentClientId,jdbcType=VARCHAR} - - - #{item.agentSaleId,jdbcType=VARCHAR} - - - #{item.caChannel,jdbcType=INTEGER} - - - #{item.projectStatus,jdbcType=INTEGER} - - - #{item.platAppId,jdbcType=INTEGER} - - - #{item.appCert,jdbcType=LONGVARCHAR} - - - #{item.appIcon,jdbcType=LONGVARCHAR} - - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - uniqueid, client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, agent_client_id, - agent_sale_id, ca_channel, project_status, plat_app_id - - - app_cert, app_icon - - - - - - delete from firm_info - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - delete from firm_info - - - - - - insert into firm_info (client_id, firm_person, app_secret, - firm_name, firm_phone, cert_alg, - firm_address, note, firm_email, - status, client_org_code, mssp_appid, - cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, - tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, - project_status, plat_app_id, app_cert, - app_icon) - values (#{clientId,jdbcType=VARCHAR}, #{firmPerson,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, - #{firmName,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{certAlg,jdbcType=VARCHAR}, - #{firmAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{firmEmail,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{clientOrgCode,jdbcType=VARCHAR}, #{msspAppid,jdbcType=VARCHAR}, - #{certAgency,jdbcType=VARCHAR}, #{stampType,jdbcType=CHAR}, #{stampName,jdbcType=VARCHAR}, - #{openId,jdbcType=VARCHAR}, #{sendSms,jdbcType=VARCHAR}, #{salePersonId,jdbcType=VARCHAR}, - #{techPersonId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, - #{agentClientId,jdbcType=VARCHAR}, #{agentSaleId,jdbcType=VARCHAR}, #{caChannel,jdbcType=INTEGER}, - #{projectStatus,jdbcType=INTEGER}, #{platAppId,jdbcType=INTEGER}, #{appCert,jdbcType=LONGVARCHAR}, - #{appIcon,jdbcType=LONGVARCHAR}) - - - insert into firm_info - - - client_id, - - - firm_person, - - - app_secret, - - - firm_name, - - - firm_phone, - - - cert_alg, - - - firm_address, - - - note, - - - firm_email, - - - status, - - - client_org_code, - - - mssp_appid, - - - cert_agency, - - - stamp_type, - - - stamp_name, - - - open_id, - - - send_sms, - - - sale_person_id, - - - tech_person_id, - - - create_time, - - - update_time, - - - agent_client_id, - - - agent_sale_id, - - - ca_channel, - - - project_status, - - - plat_app_id, - - - app_cert, - - - app_icon, - - - - - #{clientId,jdbcType=VARCHAR}, - - - #{firmPerson,jdbcType=VARCHAR}, - - - #{appSecret,jdbcType=VARCHAR}, - - - #{firmName,jdbcType=VARCHAR}, - - - #{firmPhone,jdbcType=VARCHAR}, - - - #{certAlg,jdbcType=VARCHAR}, - - - #{firmAddress,jdbcType=VARCHAR}, - - - #{note,jdbcType=VARCHAR}, - - - #{firmEmail,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{clientOrgCode,jdbcType=VARCHAR}, - - - #{msspAppid,jdbcType=VARCHAR}, - - - #{certAgency,jdbcType=VARCHAR}, - - - #{stampType,jdbcType=CHAR}, - - - #{stampName,jdbcType=VARCHAR}, - - - #{openId,jdbcType=VARCHAR}, - - - #{sendSms,jdbcType=VARCHAR}, - - - #{salePersonId,jdbcType=VARCHAR}, - - - #{techPersonId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{agentClientId,jdbcType=VARCHAR}, - - - #{agentSaleId,jdbcType=VARCHAR}, - - - #{caChannel,jdbcType=INTEGER}, - - - #{projectStatus,jdbcType=INTEGER}, - - - #{platAppId,jdbcType=INTEGER}, - - - #{appCert,jdbcType=LONGVARCHAR}, - - - #{appIcon,jdbcType=LONGVARCHAR}, - - - - - - update firm_info - - - uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - - - client_id = #{record.clientId,jdbcType=VARCHAR}, - - - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - - - firm_name = #{record.firmName,jdbcType=VARCHAR}, - - - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - - - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - - - note = #{record.note,jdbcType=VARCHAR}, - - - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{record.stampType,jdbcType=CHAR}, - - - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - - - project_status = #{record.projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - - - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR}, - - - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR} - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER} - - - - - - update firm_info - - - client_id = #{clientId,jdbcType=VARCHAR}, - - - firm_person = #{firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{appSecret,jdbcType=VARCHAR}, - - - firm_name = #{firmName,jdbcType=VARCHAR}, - - - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{certAlg,jdbcType=VARCHAR}, - - - firm_address = #{firmAddress,jdbcType=VARCHAR}, - - - note = #{note,jdbcType=VARCHAR}, - - - firm_email = #{firmEmail,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{stampType,jdbcType=CHAR}, - - - stamp_name = #{stampName,jdbcType=VARCHAR}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - send_sms = #{sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{caChannel,jdbcType=INTEGER}, - - - project_status = #{projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{platAppId,jdbcType=INTEGER}, - - - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{appIcon,jdbcType=LONGVARCHAR}, - - - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER}, - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - app_icon = #{appIcon,jdbcType=LONGVARCHAR} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - - - - - - - - - - insert into firm_info - (client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, - stamp_name, open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, project_status, plat_app_id, app_cert, - app_icon) - values - - (#{item.clientId,jdbcType=VARCHAR}, #{item.firmPerson,jdbcType=VARCHAR}, #{item.appSecret,jdbcType=VARCHAR}, - #{item.firmName,jdbcType=VARCHAR}, #{item.firmPhone,jdbcType=VARCHAR}, #{item.certAlg,jdbcType=VARCHAR}, - #{item.firmAddress,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}, #{item.firmEmail,jdbcType=VARCHAR}, - #{item.status,jdbcType=INTEGER}, #{item.clientOrgCode,jdbcType=VARCHAR}, #{item.msspAppid,jdbcType=VARCHAR}, - #{item.certAgency,jdbcType=VARCHAR}, #{item.stampType,jdbcType=CHAR}, #{item.stampName,jdbcType=VARCHAR}, - #{item.openId,jdbcType=VARCHAR}, #{item.sendSms,jdbcType=VARCHAR}, #{item.salePersonId,jdbcType=VARCHAR}, - #{item.techPersonId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, - #{item.agentClientId,jdbcType=VARCHAR}, #{item.agentSaleId,jdbcType=VARCHAR}, #{item.caChannel,jdbcType=INTEGER}, - #{item.projectStatus,jdbcType=INTEGER}, #{item.platAppId,jdbcType=INTEGER}, #{item.appCert,jdbcType=LONGVARCHAR}, - #{item.appIcon,jdbcType=LONGVARCHAR}) - - - - insert into firm_info ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.clientId,jdbcType=VARCHAR} - - - #{item.firmPerson,jdbcType=VARCHAR} - - - #{item.appSecret,jdbcType=VARCHAR} - - - #{item.firmName,jdbcType=VARCHAR} - - - #{item.firmPhone,jdbcType=VARCHAR} - - - #{item.certAlg,jdbcType=VARCHAR} - - - #{item.firmAddress,jdbcType=VARCHAR} - - - #{item.note,jdbcType=VARCHAR} - - - #{item.firmEmail,jdbcType=VARCHAR} - - - #{item.status,jdbcType=INTEGER} - - - #{item.clientOrgCode,jdbcType=VARCHAR} - - - #{item.msspAppid,jdbcType=VARCHAR} - - - #{item.certAgency,jdbcType=VARCHAR} - - - #{item.stampType,jdbcType=CHAR} - - - #{item.stampName,jdbcType=VARCHAR} - - - #{item.openId,jdbcType=VARCHAR} - - - #{item.sendSms,jdbcType=VARCHAR} - - - #{item.salePersonId,jdbcType=VARCHAR} - - - #{item.techPersonId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=TIMESTAMP} - - - #{item.updateTime,jdbcType=TIMESTAMP} - - - #{item.agentClientId,jdbcType=VARCHAR} - - - #{item.agentSaleId,jdbcType=VARCHAR} - - - #{item.caChannel,jdbcType=INTEGER} - - - #{item.projectStatus,jdbcType=INTEGER} - - - #{item.platAppId,jdbcType=INTEGER} - - - #{item.appCert,jdbcType=LONGVARCHAR} - - - #{item.appIcon,jdbcType=LONGVARCHAR} - - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - uniqueid, client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, agent_client_id, - agent_sale_id, ca_channel, project_status, plat_app_id - - - app_cert, app_icon - - - - - - delete from firm_info - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - delete from firm_info - - - - - - insert into firm_info (client_id, firm_person, app_secret, - firm_name, firm_phone, cert_alg, - firm_address, note, firm_email, - status, client_org_code, mssp_appid, - cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, - tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, - project_status, plat_app_id, app_cert, - app_icon) - values (#{clientId,jdbcType=VARCHAR}, #{firmPerson,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, - #{firmName,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{certAlg,jdbcType=VARCHAR}, - #{firmAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{firmEmail,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{clientOrgCode,jdbcType=VARCHAR}, #{msspAppid,jdbcType=VARCHAR}, - #{certAgency,jdbcType=VARCHAR}, #{stampType,jdbcType=CHAR}, #{stampName,jdbcType=VARCHAR}, - #{openId,jdbcType=VARCHAR}, #{sendSms,jdbcType=VARCHAR}, #{salePersonId,jdbcType=VARCHAR}, - #{techPersonId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, - #{agentClientId,jdbcType=VARCHAR}, #{agentSaleId,jdbcType=VARCHAR}, #{caChannel,jdbcType=INTEGER}, - #{projectStatus,jdbcType=INTEGER}, #{platAppId,jdbcType=INTEGER}, #{appCert,jdbcType=LONGVARCHAR}, - #{appIcon,jdbcType=LONGVARCHAR}) - - - insert into firm_info - - - client_id, - - - firm_person, - - - app_secret, - - - firm_name, - - - firm_phone, - - - cert_alg, - - - firm_address, - - - note, - - - firm_email, - - - status, - - - client_org_code, - - - mssp_appid, - - - cert_agency, - - - stamp_type, - - - stamp_name, - - - open_id, - - - send_sms, - - - sale_person_id, - - - tech_person_id, - - - create_time, - - - update_time, - - - agent_client_id, - - - agent_sale_id, - - - ca_channel, - - - project_status, - - - plat_app_id, - - - app_cert, - - - app_icon, - - - - - #{clientId,jdbcType=VARCHAR}, - - - #{firmPerson,jdbcType=VARCHAR}, - - - #{appSecret,jdbcType=VARCHAR}, - - - #{firmName,jdbcType=VARCHAR}, - - - #{firmPhone,jdbcType=VARCHAR}, - - - #{certAlg,jdbcType=VARCHAR}, - - - #{firmAddress,jdbcType=VARCHAR}, - - - #{note,jdbcType=VARCHAR}, - - - #{firmEmail,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{clientOrgCode,jdbcType=VARCHAR}, - - - #{msspAppid,jdbcType=VARCHAR}, - - - #{certAgency,jdbcType=VARCHAR}, - - - #{stampType,jdbcType=CHAR}, - - - #{stampName,jdbcType=VARCHAR}, - - - #{openId,jdbcType=VARCHAR}, - - - #{sendSms,jdbcType=VARCHAR}, - - - #{salePersonId,jdbcType=VARCHAR}, - - - #{techPersonId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{agentClientId,jdbcType=VARCHAR}, - - - #{agentSaleId,jdbcType=VARCHAR}, - - - #{caChannel,jdbcType=INTEGER}, - - - #{projectStatus,jdbcType=INTEGER}, - - - #{platAppId,jdbcType=INTEGER}, - - - #{appCert,jdbcType=LONGVARCHAR}, - - - #{appIcon,jdbcType=LONGVARCHAR}, - - - - - - update firm_info - - - uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - - - client_id = #{record.clientId,jdbcType=VARCHAR}, - - - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - - - firm_name = #{record.firmName,jdbcType=VARCHAR}, - - - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - - - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - - - note = #{record.note,jdbcType=VARCHAR}, - - - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{record.stampType,jdbcType=CHAR}, - - - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - - - project_status = #{record.projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - - - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR}, - - - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR} - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER} - - - - - - update firm_info - - - client_id = #{clientId,jdbcType=VARCHAR}, - - - firm_person = #{firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{appSecret,jdbcType=VARCHAR}, - - - firm_name = #{firmName,jdbcType=VARCHAR}, - - - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{certAlg,jdbcType=VARCHAR}, - - - firm_address = #{firmAddress,jdbcType=VARCHAR}, - - - note = #{note,jdbcType=VARCHAR}, - - - firm_email = #{firmEmail,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{stampType,jdbcType=CHAR}, - - - stamp_name = #{stampName,jdbcType=VARCHAR}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - send_sms = #{sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{caChannel,jdbcType=INTEGER}, - - - project_status = #{projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{platAppId,jdbcType=INTEGER}, - - - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{appIcon,jdbcType=LONGVARCHAR}, - - - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER}, - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - app_icon = #{appIcon,jdbcType=LONGVARCHAR} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - - - - - - - - - - insert into firm_info - (client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, - stamp_name, open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, project_status, plat_app_id, app_cert, - app_icon) - values - - (#{item.clientId,jdbcType=VARCHAR}, #{item.firmPerson,jdbcType=VARCHAR}, #{item.appSecret,jdbcType=VARCHAR}, - #{item.firmName,jdbcType=VARCHAR}, #{item.firmPhone,jdbcType=VARCHAR}, #{item.certAlg,jdbcType=VARCHAR}, - #{item.firmAddress,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}, #{item.firmEmail,jdbcType=VARCHAR}, - #{item.status,jdbcType=INTEGER}, #{item.clientOrgCode,jdbcType=VARCHAR}, #{item.msspAppid,jdbcType=VARCHAR}, - #{item.certAgency,jdbcType=VARCHAR}, #{item.stampType,jdbcType=CHAR}, #{item.stampName,jdbcType=VARCHAR}, - #{item.openId,jdbcType=VARCHAR}, #{item.sendSms,jdbcType=VARCHAR}, #{item.salePersonId,jdbcType=VARCHAR}, - #{item.techPersonId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, - #{item.agentClientId,jdbcType=VARCHAR}, #{item.agentSaleId,jdbcType=VARCHAR}, #{item.caChannel,jdbcType=INTEGER}, - #{item.projectStatus,jdbcType=INTEGER}, #{item.platAppId,jdbcType=INTEGER}, #{item.appCert,jdbcType=LONGVARCHAR}, - #{item.appIcon,jdbcType=LONGVARCHAR}) - - - - insert into firm_info ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.clientId,jdbcType=VARCHAR} - - - #{item.firmPerson,jdbcType=VARCHAR} - - - #{item.appSecret,jdbcType=VARCHAR} - - - #{item.firmName,jdbcType=VARCHAR} - - - #{item.firmPhone,jdbcType=VARCHAR} - - - #{item.certAlg,jdbcType=VARCHAR} - - - #{item.firmAddress,jdbcType=VARCHAR} - - - #{item.note,jdbcType=VARCHAR} - - - #{item.firmEmail,jdbcType=VARCHAR} - - - #{item.status,jdbcType=INTEGER} - - - #{item.clientOrgCode,jdbcType=VARCHAR} - - - #{item.msspAppid,jdbcType=VARCHAR} - - - #{item.certAgency,jdbcType=VARCHAR} - - - #{item.stampType,jdbcType=CHAR} - - - #{item.stampName,jdbcType=VARCHAR} - - - #{item.openId,jdbcType=VARCHAR} - - - #{item.sendSms,jdbcType=VARCHAR} - - - #{item.salePersonId,jdbcType=VARCHAR} - - - #{item.techPersonId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=TIMESTAMP} - - - #{item.updateTime,jdbcType=TIMESTAMP} - - - #{item.agentClientId,jdbcType=VARCHAR} - - - #{item.agentSaleId,jdbcType=VARCHAR} - - - #{item.caChannel,jdbcType=INTEGER} - - - #{item.projectStatus,jdbcType=INTEGER} - - - #{item.platAppId,jdbcType=INTEGER} - - - #{item.appCert,jdbcType=LONGVARCHAR} - - - #{item.appIcon,jdbcType=LONGVARCHAR} - - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - uniqueid, client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, agent_client_id, - agent_sale_id, ca_channel, project_status, plat_app_id - - - app_cert, app_icon - - - - - - delete from firm_info - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - delete from firm_info - - - - - - insert into firm_info (client_id, firm_person, app_secret, - firm_name, firm_phone, cert_alg, - firm_address, note, firm_email, - status, client_org_code, mssp_appid, - cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, - tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, - project_status, plat_app_id, app_cert, - app_icon) - values (#{clientId,jdbcType=VARCHAR}, #{firmPerson,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, - #{firmName,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{certAlg,jdbcType=VARCHAR}, - #{firmAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{firmEmail,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{clientOrgCode,jdbcType=VARCHAR}, #{msspAppid,jdbcType=VARCHAR}, - #{certAgency,jdbcType=VARCHAR}, #{stampType,jdbcType=CHAR}, #{stampName,jdbcType=VARCHAR}, - #{openId,jdbcType=VARCHAR}, #{sendSms,jdbcType=VARCHAR}, #{salePersonId,jdbcType=VARCHAR}, - #{techPersonId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, - #{agentClientId,jdbcType=VARCHAR}, #{agentSaleId,jdbcType=VARCHAR}, #{caChannel,jdbcType=INTEGER}, - #{projectStatus,jdbcType=INTEGER}, #{platAppId,jdbcType=INTEGER}, #{appCert,jdbcType=LONGVARCHAR}, - #{appIcon,jdbcType=LONGVARCHAR}) - - - insert into firm_info - - - client_id, - - - firm_person, - - - app_secret, - - - firm_name, - - - firm_phone, - - - cert_alg, - - - firm_address, - - - note, - - - firm_email, - - - status, - - - client_org_code, - - - mssp_appid, - - - cert_agency, - - - stamp_type, - - - stamp_name, - - - open_id, - - - send_sms, - - - sale_person_id, - - - tech_person_id, - - - create_time, - - - update_time, - - - agent_client_id, - - - agent_sale_id, - - - ca_channel, - - - project_status, - - - plat_app_id, - - - app_cert, - - - app_icon, - - - - - #{clientId,jdbcType=VARCHAR}, - - - #{firmPerson,jdbcType=VARCHAR}, - - - #{appSecret,jdbcType=VARCHAR}, - - - #{firmName,jdbcType=VARCHAR}, - - - #{firmPhone,jdbcType=VARCHAR}, - - - #{certAlg,jdbcType=VARCHAR}, - - - #{firmAddress,jdbcType=VARCHAR}, - - - #{note,jdbcType=VARCHAR}, - - - #{firmEmail,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{clientOrgCode,jdbcType=VARCHAR}, - - - #{msspAppid,jdbcType=VARCHAR}, - - - #{certAgency,jdbcType=VARCHAR}, - - - #{stampType,jdbcType=CHAR}, - - - #{stampName,jdbcType=VARCHAR}, - - - #{openId,jdbcType=VARCHAR}, - - - #{sendSms,jdbcType=VARCHAR}, - - - #{salePersonId,jdbcType=VARCHAR}, - - - #{techPersonId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{agentClientId,jdbcType=VARCHAR}, - - - #{agentSaleId,jdbcType=VARCHAR}, - - - #{caChannel,jdbcType=INTEGER}, - - - #{projectStatus,jdbcType=INTEGER}, - - - #{platAppId,jdbcType=INTEGER}, - - - #{appCert,jdbcType=LONGVARCHAR}, - - - #{appIcon,jdbcType=LONGVARCHAR}, - - - - - - update firm_info - - - uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - - - client_id = #{record.clientId,jdbcType=VARCHAR}, - - - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - - - firm_name = #{record.firmName,jdbcType=VARCHAR}, - - - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - - - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - - - note = #{record.note,jdbcType=VARCHAR}, - - - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{record.stampType,jdbcType=CHAR}, - - - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - - - project_status = #{record.projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - - - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR}, - - - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR} - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER} - - - - - - update firm_info - - - client_id = #{clientId,jdbcType=VARCHAR}, - - - firm_person = #{firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{appSecret,jdbcType=VARCHAR}, - - - firm_name = #{firmName,jdbcType=VARCHAR}, - - - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{certAlg,jdbcType=VARCHAR}, - - - firm_address = #{firmAddress,jdbcType=VARCHAR}, - - - note = #{note,jdbcType=VARCHAR}, - - - firm_email = #{firmEmail,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{stampType,jdbcType=CHAR}, - - - stamp_name = #{stampName,jdbcType=VARCHAR}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - send_sms = #{sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{caChannel,jdbcType=INTEGER}, - - - project_status = #{projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{platAppId,jdbcType=INTEGER}, - - - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{appIcon,jdbcType=LONGVARCHAR}, - - - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER}, - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - app_icon = #{appIcon,jdbcType=LONGVARCHAR} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - - - - - - - - - - insert into firm_info - (client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, - stamp_name, open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, project_status, plat_app_id, app_cert, - app_icon) - values - - (#{item.clientId,jdbcType=VARCHAR}, #{item.firmPerson,jdbcType=VARCHAR}, #{item.appSecret,jdbcType=VARCHAR}, - #{item.firmName,jdbcType=VARCHAR}, #{item.firmPhone,jdbcType=VARCHAR}, #{item.certAlg,jdbcType=VARCHAR}, - #{item.firmAddress,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}, #{item.firmEmail,jdbcType=VARCHAR}, - #{item.status,jdbcType=INTEGER}, #{item.clientOrgCode,jdbcType=VARCHAR}, #{item.msspAppid,jdbcType=VARCHAR}, - #{item.certAgency,jdbcType=VARCHAR}, #{item.stampType,jdbcType=CHAR}, #{item.stampName,jdbcType=VARCHAR}, - #{item.openId,jdbcType=VARCHAR}, #{item.sendSms,jdbcType=VARCHAR}, #{item.salePersonId,jdbcType=VARCHAR}, - #{item.techPersonId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, - #{item.agentClientId,jdbcType=VARCHAR}, #{item.agentSaleId,jdbcType=VARCHAR}, #{item.caChannel,jdbcType=INTEGER}, - #{item.projectStatus,jdbcType=INTEGER}, #{item.platAppId,jdbcType=INTEGER}, #{item.appCert,jdbcType=LONGVARCHAR}, - #{item.appIcon,jdbcType=LONGVARCHAR}) - - - - insert into firm_info ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.clientId,jdbcType=VARCHAR} - - - #{item.firmPerson,jdbcType=VARCHAR} - - - #{item.appSecret,jdbcType=VARCHAR} - - - #{item.firmName,jdbcType=VARCHAR} - - - #{item.firmPhone,jdbcType=VARCHAR} - - - #{item.certAlg,jdbcType=VARCHAR} - - - #{item.firmAddress,jdbcType=VARCHAR} - - - #{item.note,jdbcType=VARCHAR} - - - #{item.firmEmail,jdbcType=VARCHAR} - - - #{item.status,jdbcType=INTEGER} - - - #{item.clientOrgCode,jdbcType=VARCHAR} - - - #{item.msspAppid,jdbcType=VARCHAR} - - - #{item.certAgency,jdbcType=VARCHAR} - - - #{item.stampType,jdbcType=CHAR} - - - #{item.stampName,jdbcType=VARCHAR} - - - #{item.openId,jdbcType=VARCHAR} - - - #{item.sendSms,jdbcType=VARCHAR} - - - #{item.salePersonId,jdbcType=VARCHAR} - - - #{item.techPersonId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=TIMESTAMP} - - - #{item.updateTime,jdbcType=TIMESTAMP} - - - #{item.agentClientId,jdbcType=VARCHAR} - - - #{item.agentSaleId,jdbcType=VARCHAR} - - - #{item.caChannel,jdbcType=INTEGER} - - - #{item.projectStatus,jdbcType=INTEGER} - - - #{item.platAppId,jdbcType=INTEGER} - - - #{item.appCert,jdbcType=LONGVARCHAR} - - - #{item.appIcon,jdbcType=LONGVARCHAR} - - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - uniqueid, client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, agent_client_id, - agent_sale_id, ca_channel, project_status, plat_app_id - - - app_cert, app_icon - - - - - - delete from firm_info - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - delete from firm_info - - - - - - insert into firm_info (client_id, firm_person, app_secret, - firm_name, firm_phone, cert_alg, - firm_address, note, firm_email, - status, client_org_code, mssp_appid, - cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, - tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, - project_status, plat_app_id, app_cert, - app_icon) - values (#{clientId,jdbcType=VARCHAR}, #{firmPerson,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, - #{firmName,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{certAlg,jdbcType=VARCHAR}, - #{firmAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{firmEmail,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{clientOrgCode,jdbcType=VARCHAR}, #{msspAppid,jdbcType=VARCHAR}, - #{certAgency,jdbcType=VARCHAR}, #{stampType,jdbcType=CHAR}, #{stampName,jdbcType=VARCHAR}, - #{openId,jdbcType=VARCHAR}, #{sendSms,jdbcType=VARCHAR}, #{salePersonId,jdbcType=VARCHAR}, - #{techPersonId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, - #{agentClientId,jdbcType=VARCHAR}, #{agentSaleId,jdbcType=VARCHAR}, #{caChannel,jdbcType=INTEGER}, - #{projectStatus,jdbcType=INTEGER}, #{platAppId,jdbcType=INTEGER}, #{appCert,jdbcType=LONGVARCHAR}, - #{appIcon,jdbcType=LONGVARCHAR}) - - - insert into firm_info - - - client_id, - - - firm_person, - - - app_secret, - - - firm_name, - - - firm_phone, - - - cert_alg, - - - firm_address, - - - note, - - - firm_email, - - - status, - - - client_org_code, - - - mssp_appid, - - - cert_agency, - - - stamp_type, - - - stamp_name, - - - open_id, - - - send_sms, - - - sale_person_id, - - - tech_person_id, - - - create_time, - - - update_time, - - - agent_client_id, - - - agent_sale_id, - - - ca_channel, - - - project_status, - - - plat_app_id, - - - app_cert, - - - app_icon, - - - - - #{clientId,jdbcType=VARCHAR}, - - - #{firmPerson,jdbcType=VARCHAR}, - - - #{appSecret,jdbcType=VARCHAR}, - - - #{firmName,jdbcType=VARCHAR}, - - - #{firmPhone,jdbcType=VARCHAR}, - - - #{certAlg,jdbcType=VARCHAR}, - - - #{firmAddress,jdbcType=VARCHAR}, - - - #{note,jdbcType=VARCHAR}, - - - #{firmEmail,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{clientOrgCode,jdbcType=VARCHAR}, - - - #{msspAppid,jdbcType=VARCHAR}, - - - #{certAgency,jdbcType=VARCHAR}, - - - #{stampType,jdbcType=CHAR}, - - - #{stampName,jdbcType=VARCHAR}, - - - #{openId,jdbcType=VARCHAR}, - - - #{sendSms,jdbcType=VARCHAR}, - - - #{salePersonId,jdbcType=VARCHAR}, - - - #{techPersonId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{agentClientId,jdbcType=VARCHAR}, - - - #{agentSaleId,jdbcType=VARCHAR}, - - - #{caChannel,jdbcType=INTEGER}, - - - #{projectStatus,jdbcType=INTEGER}, - - - #{platAppId,jdbcType=INTEGER}, - - - #{appCert,jdbcType=LONGVARCHAR}, - - - #{appIcon,jdbcType=LONGVARCHAR}, - - - - - - update firm_info - - - uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - - - client_id = #{record.clientId,jdbcType=VARCHAR}, - - - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - - - firm_name = #{record.firmName,jdbcType=VARCHAR}, - - - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - - - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - - - note = #{record.note,jdbcType=VARCHAR}, - - - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{record.stampType,jdbcType=CHAR}, - - - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - - - project_status = #{record.projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - - - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR}, - - - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR} - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER} - - - - - - update firm_info - - - client_id = #{clientId,jdbcType=VARCHAR}, - - - firm_person = #{firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{appSecret,jdbcType=VARCHAR}, - - - firm_name = #{firmName,jdbcType=VARCHAR}, - - - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{certAlg,jdbcType=VARCHAR}, - - - firm_address = #{firmAddress,jdbcType=VARCHAR}, - - - note = #{note,jdbcType=VARCHAR}, - - - firm_email = #{firmEmail,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{stampType,jdbcType=CHAR}, - - - stamp_name = #{stampName,jdbcType=VARCHAR}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - send_sms = #{sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{caChannel,jdbcType=INTEGER}, - - - project_status = #{projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{platAppId,jdbcType=INTEGER}, - - - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{appIcon,jdbcType=LONGVARCHAR}, - - - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER}, - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - app_icon = #{appIcon,jdbcType=LONGVARCHAR} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - - - - - - - - - - insert into firm_info - (client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, - stamp_name, open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, project_status, plat_app_id, app_cert, - app_icon) - values - - (#{item.clientId,jdbcType=VARCHAR}, #{item.firmPerson,jdbcType=VARCHAR}, #{item.appSecret,jdbcType=VARCHAR}, - #{item.firmName,jdbcType=VARCHAR}, #{item.firmPhone,jdbcType=VARCHAR}, #{item.certAlg,jdbcType=VARCHAR}, - #{item.firmAddress,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}, #{item.firmEmail,jdbcType=VARCHAR}, - #{item.status,jdbcType=INTEGER}, #{item.clientOrgCode,jdbcType=VARCHAR}, #{item.msspAppid,jdbcType=VARCHAR}, - #{item.certAgency,jdbcType=VARCHAR}, #{item.stampType,jdbcType=CHAR}, #{item.stampName,jdbcType=VARCHAR}, - #{item.openId,jdbcType=VARCHAR}, #{item.sendSms,jdbcType=VARCHAR}, #{item.salePersonId,jdbcType=VARCHAR}, - #{item.techPersonId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, - #{item.agentClientId,jdbcType=VARCHAR}, #{item.agentSaleId,jdbcType=VARCHAR}, #{item.caChannel,jdbcType=INTEGER}, - #{item.projectStatus,jdbcType=INTEGER}, #{item.platAppId,jdbcType=INTEGER}, #{item.appCert,jdbcType=LONGVARCHAR}, - #{item.appIcon,jdbcType=LONGVARCHAR}) - - - - insert into firm_info ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.clientId,jdbcType=VARCHAR} - - - #{item.firmPerson,jdbcType=VARCHAR} - - - #{item.appSecret,jdbcType=VARCHAR} - - - #{item.firmName,jdbcType=VARCHAR} - - - #{item.firmPhone,jdbcType=VARCHAR} - - - #{item.certAlg,jdbcType=VARCHAR} - - - #{item.firmAddress,jdbcType=VARCHAR} - - - #{item.note,jdbcType=VARCHAR} - - - #{item.firmEmail,jdbcType=VARCHAR} - - - #{item.status,jdbcType=INTEGER} - - - #{item.clientOrgCode,jdbcType=VARCHAR} - - - #{item.msspAppid,jdbcType=VARCHAR} - - - #{item.certAgency,jdbcType=VARCHAR} - - - #{item.stampType,jdbcType=CHAR} - - - #{item.stampName,jdbcType=VARCHAR} - - - #{item.openId,jdbcType=VARCHAR} - - - #{item.sendSms,jdbcType=VARCHAR} - - - #{item.salePersonId,jdbcType=VARCHAR} - - - #{item.techPersonId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=TIMESTAMP} - - - #{item.updateTime,jdbcType=TIMESTAMP} - - - #{item.agentClientId,jdbcType=VARCHAR} - - - #{item.agentSaleId,jdbcType=VARCHAR} - - - #{item.caChannel,jdbcType=INTEGER} - - - #{item.projectStatus,jdbcType=INTEGER} - - - #{item.platAppId,jdbcType=INTEGER} - - - #{item.appCert,jdbcType=LONGVARCHAR} - - - #{item.appIcon,jdbcType=LONGVARCHAR} - - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - uniqueid, client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, agent_client_id, - agent_sale_id, ca_channel, project_status, plat_app_id - - - app_cert, app_icon - - - - - - delete from firm_info - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - delete from firm_info - - - - - - insert into firm_info (client_id, firm_person, app_secret, - firm_name, firm_phone, cert_alg, - firm_address, note, firm_email, - status, client_org_code, mssp_appid, - cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, - tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, - project_status, plat_app_id, app_cert, - app_icon) - values (#{clientId,jdbcType=VARCHAR}, #{firmPerson,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, - #{firmName,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{certAlg,jdbcType=VARCHAR}, - #{firmAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{firmEmail,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{clientOrgCode,jdbcType=VARCHAR}, #{msspAppid,jdbcType=VARCHAR}, - #{certAgency,jdbcType=VARCHAR}, #{stampType,jdbcType=CHAR}, #{stampName,jdbcType=VARCHAR}, - #{openId,jdbcType=VARCHAR}, #{sendSms,jdbcType=VARCHAR}, #{salePersonId,jdbcType=VARCHAR}, - #{techPersonId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, - #{agentClientId,jdbcType=VARCHAR}, #{agentSaleId,jdbcType=VARCHAR}, #{caChannel,jdbcType=INTEGER}, - #{projectStatus,jdbcType=INTEGER}, #{platAppId,jdbcType=INTEGER}, #{appCert,jdbcType=LONGVARCHAR}, - #{appIcon,jdbcType=LONGVARCHAR}) - - - insert into firm_info - - - client_id, - - - firm_person, - - - app_secret, - - - firm_name, - - - firm_phone, - - - cert_alg, - - - firm_address, - - - note, - - - firm_email, - - - status, - - - client_org_code, - - - mssp_appid, - - - cert_agency, - - - stamp_type, - - - stamp_name, - - - open_id, - - - send_sms, - - - sale_person_id, - - - tech_person_id, - - - create_time, - - - update_time, - - - agent_client_id, - - - agent_sale_id, - - - ca_channel, - - - project_status, - - - plat_app_id, - - - app_cert, - - - app_icon, - - - - - #{clientId,jdbcType=VARCHAR}, - - - #{firmPerson,jdbcType=VARCHAR}, - - - #{appSecret,jdbcType=VARCHAR}, - - - #{firmName,jdbcType=VARCHAR}, - - - #{firmPhone,jdbcType=VARCHAR}, - - - #{certAlg,jdbcType=VARCHAR}, - - - #{firmAddress,jdbcType=VARCHAR}, - - - #{note,jdbcType=VARCHAR}, - - - #{firmEmail,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{clientOrgCode,jdbcType=VARCHAR}, - - - #{msspAppid,jdbcType=VARCHAR}, - - - #{certAgency,jdbcType=VARCHAR}, - - - #{stampType,jdbcType=CHAR}, - - - #{stampName,jdbcType=VARCHAR}, - - - #{openId,jdbcType=VARCHAR}, - - - #{sendSms,jdbcType=VARCHAR}, - - - #{salePersonId,jdbcType=VARCHAR}, - - - #{techPersonId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{agentClientId,jdbcType=VARCHAR}, - - - #{agentSaleId,jdbcType=VARCHAR}, - - - #{caChannel,jdbcType=INTEGER}, - - - #{projectStatus,jdbcType=INTEGER}, - - - #{platAppId,jdbcType=INTEGER}, - - - #{appCert,jdbcType=LONGVARCHAR}, - - - #{appIcon,jdbcType=LONGVARCHAR}, - - - - - - update firm_info - - - uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - - - client_id = #{record.clientId,jdbcType=VARCHAR}, - - - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - - - firm_name = #{record.firmName,jdbcType=VARCHAR}, - - - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - - - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - - - note = #{record.note,jdbcType=VARCHAR}, - - - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{record.stampType,jdbcType=CHAR}, - - - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - - - project_status = #{record.projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - - - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR}, - - - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR} - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER} - - - - - - update firm_info - - - client_id = #{clientId,jdbcType=VARCHAR}, - - - firm_person = #{firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{appSecret,jdbcType=VARCHAR}, - - - firm_name = #{firmName,jdbcType=VARCHAR}, - - - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{certAlg,jdbcType=VARCHAR}, - - - firm_address = #{firmAddress,jdbcType=VARCHAR}, - - - note = #{note,jdbcType=VARCHAR}, - - - firm_email = #{firmEmail,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{stampType,jdbcType=CHAR}, - - - stamp_name = #{stampName,jdbcType=VARCHAR}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - send_sms = #{sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{caChannel,jdbcType=INTEGER}, - - - project_status = #{projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{platAppId,jdbcType=INTEGER}, - - - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{appIcon,jdbcType=LONGVARCHAR}, - - - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER}, - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - app_icon = #{appIcon,jdbcType=LONGVARCHAR} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - - - - - - - - - - insert into firm_info - (client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, - stamp_name, open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, project_status, plat_app_id, app_cert, - app_icon) - values - - (#{item.clientId,jdbcType=VARCHAR}, #{item.firmPerson,jdbcType=VARCHAR}, #{item.appSecret,jdbcType=VARCHAR}, - #{item.firmName,jdbcType=VARCHAR}, #{item.firmPhone,jdbcType=VARCHAR}, #{item.certAlg,jdbcType=VARCHAR}, - #{item.firmAddress,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}, #{item.firmEmail,jdbcType=VARCHAR}, - #{item.status,jdbcType=INTEGER}, #{item.clientOrgCode,jdbcType=VARCHAR}, #{item.msspAppid,jdbcType=VARCHAR}, - #{item.certAgency,jdbcType=VARCHAR}, #{item.stampType,jdbcType=CHAR}, #{item.stampName,jdbcType=VARCHAR}, - #{item.openId,jdbcType=VARCHAR}, #{item.sendSms,jdbcType=VARCHAR}, #{item.salePersonId,jdbcType=VARCHAR}, - #{item.techPersonId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, - #{item.agentClientId,jdbcType=VARCHAR}, #{item.agentSaleId,jdbcType=VARCHAR}, #{item.caChannel,jdbcType=INTEGER}, - #{item.projectStatus,jdbcType=INTEGER}, #{item.platAppId,jdbcType=INTEGER}, #{item.appCert,jdbcType=LONGVARCHAR}, - #{item.appIcon,jdbcType=LONGVARCHAR}) - - - - insert into firm_info ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.clientId,jdbcType=VARCHAR} - - - #{item.firmPerson,jdbcType=VARCHAR} - - - #{item.appSecret,jdbcType=VARCHAR} - - - #{item.firmName,jdbcType=VARCHAR} - - - #{item.firmPhone,jdbcType=VARCHAR} - - - #{item.certAlg,jdbcType=VARCHAR} - - - #{item.firmAddress,jdbcType=VARCHAR} - - - #{item.note,jdbcType=VARCHAR} - - - #{item.firmEmail,jdbcType=VARCHAR} - - - #{item.status,jdbcType=INTEGER} - - - #{item.clientOrgCode,jdbcType=VARCHAR} - - - #{item.msspAppid,jdbcType=VARCHAR} - - - #{item.certAgency,jdbcType=VARCHAR} - - - #{item.stampType,jdbcType=CHAR} - - - #{item.stampName,jdbcType=VARCHAR} - - - #{item.openId,jdbcType=VARCHAR} - - - #{item.sendSms,jdbcType=VARCHAR} - - - #{item.salePersonId,jdbcType=VARCHAR} - - - #{item.techPersonId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=TIMESTAMP} - - - #{item.updateTime,jdbcType=TIMESTAMP} - - - #{item.agentClientId,jdbcType=VARCHAR} - - - #{item.agentSaleId,jdbcType=VARCHAR} - - - #{item.caChannel,jdbcType=INTEGER} - - - #{item.projectStatus,jdbcType=INTEGER} - - - #{item.platAppId,jdbcType=INTEGER} - - - #{item.appCert,jdbcType=LONGVARCHAR} - - - #{item.appIcon,jdbcType=LONGVARCHAR} - - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - uniqueid, client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, agent_client_id, - agent_sale_id, ca_channel, project_status, plat_app_id - - - app_cert, app_icon - - - - - - delete from firm_info - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - delete from firm_info - - - - - - insert into firm_info (client_id, firm_person, app_secret, - firm_name, firm_phone, cert_alg, - firm_address, note, firm_email, - status, client_org_code, mssp_appid, - cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, - tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, - project_status, plat_app_id, app_cert, - app_icon) - values (#{clientId,jdbcType=VARCHAR}, #{firmPerson,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, - #{firmName,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{certAlg,jdbcType=VARCHAR}, - #{firmAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{firmEmail,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{clientOrgCode,jdbcType=VARCHAR}, #{msspAppid,jdbcType=VARCHAR}, - #{certAgency,jdbcType=VARCHAR}, #{stampType,jdbcType=CHAR}, #{stampName,jdbcType=VARCHAR}, - #{openId,jdbcType=VARCHAR}, #{sendSms,jdbcType=VARCHAR}, #{salePersonId,jdbcType=VARCHAR}, - #{techPersonId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, - #{agentClientId,jdbcType=VARCHAR}, #{agentSaleId,jdbcType=VARCHAR}, #{caChannel,jdbcType=INTEGER}, - #{projectStatus,jdbcType=INTEGER}, #{platAppId,jdbcType=INTEGER}, #{appCert,jdbcType=LONGVARCHAR}, - #{appIcon,jdbcType=LONGVARCHAR}) - - - insert into firm_info - - - client_id, - - - firm_person, - - - app_secret, - - - firm_name, - - - firm_phone, - - - cert_alg, - - - firm_address, - - - note, - - - firm_email, - - - status, - - - client_org_code, - - - mssp_appid, - - - cert_agency, - - - stamp_type, - - - stamp_name, - - - open_id, - - - send_sms, - - - sale_person_id, - - - tech_person_id, - - - create_time, - - - update_time, - - - agent_client_id, - - - agent_sale_id, - - - ca_channel, - - - project_status, - - - plat_app_id, - - - app_cert, - - - app_icon, - - - - - #{clientId,jdbcType=VARCHAR}, - - - #{firmPerson,jdbcType=VARCHAR}, - - - #{appSecret,jdbcType=VARCHAR}, - - - #{firmName,jdbcType=VARCHAR}, - - - #{firmPhone,jdbcType=VARCHAR}, - - - #{certAlg,jdbcType=VARCHAR}, - - - #{firmAddress,jdbcType=VARCHAR}, - - - #{note,jdbcType=VARCHAR}, - - - #{firmEmail,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{clientOrgCode,jdbcType=VARCHAR}, - - - #{msspAppid,jdbcType=VARCHAR}, - - - #{certAgency,jdbcType=VARCHAR}, - - - #{stampType,jdbcType=CHAR}, - - - #{stampName,jdbcType=VARCHAR}, - - - #{openId,jdbcType=VARCHAR}, - - - #{sendSms,jdbcType=VARCHAR}, - - - #{salePersonId,jdbcType=VARCHAR}, - - - #{techPersonId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{agentClientId,jdbcType=VARCHAR}, - - - #{agentSaleId,jdbcType=VARCHAR}, - - - #{caChannel,jdbcType=INTEGER}, - - - #{projectStatus,jdbcType=INTEGER}, - - - #{platAppId,jdbcType=INTEGER}, - - - #{appCert,jdbcType=LONGVARCHAR}, - - - #{appIcon,jdbcType=LONGVARCHAR}, - - - - - - update firm_info - - - uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - - - client_id = #{record.clientId,jdbcType=VARCHAR}, - - - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - - - firm_name = #{record.firmName,jdbcType=VARCHAR}, - - - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - - - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - - - note = #{record.note,jdbcType=VARCHAR}, - - - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{record.stampType,jdbcType=CHAR}, - - - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - - - project_status = #{record.projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - - - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR}, - - - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR} - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER} - - - - - - update firm_info - - - client_id = #{clientId,jdbcType=VARCHAR}, - - - firm_person = #{firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{appSecret,jdbcType=VARCHAR}, - - - firm_name = #{firmName,jdbcType=VARCHAR}, - - - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{certAlg,jdbcType=VARCHAR}, - - - firm_address = #{firmAddress,jdbcType=VARCHAR}, - - - note = #{note,jdbcType=VARCHAR}, - - - firm_email = #{firmEmail,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{stampType,jdbcType=CHAR}, - - - stamp_name = #{stampName,jdbcType=VARCHAR}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - send_sms = #{sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{caChannel,jdbcType=INTEGER}, - - - project_status = #{projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{platAppId,jdbcType=INTEGER}, - - - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{appIcon,jdbcType=LONGVARCHAR}, - - - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER}, - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - app_icon = #{appIcon,jdbcType=LONGVARCHAR} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - - - - - - - - - - insert into firm_info - (client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, - stamp_name, open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, project_status, plat_app_id, app_cert, - app_icon) - values - - (#{item.clientId,jdbcType=VARCHAR}, #{item.firmPerson,jdbcType=VARCHAR}, #{item.appSecret,jdbcType=VARCHAR}, - #{item.firmName,jdbcType=VARCHAR}, #{item.firmPhone,jdbcType=VARCHAR}, #{item.certAlg,jdbcType=VARCHAR}, - #{item.firmAddress,jdbcType=VARCHAR}, #{item.note,jdbcType=VARCHAR}, #{item.firmEmail,jdbcType=VARCHAR}, - #{item.status,jdbcType=INTEGER}, #{item.clientOrgCode,jdbcType=VARCHAR}, #{item.msspAppid,jdbcType=VARCHAR}, - #{item.certAgency,jdbcType=VARCHAR}, #{item.stampType,jdbcType=CHAR}, #{item.stampName,jdbcType=VARCHAR}, - #{item.openId,jdbcType=VARCHAR}, #{item.sendSms,jdbcType=VARCHAR}, #{item.salePersonId,jdbcType=VARCHAR}, - #{item.techPersonId,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, - #{item.agentClientId,jdbcType=VARCHAR}, #{item.agentSaleId,jdbcType=VARCHAR}, #{item.caChannel,jdbcType=INTEGER}, - #{item.projectStatus,jdbcType=INTEGER}, #{item.platAppId,jdbcType=INTEGER}, #{item.appCert,jdbcType=LONGVARCHAR}, - #{item.appIcon,jdbcType=LONGVARCHAR}) - - - - insert into firm_info ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.clientId,jdbcType=VARCHAR} - - - #{item.firmPerson,jdbcType=VARCHAR} - - - #{item.appSecret,jdbcType=VARCHAR} - - - #{item.firmName,jdbcType=VARCHAR} - - - #{item.firmPhone,jdbcType=VARCHAR} - - - #{item.certAlg,jdbcType=VARCHAR} - - - #{item.firmAddress,jdbcType=VARCHAR} - - - #{item.note,jdbcType=VARCHAR} - - - #{item.firmEmail,jdbcType=VARCHAR} - - - #{item.status,jdbcType=INTEGER} - - - #{item.clientOrgCode,jdbcType=VARCHAR} - - - #{item.msspAppid,jdbcType=VARCHAR} - - - #{item.certAgency,jdbcType=VARCHAR} - - - #{item.stampType,jdbcType=CHAR} - - - #{item.stampName,jdbcType=VARCHAR} - - - #{item.openId,jdbcType=VARCHAR} - - - #{item.sendSms,jdbcType=VARCHAR} - - - #{item.salePersonId,jdbcType=VARCHAR} - - - #{item.techPersonId,jdbcType=VARCHAR} - - - #{item.createTime,jdbcType=TIMESTAMP} - - - #{item.updateTime,jdbcType=TIMESTAMP} - - - #{item.agentClientId,jdbcType=VARCHAR} - - - #{item.agentSaleId,jdbcType=VARCHAR} - - - #{item.caChannel,jdbcType=INTEGER} - - - #{item.projectStatus,jdbcType=INTEGER} - - - #{item.platAppId,jdbcType=INTEGER} - - - #{item.appCert,jdbcType=LONGVARCHAR} - - - #{item.appIcon,jdbcType=LONGVARCHAR} - - - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - uniqueid, client_id, firm_person, app_secret, firm_name, firm_phone, cert_alg, firm_address, - note, firm_email, status, client_org_code, mssp_appid, cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, tech_person_id, create_time, update_time, agent_client_id, - agent_sale_id, ca_channel, project_status, plat_app_id - - - app_cert, app_icon - - - - - - delete from firm_info - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - delete from firm_info - - - - - - insert into firm_info (client_id, firm_person, app_secret, - firm_name, firm_phone, cert_alg, - firm_address, note, firm_email, - status, client_org_code, mssp_appid, - cert_agency, stamp_type, stamp_name, - open_id, send_sms, sale_person_id, - tech_person_id, create_time, update_time, - agent_client_id, agent_sale_id, ca_channel, - project_status, plat_app_id, app_cert, - app_icon) - values (#{clientId,jdbcType=VARCHAR}, #{firmPerson,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, - #{firmName,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{certAlg,jdbcType=VARCHAR}, - #{firmAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{firmEmail,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, #{clientOrgCode,jdbcType=VARCHAR}, #{msspAppid,jdbcType=VARCHAR}, - #{certAgency,jdbcType=VARCHAR}, #{stampType,jdbcType=CHAR}, #{stampName,jdbcType=VARCHAR}, - #{openId,jdbcType=VARCHAR}, #{sendSms,jdbcType=VARCHAR}, #{salePersonId,jdbcType=VARCHAR}, - #{techPersonId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, - #{agentClientId,jdbcType=VARCHAR}, #{agentSaleId,jdbcType=VARCHAR}, #{caChannel,jdbcType=INTEGER}, - #{projectStatus,jdbcType=INTEGER}, #{platAppId,jdbcType=INTEGER}, #{appCert,jdbcType=LONGVARCHAR}, - #{appIcon,jdbcType=LONGVARCHAR}) - - - insert into firm_info - - - client_id, - - - firm_person, - - - app_secret, - - - firm_name, - - - firm_phone, - - - cert_alg, - - - firm_address, - - - note, - - - firm_email, - - - status, - - - client_org_code, - - - mssp_appid, - - - cert_agency, - - - stamp_type, - - - stamp_name, - - - open_id, - - - send_sms, - - - sale_person_id, - - - tech_person_id, - - - create_time, - - - update_time, - - - agent_client_id, - - - agent_sale_id, - - - ca_channel, - - - project_status, - - - plat_app_id, - - - app_cert, - - - app_icon, - - - - - #{clientId,jdbcType=VARCHAR}, - - - #{firmPerson,jdbcType=VARCHAR}, - - - #{appSecret,jdbcType=VARCHAR}, - - - #{firmName,jdbcType=VARCHAR}, - - - #{firmPhone,jdbcType=VARCHAR}, - - - #{certAlg,jdbcType=VARCHAR}, - - - #{firmAddress,jdbcType=VARCHAR}, - - - #{note,jdbcType=VARCHAR}, - - - #{firmEmail,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{clientOrgCode,jdbcType=VARCHAR}, - - - #{msspAppid,jdbcType=VARCHAR}, - - - #{certAgency,jdbcType=VARCHAR}, - - - #{stampType,jdbcType=CHAR}, - - - #{stampName,jdbcType=VARCHAR}, - - - #{openId,jdbcType=VARCHAR}, - - - #{sendSms,jdbcType=VARCHAR}, - - - #{salePersonId,jdbcType=VARCHAR}, - - - #{techPersonId,jdbcType=VARCHAR}, - - - #{createTime,jdbcType=TIMESTAMP}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{agentClientId,jdbcType=VARCHAR}, - - - #{agentSaleId,jdbcType=VARCHAR}, - - - #{caChannel,jdbcType=INTEGER}, - - - #{projectStatus,jdbcType=INTEGER}, - - - #{platAppId,jdbcType=INTEGER}, - - - #{appCert,jdbcType=LONGVARCHAR}, - - - #{appIcon,jdbcType=LONGVARCHAR}, - - - - - - update firm_info - - - uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - - - client_id = #{record.clientId,jdbcType=VARCHAR}, - - - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - - - firm_name = #{record.firmName,jdbcType=VARCHAR}, - - - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - - - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - - - note = #{record.note,jdbcType=VARCHAR}, - - - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{record.stampType,jdbcType=CHAR}, - - - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - - - open_id = #{record.openId,jdbcType=VARCHAR}, - - - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - - - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - - - project_status = #{record.projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - - - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR}, - - - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER}, - app_cert = #{record.appCert,jdbcType=LONGVARCHAR}, - app_icon = #{record.appIcon,jdbcType=LONGVARCHAR} - - - - - - update firm_info - set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, - client_id = #{record.clientId,jdbcType=VARCHAR}, - firm_person = #{record.firmPerson,jdbcType=VARCHAR}, - app_secret = #{record.appSecret,jdbcType=VARCHAR}, - firm_name = #{record.firmName,jdbcType=VARCHAR}, - firm_phone = #{record.firmPhone,jdbcType=VARCHAR}, - cert_alg = #{record.certAlg,jdbcType=VARCHAR}, - firm_address = #{record.firmAddress,jdbcType=VARCHAR}, - note = #{record.note,jdbcType=VARCHAR}, - firm_email = #{record.firmEmail,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - client_org_code = #{record.clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{record.msspAppid,jdbcType=VARCHAR}, - cert_agency = #{record.certAgency,jdbcType=VARCHAR}, - stamp_type = #{record.stampType,jdbcType=CHAR}, - stamp_name = #{record.stampName,jdbcType=VARCHAR}, - open_id = #{record.openId,jdbcType=VARCHAR}, - send_sms = #{record.sendSms,jdbcType=VARCHAR}, - sale_person_id = #{record.salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{record.techPersonId,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{record.agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{record.agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{record.caChannel,jdbcType=INTEGER}, - project_status = #{record.projectStatus,jdbcType=INTEGER}, - plat_app_id = #{record.platAppId,jdbcType=INTEGER} - - - - - - update firm_info - - - client_id = #{clientId,jdbcType=VARCHAR}, - - - firm_person = #{firmPerson,jdbcType=VARCHAR}, - - - app_secret = #{appSecret,jdbcType=VARCHAR}, - - - firm_name = #{firmName,jdbcType=VARCHAR}, - - - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - - - cert_alg = #{certAlg,jdbcType=VARCHAR}, - - - firm_address = #{firmAddress,jdbcType=VARCHAR}, - - - note = #{note,jdbcType=VARCHAR}, - - - firm_email = #{firmEmail,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - - - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - - - cert_agency = #{certAgency,jdbcType=VARCHAR}, - - - stamp_type = #{stampType,jdbcType=CHAR}, - - - stamp_name = #{stampName,jdbcType=VARCHAR}, - - - open_id = #{openId,jdbcType=VARCHAR}, - - - send_sms = #{sendSms,jdbcType=VARCHAR}, - - - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - - - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=TIMESTAMP}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - - - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - - - ca_channel = #{caChannel,jdbcType=INTEGER}, - - - project_status = #{projectStatus,jdbcType=INTEGER}, - - - plat_app_id = #{platAppId,jdbcType=INTEGER}, - - - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - - - app_icon = #{appIcon,jdbcType=LONGVARCHAR}, - - - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER}, - app_cert = #{appCert,jdbcType=LONGVARCHAR}, - app_icon = #{appIcon,jdbcType=LONGVARCHAR} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - update firm_info - set client_id = #{clientId,jdbcType=VARCHAR}, - firm_person = #{firmPerson,jdbcType=VARCHAR}, - app_secret = #{appSecret,jdbcType=VARCHAR}, - firm_name = #{firmName,jdbcType=VARCHAR}, - firm_phone = #{firmPhone,jdbcType=VARCHAR}, - cert_alg = #{certAlg,jdbcType=VARCHAR}, - firm_address = #{firmAddress,jdbcType=VARCHAR}, - note = #{note,jdbcType=VARCHAR}, - firm_email = #{firmEmail,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - client_org_code = #{clientOrgCode,jdbcType=VARCHAR}, - mssp_appid = #{msspAppid,jdbcType=VARCHAR}, - cert_agency = #{certAgency,jdbcType=VARCHAR}, - stamp_type = #{stampType,jdbcType=CHAR}, - stamp_name = #{stampName,jdbcType=VARCHAR}, - open_id = #{openId,jdbcType=VARCHAR}, - send_sms = #{sendSms,jdbcType=VARCHAR}, - sale_person_id = #{salePersonId,jdbcType=VARCHAR}, - tech_person_id = #{techPersonId,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - agent_client_id = #{agentClientId,jdbcType=VARCHAR}, - agent_sale_id = #{agentSaleId,jdbcType=VARCHAR}, - ca_channel = #{caChannel,jdbcType=INTEGER}, - project_status = #{projectStatus,jdbcType=INTEGER}, - plat_app_id = #{platAppId,jdbcType=INTEGER} - where uniqueid = #{uniqueid,jdbcType=VARCHAR} - - - - - - - - - - - \ No newline at end of file diff --git a/customer/src/main/resources/mybatis/mapper/FirmGroupMapper.xml b/customer/src/main/resources/mybatis/mapper/FirmGroupMapper.xml new file mode 100644 index 0000000..f84c210 --- /dev/null +++ b/customer/src/main/resources/mybatis/mapper/FirmGroupMapper.xml @@ -0,0 +1,312 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + uniqueId, group_name, group_num, firm_id, firm_role, create_time, is_del + + + + + delete from firm_group + where uniqueId = #{uniqueid,jdbcType=VARCHAR} + + + delete from firm_group + + + + + + insert into firm_group (group_name, group_num, firm_id, + firm_role, create_time, is_del + ) + values (#{groupName,jdbcType=VARCHAR}, #{groupId,jdbcType=VARCHAR}, #{firmId,jdbcType=VARCHAR}, + #{firmRole,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=INTEGER} + ) + + + insert into firm_group + + + group_name, + + + group_num, + + + firm_id, + + + firm_role, + + + create_time, + + + is_del, + + + + + #{groupName,jdbcType=VARCHAR}, + + + #{groupId,jdbcType=VARCHAR}, + + + #{firmId,jdbcType=VARCHAR}, + + + #{firmRole,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{isDel,jdbcType=INTEGER}, + + + + + + update firm_group + + + uniqueId = #{record.uniqueid,jdbcType=VARCHAR}, + + + group_name = #{record.groupName,jdbcType=VARCHAR}, + + + group_num = #{record.groupId,jdbcType=VARCHAR}, + + + firm_id = #{record.firmId,jdbcType=VARCHAR}, + + + firm_role = #{record.firmRole,jdbcType=INTEGER}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + is_del = #{record.isDel,jdbcType=INTEGER}, + + + + + + + + update firm_group + set uniqueId = #{record.uniqueid,jdbcType=VARCHAR}, + group_name = #{record.groupName,jdbcType=VARCHAR}, + group_num = #{record.groupId,jdbcType=VARCHAR}, + firm_id = #{record.firmId,jdbcType=VARCHAR}, + firm_role = #{record.firmRole,jdbcType=INTEGER}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + is_del = #{record.isDel,jdbcType=INTEGER} + + + + + + update firm_group + + + group_name = #{groupName,jdbcType=VARCHAR}, + + + group_num = #{groupId,jdbcType=VARCHAR}, + + + firm_id = #{firmId,jdbcType=VARCHAR}, + + + firm_role = #{firmRole,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + is_del = #{isDel,jdbcType=INTEGER}, + + + where uniqueId = #{uniqueid,jdbcType=VARCHAR} + + + update firm_group + set group_name = #{groupName,jdbcType=VARCHAR}, + group_num = #{groupId,jdbcType=VARCHAR}, + firm_id = #{firmId,jdbcType=VARCHAR}, + firm_role = #{firmRole,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + is_del = #{isDel,jdbcType=INTEGER} + where uniqueId = #{uniqueid,jdbcType=VARCHAR} + + + + + + + + + + + insert into firm_group + (group_name, group_num, firm_id, firm_role, create_time, is_del) + values + + (#{item.groupName,jdbcType=VARCHAR}, #{item.groupId,jdbcType=VARCHAR}, #{item.firmId,jdbcType=VARCHAR}, + #{item.firmRole,jdbcType=INTEGER}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.isDel,jdbcType=INTEGER} + ) + + + + insert into firm_group ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.groupName,jdbcType=VARCHAR} + + + #{item.groupId,jdbcType=VARCHAR} + + + #{item.firmId,jdbcType=VARCHAR} + + + #{item.firmRole,jdbcType=INTEGER} + + + #{item.createTime,jdbcType=TIMESTAMP} + + + #{item.isDel,jdbcType=INTEGER} + + + ) + + + \ No newline at end of file diff --git a/customer/src/main/resources/mybatis/mapper/FirmUsercertChannelMapper.xml b/customer/src/main/resources/mybatis/mapper/FirmUsercertChannelMapper.xml new file mode 100644 index 0000000..2c2ce6a --- /dev/null +++ b/customer/src/main/resources/mybatis/mapper/FirmUsercertChannelMapper.xml @@ -0,0 +1,763 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + uniqueid, clientid, firm_id, channel_type + + + + + delete from firm_usercert_channel + where uniqueid = #{uniqueid,jdbcType=VARCHAR} + + + delete from firm_usercert_channel + + + + + + insert into firm_usercert_channel (clientid, firm_id, channel_type + ) + values (#{clientid,jdbcType=VARCHAR}, #{firmId,jdbcType=VARCHAR}, #{channelType,jdbcType=BIT} + ) + + + insert into firm_usercert_channel + + + clientid, + + + firm_id, + + + channel_type, + + + + + #{clientid,jdbcType=VARCHAR}, + + + #{firmId,jdbcType=VARCHAR}, + + + #{channelType,jdbcType=BIT}, + + + + + + update firm_usercert_channel + + + uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, + + + clientid = #{record.clientid,jdbcType=VARCHAR}, + + + firm_id = #{record.firmId,jdbcType=VARCHAR}, + + + channel_type = #{record.channelType,jdbcType=BIT}, + + + + + + + + update firm_usercert_channel + set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, + clientid = #{record.clientid,jdbcType=VARCHAR}, + firm_id = #{record.firmId,jdbcType=VARCHAR}, + channel_type = #{record.channelType,jdbcType=BIT} + + + + + + update firm_usercert_channel + + + clientid = #{clientid,jdbcType=VARCHAR}, + + + firm_id = #{firmId,jdbcType=VARCHAR}, + + + channel_type = #{channelType,jdbcType=BIT}, + + + where uniqueid = #{uniqueid,jdbcType=VARCHAR} + + + update firm_usercert_channel + set clientid = #{clientid,jdbcType=VARCHAR}, + firm_id = #{firmId,jdbcType=VARCHAR}, + channel_type = #{channelType,jdbcType=BIT} + where uniqueid = #{uniqueid,jdbcType=VARCHAR} + + + + + + + + + + + insert into firm_usercert_channel + (clientid, firm_id, channel_type) + values + + (#{item.clientid,jdbcType=VARCHAR}, #{item.firmId,jdbcType=VARCHAR}, #{item.channelType,jdbcType=BIT} + ) + + + + insert into firm_usercert_channel ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.clientid,jdbcType=VARCHAR} + + + #{item.firmId,jdbcType=VARCHAR} + + + #{item.channelType,jdbcType=BIT} + + + ) + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + uniqueid, clientid, firm_id, channel_type + + + + + delete from firm_usercert_channel + where uniqueid = #{uniqueid,jdbcType=VARCHAR} + + + delete from firm_usercert_channel + + + + + + insert into firm_usercert_channel (clientid, firm_id, channel_type + ) + values (#{clientid,jdbcType=VARCHAR}, #{firmId,jdbcType=VARCHAR}, #{channelType,jdbcType=BIT} + ) + + + insert into firm_usercert_channel + + + clientid, + + + firm_id, + + + channel_type, + + + + + #{clientid,jdbcType=VARCHAR}, + + + #{firmId,jdbcType=VARCHAR}, + + + #{channelType,jdbcType=BIT}, + + + + + + update firm_usercert_channel + + + uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, + + + clientid = #{record.clientid,jdbcType=VARCHAR}, + + + firm_id = #{record.firmId,jdbcType=VARCHAR}, + + + channel_type = #{record.channelType,jdbcType=BIT}, + + + + + + + + update firm_usercert_channel + set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, + clientid = #{record.clientid,jdbcType=VARCHAR}, + firm_id = #{record.firmId,jdbcType=VARCHAR}, + channel_type = #{record.channelType,jdbcType=BIT} + + + + + + update firm_usercert_channel + + + clientid = #{clientid,jdbcType=VARCHAR}, + + + firm_id = #{firmId,jdbcType=VARCHAR}, + + + channel_type = #{channelType,jdbcType=BIT}, + + + where uniqueid = #{uniqueid,jdbcType=VARCHAR} + + + update firm_usercert_channel + set clientid = #{clientid,jdbcType=VARCHAR}, + firm_id = #{firmId,jdbcType=VARCHAR}, + channel_type = #{channelType,jdbcType=BIT} + where uniqueid = #{uniqueid,jdbcType=VARCHAR} + + + + + + + + + + + insert into firm_usercert_channel + (clientid, firm_id, channel_type) + values + + (#{item.clientid,jdbcType=VARCHAR}, #{item.firmId,jdbcType=VARCHAR}, #{item.channelType,jdbcType=BIT} + ) + + + + insert into firm_usercert_channel ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.clientid,jdbcType=VARCHAR} + + + #{item.firmId,jdbcType=VARCHAR} + + + #{item.channelType,jdbcType=BIT} + + + ) + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + uniqueid, clientid, firm_id, channel_type + + + + + delete from firm_usercert_channel + where uniqueid = #{uniqueid,jdbcType=VARCHAR} + + + delete from firm_usercert_channel + + + + + + insert into firm_usercert_channel (clientid, firm_id, channel_type + ) + values (#{clientid,jdbcType=VARCHAR}, #{firmId,jdbcType=VARCHAR}, #{channelType,jdbcType=BIT} + ) + + + insert into firm_usercert_channel + + + clientid, + + + firm_id, + + + channel_type, + + + + + #{clientid,jdbcType=VARCHAR}, + + + #{firmId,jdbcType=VARCHAR}, + + + #{channelType,jdbcType=BIT}, + + + + + + update firm_usercert_channel + + + uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, + + + clientid = #{record.clientid,jdbcType=VARCHAR}, + + + firm_id = #{record.firmId,jdbcType=VARCHAR}, + + + channel_type = #{record.channelType,jdbcType=BIT}, + + + + + + + + update firm_usercert_channel + set uniqueid = #{record.uniqueid,jdbcType=VARCHAR}, + clientid = #{record.clientid,jdbcType=VARCHAR}, + firm_id = #{record.firmId,jdbcType=VARCHAR}, + channel_type = #{record.channelType,jdbcType=BIT} + + + + + + update firm_usercert_channel + + + clientid = #{clientid,jdbcType=VARCHAR}, + + + firm_id = #{firmId,jdbcType=VARCHAR}, + + + channel_type = #{channelType,jdbcType=BIT}, + + + where uniqueid = #{uniqueid,jdbcType=VARCHAR} + + + update firm_usercert_channel + set clientid = #{clientid,jdbcType=VARCHAR}, + firm_id = #{firmId,jdbcType=VARCHAR}, + channel_type = #{channelType,jdbcType=BIT} + where uniqueid = #{uniqueid,jdbcType=VARCHAR} + + + + + + + + + + + insert into firm_usercert_channel + (clientid, firm_id, channel_type) + values + + (#{item.clientid,jdbcType=VARCHAR}, #{item.firmId,jdbcType=VARCHAR}, #{item.channelType,jdbcType=BIT} + ) + + + + insert into firm_usercert_channel ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.clientid,jdbcType=VARCHAR} + + + #{item.firmId,jdbcType=VARCHAR} + + + #{item.channelType,jdbcType=BIT} + + + ) + + + \ No newline at end of file diff --git a/customer/src/main/resources/mybatis/mapper/custom/FirmCustomMapper.xml b/customer/src/main/resources/mybatis/mapper/custom/FirmCustomMapper.xml new file mode 100644 index 0000000..9721215 --- /dev/null +++ b/customer/src/main/resources/mybatis/mapper/custom/FirmCustomMapper.xml @@ -0,0 +1,19 @@ + + + + + + + + + \ No newline at end of file diff --git a/customer/src/main/resources/spring/dubbo-provider.xml b/customer/src/main/resources/spring/dubbo-provider.xml index f2f8339..00f0b66 100644 --- a/customer/src/main/resources/spring/dubbo-provider.xml +++ b/customer/src/main/resources/spring/dubbo-provider.xml @@ -15,5 +15,5 @@ - +