59 changed files with 2683 additions and 98 deletions
@ -0,0 +1,168 @@ |
|||
/* |
|||
初始化customer_staff_agency,customer_staff_department,customer_staff_grid |
|||
*/ |
|||
|
|||
|
|||
INSERT INTO epmet_gov_org.customer_staff_grid ( ID, CUSTOMER_ID, USER_ID, GRID_ID, DEL_FLAG, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME ) SELECT |
|||
t1.id, |
|||
'b09527201c4409e19d1dbc5e3c3429a1', |
|||
t1.id AS USER_ID, |
|||
t1.dept_id AS GRID_ID, |
|||
t1.del_flag, |
|||
t1.creator AS CREATED_BY, |
|||
t1.create_date AS CREATED_TIME, |
|||
t1.updater AS UPDATED_BY, |
|||
t1.update_date AS UPDATED_TIME |
|||
FROM |
|||
esua_epdc_admin.sys_user t1 |
|||
LEFT JOIN esua_epdc_admin.sys_dept t2 ON t1.dept_id = t2.id |
|||
WHERE |
|||
t2.type_key = 'grid_party'; |
|||
|
|||
|
|||
INSERT INTO epmet_gov_org.customer_staff_department ( |
|||
ID, |
|||
CUSTOMER_ID, |
|||
USER_ID, |
|||
DEPARTMENT_ID, |
|||
DEL_FLAG, |
|||
CREATED_BY, |
|||
CREATED_TIME, |
|||
UPDATED_BY, |
|||
UPDATED_TIME |
|||
) SELECT |
|||
t1.id , |
|||
'b09527201c4409e19d1dbc5e3c3429a1', |
|||
t1.id as USER_ID, |
|||
t1.dept_id as DEPARTMENT_ID, |
|||
t1.del_flag, |
|||
t1.creator as CREATED_BY, |
|||
t1.create_date as CREATED_TIME, |
|||
t1.updater as UPDATED_BY, |
|||
t1.update_date as UPDATED_TIME |
|||
from esua_epdc_admin.sys_user t1 |
|||
left join esua_epdc_admin.sys_dept t2 on t1.dept_id = t2.id |
|||
WHERE |
|||
t2.type_key = 'district_dept' |
|||
OR t2.type_key = 'street_dept'; |
|||
|
|||
|
|||
|
|||
INSERT INTO epmet_gov_org.customer_staff_agency ( |
|||
ID, |
|||
CUSTOMER_ID, |
|||
USER_ID, |
|||
AGENCY_ID, |
|||
DEL_FLAG, |
|||
CREATED_BY, |
|||
CREATED_TIME, |
|||
UPDATED_BY, |
|||
UPDATED_TIME |
|||
) SELECT |
|||
t1.id , |
|||
'b09527201c4409e19d1dbc5e3c3429a1', |
|||
t1.id as USER_ID, |
|||
t1.dept_id as AGENCY_ID, |
|||
t1.del_flag, |
|||
t1.creator as CREATED_BY, |
|||
t1.create_date as CREATED_TIME, |
|||
t1.updater as UPDATED_BY, |
|||
t1.update_date as UPDATED_TIME |
|||
from esua_epdc_admin.sys_user t1 |
|||
left join esua_epdc_admin.sys_dept t2 on t1.dept_id = t2.id |
|||
WHERE |
|||
t2.type_key = 'district_party' |
|||
OR t2.type_key = 'street_party' |
|||
OR t2.type_key = 'community_party'; |
|||
|
|||
INSERT INTO epmet_user.customer_staff ( ID, CUSTOMER_ID,USER_ID,REAL_NAME,GENDER,EMAIL,MOBILE,HEAD_PHOTO,PASSWORD,DEL_FLAG,REVISION,CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME) SELECT |
|||
t1.id as ID, |
|||
'b09527201c4409e19d1dbc5e3c3429a1', |
|||
t1.id AS USER_ID, |
|||
t1.real_name as REAL_NAME, |
|||
t1.gender as GENDER, |
|||
t1.email as EMAIL, |
|||
t1.mobile as MOBILE, |
|||
t1.head_url as HEAD_PHOTO, |
|||
t1.password as PASSWORD, |
|||
t1.del_flag as DEL_FLAG, |
|||
'0' as REVISION, |
|||
t1.creator AS CREATED_BY, |
|||
t1.create_date AS CREATED_TIME, |
|||
t1.updater AS UPDATED_BY, |
|||
t1.update_date AS UPDATED_TIME |
|||
FROM |
|||
esua_epdc_admin.sys_user t1 |
|||
where t1.user_tag_key ='offers'; |
|||
|
|||
INSERT INTO epmet_user.USER (ID, CUSTOMER_ID, DEL_FLAG, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME ) SELECT |
|||
t1.id AS ID, |
|||
'b09527201c4409e19d1dbc5e3c3429a1' AS CUSTOMER_ID, |
|||
t1.del_flag AS DEL_FLAG, |
|||
'0' AS REVISION, |
|||
t1.creator AS CREATED_BY, |
|||
t1.create_date AS CREATED_TIME, |
|||
t1.updater AS UPDATED_BY, |
|||
t1.update_date AS UPDATED_TIME |
|||
FROM |
|||
esua_epdc_admin.sys_user t1 |
|||
where t1.user_tag_key ='offers'; |
|||
|
|||
|
|||
INSERT INTO epmet_gov_org.staff_org_relation ( ID, CUSTOMER_ID, PIDS, STAFF_ID, ORG_ID, ORG_TYPE, DEL_FLAG, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME ) SELECT |
|||
t1.id AS ID, |
|||
'b09527201c4409e19d1dbc5e3c3429a1' AS CUSTOMER_ID, |
|||
CASE |
|||
t2.type_key |
|||
WHEN 'district_party' THEN |
|||
t2.pids |
|||
WHEN 'street_party' THEN |
|||
t2.pids |
|||
WHEN 'community_party' THEN |
|||
concat( |
|||
SUBSTRING_INDEX( t2.pids, ',', 1 ), |
|||
':', |
|||
SUBSTRING_INDEX( t2.pids, ',',- 1 )) |
|||
WHEN 'district_dept' THEN |
|||
t2.pids |
|||
WHEN 'street_dept' THEN |
|||
concat( |
|||
SUBSTRING_INDEX( t2.pids, ',', 1 ), |
|||
':', |
|||
SUBSTRING_INDEX( t2.pids, ',',- 1 )) |
|||
WHEN 'grid_party' THEN |
|||
concat( |
|||
SUBSTRING_INDEX( t2.pids, ',', 1 ), |
|||
':', |
|||
SUBSTRING_INDEX( SUBSTRING_INDEX( t2.pids, ',', 2 ), ',',- 1 ), |
|||
':', |
|||
SUBSTRING_INDEX( t2.pids, ',',- 1 )) |
|||
END AS PIDS, |
|||
t1.id AS STAFF_ID, |
|||
t2.id AS ORG_ID, |
|||
CASE |
|||
t2.type_key |
|||
WHEN 'district_party' THEN |
|||
'agency' |
|||
WHEN 'street_party' THEN |
|||
'agency' |
|||
WHEN 'community_party' THEN |
|||
'agency' |
|||
WHEN 'district_dept' THEN |
|||
'dept' |
|||
WHEN 'street_dept' THEN |
|||
'dept' |
|||
WHEN 'grid_party' THEN |
|||
'grid' |
|||
END AS ORG_TYPE, |
|||
t1.del_flag AS DEL_FLAG, |
|||
'0' AS REVISION, |
|||
t1.creator AS CREATED_BY, |
|||
t1.create_date AS CREATED_TIME, |
|||
t1.updater AS UPDATED_BY, |
|||
t1.update_date AS UPDATED_TIME |
|||
FROM |
|||
esua_epdc_admin.sys_user t1 |
|||
LEFT JOIN esua_epdc_admin.sys_dept t2 ON t1.dept_id = t2.id |
|||
WHERE |
|||
t1.user_tag_key = 'offers'; |
|||
@ -0,0 +1,137 @@ |
|||
/* |
|||
初始化customer_agency,customer_department,customer_grid |
|||
*/ |
|||
|
|||
|
|||
INSERT INTO epmet_gov_org.customer_grid ( ID, CUSTOMER_ID, GRID_NAME, SYNC_FLAG, DEL_FLAG, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, MANAGE_DISTRICT, TOTAL_USER, PID, PIDS ) SELECT |
|||
t1.id, |
|||
'b09527201c4409e19d1dbc5e3c3429a1', |
|||
t1.NAME AS GRID_NAME, |
|||
'1', |
|||
t1.del_flag, |
|||
t1.creator AS CREATED_BY, |
|||
t1.create_date AS CREATED_TIME, |
|||
t1.updater AS UPDATED_BY, |
|||
t1.update_date AS UPDATED_TIME, |
|||
t1.NAME AS MANAGE_DISTRICT, |
|||
t2.total AS TOTAL_USER, |
|||
t1.pid, |
|||
concat( |
|||
SUBSTRING_INDEX( t1.pids, ',', 1 ), |
|||
':', |
|||
SUBSTRING_INDEX( SUBSTRING_INDEX( t1.pids, ',', 2 ), ',',- 1 ), |
|||
':', |
|||
SUBSTRING_INDEX( t1.pids, ',',- 1 )) pids |
|||
FROM |
|||
esua_epdc_admin.sys_dept t1 |
|||
LEFT JOIN ( SELECT count( id ) total, dept_id FROM esua_epdc_admin.sys_user GROUP BY dept_id ) t2 ON t1.id = t2.dept_id |
|||
WHERE |
|||
t1.type_key = 'grid_party' ; |
|||
|
|||
INSERT INTO epmet_gov_org.customer_agency ( |
|||
ID, |
|||
CUSTOMER_ID, |
|||
PID, |
|||
PIDS, |
|||
ALL_PARENT_NAME, |
|||
ORGANIZATION_NAME, |
|||
LEVEL, |
|||
SYNC_FLAG, |
|||
DEL_FLAG, |
|||
CREATED_BY, |
|||
CREATED_TIME, |
|||
UPDATED_BY, |
|||
UPDATED_TIME, |
|||
TOTAL_USER |
|||
) SELECT |
|||
t1.id, |
|||
'b09527201c4409e19d1dbc5e3c3429a1', |
|||
t1.pid, |
|||
CASE |
|||
t1.type_key |
|||
WHEN 'street_party' THEN |
|||
t1.pids |
|||
WHEN 'community_party' THEN |
|||
concat( |
|||
SUBSTRING_INDEX( t1.pids, ',', 1 ), |
|||
':', |
|||
SUBSTRING_INDEX( t1.pids, ',',- 1 )) |
|||
END AS pids, |
|||
CASE |
|||
t1.type_key |
|||
WHEN 'street_party' THEN |
|||
'市北区委' |
|||
WHEN 'community_party' THEN |
|||
t5.ALL_PARENT_NAME |
|||
END AS ALL_PARENT_NAME, |
|||
t1.NAME AS ORGANIZATION_NAME, |
|||
CASE |
|||
t1.type_key |
|||
WHEN 'district_party' THEN |
|||
'district' |
|||
WHEN 'street_party' THEN |
|||
'street' |
|||
WHEN 'community_party' THEN |
|||
'community' |
|||
END AS LEVEL, |
|||
'1', |
|||
t1.del_flag, |
|||
t1.creator AS CREATED_BY, |
|||
t1.create_date AS CREATED_TIME, |
|||
t1.updater AS UPDATED_BY, |
|||
t1.update_date AS UPDATED_TIME, |
|||
t2.total AS TOTAL_USER |
|||
FROM |
|||
esua_epdc_admin.sys_dept t1 |
|||
LEFT JOIN ( SELECT count( id ) total, dept_id FROM esua_epdc_admin.sys_user GROUP BY dept_id ) t2 ON t1.id = t2.dept_id |
|||
LEFT JOIN ( |
|||
SELECT |
|||
concat( '市北区委-', t4.NAME ) AS ALL_PARENT_NAME, |
|||
t3.id |
|||
FROM |
|||
esua_epdc_admin.sys_dept t3 |
|||
LEFT JOIN esua_epdc_admin.sys_dept t4 ON t3.pid = t4.id |
|||
WHERE |
|||
t3.type_key = 'community_party' |
|||
) t5 ON t1.id = t5.id |
|||
WHERE |
|||
t1.type_key = 'district_party' |
|||
OR t1.type_key = 'street_party' |
|||
OR t1.type_key = 'community_party' ; |
|||
|
|||
INSERT INTO epmet_gov_org.customer_department ( |
|||
ID, |
|||
CUSTOMER_ID, |
|||
AGENCY_ID, |
|||
DEPARTMENT_NAME, |
|||
TOTAL_USER, |
|||
DEL_FLAG, |
|||
CREATED_BY, |
|||
CREATED_TIME, |
|||
UPDATED_BY, |
|||
UPDATED_TIME |
|||
) SELECT |
|||
t1.id, |
|||
'b09527201c4409e19d1dbc5e3c3429a1', |
|||
t1.pid as AGENCY_ID, |
|||
t1.name as DEPARTMENT_NAME, |
|||
t2.total AS TOTAL_USER, |
|||
t1.del_flag, |
|||
t1.creator AS CREATED_BY, |
|||
t1.create_date AS CREATED_TIME, |
|||
t1.updater AS UPDATED_BY, |
|||
t1.update_date AS UPDATED_TIME |
|||
FROM |
|||
esua_epdc_admin.sys_dept t1 |
|||
LEFT JOIN ( SELECT count( id ) total, dept_id FROM esua_epdc_admin.sys_user GROUP BY dept_id ) t2 ON t1.id = t2.dept_id |
|||
WHERE |
|||
t1.type_key = 'district_dept' or t1.type_key = 'street_dept' ; |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
@ -0,0 +1,155 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 机关单位信息表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-15 |
|||
*/ |
|||
@Data |
|||
public class CustomerAgencyDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 上级组织机构ID |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 所有上级组织机构ID(以英文:隔开) |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 所有上级名称,以-连接 |
|||
*/ |
|||
private String allParentName; |
|||
|
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
private String organizationName; |
|||
|
|||
/** |
|||
* 机关级别(社区级:community, |
|||
乡(镇、街道)级:street, |
|||
区县级: district, |
|||
市级: city |
|||
省级:province) 机关级别(社区级:community,乡(镇、街道)级:street,区县级: district,市级: city省级:province) |
|||
*/ |
|||
private String level; |
|||
|
|||
/** |
|||
* 当前组织所属的行政地区编码 |
|||
*/ |
|||
private String areaCode; |
|||
|
|||
/** |
|||
* 编码 |
|||
*/ |
|||
private String code; |
|||
|
|||
/** |
|||
* 当前组织是否同步到统计库和指标库,1同步。0不同步 |
|||
*/ |
|||
private String syncFlag; |
|||
|
|||
/** |
|||
* 删除标识 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
/** |
|||
* 总人数 |
|||
*/ |
|||
private Integer totalUser; |
|||
|
|||
/** |
|||
* 区域编码字典中的【省份】名称 |
|||
*/ |
|||
private String province; |
|||
|
|||
/** |
|||
* 区域编码字典中的【城市】名称 |
|||
*/ |
|||
private String city; |
|||
|
|||
/** |
|||
* 区域编码字典中的【区县】名称 |
|||
*/ |
|||
private String district; |
|||
|
|||
/** |
|||
* 区域编码字典中的【街道】名称0409 |
|||
*/ |
|||
private String street; |
|||
|
|||
/** |
|||
* 区域编码字典中的【社区】名称0409 |
|||
*/ |
|||
private String community; |
|||
|
|||
/** |
|||
* 当前组织的上级行政地区编码add0204;举例平阴县370124对应的是济南市3701 |
|||
*/ |
|||
private String parentAreaCode; |
|||
|
|||
} |
|||
@ -0,0 +1,101 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 客户部门表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-16 |
|||
*/ |
|||
@Data |
|||
public class CustomerDepartmentDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID 唯一标识 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 所属机关ID(customer_agency.id) |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 部门名称 |
|||
*/ |
|||
private String departmentName; |
|||
|
|||
/** |
|||
* 部门职责 |
|||
*/ |
|||
private String departmentDuty; |
|||
|
|||
/** |
|||
* 总人数 |
|||
*/ |
|||
private Integer totalUser; |
|||
|
|||
/** |
|||
* 部门所属的行政地区编码:实际就是所属组织的地区编码 |
|||
*/ |
|||
private String areaCode; |
|||
|
|||
/** |
|||
* 删除标识:0.未删除 1.已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
|||
@ -0,0 +1,126 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 客户网格表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-15 |
|||
*/ |
|||
@Data |
|||
public class CustomerGridDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID 唯一标识 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 网格名称 |
|||
*/ |
|||
private String gridName; |
|||
|
|||
/** |
|||
* 中心位置经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 中心位置纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 所属地区码(所属组织地区码) |
|||
*/ |
|||
private String areaCode; |
|||
|
|||
/** |
|||
* 编码 |
|||
*/ |
|||
private String code; |
|||
|
|||
/** |
|||
* 当前网格是否同步到统计库和指标库,1同步。0不同步 |
|||
*/ |
|||
private String syncFlag; |
|||
|
|||
/** |
|||
* 删除标识:0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
/** |
|||
* 管辖区域 |
|||
*/ |
|||
private String manageDistrict; |
|||
|
|||
/** |
|||
* 当前网格总人数 |
|||
*/ |
|||
private Integer totalUser; |
|||
|
|||
/** |
|||
* 所属组织机构ID(customer_agency.id) |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 所有上级组织ID |
|||
*/ |
|||
private String pids; |
|||
|
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.CustomerAgencyEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 机关单位信息表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-15 |
|||
*/ |
|||
@Mapper |
|||
public interface CustomerAgencyDao extends BaseDao<CustomerAgencyEntity> { |
|||
|
|||
void deleteAgencyById(String id); |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.CustomerDepartmentEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 客户部门表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-16 |
|||
*/ |
|||
@Mapper |
|||
public interface CustomerDepartmentDao extends BaseDao<CustomerDepartmentEntity> { |
|||
|
|||
void deleteDepartmentById(String id); |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.CustomerGridEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 客户网格表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-15 |
|||
*/ |
|||
@Mapper |
|||
public interface CustomerGridDao extends BaseDao<CustomerGridEntity> { |
|||
|
|||
void deleteGridById(String id); |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.CustomerStaffAgencyEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 人员-机关单位关系表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-21 |
|||
*/ |
|||
@Mapper |
|||
public interface CustomerStaffAgencyDao extends BaseDao<CustomerStaffAgencyEntity> { |
|||
|
|||
void deleteStaffAgencyById(String id); |
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.CustomerStaffEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 政府工作人员表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2022-01-10 |
|||
*/ |
|||
@Mapper |
|||
public interface CustomerStaffDao extends BaseDao<CustomerStaffEntity> { |
|||
|
|||
void deleteBatchUserIds(@Param("idLists") List<String> idLists); |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.CustomerStaffDepartmentEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 部门人员关系表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-21 |
|||
*/ |
|||
@Mapper |
|||
public interface CustomerStaffDepartmentDao extends BaseDao<CustomerStaffDepartmentEntity> { |
|||
|
|||
void deleteStaffDepartmentById(String toString); |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.CustomerStaffGridEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 网格人员关系表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-21 |
|||
*/ |
|||
@Mapper |
|||
public interface CustomerStaffGridDao extends BaseDao<CustomerStaffGridEntity> { |
|||
|
|||
void deleteStaffGridById(String id); |
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.StaffOrgRelationEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 工作人员注册组织关系表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2022-01-19 |
|||
*/ |
|||
@Mapper |
|||
public interface StaffOrgRelationDao extends BaseDao<StaffOrgRelationEntity> { |
|||
|
|||
void deleteBatchStaffIds(@Param("idLists")List<String> idLists); |
|||
} |
|||
@ -0,0 +1,33 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.dao; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; |
|||
import com.elink.esua.epdc.entity.UserEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 用户表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2022-01-10 |
|||
*/ |
|||
@Mapper |
|||
public interface UserDao extends BaseDao<UserEntity> { |
|||
|
|||
} |
|||
@ -0,0 +1,125 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 机关单位信息表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-15 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epmet_gov_org.customer_agency") |
|||
public class CustomerAgencyEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 上级组织机构ID |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 所有上级组织机构ID(以英文:隔开) |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 所有上级名称,以-连接 |
|||
*/ |
|||
private String allParentName; |
|||
|
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
private String organizationName; |
|||
|
|||
/** |
|||
* 机关级别(社区级:community, |
|||
乡(镇、街道)级:street, |
|||
区县级: district, |
|||
市级: city |
|||
省级:province) 机关级别(社区级:community,乡(镇、街道)级:street,区县级: district,市级: city省级:province) |
|||
*/ |
|||
private String level; |
|||
|
|||
/** |
|||
* 当前组织所属的行政地区编码 |
|||
*/ |
|||
private String areaCode; |
|||
|
|||
/** |
|||
* 编码 |
|||
*/ |
|||
private String code; |
|||
|
|||
/** |
|||
* 当前组织是否同步到统计库和指标库,1同步。0不同步 |
|||
*/ |
|||
private String syncFlag; |
|||
|
|||
/** |
|||
* 总人数 |
|||
*/ |
|||
private Integer totalUser; |
|||
|
|||
/** |
|||
* 区域编码字典中的【省份】名称 |
|||
*/ |
|||
private String province; |
|||
|
|||
/** |
|||
* 区域编码字典中的【城市】名称 |
|||
*/ |
|||
private String city; |
|||
|
|||
/** |
|||
* 区域编码字典中的【区县】名称 |
|||
*/ |
|||
private String district; |
|||
|
|||
/** |
|||
* 区域编码字典中的【街道】名称0409 |
|||
*/ |
|||
private String street; |
|||
|
|||
/** |
|||
* 区域编码字典中的【社区】名称0409 |
|||
*/ |
|||
private String community; |
|||
|
|||
/** |
|||
* 当前组织的上级行政地区编码add0204;举例平阴县370124对应的是济南市3701 |
|||
*/ |
|||
private String parentAreaCode; |
|||
|
|||
} |
|||
@ -0,0 +1,71 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 客户部门表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-16 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epmet_gov_org.customer_department") |
|||
public class CustomerDepartmentEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 所属机关ID(customer_agency.id) |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 部门名称 |
|||
*/ |
|||
private String departmentName; |
|||
|
|||
/** |
|||
* 部门职责 |
|||
*/ |
|||
private String departmentDuty; |
|||
|
|||
/** |
|||
* 总人数 |
|||
*/ |
|||
private Integer totalUser; |
|||
|
|||
/** |
|||
* 部门所属的行政地区编码:实际就是所属组织的地区编码 |
|||
*/ |
|||
private String areaCode; |
|||
|
|||
} |
|||
@ -0,0 +1,96 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 客户网格表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-15 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epmet_gov_org.customer_grid") |
|||
public class CustomerGridEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 网格名称 |
|||
*/ |
|||
private String gridName; |
|||
|
|||
/** |
|||
* 中心位置经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 中心位置纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 所属地区码(所属组织地区码) |
|||
*/ |
|||
private String areaCode; |
|||
|
|||
/** |
|||
* 编码 |
|||
*/ |
|||
private String code; |
|||
|
|||
/** |
|||
* 当前网格是否同步到统计库和指标库,1同步。0不同步 |
|||
*/ |
|||
private String syncFlag; |
|||
|
|||
/** |
|||
* 管辖区域 |
|||
*/ |
|||
private String manageDistrict; |
|||
|
|||
/** |
|||
* 当前网格总人数 |
|||
*/ |
|||
private Integer totalUser; |
|||
|
|||
/** |
|||
* 所属组织机构ID(customer_agency.id) |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 所有上级组织ID |
|||
*/ |
|||
private String pids; |
|||
|
|||
} |
|||
@ -0,0 +1,56 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 人员-机关单位关系表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-21 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epmet_gov_org.customer_staff_agency") |
|||
public class CustomerStaffAgencyEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 组织机构ID customer_agency.id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
} |
|||
@ -0,0 +1,56 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 部门人员关系表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-21 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epmet_gov_org.customer_staff_department") |
|||
public class CustomerStaffDepartmentEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 部门ID customer_department.id |
|||
*/ |
|||
private String departmentId; |
|||
|
|||
} |
|||
@ -0,0 +1,106 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 政府工作人员表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2022-01-10 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epmet_user.customer_staff") |
|||
public class CustomerStaffEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户Id CUSTOMER.id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 关联User表的主键Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 真实姓名 |
|||
*/ |
|||
private String realName; |
|||
|
|||
/** |
|||
* 性别0.未知,1男,2.女 |
|||
*/ |
|||
private Integer gender; |
|||
|
|||
/** |
|||
* 邮箱 |
|||
*/ |
|||
private String email; |
|||
|
|||
/** |
|||
* 手机号-唯一键 |
|||
*/ |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 地址 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* fulltime专职parttime兼职 |
|||
*/ |
|||
private String workType; |
|||
|
|||
/** |
|||
* 头像 |
|||
*/ |
|||
private String headPhoto; |
|||
|
|||
/** |
|||
* inactive未激活,active已激活 |
|||
*/ |
|||
private String activeFlag; |
|||
|
|||
/** |
|||
* 激活时间 |
|||
*/ |
|||
private Date activeTime; |
|||
|
|||
/** |
|||
* 未禁用enable,已禁用disabled |
|||
*/ |
|||
private String enableFlag; |
|||
|
|||
/** |
|||
* 登录密码 |
|||
*/ |
|||
private String password; |
|||
|
|||
} |
|||
@ -0,0 +1,56 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 网格人员关系表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2021-12-21 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epmet_gov_org.customer_staff_grid") |
|||
public class CustomerStaffGridEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 用户id, user.id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 网格ID customer_grid.id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
} |
|||
@ -0,0 +1,66 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 工作人员注册组织关系表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2022-01-19 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epmet_gov_org.staff_org_relation") |
|||
public class StaffOrgRelationEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 所有上级组织机构ID(以英文:隔开)部门/网格得拼上所属组织Id |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 工作人员Id |
|||
*/ |
|||
private String staffId; |
|||
|
|||
/** |
|||
* 工作人员添加入口Id(agencyId;deptId;gridId) |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 工作人员添加入口类型(组织:agency;部门:dept;网格:gridId) |
|||
*/ |
|||
private String orgType; |
|||
|
|||
} |
|||
@ -0,0 +1,56 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 用户表 |
|||
* |
|||
* @author elink elink@elink-cn.com |
|||
* @since v1.0.0 2022-01-10 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("epmet_user.user") |
|||
public class UserEntity extends BaseEpdcEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String fromApp; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String fromClient; |
|||
|
|||
} |
|||
@ -0,0 +1,36 @@ |
|||
<?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"> |
|||
|
|||
<mapper namespace="com.elink.esua.epdc.dao.CustomerAgencyDao"> |
|||
|
|||
<resultMap type="com.elink.esua.epdc.entity.CustomerAgencyEntity" id="customerAgencyMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="pid" column="PID"/> |
|||
<result property="pids" column="PIDS"/> |
|||
<result property="allParentName" column="ALL_PARENT_NAME"/> |
|||
<result property="organizationName" column="ORGANIZATION_NAME"/> |
|||
<result property="level" column="LEVEL"/> |
|||
<result property="areaCode" column="AREA_CODE"/> |
|||
<result property="code" column="CODE"/> |
|||
<result property="syncFlag" column="SYNC_FLAG"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
<result property="totalUser" column="TOTAL_USER"/> |
|||
<result property="province" column="PROVINCE"/> |
|||
<result property="city" column="CITY"/> |
|||
<result property="district" column="DISTRICT"/> |
|||
<result property="street" column="STREET"/> |
|||
<result property="community" column="COMMUNITY"/> |
|||
<result property="parentAreaCode" column="PARENT_AREA_CODE"/> |
|||
</resultMap> |
|||
|
|||
<delete id="deleteAgencyById"> |
|||
delete from epmet_gov_org.customer_agency where id =#{id} |
|||
</delete> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,26 @@ |
|||
<?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"> |
|||
|
|||
<mapper namespace="com.elink.esua.epdc.dao.CustomerDepartmentDao"> |
|||
|
|||
<resultMap type="com.elink.esua.epdc.entity.CustomerDepartmentEntity" id="customerDepartmentMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="agencyId" column="AGENCY_ID"/> |
|||
<result property="departmentName" column="DEPARTMENT_NAME"/> |
|||
<result property="departmentDuty" column="DEPARTMENT_DUTY"/> |
|||
<result property="totalUser" column="TOTAL_USER"/> |
|||
<result property="areaCode" column="AREA_CODE"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
</resultMap> |
|||
|
|||
<delete id="deleteDepartmentById"> |
|||
delete from epmet_gov_org.customer_department where id =#{id} |
|||
</delete> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,31 @@ |
|||
<?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"> |
|||
|
|||
<mapper namespace="com.elink.esua.epdc.dao.CustomerGridDao"> |
|||
|
|||
<resultMap type="com.elink.esua.epdc.entity.CustomerGridEntity" id="customerGridMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="gridName" column="GRID_NAME"/> |
|||
<result property="longitude" column="LONGITUDE"/> |
|||
<result property="latitude" column="LATITUDE"/> |
|||
<result property="areaCode" column="AREA_CODE"/> |
|||
<result property="code" column="CODE"/> |
|||
<result property="syncFlag" column="SYNC_FLAG"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
<result property="manageDistrict" column="MANAGE_DISTRICT"/> |
|||
<result property="totalUser" column="TOTAL_USER"/> |
|||
<result property="pid" column="PID"/> |
|||
<result property="pids" column="PIDS"/> |
|||
</resultMap> |
|||
|
|||
<delete id="deleteGridById"> |
|||
delete from epmet_gov_org.customer_grid where id =#{id} |
|||
</delete> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,23 @@ |
|||
<?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"> |
|||
|
|||
<mapper namespace="com.elink.esua.epdc.dao.CustomerStaffAgencyDao"> |
|||
|
|||
<resultMap type="com.elink.esua.epdc.entity.CustomerStaffAgencyEntity" id="customerStaffAgencyMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="userId" column="USER_ID"/> |
|||
<result property="agencyId" column="AGENCY_ID"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
</resultMap> |
|||
|
|||
<delete id="deleteStaffAgencyById"> |
|||
delete from epmet_gov_org.customer_staff_agency where id =#{id} |
|||
</delete> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,36 @@ |
|||
<?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"> |
|||
|
|||
<mapper namespace="com.elink.esua.epdc.dao.CustomerStaffDao"> |
|||
|
|||
<resultMap type="com.elink.esua.epdc.entity.CustomerStaffEntity" id="customerStaffMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="userId" column="USER_ID"/> |
|||
<result property="realName" column="REAL_NAME"/> |
|||
<result property="gender" column="GENDER"/> |
|||
<result property="email" column="EMAIL"/> |
|||
<result property="mobile" column="MOBILE"/> |
|||
<result property="address" column="ADDRESS"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
<result property="workType" column="WORK_TYPE"/> |
|||
<result property="headPhoto" column="HEAD_PHOTO"/> |
|||
<result property="activeFlag" column="ACTIVE_FLAG"/> |
|||
<result property="activeTime" column="ACTIVE_TIME"/> |
|||
<result property="enableFlag" column="ENABLE_FLAG"/> |
|||
<result property="password" column="PASSWORD"/> |
|||
</resultMap> |
|||
|
|||
<update id="deleteBatchUserIds"> |
|||
update epmet_user.customer_staff set DEL_FLAG = '1' where USER_ID in |
|||
<foreach collection="idLists" item="userId" separator="," open="(" close=")"> |
|||
#{userId} |
|||
</foreach> |
|||
</update> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,23 @@ |
|||
<?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"> |
|||
|
|||
<mapper namespace="com.elink.esua.epdc.dao.CustomerStaffDepartmentDao"> |
|||
|
|||
<resultMap type="com.elink.esua.epdc.entity.CustomerStaffDepartmentEntity" id="customerStaffDepartmentMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="userId" column="USER_ID"/> |
|||
<result property="departmentId" column="DEPARTMENT_ID"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
</resultMap> |
|||
|
|||
<delete id="deleteStaffDepartmentById"> |
|||
delete from epmet_gov_org.customer_staff_department where id =#{id} |
|||
</delete> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,23 @@ |
|||
<?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"> |
|||
|
|||
<mapper namespace="com.elink.esua.epdc.dao.CustomerStaffGridDao"> |
|||
|
|||
<resultMap type="com.elink.esua.epdc.entity.CustomerStaffGridEntity" id="customerStaffGridMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="userId" column="USER_ID"/> |
|||
<result property="gridId" column="GRID_ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
</resultMap> |
|||
|
|||
<delete id="deleteStaffGridById"> |
|||
delete from epmet_gov_org.customer_staff_grid where id =#{id} |
|||
</delete> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,28 @@ |
|||
<?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"> |
|||
|
|||
<mapper namespace="com.elink.esua.epdc.dao.StaffOrgRelationDao"> |
|||
|
|||
<resultMap type="com.elink.esua.epdc.entity.StaffOrgRelationEntity" id="staffOrgRelationMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="pids" column="PIDS"/> |
|||
<result property="staffId" column="STAFF_ID"/> |
|||
<result property="orgId" column="ORG_ID"/> |
|||
<result property="orgType" column="ORG_TYPE"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
</resultMap> |
|||
|
|||
<update id="deleteBatchStaffIds"> |
|||
update epmet_gov_org.staff_org_relation set DEL_FLAG = '1' where STAFF_ID in |
|||
<foreach collection="idLists" item="staffId" separator="," open="(" close=")"> |
|||
#{staffId} |
|||
</foreach> |
|||
</update> |
|||
|
|||
</mapper> |
|||
@ -0,0 +1,20 @@ |
|||
<?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"> |
|||
|
|||
<mapper namespace="com.elink.esua.epdc.dao.UserDao"> |
|||
|
|||
<resultMap type="com.elink.esua.epdc.entity.UserEntity" id="userMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="fromApp" column="FROM_APP"/> |
|||
<result property="fromClient" column="FROM_CLIENT"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
|||
Loading…
Reference in new issue