diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/common/constant/RegionConst.java b/pmapi/src/main/java/com/ningdatech/pmapi/common/constant/RegionConst.java index c9e327f..2d28d0e 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/common/constant/RegionConst.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/common/constant/RegionConst.java @@ -43,6 +43,8 @@ public interface RegionConst { */ String RC_ZJ = "330000"; + String NINE_CODE_LAST = "000"; + //----------------------------------------地区父级ID(缩写PID)--------------------------------------------------------- long PID_CHINA = 0; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CommonLogTask.java b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CommonLogTask.java index 56c1d7b..85aac58 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CommonLogTask.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CommonLogTask.java @@ -12,6 +12,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.ningdatech.log.mapper.OptLogMapper; import com.ningdatech.log.model.domain.OptLog; import com.ningdatech.pmapi.common.constant.BizConst; +import com.ningdatech.pmapi.common.constant.RegionConst; import com.ningdatech.pmapi.organization.mapper.DingEmployeeInfoMapper; import com.ningdatech.pmapi.organization.model.entity.DingEmployeeInfo; import com.ningdatech.pmapi.scheduler.task.model.CommonLog; @@ -89,7 +90,7 @@ public class CommonLogTask { commonLog.setUserId(String.valueOf(userInfo.getId())); } commonLog.setUserRole("政府工作人员"); - commonLog.setAreaCode(userInfo.getRegionCode()); + commonLog.setAreaCode(userInfo.getRegionCode() + RegionConst.NINE_CODE_LAST); String description = optLog.getDescription(); if ("用户登录".equals(description)){ commonLog.setActionType(1);