| | |
| | | package com.qxueyou.scc.admin.progress.service.impl.lecture; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取进度百分比 |
| | | * |
| | | * 获取进度百分比 |
| | | * |
| | | * @param targetId |
| | | * @param sum |
| | | * @return |
| | |
| | | p.setTargetId(targetId); |
| | | p.setType(Progress.PROGRESS_TYPE_LECTURE); |
| | | p.setProgressPercent(getProgressPercent(targetId, sum)); |
| | | p.setDeleteFlag(false); |
| | | p.setCreator(ClientUtils.getUserName()); |
| | | p.setCreateId(ClientUtils.getUserId()); |
| | | p.setCreateTime(new Date()); |
| | | p.setUpdator(ClientUtils.getUserName()); |
| | | p.setUpdateId(ClientUtils.getUserId()); |
| | | p.setUpdateTime(new Date()); |
| | | |
| | | save(p); |
| | | |
| | | |
| | | return p; |
| | | } |
| | | |