From 21f45258cfcdc79127f85ad6e45736cff5acd345 Mon Sep 17 00:00:00 2001
From: liyj <15602261488@163.com>
Date: Mon, 21 Oct 2024 20:58:05 +0800
Subject: [PATCH] 1、数据割接程序,白云区矛盾纠纷多元化解平台 2、纠纷态势报错修改

---
 dyh-service/dyh-sync-bydyh/src/main/java/cn/huge/module/ctuser/dao/mapper/xml/CtUsepostMapper.xml |   86 +++++++++++++++++++++---------------------
 1 files changed, 43 insertions(+), 43 deletions(-)

diff --git a/dyh-service/dyh-cust/src/main/java/cn/huge/module/region/dao/mapper/xml/SyRegionGridMapper.xml b/dyh-service/dyh-sync-bydyh/src/main/java/cn/huge/module/ctuser/dao/mapper/xml/CtUsepostMapper.xml
similarity index 61%
copy from dyh-service/dyh-cust/src/main/java/cn/huge/module/region/dao/mapper/xml/SyRegionGridMapper.xml
copy to dyh-service/dyh-sync-bydyh/src/main/java/cn/huge/module/ctuser/dao/mapper/xml/CtUsepostMapper.xml
index d6a6c09..74f5628 100644
--- a/dyh-service/dyh-cust/src/main/java/cn/huge/module/region/dao/mapper/xml/SyRegionGridMapper.xml
+++ b/dyh-service/dyh-sync-bydyh/src/main/java/cn/huge/module/ctuser/dao/mapper/xml/CtUsepostMapper.xml
@@ -1,51 +1,51 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <!-- 
- * @title: 网格化平台地域字典映射表
+ * @title: 客户用户配岗表
  * @description: 自定义sql,请自行实现业务逻辑
  * @company: hugeinfo
  * @author: liyj
- * @time:2024-09-25 18:03:50
+ * @time:2024-10-17 17:31:47
  * @version 1.0.0
 -->
-<mapper namespace="cn.huge.module.region.dao.mapper.SyRegionGridMapper">
+<mapper namespace="cn.huge.module.ctuser.dao.mapper.CtUsepostMapper">
     <!-- 结果集 -->
-    <resultMap id="dataResult" type="cn.huge.module.region.domain.po.SyRegionGrid">
+    <resultMap id="dataResult" type="cn.huge.module.ctuser.domain.po.CtUsepost">
             <result property="id" column="id"/>
-            <result property="thirdSysId" column="third_sys_id"/>
-            <result property="thirdSysName" column="third_sys_name"/>
-            <result property="thirdCode" column="third_code"/>
-            <result property="thirdName" column="third_name"/>
-            <result property="thirdParentId" column="third_parent_id"/>
-            <result property="regionId" column="region_id"/>
-            <result property="level" column="level"/>
+            <result property="userId" column="user_id"/>
+            <result property="postId" column="post_id"/>
+            <result property="postName" column="post_name"/>
+            <result property="unitId" column="unit_id"/>
+            <result property="deptId" column="dept_id"/>
+            <result property="matchType" column="match_type"/>
+            <result property="custId" column="cust_id"/>
             <result property="createTime" column="create_time"/>
             <result property="updateTime" column="update_time"/>
     </resultMap>
     <!-- 表 -->
-    <sql id='table-name'>dyh_sy_region_grid</sql>
+    <sql id='table-name'>dyh_ct_usepost</sql>
     <!-- 字段 -->
     <sql id="column-part">
         id,
-        third_sys_id,
-        third_sys_name,
-        third_code,
-        third_name,
-        third_parent_id,
-        region_id,
-        level,
+        user_id,
+        post_id,
+        post_name,
+        unit_id,
+        dept_id,
+        match_type,
+        cust_id,
         create_time,
         update_time
     </sql>
     <!-- 更新实体字段 -->
     <sql id="set-part">
