+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.opendata.controller;
+
+import com.epmet.commons.tools.utils.Result;
+import com.epmet.commons.tools.validator.ValidatorUtils;
+import com.epmet.opendata.dto.form.GridBaseInfoFormDTO;
+import com.epmet.opendata.service.BaseGridInfoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+
+/**
+ * 网格基础信息表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2021-10-15
+ */
+@RestController
+@RequestMapping("basegridinfo")
+public class BaseGridInfoController {
+
+ @Autowired
+ private BaseGridInfoService baseGridInfoService;
+
+
+ /**
+ * @Author sun
+ * @Description 组织基础信息中介库同步
+ **/
+ @PostMapping("agencybaseinfo")
+ public Result getAgencyBaseInfo(@RequestBody(required = false) GridBaseInfoFormDTO formDTO) {
+ ValidatorUtils.validateEntity(formDTO, GridBaseInfoFormDTO.Grid.class);
+ baseGridInfoService.getAgencyBaseInfo(formDTO);
+ return new Result();
+ }
+
+ /**
+ * @Author sun
+ * @Description 网格基础信息中介库同步
+ **/
+ @PostMapping("gridbaseinfo")
+ public Result getGridBaseInfo(@RequestBody(required = false) GridBaseInfoFormDTO formDTO) {
+ ValidatorUtils.validateEntity(formDTO, GridBaseInfoFormDTO.Grid.class);
+ baseGridInfoService.getGridBaseInfo(formDTO);
+ return new Result();
+ }
+
+}
\ No newline at end of file
diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/BaseGridUserController.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/BaseGridUserController.java
new file mode 100644
index 0000000000..dcf3146724
--- /dev/null
+++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/BaseGridUserController.java
@@ -0,0 +1,59 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.opendata.controller;
+
+import com.epmet.commons.tools.utils.Result;
+import com.epmet.commons.tools.validator.ValidatorUtils;
+import com.epmet.dto.user.result.GridUserInfoDTO;
+import com.epmet.opendata.dto.form.StaffBaseInfoFormDTO;
+import com.epmet.opendata.service.BaseGridUserService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+
+/**
+ * 网格员基础信息表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2021-10-15
+ */
+@RestController
+@RequestMapping("basegriduser")
+public class BaseGridUserController {
+
+ @Autowired
+ private BaseGridUserService baseGridUserService;
+
+ /**
+ * @Author sun
+ * @Description 网格员信息中间库同步
+ **/
+ @PostMapping("staffbaseinfo")
+ public Result getStaffBaseInfo(@RequestBody(required = false) StaffBaseInfoFormDTO formDTO) {
+ ValidatorUtils.validateEntity(formDTO, StaffBaseInfoFormDTO.Staff.class);
+ baseGridUserService.getStaffBaseInfo(formDTO);
+ return new Result();
+ }
+
+
+}
\ No newline at end of file
diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BaseGridInfoDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BaseGridInfoDao.java
new file mode 100644
index 0000000000..40c5649d1b
--- /dev/null
+++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BaseGridInfoDao.java
@@ -0,0 +1,41 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.opendata.dao;
+
+import com.epmet.commons.mybatis.dao.BaseDao;
+import com.epmet.opendata.entity.BaseGridInfoEntity;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * 网格基础信息表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2021-10-15
+ */
+@Mapper
+public interface BaseGridInfoDao extends BaseDao {
+
+ /**
+ * @Author sun
+ * @Description 网格基础信息批量更新部分字段
+ **/
+ void updateBatch(@Param("list") List entityList);
+}
\ No newline at end of file
diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BaseGridUserDao.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BaseGridUserDao.java
new file mode 100644
index 0000000000..c53eb48e1f
--- /dev/null
+++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/BaseGridUserDao.java
@@ -0,0 +1,41 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.opendata.dao;
+
+import com.epmet.commons.mybatis.dao.BaseDao;
+import com.epmet.opendata.entity.BaseGridUserEntity;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * 网格员基础信息表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2021-10-15
+ */
+@Mapper
+public interface BaseGridUserDao extends BaseDao {
+
+ /**
+ * @Author sun
+ * @Description 网格员基础信息批量更新部分字段
+ **/
+ void updateBatch(@Param("list") List entityList);
+}
\ No newline at end of file
diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/BaseGridInfoEntity.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/BaseGridInfoEntity.java
new file mode 100644
index 0000000000..f74e8b2205
--- /dev/null
+++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/entity/BaseGridInfoEntity.java
@@ -0,0 +1,106 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.opendata.service;
+
+import com.epmet.commons.mybatis.service.BaseService;
+import com.epmet.opendata.dto.form.GridBaseInfoFormDTO;
+import com.epmet.opendata.entity.BaseGridInfoEntity;
+
+/**
+ * 网格基础信息表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2021-10-15
+ */
+public interface BaseGridInfoService extends BaseService {
+
+ /**
+ * @Author sun
+ * @Description 组织基础信息中介库同步
+ **/
+ void getAgencyBaseInfo(GridBaseInfoFormDTO formDTO);
+
+ /**
+ * @Author sun
+ * @Description 网格基础信息中介库同步
+ **/
+ void getGridBaseInfo(GridBaseInfoFormDTO formDTO);
+
+}
\ No newline at end of file
diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/BaseGridUserService.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/BaseGridUserService.java
new file mode 100644
index 0000000000..2cdda5d9c5
--- /dev/null
+++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/BaseGridUserService.java
@@ -0,0 +1,38 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.opendata.service;
+
+import com.epmet.commons.mybatis.service.BaseService;
+import com.epmet.opendata.dto.form.StaffBaseInfoFormDTO;
+import com.epmet.opendata.entity.BaseGridUserEntity;
+
+/**
+ * 网格员基础信息表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2021-10-15
+ */
+public interface BaseGridUserService extends BaseService {
+
+ /**
+ * @Author sun
+ * @Description 网格员信息中间库同步
+ **/
+ void getStaffBaseInfo(StaffBaseInfoFormDTO formDTO);
+
+}
\ No newline at end of file
diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BaseGridInfoServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BaseGridInfoServiceImpl.java
new file mode 100644
index 0000000000..a1b93cf4ed
--- /dev/null
+++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BaseGridInfoServiceImpl.java
@@ -0,0 +1,120 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.opendata.service.impl;
+
+import com.epmet.commons.mybatis.service.impl.BaseServiceImpl;
+import com.epmet.commons.tools.exception.RenException;
+import com.epmet.commons.tools.utils.Result;
+import com.epmet.dto.org.result.CustomerAgencyDTO;
+import com.epmet.dto.org.result.CustomerGridDTO;
+import com.epmet.feign.DataStatisticalOpenFeignClient;
+import com.epmet.opendata.dao.BaseGridInfoDao;
+import com.epmet.opendata.dto.form.GridBaseInfoFormDTO;
+import com.epmet.opendata.entity.BaseGridInfoEntity;
+import com.epmet.opendata.service.BaseGridInfoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 网格基础信息表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2021-10-15
+ */
+@Service
+public class BaseGridInfoServiceImpl extends BaseServiceImpl implements BaseGridInfoService {
+ @Autowired
+ private DataStatisticalOpenFeignClient dataStatisticalOpenFeignClient;
+
+ /**
+ * @Author sun
+ * @Description 组织基础信息中介库同步
+ **/
+ @Override
+ @Transactional(rollbackFor = Exception.class)
+ public void getAgencyBaseInfo(GridBaseInfoFormDTO formDTO) {
+ //1.查询网格基础信息
+ Result> result = dataStatisticalOpenFeignClient.getAgencyBaseInfo(formDTO);
+ if (!result.success()) {
+ throw new RenException(result.getInternalMsg());
+ }
+ //2.中间库新增/修改数据
+ List entityList = new ArrayList<>();
+ result.getData().forEach(ag->{
+ BaseGridInfoEntity entity = new BaseGridInfoEntity();
+ entity.setCustomerId(ag.getCustomerId());
+ entity.setOrgId(ag.getId());
+ entity.setCode("");
+ entity.setGridName(ag.getOrganizationName());
+ String level = "06";
+ if("province".equals(ag.getLevel())){ level = "01"; }
+ else if("city".equals(ag.getLevel())){ level = "02"; }
+ else if("district".equals(ag.getLevel())){ level = "03"; }
+ else if("street".equals(ag.getLevel())){ level = "04"; }
+ entity.setGridLevel(level);
+ entity.setGridType("01");
+ entityList.add(entity);
+ });
+ if("add".equals(formDTO.getType())){
+ insertBatch(entityList);
+ }else {
+ baseDao.updateBatch(entityList);
+ }
+
+ }
+
+ /**
+ * @Author sun
+ * @Description 网格基础信息中介库同步
+ **/
+ @Override
+ @Transactional(rollbackFor = Exception.class)
+ public void getGridBaseInfo(GridBaseInfoFormDTO formDTO) {
+ //1.查询网格基础信息
+ Result> result = dataStatisticalOpenFeignClient.getGridBaseInfo(formDTO);
+ if (!result.success()) {
+ throw new RenException(result.getInternalMsg());
+ }
+ //2.中间库新增/修改数据
+ List entityList = new ArrayList<>();
+ result.getData().forEach(ag->{
+ BaseGridInfoEntity entity = new BaseGridInfoEntity();
+ entity.setCustomerId(ag.getCustomerId());
+ entity.setOrgId(ag.getId());
+ entity.setCode("");
+ entity.setGridName(ag.getGridName());
+ entity.setGridLevel("07");
+ entity.setGridType("01");
+ entity.setDelFlag(ag.getDelFlag().toString());
+ entity.setUpdatedBy(ag.getUpdatedBy());
+ entity.setUpdatedTime(ag.getUpdatedTime());
+ entityList.add(entity);
+ });
+ if("add".equals(formDTO.getType())){
+ insertBatch(entityList);
+ }else {
+ baseDao.updateBatch(entityList);
+ }
+
+ }
+
+}
\ No newline at end of file
diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BaseGridUserServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BaseGridUserServiceImpl.java
new file mode 100644
index 0000000000..c323a8e2c4
--- /dev/null
+++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/BaseGridUserServiceImpl.java
@@ -0,0 +1,73 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.opendata.service.impl;
+
+import com.epmet.commons.mybatis.service.impl.BaseServiceImpl;
+import com.epmet.commons.tools.exception.RenException;
+import com.epmet.commons.tools.utils.ConvertUtils;
+import com.epmet.commons.tools.utils.Result;
+import com.epmet.dto.org.result.CustomerAgencyDTO;
+import com.epmet.dto.user.result.CustomerStaffDTO;
+import com.epmet.dto.user.result.GridUserInfoDTO;
+import com.epmet.feign.DataStatisticalOpenFeignClient;
+import com.epmet.opendata.dao.BaseGridUserDao;
+import com.epmet.opendata.dto.form.StaffBaseInfoFormDTO;
+import com.epmet.opendata.entity.BaseGridInfoEntity;
+import com.epmet.opendata.entity.BaseGridUserEntity;
+import com.epmet.opendata.service.BaseGridUserService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 网格员基础信息表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2021-10-15
+ */
+@Service
+public class BaseGridUserServiceImpl extends BaseServiceImpl implements BaseGridUserService {
+ @Autowired
+ private DataStatisticalOpenFeignClient dataStatisticalOpenFeignClient;
+
+ /**
+ * @Author sun
+ * @Description 网格员信息中间库同步
+ **/
+ @Override
+ @Transactional(rollbackFor = Exception.class)
+ public void getStaffBaseInfo(StaffBaseInfoFormDTO formDTO) {
+ //1.查询网格基础信息
+ Result> result = dataStatisticalOpenFeignClient.getStaffBaseInfo(formDTO);
+ if (!result.success()) {
+ throw new RenException(result.getInternalMsg());
+ }
+ //2.中间库新增/修改数据
+ List entityList = ConvertUtils.sourceToTarget(result.getData(), BaseGridUserEntity.class);
+ if("add".equals(formDTO.getType())){
+ insertBatch(entityList);
+ }else {
+ baseDao.updateBatch(entityList);
+ }
+
+ }
+
+}
\ No newline at end of file
diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/UserPatrolRecordServiceImpl.java b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/UserPatrolRecordServiceImpl.java
index ad2d5f04f7..35d626e2eb 100644
--- a/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/UserPatrolRecordServiceImpl.java
+++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/UserPatrolRecordServiceImpl.java
@@ -60,6 +60,7 @@ public class UserPatrolRecordServiceImpl extends BaseServiceImpl
+
+
+
+
+
+ UPDATE base_grid_info
+
+
+
+
+
+ when org_id = #{item.orgId} then #{item.gridName}
+
+
+
+
+
+
+
+ when org_id = #{item.orgId} then #{item.delFlag}
+
+
+
+
+
+
+
+ when org_id = #{item.orgId} then #{item.updatedBy}
+
+
+
+
+
+
+
+ when org_id = #{item.orgId} then #{item.updatedTime}
+
+
+
+
+
+ WHERE
+ 1=1
+
+ org_id = #{item.orgId}
+
+
+
+
\ No newline at end of file
diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/BaseGridUserDao.xml b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/BaseGridUserDao.xml
new file mode 100644
index 0000000000..f5a47aea3a
--- /dev/null
+++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/BaseGridUserDao.xml
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+ UPDATE base_grid_user
+
+
+
+
+
+ when (grid_id = #{item.gridId} AND staff_id = #{item.staffId} ) then #{item.gridName}
+
+
+
+
+
+
+
+ when (grid_id = #{item.gridId} AND staff_id = #{item.staffId} ) then #{item.nickName}
+
+
+
+
+
+
+
+ when (grid_id = #{item.gridId} AND staff_id = #{item.staffId} ) then #{item.delFlag}
+
+
+
+
+
+
+
+ when (grid_id = #{item.gridId} AND staff_id = #{item.staffId} ) then #{item.updatedBy}
+
+
+
+
+
+
+
+ when (grid_id = #{item.gridId} AND staff_id = #{item.staffId} ) then #{item.updatedTime}
+
+
+
+
+
+ WHERE
+ 1=1
+
+ (grid_id = #{item.gridId} AND staff_id = #{item.staffId} )
+
+
+
+
\ No newline at end of file