feat(创客空间全局资源获取):已支付金额以万为单位
This commit is contained in:
parent
1bf0146cc5
commit
4cef9d6a44
|
@ -12,7 +12,7 @@ public class MakerSpaceTotalDataVo {
|
||||||
|
|
||||||
private int totalApplicants;
|
private int totalApplicants;
|
||||||
|
|
||||||
private int currentTotalAwardAmount;
|
private float currentTotalAwardAmount;
|
||||||
|
|
||||||
private float paidAwardAmount;
|
private float paidAwardAmount;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ public interface TasksMapper{
|
||||||
|
|
||||||
int getTotalApplicantCount();
|
int getTotalApplicantCount();
|
||||||
|
|
||||||
int getCurrentTotalAwardAmount();
|
float getCurrentTotalAwardAmount();
|
||||||
|
|
||||||
List<Object> getTaskPublishedCountsByYear();
|
List<Object> getTaskPublishedCountsByYear();
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class TasksServiceImpl implements ITasksService {
|
||||||
MakerSpaceTotalDataVo makerSpaceTotalDataVo = new MakerSpaceTotalDataVo();
|
MakerSpaceTotalDataVo makerSpaceTotalDataVo = new MakerSpaceTotalDataVo();
|
||||||
makerSpaceTotalDataVo.setTotalTasks(tasksMapper.getTotalTaskCount());
|
makerSpaceTotalDataVo.setTotalTasks(tasksMapper.getTotalTaskCount());
|
||||||
makerSpaceTotalDataVo.setTotalApplicants(tasksMapper.getTotalApplicantCount());
|
makerSpaceTotalDataVo.setTotalApplicants(tasksMapper.getTotalApplicantCount());
|
||||||
makerSpaceTotalDataVo.setCurrentTotalAwardAmount(tasksMapper.getCurrentTotalAwardAmount()/10000);
|
makerSpaceTotalDataVo.setCurrentTotalAwardAmount(tasksMapper.getCurrentTotalAwardAmount() /10000);
|
||||||
makerSpaceTotalDataVo.setPaidAwardAmount(tasksMapper.getPaidAwardAmount()/10000);
|
makerSpaceTotalDataVo.setPaidAwardAmount(tasksMapper.getPaidAwardAmount()/10000);
|
||||||
makerSpaceTotalDataVo.setTotalVisits(tasksMapper.getTotalVisits());
|
makerSpaceTotalDataVo.setTotalVisits(tasksMapper.getTotalVisits());
|
||||||
makerSpaceTotalDataVo.setTaskPublishedCountsByYear(tasksMapper.getTaskPublishedCountsByYear());
|
makerSpaceTotalDataVo.setTaskPublishedCountsByYear(tasksMapper.getTaskPublishedCountsByYear());
|
||||||
|
|
|
@ -53,8 +53,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
from papers
|
from papers
|
||||||
where is_delete = 0 and parent_id = 0
|
where is_delete = 0 and parent_id = 0
|
||||||
</select>
|
</select>
|
||||||
<select id="getCurrentTotalAwardAmount" resultType="java.lang.Integer">
|
<select id="getCurrentTotalAwardAmount" resultType="java.lang.Float">
|
||||||
select sum(bounty)
|
select COALESCE(SUM(bounty), 0)
|
||||||
from tasks
|
from tasks
|
||||||
where is_delete = 0 and `status` between 3 and 8
|
where is_delete = 0 and `status` between 3 and 8
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in New Issue