|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.kms.yg.sz.service; |
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
@ -13,6 +14,7 @@ import com.shuili.common.core.service.BaseService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
@ -55,6 +57,8 @@ public class BsSgcSzFzrService extends BaseService<BsSgcSzFzrMapper, BsSgcSzFzr> |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> params = sp.getParams(); |
|
|
|
if (params!=null) { |
|
|
|
//create_time
|
|
|
@ -70,7 +74,16 @@ public class BsSgcSzFzrService extends BaseService<BsSgcSzFzrMapper, BsSgcSzFzr> |
|
|
|
|
|
|
|
return infoPage; |
|
|
|
} |
|
|
|
|
|
|
|
public Map<String, BigDecimal>getPercent(){ |
|
|
|
Map<String,BigDecimal>percentMap=new HashMap<>(); |
|
|
|
List<Map<String, Object>> percent = bsSgcSzFzrMapper.getPercent(); |
|
|
|
if (CollectionUtil.isNotEmpty(percent)) { |
|
|
|
for (Map<String, Object> map : percent) { |
|
|
|
percentMap.put((String) map.get("name"), (BigDecimal) map.get("score")); |
|
|
|
} |
|
|
|
} |
|
|
|
return percentMap; |
|
|
|
} |
|
|
|
|
|
|
|
public IPage selectPage(SearchParam<BsSgcSzFzr> sp) { |
|
|
|
BsSgcSzFzr data = sp.getData(); |
|
|
|