|
|
@ -12,6 +12,7 @@ import com.epmet.commons.tools.redis.RedisUtils; |
|
|
|
import com.epmet.commons.tools.utils.SpringContextUtils; |
|
|
|
import com.epmet.constant.SystemMessageType; |
|
|
|
import com.epmet.opendata.dto.form.UpsertPatrolRecordForm; |
|
|
|
import com.epmet.opendata.service.PatrolRoutineWorkService; |
|
|
|
import com.epmet.opendata.service.UserPatrolRecordService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
@ -95,7 +96,7 @@ public class OpenDataPatrolChangeEventListener implements MessageListenerConcurr |
|
|
|
aBoolean = SpringContextUtils.getBean(UserPatrolRecordService.class).updatePatrolRecord(patrolRecordForm); |
|
|
|
break; |
|
|
|
case SystemMessageType.PATROL_ROUTINE_WORK_ADD: |
|
|
|
aBoolean = SpringContextUtils.getBean(UserPatrolRecordService.class).updatePatrolRecord(patrolRecordForm); |
|
|
|
aBoolean = SpringContextUtils.getBean(PatrolRoutineWorkService.class).insertPatrolRecord(patrolRecordForm); |
|
|
|
break; |
|
|
|
default: |
|
|
|
log.error("错误的消息类型:{}", tags); |
|
|
|