diff --git a/zc-business/src/main/java/com/zc/business/domain/DcEvent.java b/zc-business/src/main/java/com/zc/business/domain/DcEvent.java index 7addd998..bb8374b2 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcEvent.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcEvent.java @@ -77,7 +77,7 @@ public class DcEvent extends BaseEntity @ApiModelProperty("处理人员") /** 处理人员 */ - private String handlingPerson; + private Long handlingPerson; @ApiModelProperty("处理结果") /** 处理结果 0未解决 1 已解决 2 已关闭 */ @@ -85,6 +85,7 @@ public class DcEvent extends BaseEntity /** 其他配置*/ private String otherConfig; + @TableField(exist = false) @ApiModelProperty("其他配置 map集合") @@ -124,4 +125,8 @@ public class DcEvent extends BaseEntity @TableField(exist = false) private DcEventMap dcEventMap; + + + + } diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java index 5bc62615..cc6bb57e 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java @@ -103,9 +103,9 @@ public class DcEventServiceImpl implements IDcEventService { //获取当前登录用户信息 LoginUser loginUser = getLoginUser(); - String userName = loginUser.getUser().getUserName(); + Long userId = loginUser.getUser().getUserId(); //设置处理人员 - dcEvent.setHandlingPerson(userName); + dcEvent.setHandlingPerson(userId); if (dcEvent.getEventOtherConfig()!=null){ Map eventOtherConfig = dcEvent.getEventOtherConfig(); // 将 Map 对象转成 JSON 字符串 @@ -134,6 +134,12 @@ if (dcEvent.getEventOtherConfig()!=null){ */ @Override public int updateDcEvent(DcEvent dcEvent) { + //获取当前登录用户信息 + LoginUser loginUser = getLoginUser(); + Long userId = loginUser.getUser().getUserId(); + //设置处理人员 + dcEvent.setHandlingPerson(userId); + if (dcEvent.getEventOtherConfig()!=null){ Map eventOtherConfig = dcEvent.getEventOtherConfig(); // 将 Map 对象转成 JSON 字符串