| | |
| | | package com.panzhihua.service_grid.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.serializer.SerializerFeature; |
| | | import com.panzhihua.common.model.vos.grid.EventDetailsVO; |
| | | import com.panzhihua.service_grid.ServiceGridApplication; |
| | | import com.panzhihua.service_grid.service.EventService; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import java.util.List; |
| | | |
| | | import static org.junit.jupiter.api.Assertions.*; |
| | | @Slf4j |
| | | @SpringBootTest(classes = ServiceGridApplication.class) |
| | | class EventServiceImplTest { |
| | |
| | | @Test |
| | | void getUnUploadEvent() { |
| | | List<EventDetailsVO> eventList = eventService.getUnUploadEvent(); |
| | | String pretty = JSONArray.toJSONString(eventList, SerializerFeature.PrettyFormat, SerializerFeature.WriteMapNullValue, |
| | | SerializerFeature.WriteDateUseDateFormat); |
| | | String pretty = JSONArray.toJSONString(eventList, SerializerFeature.PrettyFormat, |
| | | SerializerFeature.WriteMapNullValue, SerializerFeature.WriteDateUseDateFormat); |
| | | log.info(pretty); |
| | | } |
| | | |
| | | @Test |
| | | void updateLcUploadFlag() { |
| | | Boolean uploadFlag = eventService.updateLcUploadFlag(1111115L); |
| | | log.info(uploadFlag.toString()); |
| | | Boolean uploadFlag = eventService.updateLcUploadFlag(1111115L); |
| | | log.info(uploadFlag.toString()); |
| | | } |
| | | } |