Browse Source

同步user,customer_staff

feature/dangjian
mkh 4 years ago
parent
commit
ecff498043
  1. 37
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/CustomerStaffDao.java
  2. 1
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/SysDictDao.java
  3. 33
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/UserDao.java
  4. 106
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/entity/CustomerStaffEntity.java
  5. 56
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/entity/UserEntity.java
  6. 12
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/SysDeptServiceImpl.java
  7. 86
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/SysUserServiceImpl.java
  8. 36
      esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/CustomerStaffDao.xml
  9. 4
      esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/SysDictDao.xml
  10. 20
      esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/UserDao.xml

37
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/CustomerStaffDao.java

@ -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);
}

1
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/SysDictDao.java

@ -28,4 +28,5 @@ public interface SysDictDao extends BaseDao<SysDictEntity> {
List<SysDictEntity> getSubList(Map<String, Object> params);
SysDictEntity selectDcp();
}

33
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/UserDao.java

@ -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> {
}

106
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/entity/CustomerStaffEntity.java

@ -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;
}

56
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/entity/UserEntity.java

@ -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;
}

12
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/SysDeptServiceImpl.java

@ -152,7 +152,7 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit
//同步customer_grid
CustomerGridEntity customerGridEntity = new CustomerGridEntity();
customerGridEntity.setId(entity.getId().toString());
customerGridEntity.setCustomerId("bb19419e365cf97567dc0520cdcfba9e");
customerGridEntity.setCustomerId("b09527201c4409e19d1dbc5e3c3429a1");
customerGridEntity.setPid(entity.getPid().toString());
customerGridEntity.setPids(StringUtils.join(StringUtils.split(entity.getPids(), ","), ":"));
customerGridEntity.setSyncFlag(NumConstant.ZERO_STR);
@ -166,7 +166,7 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit
CustomerDepartmentEntity customerDepartmentEntity = new CustomerDepartmentEntity();
customerDepartmentEntity.setId(entity.getId().toString());
customerDepartmentEntity.setAgencyId(entity.getPid().toString());
customerDepartmentEntity.setCustomerId("bb19419e365cf97567dc0520cdcfba9e");
customerDepartmentEntity.setCustomerId("b09527201c4409e19d1dbc5e3c3429a1");
customerDepartmentEntity.setDepartmentName(entity.getName());
customerDepartmentEntity.setDepartmentDuty(entity.getName());
customerDepartmentEntity.setTotalUser(NumConstant.ZERO);
@ -176,7 +176,7 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit
//同步agency
CustomerAgencyEntity customerAgencyEntity = new CustomerAgencyEntity();
customerAgencyEntity.setId(entity.getId().toString());
customerAgencyEntity.setCustomerId("bb19419e365cf97567dc0520cdcfba9e");
customerAgencyEntity.setCustomerId("b09527201c4409e19d1dbc5e3c3429a1");
customerAgencyEntity.setPid(entity.getPid().toString());
customerAgencyEntity.setPids(StringUtils.join(StringUtils.split(entity.getPids(), ","), ":"));
customerAgencyEntity.setSyncFlag(NumConstant.ZERO_STR);
@ -290,7 +290,7 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit
}
private void packageGrid(SysDeptEntity entity,CustomerGridEntity customerGridEntity){
customerGridEntity.setId(entity.getId().toString());
customerGridEntity.setCustomerId("bb19419e365cf97567dc0520cdcfba9e");
customerGridEntity.setCustomerId("b09527201c4409e19d1dbc5e3c3429a1");
customerGridEntity.setPid(entity.getPid().toString());
customerGridEntity.setPids(StringUtils.join(StringUtils.split(entity.getPids(), ","), ":"));
customerGridEntity.setSyncFlag(NumConstant.ZERO_STR);
@ -299,7 +299,7 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit
}
private void packageAgency(SysDeptEntity entity,CustomerAgencyEntity customerAgencyEntity){
customerAgencyEntity.setId(entity.getId().toString());
customerAgencyEntity.setCustomerId("bb19419e365cf97567dc0520cdcfba9e");
customerAgencyEntity.setCustomerId("b09527201c4409e19d1dbc5e3c3429a1");
customerAgencyEntity.setPid(entity.getPid().toString());
customerAgencyEntity.setPids(StringUtils.join(StringUtils.split(entity.getPids(), ","), ":"));
customerAgencyEntity.setSyncFlag(NumConstant.ZERO_STR);
@ -315,7 +315,7 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit
}
private void packageDepartment(SysDeptEntity entity,CustomerDepartmentEntity customerDepartmentEntity){
customerDepartmentEntity.setId(entity.getId().toString());
customerDepartmentEntity.setCustomerId("bb19419e365cf97567dc0520cdcfba9e");
customerDepartmentEntity.setCustomerId("b09527201c4409e19d1dbc5e3c3429a1");
customerDepartmentEntity.setAgencyId(entity.getPid().toString());
customerDepartmentEntity.setDepartmentName(entity.getName());
customerDepartmentEntity.setDepartmentDuty(entity.getName());

86
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/SysUserServiceImpl.java

@ -80,6 +80,12 @@ public class SysUserServiceImpl extends BaseServiceImpl<SysUserDao, SysUserEntit
private CustomerStaffDepartmentDao customerStaffDepartmentDao;
@Resource
private CustomerStaffGridDao customerStaffGridDao;
@Resource
private SysDictDao sysDictDao;
@Resource
private UserDao userDao;
@Resource
private CustomerStaffDao customerStaffDao;
@Override
public PageData<SysUserDTO> page(Map<String, Object> params) {
@ -150,6 +156,27 @@ public class SysUserServiceImpl extends BaseServiceImpl<SysUserDao, SysUserEntit
entity.setSuperAdmin(SuperAdminEnum.NO.value());
insert(entity);
//查询字典获取customer_id
SysDictEntity sysDictEntity = sysDictDao.selectDcp();
//同步customer_staff,user
UserEntity userEntity = new UserEntity();
userEntity.setId(entity.getId().toString());
userEntity.setCustomerId(sysDictEntity.getDictValue());
userEntity.setFromApp("gov");
userEntity.setFromClient("web");
userDao.insert(userEntity);
if (entity.getUserTagKey().equals("offers")) {
CustomerStaffEntity customerStaffEntity = ConvertUtils.sourceToTarget(entity, CustomerStaffEntity.class);
customerStaffEntity.setCustomerId(sysDictEntity.getDictValue());
customerStaffEntity.setUserId(userEntity.getId());
customerStaffEntity.setHeadPhoto(entity.getHeadUrl());
customerStaffEntity.setWorkType("fulltime");
customerStaffEntity.setActiveFlag("active");
customerStaffEntity.setActiveTime(new Date());
customerStaffEntity.setEnableFlag("enable");
customerStaffDao.insert(customerStaffEntity);
}
//更新组织totalUser,同步org 三张表
SysDeptEntity deptEntity = sysDeptDao.select(dto.getDeptId());
if (deptEntity.getTypeKey().equals(OrganizationTypeConstant.ORG_TYPE_GRID_PARTY)) {
@ -198,6 +225,21 @@ public class SysUserServiceImpl extends BaseServiceImpl<SysUserDao, SysUserEntit
//更新用户
updateById(entity);
//更新customer_staff
if (dto.getUserTagKey().equals("offers")) {
QueryWrapper<CustomerStaffEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("USER_ID", dto.getId().toString());
CustomerStaffEntity customerStaffEntity = customerStaffDao.selectOne(queryWrapper);
customerStaffEntity.setRealName(dto.getRealName());
customerStaffEntity.setGender(dto.getGender());
customerStaffEntity.setEmail(dto.getEmail());
customerStaffEntity.setMobile(dto.getMobile());
if (StringUtils.isNotEmpty(dto.getPassword())) {
customerStaffEntity.setPassword(PasswordUtils.encode(dto.getPassword()));
}
customerStaffEntity.setHeadPhoto(dto.getHeadUrl());
customerStaffDao.updateById(customerStaffEntity);
}
if (!sysUserEntity.getDeptId().equals(entity.getDeptId())) {
//更新后用户的机构信息
@ -274,54 +316,60 @@ public class SysUserServiceImpl extends BaseServiceImpl<SysUserDao, SysUserEntit
//更新角色用户关系
sysRoleUserService.saveOrUpdate(entity.getId(), dto.getRoleIdList());
}
private void updateAgencyTotalUserAfter(SysDeptEntity deptEntity){
private void updateAgencyTotalUserAfter(SysDeptEntity deptEntity) {
CustomerAgencyEntity customerAgencyEntity = customerAgencyDao.selectById(deptEntity.getId().toString());
customerAgencyEntity.setTotalUser(customerAgencyEntity.getTotalUser()+1);
customerAgencyEntity.setTotalUser(customerAgencyEntity.getTotalUser() + 1);
customerAgencyDao.updateById(customerAgencyEntity);
}
private void updateDepartmentTotalUserAfter(SysDeptEntity deptEntity){
private void updateDepartmentTotalUserAfter(SysDeptEntity deptEntity) {
CustomerDepartmentEntity customerDepartmentEntity = customerDepartmentDao.selectById(deptEntity.getId().toString());
customerDepartmentEntity.setTotalUser(customerDepartmentEntity.getTotalUser()+1);
customerDepartmentEntity.setTotalUser(customerDepartmentEntity.getTotalUser() + 1);
customerDepartmentDao.updateById(customerDepartmentEntity);
}
private void updateAgencyTotalUserBefore(SysDeptEntity sysDeptEntity){
private void updateAgencyTotalUserBefore(SysDeptEntity sysDeptEntity) {
CustomerAgencyEntity customerAgencyEntity = customerAgencyDao.selectById(sysDeptEntity.getId().toString());
customerAgencyEntity.setTotalUser(customerAgencyEntity.getTotalUser()-1);
customerAgencyEntity.setTotalUser(customerAgencyEntity.getTotalUser() - 1);
customerAgencyDao.updateById(customerAgencyEntity);
}
private void updateDepartmentTotalUserBefore(SysDeptEntity sysDeptEntity){
private void updateDepartmentTotalUserBefore(SysDeptEntity sysDeptEntity) {
CustomerDepartmentEntity customerDepartmentEntity = customerDepartmentDao.selectById(sysDeptEntity.getId().toString());
customerDepartmentEntity.setTotalUser(customerDepartmentEntity.getTotalUser()-1);
customerDepartmentEntity.setTotalUser(customerDepartmentEntity.getTotalUser() - 1);
customerDepartmentDao.updateById(customerDepartmentEntity);
}
private void updateGridTotalUserBefore(SysDeptEntity sysDeptEntity){
private void updateGridTotalUserBefore(SysDeptEntity sysDeptEntity) {
CustomerGridEntity customerGridEntityBefore = customerGridDao.selectById(sysDeptEntity.getId().toString());
customerGridEntityBefore.setTotalUser(customerGridEntityBefore.getTotalUser()-1);
customerGridEntityBefore.setTotalUser(customerGridEntityBefore.getTotalUser() - 1);
customerGridDao.updateById(customerGridEntityBefore);
}
private void updateGridTotalUserAfter(SysDeptEntity deptEntity){
private void updateGridTotalUserAfter(SysDeptEntity deptEntity) {
CustomerGridEntity customerGridEntityAfter = customerGridDao.selectById(deptEntity.getId().toString());
customerGridEntityAfter.setTotalUser(customerGridEntityAfter.getTotalUser()+1);
customerGridEntityAfter.setTotalUser(customerGridEntityAfter.getTotalUser() + 1);
customerGridDao.updateById(customerGridEntityAfter);
}
private void packageGrid(SysUserEntity entity, CustomerStaffGridEntity gridEntity) {
gridEntity.setId(entity.getId().toString());
gridEntity.setCustomerId("bb19419e365cf97567dc0520cdcfba9e");
gridEntity.setCustomerId("b09527201c4409e19d1dbc5e3c3429a1");
gridEntity.setUserId(entity.getId().toString());
gridEntity.setGridId(entity.getDeptId().toString());
}
private void packageDepartment(SysUserEntity entity, CustomerStaffDepartmentEntity departmentEntity) {
departmentEntity.setId(entity.getId().toString());
departmentEntity.setCustomerId("bb19419e365cf97567dc0520cdcfba9e");
departmentEntity.setCustomerId("b09527201c4409e19d1dbc5e3c3429a1");
departmentEntity.setUserId(entity.getId().toString());
departmentEntity.setDepartmentId(entity.getDeptId().toString());
}
private void packageAgency(SysUserEntity entity, CustomerStaffAgencyEntity agencyEntity) {
agencyEntity.setId(entity.getId().toString());
agencyEntity.setCustomerId("bb19419e365cf97567dc0520cdcfba9e");
agencyEntity.setCustomerId("b09527201c4409e19d1dbc5e3c3429a1");
agencyEntity.setUserId(entity.getId().toString());
agencyEntity.setAgencyId(entity.getDeptId().toString());
}
@ -355,7 +403,11 @@ public class SysUserServiceImpl extends BaseServiceImpl<SysUserDao, SysUserEntit
//角色用户关系,需要保留,不然逻辑删除就变成物理删除了
//逻辑删除组织用户
//逻辑删除user,customer_staff
List<String> idLists = Arrays.asList(ids).stream().map(x -> x.toString()).collect(Collectors.toList());
userDao.deleteBatchIds(idLists);
customerStaffDao.deleteBatchUserIds(idLists);
//物理删除组织用户
List<SysUserEntity> sysUserEntities = baseDao.selectBatchIds(Arrays.asList(ids));
List<String> deptIds = sysUserEntities.stream().map(x -> x.getDeptId().toString()).collect(Collectors.toList());
List<SysDeptEntity> sysDeptEntities = sysDeptDao.selectBatchIds(deptIds);
@ -389,7 +441,7 @@ public class SysUserServiceImpl extends BaseServiceImpl<SysUserDao, SysUserEntit
});
}
});
//批量逻辑删除组织用户, 批量更新组织部门totalUser
//批量物理删除组织用户, 批量更新组织部门totalUser
if (CollectionUtils.isNotEmpty(agencyIds)) {
baseDao.deleteAgencyBatchIds(agencyIds);
baseDao.updateTotalUserAgencyBatch(customerAgencyIds);

36
esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/CustomerStaffDao.xml

@ -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>

4
esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/SysDictDao.xml

@ -8,4 +8,8 @@
SELECT * FROM sys_dict WHERE pid = #{pid} and del_flag = '0'
</select>
<select id="selectDcp" resultType="com.elink.esua.epdc.entity.SysDictEntity">
SELECT * FROM sys_dict WHERE pid != '0' and del_flag = '0' and dict_type ='dcp'
</select>
</mapper>

20
esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/UserDao.xml

@ -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…
Cancel
Save