-            <if test="entity.thirdSysId != null">third_sys_id = #{entity.thirdSysId},</if>
-            <if test="entity.thirdSysName != null">third_sys_name = #{entity.thirdSysName},</if>
-            <if test="entity.thirdCode != null">third_code = #{entity.thirdCode},</if>
-            <if test="entity.thirdName != null">third_name = #{entity.thirdName},</if>
-            <if test="entity.thirdParentId != null">third_parent_id = #{entity.thirdParentId},</if>
-            <if test="entity.regionId != null">region_id = #{entity.regionId},</if>
-            <if test="entity.level != null">level = #{entity.level},</if>
+            <if test="entity.userId != null">user_id = #{entity.userId},</if>
+            <if test="entity.postId != null">post_id = #{entity.postId},</if>
+            <if test="entity.postName != null">post_name = #{entity.postName},</if>
+            <if test="entity.unitId != null">unit_id = #{entity.unitId},</if>
+            <if test="entity.deptId != null">dept_id = #{entity.deptId},</if>
+            <if test="entity.matchType != null">match_type = #{entity.matchType},</if>
+            <if test="entity.custId != null">cust_id = #{entity.custId},</if>
             <if test="entity.createTime != null">create_time = #{entity.createTime},</if>
             <if test="entity.updateTime != null">update_time = #{entity.updateTime}</if>
     </sql>
@@ -56,26 +56,26 @@
                 <if test="terms.id != null and terms.id !=''">
                     and id = #{terms.id}
                 </if>
-                <if test="terms.thirdSysId != null and terms.thirdSysId !=''">
-                    and third_sys_id = #{terms.thirdSysId}
+                <if test="terms.userId != null and terms.userId !=''">
+                    and user_id = #{terms.userId}
                 </if>
-                <if test="terms.thirdSysName != null and terms.thirdSysName !=''">
-                    and third_sys_name = #{terms.thirdSysName}
+                <if test="terms.postId != null and terms.postId !=''">
+                    and post_id = #{terms.postId}
                 </if>
-                <if test="terms.thirdCode != null and terms.thirdCode !=''">
-                    and third_code = #{terms.thirdCode}
+                <if test="terms.postName != null and terms.postName !=''">
+                    and post_name = #{terms.postName}
                 </if>
-                <if test="terms.thirdName != null and terms.thirdName !=''">
-                    and third_name = #{terms.thirdName}
+                <if test="terms.unitId != null and terms.unitId !=''">
+                    and unit_id = #{terms.unitId}
                 </if>
-                <if test="terms.thirdParentId != null and terms.thirdParentId !=''">
-                    and third_parent_id = #{terms.thirdParentId}
+                <if test="terms.deptId != null and terms.deptId !=''">
+                    and dept_id = #{terms.deptId}
                 </if>
-                <if test="terms.regionId != null and terms.regionId !=''">
-                    and region_id = #{terms.regionId}
+                <if test="terms.matchType != null and terms.matchType !=''">
+                    and match_type = #{terms.matchType}
                 </if>
-                <if test="terms.level != null and terms.level !=''">
-                    and level = #{terms.level}
+                <if test="terms.custId != null and terms.custId !=''">
+                    and cust_id = #{terms.custId}
                 </if>
                 <if test="terms.createTime != null and terms.createTime !=''">
                     and DATE_FORMAT(create_time,'%Y-%m-%d') = #{terms.createTime}
@@ -95,7 +95,7 @@
         </if>
     </sql>
     <!-- 更新对象 -->
-    <update id="updateSyRegionGrid">
+    <update id="updateCtUsepost">
         update
         <include refid="table-name"/>
         <set>
@@ -106,7 +106,7 @@
         </where>
     </update>
     <!-- 条件更新对象 -->
-    <update id="updateSyRegionGridTerms">
+    <update id="updateCtUsepostTerms">
         update
         <include refid="table-name"/>
         <set>
@@ -115,7 +115,7 @@
         <include refid="where-part"/>
     </update>
     <!--  根据编号物理删除  -->
-    <delete id="deleteSyRegionGrid">
+    <delete id="deleteCtUsepost">
         delete from
         <include refid="table-name" />
         where id = #{id}

--
Gitblit v1.8.0