56 changed files with 1705 additions and 209 deletions
@ -0,0 +1,13 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AreaCodeDetailFormDTO { |
|||
|
|||
private String areaCode; |
|||
/** |
|||
* 省级:province; 市级: city; 区县级: district ;乡(镇、街道)级:street ;社区级:community |
|||
*/ |
|||
private String level; |
|||
} |
|||
@ -0,0 +1,76 @@ |
|||
/** |
|||
* 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.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 客户关系表(01.14 add) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-02-03 |
|||
*/ |
|||
@Data |
|||
public class CustomerTreeDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
|
|||
/** |
|||
* 当前客户级别(社区级:community, |
|||
乡(镇、街道)级:street, |
|||
区县级: district, |
|||
市级: city |
|||
省级:province) |
|||
*/ |
|||
private String level; |
|||
|
|||
/** |
|||
* 当前客户的地区编码,实际就是根组织的area_code |
|||
*/ |
|||
private String areaCode; |
|||
|
|||
/** |
|||
* 当前客户的地区名称 |
|||
*/ |
|||
private String areaName; |
|||
|
|||
/** |
|||
* 当前客户的父节点地区名称 |
|||
*/ |
|||
private String parentCode; |
|||
|
|||
/** |
|||
* 客户名称 |
|||
*/ |
|||
private String customerName; |
|||
|
|||
/** |
|||
* 下一级 |
|||
*/ |
|||
private List<CustomerTreeDTO> children; |
|||
} |
|||
@ -0,0 +1,36 @@ |
|||
package com.epmet.task.ic; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.feign.EpmetUserOpenFeignClient; |
|||
import com.epmet.task.ITask; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import javax.annotation.Resource; |
|||
|
|||
/** |
|||
* desc:定时弥补数据 保证数据的一致性 |
|||
*/ |
|||
@Slf4j |
|||
@Component("icDataSyncTask") |
|||
public class IcDataSyncTask implements ITask { |
|||
|
|||
@Resource |
|||
private EpmetUserOpenFeignClient epmetUserOpenFeignClient; |
|||
|
|||
/** |
|||
* 执行定时任务接口 |
|||
* |
|||
* @param params 参数,多参数使用JSON数据 |
|||
*/ |
|||
@Override |
|||
public void run(String customerId) { |
|||
log.info("icDataSyncTask定时任务正在执行,参数为customerId:{}", customerId); |
|||
Result result = epmetUserOpenFeignClient.icDataSyncTask(customerId); |
|||
if (result.success()) { |
|||
log.info("icDataSyncTask定时任务正在执行定时任务执行成功"); |
|||
} else { |
|||
log.warn("icDataSyncTask定时任务正在执行定时任务执行失败:" + result.getMsg()); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,128 @@ |
|||
/** |
|||
* 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.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
|
|||
/** |
|||
* 组织信息 |
|||
* |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class AgencyAreaResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 客户名称 |
|||
*/ |
|||
private String customerName; |
|||
|
|||
/** |
|||
* 上级组织机构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 Integer totalUser; |
|||
|
|||
/** |
|||
* 省 |
|||
*/ |
|||
private String province; |
|||
|
|||
/** |
|||
* 【城市】名称 |
|||
*/ |
|||
private String city; |
|||
|
|||
/** |
|||
* 【区县】名称 |
|||
*/ |
|||
private String district; |
|||
|
|||
/** |
|||
* 当前组织的上级行政地区编码add0204;举例平阴县对应的是济南市3701 |
|||
*/ |
|||
private String parentAreaCode; |
|||
|
|||
/** |
|||
* 街道 |
|||
*/ |
|||
private String street; |
|||
|
|||
/** |
|||
* 【社区】名称0409 |
|||
*/ |
|||
private String community; |
|||
|
|||
/** |
|||
* 组织编码 |
|||
*/ |
|||
private String code; |
|||
|
|||
/** |
|||
* 负责人姓名 |
|||
*/ |
|||
private String contacts; |
|||
|
|||
/** |
|||
* 联系电话 |
|||
*/ |
|||
private String mobile; |
|||
|
|||
} |
|||
@ -0,0 +1,41 @@ |
|||
/** |
|||
* 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.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
|
|||
/** |
|||
* 客户关系表(01.14 add) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-02-03 |
|||
*/ |
|||
@Data |
|||
public class CustomerRelationFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
} |
|||
@ -0,0 +1,111 @@ |
|||
/** |
|||
* 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.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 客户关系表(01.14 add) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-02-03 |
|||
*/ |
|||
@Data |
|||
public class CustomerRelationTreeDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 父级客户id;如果是顶级客户,此列=0 |
|||
*/ |
|||
private String parentCustomerId; |
|||
|
|||
/** |
|||
* 当前客户的所有父级客户id,以英文冒号隔开,如果是顶级客户,此列=0 |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 当前客户类型取值: external:外部客户,internal:内部客户 |
|||
*/ |
|||
private String customerType; |
|||
|
|||
/** |
|||
* 父级客户类型取值: external:外部客户,internal:内部客户;如果是顶级客户,此列=0 |
|||
*/ |
|||
private String parentCustomerType; |
|||
|
|||
/** |
|||
* open,closed是否启用 |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 当前客户级别(社区级:community, |
|||
乡(镇、街道)级:street, |
|||
区县级: district, |
|||
市级: city |
|||
省级:province) |
|||
*/ |
|||
private String level; |
|||
|
|||
/** |
|||
* 当前客户的地区编码,实际就是根组织的area_code |
|||
*/ |
|||
private String areaCode; |
|||
|
|||
/** |
|||
* 当前客户的地区名称 |
|||
*/ |
|||
private String areaName; |
|||
|
|||
/** |
|||
* 客户名称 |
|||
*/ |
|||
private String customerName; |
|||
|
|||
/** |
|||
* 有效期 |
|||
*/ |
|||
private Date validityTime; |
|||
|
|||
/** |
|||
* 客户logo |
|||
*/ |
|||
private String logo; |
|||
|
|||
/** |
|||
* 下一级 |
|||
*/ |
|||
private List<CustomerRelationTreeDTO> children; |
|||
} |
|||
@ -0,0 +1,104 @@ |
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.annotation.LoginUser; |
|||
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.security.dto.TokenDto; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.AssertUtils; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.commons.tools.validator.group.AddGroup; |
|||
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|||
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|||
import com.epmet.dto.CustomerRelationDTO; |
|||
import com.epmet.dto.result.CustomerRelationTreeDTO; |
|||
import com.epmet.service.CustomerRelationService; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 客户关系表(01.14 add) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-07-06 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("customerRelation") |
|||
public class CustomerRelationController { |
|||
|
|||
@Autowired |
|||
private CustomerRelationService customerRelationService; |
|||
|
|||
@RequestMapping("page") |
|||
public Result<PageData<CustomerRelationDTO>> page(@RequestParam Map<String, Object> params) { |
|||
PageData<CustomerRelationDTO> page = customerRelationService.page(params); |
|||
return new Result<PageData<CustomerRelationDTO>>().ok(page); |
|||
} |
|||
|
|||
@RequestMapping(value = "{id}", method = {RequestMethod.POST, RequestMethod.GET}) |
|||
public Result<CustomerRelationDTO> get(@PathVariable("id") String id) { |
|||
CustomerRelationDTO data = customerRelationService.get(id); |
|||
return new Result<CustomerRelationDTO>().ok(data); |
|||
} |
|||
|
|||
@NoRepeatSubmit |
|||
@PostMapping("save") |
|||
public Result save(@RequestBody CustomerRelationDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
customerRelationService.saveV2(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@NoRepeatSubmit |
|||
@PostMapping("update") |
|||
public Result update(@RequestBody CustomerRelationDTO dto) { |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
customerRelationService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@RequestMapping(value = "delete", method = {RequestMethod.POST, RequestMethod.DELETE}) |
|||
public Result delete(@RequestBody String[] ids) { |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
customerRelationService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* 客户树 |
|||
* |
|||
* @param |
|||
* @return com.epmet.commons.tools.utils.Result<java.util.List < com.epmet.dto.result.CustomerRelationTreeDTO>> |
|||
* @author zhy |
|||
* @date 2022/7/6 13:24 |
|||
*/ |
|||
@RequestMapping("customertree") |
|||
public Result<List<CustomerRelationTreeDTO>> customerTree(@LoginUser TokenDto tokenDto) { |
|||
return new Result<List<CustomerRelationTreeDTO>>().ok(customerRelationService.getCustomerTree(tokenDto)); |
|||
} |
|||
|
|||
/** |
|||
* 获取子客户 |
|||
* |
|||
* @param customerId |
|||
* @return com.epmet.commons.tools.utils.Result<java.util.List<java.lang.String>> |
|||
* @author zhy |
|||
* @date 2022/7/8 13:41 |
|||
*/ |
|||
@GetMapping("subcustomer/{customerId}") |
|||
public Result<List<String>> getSubCustomer(@PathVariable("customerId") String customerId) { |
|||
if(StringUtils.isNotBlank(customerId)){ |
|||
List<String> result = customerRelationService.getSubCustomer(customerId); |
|||
return new Result<List<String>>().ok(result); |
|||
} |
|||
return new Result<>(); |
|||
} |
|||
} |
|||
@ -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.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.distributedlock.DistributedLock; |
|||
import com.epmet.commons.tools.feign.ResultDataResolver; |
|||
import com.epmet.commons.tools.redis.RedisKeys; |
|||
import com.epmet.commons.tools.redis.RedisUtils; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.service.IcResiUserDataSyncService; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.redisson.api.RLock; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestParam; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.Map; |
|||
import java.util.concurrent.TimeUnit; |
|||
|
|||
|
|||
/** |
|||
* 用户基础信息同步计算入口 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-10-26 |
|||
*/ |
|||
@Slf4j |
|||
@RestController |
|||
@RequestMapping("icResiUserDataSync") |
|||
public class IcResiUserDataSyncController implements ResultDataResolver { |
|||
|
|||
@Autowired |
|||
private IcResiUserDataSyncService icResiUserDataSyncService; |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
@Autowired |
|||
private DistributedLock distributedLock; |
|||
|
|||
|
|||
/** |
|||
* 获取录入居民的数量 |
|||
* |
|||
* @Param formDTO |
|||
* @Return {@link Result<Map<String, Integer>>} |
|||
* @Author zhaoqifeng |
|||
* @Date 2022/6/30 9:35 |
|||
*/ |
|||
@PostMapping("icDataSyncTask") |
|||
public Result<Boolean> icDataSyncTask(@RequestParam(value = "customerId",required = false) String customerId) { |
|||
RLock lock = null; |
|||
String key = RedisKeys.getDataSyncKey("resi"); |
|||
try { |
|||
lock = distributedLock.getLock(RedisKeys.getLockByMethodName("icDataSyncTask"), |
|||
30L, 30L, TimeUnit.SECONDS); |
|||
if (StringUtils.isBlank(customerId)) { |
|||
Object customerIdObj = redisUtils.sPop(key); |
|||
while (customerIdObj != null) { |
|||
try { |
|||
icResiUserDataSyncService.icDataSyncTask(customerIdObj.toString()); |
|||
log.debug("icDataSyncTask customerId:{} execute success", customerIdObj); |
|||
|
|||
customerIdObj = redisUtils.sPop(key); |
|||
} catch (Exception e) { |
|||
log.error("icDataSyncTask exception msg:{},customerId:{}", e.getMessage(), customerIdObj); |
|||
redisUtils.sAdd(key, customerIdObj); |
|||
} |
|||
log.debug("icDataSyncTask finish customerId:{} execute success", customerIdObj); |
|||
} |
|||
} else { |
|||
icResiUserDataSyncService.icDataSyncTask(customerId); |
|||
log.debug("icDataSyncTask customerId:{} execute success", customerId); |
|||
} |
|||
} catch (Exception e) { |
|||
if (StringUtils.isNotBlank(customerId)) { |
|||
redisUtils.sAdd(key, customerId); |
|||
} |
|||
log.error("icDataSyncTask exception msg:{},customerId:{}", e.getMessage(), customerId); |
|||
} finally { |
|||
distributedLock.unLock(lock); |
|||
} |
|||
return new Result<Boolean>().ok(true); |
|||
} |
|||
} |
|||
@ -0,0 +1,36 @@ |
|||
/** |
|||
* 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.epmet.service; |
|||
|
|||
/** |
|||
* 用户基础信息 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-10-26 |
|||
*/ |
|||
public interface IcResiUserDataSyncService { |
|||
/** |
|||
* desc: 同步与居民相关的数据 |
|||
* |
|||
* @param customerId |
|||
* @return java.lang.String |
|||
* @author LiuJanJun |
|||
* @date 2022/7/16 8:06 下午 |
|||
*/ |
|||
Boolean icDataSyncTask(String customerId); |
|||
} |
|||
@ -0,0 +1,55 @@ |
|||
package com.epmet.service.impl; |
|||
|
|||
import com.epmet.service.IcResiUserDataSyncService; |
|||
import com.epmet.service.IcResiUserService; |
|||
import com.epmet.service.StatsResiWarnService; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.concurrent.ExecutorService; |
|||
|
|||
/** |
|||
* desc: |
|||
* |
|||
* @author: LiuJanJun |
|||
* @date: 2022/7/16 8:07 下午 |
|||
* @version: 1.0 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
public class IcResiUserDataSyncServiceImpl implements IcResiUserDataSyncService { |
|||
|
|||
@Autowired |
|||
private IcResiUserService icResiUserService; |
|||
@Autowired |
|||
private StatsResiWarnService statsResiWarnService; |
|||
@Autowired |
|||
private ExecutorService executorService; |
|||
|
|||
/** |
|||
* desc: 同步与居民相关的数据 |
|||
* |
|||
* @param customerId |
|||
* @return java.lang.String |
|||
* @author LiuJanJun |
|||
* @date 2022/7/16 8:06 下午 |
|||
*/ |
|||
@Override |
|||
public Boolean icDataSyncTask(String customerId) { |
|||
Boolean flag = true; |
|||
try { |
|||
statsResiWarnService.resiWarn(customerId); |
|||
} catch (Exception e) { |
|||
flag = false; |
|||
log.error("icDataSyncTask resiWarn exception:{}", e.getMessage(), customerId); |
|||
} |
|||
try { |
|||
icResiUserService.updateIcHouseResiNumber(customerId); |
|||
} catch (Exception e) { |
|||
flag = false; |
|||
log.error("icDataSyncTask updateIcHouseResiNumber exception:{}", e.getMessage(), customerId); |
|||
} |
|||
return flag; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue