|
|
@@ -11,6 +11,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import com.goafanti.business.bo.JtTagBo;
|
|
|
import com.goafanti.business.service.JtTagService;
|
|
|
+import com.goafanti.common.dao.JtBusinessProjectMapper;
|
|
|
import com.goafanti.common.dao.JtTagMapper;
|
|
|
import com.goafanti.common.model.JtTag;
|
|
|
import com.goafanti.common.utils.StringUtils;
|
|
|
@@ -20,6 +21,8 @@ import com.goafanti.core.mybatis.page.Pagination;
|
|
|
public class JtTagServiceImpl extends BaseMybatisDao<JtTagMapper> implements JtTagService {
|
|
|
@Resource
|
|
|
private JtTagMapper jtTagMapper;
|
|
|
+ @Resource
|
|
|
+ private JtBusinessProjectMapper jtBusinessProjectMapper;
|
|
|
@Override
|
|
|
public int addTag(JtTag a) {
|
|
|
a.setId(UUID.randomUUID().toString());
|
|
|
@@ -48,4 +51,16 @@ public class JtTagServiceImpl extends BaseMybatisDao<JtTagMapper> implements J
|
|
|
return (Pagination<JtTagBo>)findPage("selectJtTagList", "selectJtTagCount", params, pageNo, pageSize);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Map<String,Object> getApplicationData(Integer size1,Integer size2,Integer size3,Integer size4,Integer size5 ,Integer size6 ,Integer size7 ) {
|
|
|
+ Map<String, Object> map=new HashMap<>();
|
|
|
+ map.put("military", jtBusinessProjectMapper.getProjectByTag("军工市场采购",size1));
|
|
|
+ map.put("government", jtBusinessProjectMapper.getProjectByTag("政府市场采购", size2));
|
|
|
+ map.put("international", jtBusinessProjectMapper.getProjectByTag("国际市场开发", size3));
|
|
|
+ map.put("taxReduction", jtBusinessProjectMapper.getProjectByTag("减税免税", size4));
|
|
|
+ map.put("financingLease", jtBusinessProjectMapper.getProjectByTag("融资租售", size5));
|
|
|
+ map.put("defenseWeapon", jtBusinessProjectMapper.getProjectByTag("攻防利器", size6));
|
|
|
+ map.put("ownUse", jtBusinessProjectMapper.getProjectByTag("他山己用", size7));
|
|
|
+ return map;
|
|
|
+ }
|
|
|
}
|