|
|
@@ -44,7 +44,12 @@ public class SystemEventStrategyImpl implements IYktEventStrategy {
|
|
|
case EventTypeConstants.DEPT -> {
|
|
|
RemoteDeptBo remoteDeptBo = JSONUtil.toBean(JSONUtil.parseObj(msg), RemoteDeptBo.class);
|
|
|
log.info("[处理云端->本地部门同步请求]-[部门信息:{}]", JSONUtil.toJsonStr(remoteDeptBo));
|
|
|
- remoteDeptService.insertOrUpdateLocalDept(remoteDeptBo);
|
|
|
+ if(remoteDeptBo.getDelFlag().equals(DefaultConstants.DELETED)){
|
|
|
+
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ remoteDeptService.insertOrUpdateLocalDept(remoteDeptBo);
|
|
|
+ }
|
|
|
// RemoteDeptVo remoteDeptVo = remoteDeptService.selectDeptById(remoteDeptBo.getDeptId());
|
|
|
// if (ObjectUtil.isEmpty(remoteDeptVo)) {
|
|
|
// remoteDeptService.insertDept(remoteDeptBo);
|