|
|
@ -5,10 +5,12 @@ import cn.hutool.core.lang.Snowflake; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import com.ccsens.health.bean.dto.AbnormalDto; |
|
|
|
import com.ccsens.health.bean.dto.JourneyDto; |
|
|
|
import com.ccsens.health.bean.po.HealthAbnormal; |
|
|
|
import com.ccsens.health.bean.vo.AbnormalVo; |
|
|
|
import com.ccsens.health.persist.dao.HealthAbnormalDao; |
|
|
|
import com.ccsens.util.CodeEnum; |
|
|
|
import com.ccsens.util.DateUtil; |
|
|
|
import com.ccsens.util.bean.dto.QueryDto; |
|
|
|
import com.ccsens.util.exception.BaseException; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
@ -18,6 +20,7 @@ import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@Slf4j |
|
|
@ -35,9 +38,15 @@ public class AbnormalService implements IAbnormalService{ |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<AbnormalVo.AbnormalOverview> abnormalOverview(QueryDto<AbnormalDto.SelectAbnormal> params) { |
|
|
|
public List<AbnormalVo.AbnormalOverview> abnormalOverview(QueryDto<AbnormalDto.SelectAbnormal> params) throws Exception { |
|
|
|
AbnormalDto.SelectAbnormal selectAbnormal = params.getParam(); |
|
|
|
// Long startTime = selectAbnormal.getStartTime() == null ? DateUtil.getZeroTime(new Date()) : selectAbnormal.getStartTime();
|
|
|
|
// Long endTime = selectAbnormal.getEndTime() == null ? System.currentTimeMillis() : selectAbnormal.getEndTime();
|
|
|
|
|
|
|
|
return null; |
|
|
|
List<AbnormalVo.AbnormalOverview> abnormalOverviewList = |
|
|
|
healthAbnormalDao.abnormalOverview(selectAbnormal.getDepartment(),selectAbnormal.getStartTime(),selectAbnormal.getEndTime()); |
|
|
|
|
|
|
|
return abnormalOverviewList; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|