Browse Source

更正参数类型

develop
王兴琳 11 months ago
parent
commit
d7105dbcb1
  1. 7
      zc-business/src/main/java/com/zc/business/domain/DcEvent.java
  2. 10
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

7
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;
}

10
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<String, Object> 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<String, Object> eventOtherConfig = dcEvent.getEventOtherConfig();
// 将 Map 对象转成 JSON 字符串

Loading…
Cancel
Save