|
@ -10,6 +10,8 @@ import com.ruoyi.common.utils.SecurityUtils; |
|
|
import com.ruoyi.common.utils.file.FileUploadUtils; |
|
|
import com.ruoyi.common.utils.file.FileUploadUtils; |
|
|
import com.ruoyi.common.utils.file.MimeTypeUtils; |
|
|
import com.ruoyi.common.utils.file.MimeTypeUtils; |
|
|
import com.zc.business.domain.DcEvent; |
|
|
import com.zc.business.domain.DcEvent; |
|
|
|
|
|
import com.zc.common.core.websocket.WebSocketService; |
|
|
|
|
|
import com.zc.common.core.websocket.constant.WebSocketEvent; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
import com.zc.business.mapper.DcEventProcessMapper; |
|
|
import com.zc.business.mapper.DcEventProcessMapper; |
|
@ -84,7 +86,12 @@ public class DcEventProcessServiceImpl implements IDcEventProcessService |
|
|
dcEventProcess.setOperationTime(new Date()); |
|
|
dcEventProcess.setOperationTime(new Date()); |
|
|
dcEventProcess.setOperator(SecurityUtils.getUserId().toString()); |
|
|
dcEventProcess.setOperator(SecurityUtils.getUserId().toString()); |
|
|
dcEventProcess.setOperatorName(SecurityUtils.getLoginUser().getUser().getNickName()); |
|
|
dcEventProcess.setOperatorName(SecurityUtils.getLoginUser().getUser().getNickName()); |
|
|
return dcEventProcessMapper.insertDcEventProcess(dcEventProcess); |
|
|
int i = dcEventProcessMapper.insertDcEventProcess(dcEventProcess); |
|
|
|
|
|
|
|
|
|
|
|
//websocket推送
|
|
|
|
|
|
WebSocketService.broadcast(WebSocketEvent.EVENT_PROCESS, dcEventProcess); |
|
|
|
|
|
|
|
|
|
|
|
return i; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|