微调
This commit is contained in:
@@ -40,6 +40,8 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.RoundingMode;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@@ -205,7 +207,7 @@ public class EventDetailServiceImpl extends ServiceImpl<EventDetailMapper, RmpEv
|
|||||||
SendEventVO vo = new SendEventVO();
|
SendEventVO vo = new SendEventVO();
|
||||||
vo.setDeptList(dept);
|
vo.setDeptList(dept);
|
||||||
vo.setTime(po.getStartTime());
|
vo.setTime(po.getStartTime());
|
||||||
vo.setEventValue(po.getFeatureAmplitude());
|
vo.setEventValue(BigDecimal.valueOf(po.getFeatureAmplitude()).setScale(2, RoundingMode.HALF_UP).doubleValue());
|
||||||
vo.setPersistTime(po.getDuration());
|
vo.setPersistTime(po.getDuration());
|
||||||
vo.setEventType(po.getEventType());
|
vo.setEventType(po.getEventType());
|
||||||
vo.setEventReason(po.getAdvanceReason());
|
vo.setEventReason(po.getAdvanceReason());
|
||||||
|
|||||||
Reference in New Issue
Block a user