Commit 2dc335e4 authored by 刘林's avatar 刘林

Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register

parents 4979954b f8ab45c2
...@@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject; ...@@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject;
import com.yeejoin.amos.boot.module.jg.biz.event.CancellationAndGradeEvent; import com.yeejoin.amos.boot.module.jg.biz.event.CancellationAndGradeEvent;
import com.yeejoin.amos.boot.module.jg.biz.event.dto.CancelEquipItem; import com.yeejoin.amos.boot.module.jg.biz.event.dto.CancelEquipItem;
import com.yeejoin.amos.boot.module.jg.biz.event.listener.service.ManageStatusDataUpdateService; import com.yeejoin.amos.boot.module.jg.biz.event.listener.service.ManageStatusDataUpdateService;
import com.yeejoin.amos.boot.module.jg.biz.event.publisher.EventPublisher;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
...@@ -44,7 +43,6 @@ public class CancelAndGradeEventListener { ...@@ -44,7 +43,6 @@ public class CancelAndGradeEventListener {
} }
@PostConstruct @PostConstruct
public void init() { public void init() {
ExecutorService executorService = Executors.newFixedThreadPool(threadNumber, r -> { ExecutorService executorService = Executors.newFixedThreadPool(threadNumber, r -> {
...@@ -56,7 +54,7 @@ public class CancelAndGradeEventListener { ...@@ -56,7 +54,7 @@ public class CancelAndGradeEventListener {
executorService.execute(() -> { executorService.execute(() -> {
while (true) { while (true) {
try { try {
CancelEquipItem cancelEquipItem = queue.take(); CancelEquipItem cancelEquipItem = queue.take();
log.info("线程 {} 开始处理 cancelEquipItem: {}", Thread.currentThread().getName(), cancelEquipItem); log.info("线程 {} 开始处理 cancelEquipItem: {}", Thread.currentThread().getName(), cancelEquipItem);
updateService.dealData(cancelEquipItem); updateService.dealData(cancelEquipItem);
} catch (Exception e) { } catch (Exception e) {
......
...@@ -3518,7 +3518,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD ...@@ -3518,7 +3518,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
@Override @Override
public void afterCommit() { public void afterCommit() {
// 发布作废事件 // 发布作废事件
eventPublisher.publish(new CancellationEvent(this, records)); eventPublisher.publish(new CancellationAndGradeEvent(this, records, null));
} }
}); });
} }
......
...@@ -981,7 +981,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform ...@@ -981,7 +981,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
.collect(Collectors.toList()) .collect(Collectors.toList())
); );
// 车用气瓶评分 // 车用气瓶评分
eventPublisher.publish(new EquipCreateOrEditEvent(this, BusinessTypeEnum.JG_USAGE_REGISTRATION.name(), Sets.newHashSet(equipIdList), EquipCreateOrEditEvent.EquipType.equip)); eventPublisher.publish(new EquipCreateOrEditEvent(this, BusinessTypeEnum.JG_VEHICLE_GAS_APPLICATION.name(), Sets.newHashSet(equipIdList), EquipCreateOrEditEvent.EquipType.equip));
} }
this.getBaseMapper().updateById(jgVehicleInformation); this.getBaseMapper().updateById(jgVehicleInformation);
commonService.saveExecuteFlowData2Redis(jgVehicleInformation.getInstanceId(), this.buildInstanceRuntimeData(jgVehicleInformation)); commonService.saveExecuteFlowData2Redis(jgVehicleInformation.getInstanceId(), this.buildInstanceRuntimeData(jgVehicleInformation));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment