Commit cf5ab054 authored by huangjie's avatar huangjie
parents 2bcb62c1 4d77e4a7
...@@ -41,4 +41,9 @@ public class SpecialPurposeBondsDto { ...@@ -41,4 +41,9 @@ public class SpecialPurposeBondsDto {
* 排序 (降序desc 升序asc) * 排序 (降序desc 升序asc)
*/ */
private String order; private String order;
/**
* 是否为历史(1是,0否)
*/
private Integer isHistory;
} }
...@@ -5,7 +5,7 @@ import lombok.Data; ...@@ -5,7 +5,7 @@ import lombok.Data;
/** /**
* @ClassName SpecialPurposeBonds * @ClassName SpecialPurposeBonds
* @Description 专项债-项目类别统计 * @Description 专项债-项目分页列表
* @Author Dgm * @Author Dgm
* @Date 2023/5/23 14:05 * @Date 2023/5/23 14:05
* @Version * @Version
......
...@@ -168,7 +168,6 @@ ...@@ -168,7 +168,6 @@
</el-table-column> </el-table-column>
<el-table-column label="区域" width="120"> <el-table-column label="区域" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link :to="'/radar/bxprozbgg/details/'+ 1" tag="a" class="list-titel-a" >
{{scope.row.province}} {{scope.row.province}}
<template v-if="scope.row.city"> <template v-if="scope.row.city">
- -
...@@ -178,8 +177,6 @@ ...@@ -178,8 +177,6 @@
- -
</template> </template>
{{scope.row.area}} {{scope.row.area}}
</router-link>
</template> </template>
</el-table-column> </el-table-column>
...@@ -591,7 +588,7 @@ export default { ...@@ -591,7 +588,7 @@ export default {
}, },
mounted() { mounted() {
this.addressListfn(); this.init();
}, },
methods: { methods: {
domicileChange() { domicileChange() {
...@@ -675,7 +672,7 @@ export default { ...@@ -675,7 +672,7 @@ export default {
}, },
init(){ init(){
// this.search(); this.search();
this.addressListfn(); this.addressListfn();
}, },
......
...@@ -2764,11 +2764,11 @@ ...@@ -2764,11 +2764,11 @@
}, },
toEnterprise(id, html,type) { toEnterprise(id, html,type) {
return '/enterprise/' + encodeStr(id) + html + '/'+(type?'?flag=true&type='+type:''); return '/company/' + encodeStr(id) + html + '/'+(type?'?flag=true&type='+type:'');
}, },
toEnterpriseDetail(id) { toEnterpriseDetail(id) {
return '/enterprise/' + encodeStr(id) + '/?index=true'; return '/company/' + encodeStr(id) + '/?index=true';
}, },
labelsWidth(e,t=0){ labelsWidth(e,t=0){
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<el-table-column label="项目名称" > <el-table-column label="项目名称" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.name||'--'}} <router-link v-if="scope.row.companyId" :to="'/company/' + encodeStr(scope.row.companyId) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="scope.row.name"></router-link>
</template> </template>
</el-table-column> </el-table-column>
...@@ -100,14 +100,14 @@ ...@@ -100,14 +100,14 @@
<script> <script>
import "@/assets/styles/public.css"; import "@/assets/styles/public.css";
import { import {encodeStr} from "@/assets/js/common.js"
encodeStr
} from "@/assets/js/common.js"
import api from '@/api/radar/radar.js'; import api from '@/api/radar/radar.js';
export default { export default {
name: 'BidRecordDetails', name: 'BidRecordDetails',
data() { data() {
return { return {
encodeStr,
id: '', id: '',
tableData: [], tableData: [],
"pageNum": 1, "pageNum": 1,
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
<div class="list-content"> <div class="list-content">
<p class="list-content-text"> <p class="list-content-text">
<span>受让人:</span> <span>受让人:</span>
<span class="blue">{{textList.company||"--"}}</span> <router-link v-if="textList.company" :to="'/company/' + encodeStr(textList.id) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="textList.company"></router-link>
<span v-else class="blue">{{textList.company||"--"}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text">
<span>成交金额:</span> <span>成交金额:</span>
...@@ -192,12 +193,14 @@ ...@@ -192,12 +193,14 @@
<script> <script>
import api from '@/api/radar/radar.js'; import api from '@/api/radar/radar.js';
import {encodeStr} from "@/assets/js/common.js"
export default { export default {
name: 'LandDetails', name: 'LandDetails',
data() { data() {
return { return {
id: '', id: '',
encodeStr,
textList: {} textList: {}
} }
......
...@@ -25,13 +25,17 @@ ...@@ -25,13 +25,17 @@
</div> </div>
<div class="list-content"> <div class="list-content">
<p class="list-content-text"> <p class="list-content-text" v-if="textList.tenderee">
<span>招采单位:</span> <span>招采单位:</span>
<span class="blue"> {{textList.tenderee||'--'}}</span> <router-link v-if="textList.projectUnitId" :to="'/company/' + encodeStr(textList.projectUnitId) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="textList.tenderee"></router-link>
<span v-else class="blue"> {{textList.tenderee||'--'}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text" v-if="textList.agency">
<span>代理单位:</span> <span>代理单位:</span>
<span class="blue">{{textList.agency||'--'}}</span> <span class="blue">{{textList.agency||'--'}}</span>
<router-link v-if="textList.agencyId" :to="'/company/' + encodeStr(textList.agencyId) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="textList.agency"></router-link>
<span v-else class="blue"> {{textList.agency||'--'}}</span>
</p> </p>
</div> </div>
...@@ -89,11 +93,13 @@ ...@@ -89,11 +93,13 @@
<script> <script>
import "@/assets/styles/public.css"; import "@/assets/styles/public.css";
import api from '@/api/radar/radar.js'; import api from '@/api/radar/radar.js';
import {encodeStr} from "@/assets/js/common.js"
export default { export default {
name: 'TenderDetails', name: 'TenderDetails',
data() { data() {
return { return {
encodeStr,
id: '', id: '',
textList:{}, textList:{},
showimg:true showimg:true
......
...@@ -173,10 +173,13 @@ ...@@ -173,10 +173,13 @@
<div class="main3-box"> <div class="main3-box">
<p> <p>
<label class="label">招标人</label> <label class="label">招标人</label>
<span class="color2">{{textList.tenderee||'--'}}</span> <router-link v-if="textList.tendereeId" :to="'/company/' + encodeStr(textList.tendereeId) + '/?index=true'" tag="a" class="list-titel-a color2" v-html="textList.tenderee"></router-link>
<span v-else class="color2">{{textList.tenderee||'--'}}</span>
<label class="label">代理机构</label> <label class="label">代理机构</label>
<span class="color2">{{textList.agency||'--'}}</span> <router-link v-if="textList.agencyId" :to="'/company/' + encodeStr(textList.agencyId) + '/?index=true'" tag="a" class="list-titel-a color2" v-html="textList.agency"></router-link>
<span v-else class="color2">{{textList.agency||'--'}}</span>
</p> </p>
<p> <p>
<label class="label">招标人联系方式</label> <label class="label">招标人联系方式</label>
<span>{{textList.tendereeTel||'--'}}</span> <span>{{textList.tendereeTel||'--'}}</span>
...@@ -199,11 +202,13 @@ ...@@ -199,11 +202,13 @@
<script> <script>
import "@/assets/styles/public.css"; import "@/assets/styles/public.css";
import api from '@/api/radar/radar.js'; import api from '@/api/radar/radar.js';
import {encodeStr} from "@/assets/js/common.js"
export default { export default {
name: 'bxprozbggDetails', name: 'bxprozbggDetails',
data() { data() {
return { return {
encodeStr,
id: '', id: '',
textList: {}, textList: {},
showimg:true, showimg:true,
...@@ -512,6 +517,11 @@ ...@@ -512,6 +517,11 @@
.color2{ .color2{
color: #0081FF; color: #0081FF;
cursor: pointer; cursor: pointer;
display: flex;
align-items: center;
width: 40%;
padding: 12px;
font-size: 12px;
} }
} }
......
...@@ -164,7 +164,8 @@ ...@@ -164,7 +164,8 @@
<div class="list-content"> <div class="list-content">
<p class="list-content-text"> <p class="list-content-text">
<span>招采单位:</span> <span>招采单位:</span>
<span class="blue">{{item.tenderee||'--'}}</span> <router-link v-if="item.tendereeId" :to="'/company/' + encodeStr(item.tendereeId) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="item.tenderee"></router-link>
<span v-else>{{item.tenderee||'--'}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text">
<span>合同预估金额(万元):</span> <span>合同预估金额(万元):</span>
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
<div class="list-content"> <div class="list-content">
<p class="list-content-text"> <p class="list-content-text">
<span>受让人:</span> <span>受让人:</span>
<span class="blue">{{item.companyName||'--'}}</span> <router-link :to="'/company/' + encodeStr(item.id) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="item.companyName"></router-link>
</p> </p>
<p class="list-content-text"> <p class="list-content-text">
<span>成交金额:</span> <span>成交金额:</span>
...@@ -1127,7 +1127,7 @@ ...@@ -1127,7 +1127,7 @@
} }
.bottomlist-list:hover{ .bottomlist-list:hover{
background: #F6F9FC; background: #F6F9FC;
cursor: pointer;
} }
.pagination{ .pagination{
padding: 14px ; padding: 14px ;
......
...@@ -207,11 +207,13 @@ ...@@ -207,11 +207,13 @@
<div class="list-content" v-if="item.companyName||item.agency"> <div class="list-content" v-if="item.companyName||item.agency">
<p class="list-content-text" v-if="item.companyName"> <p class="list-content-text" v-if="item.companyName">
<span>招采单位:</span> <span>招采单位:</span>
<span class="blue">{{item.companyName||'--'}}</span> <router-link v-if="item.jskEid" :to="'/company/' + encodeStr(item.jskEid) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="item.companyName"></router-link>
<span v-else class="blue">{{item.companyName||'--'}}</span>
</p> </p>
<p class="list-content-text" v-if="item.agency"> <p class="list-content-text" v-if="item.agency">
<span>代理单位:</span> <span>代理单位:</span>
<span class="blue">{{item.agency||'--'}}</span> <router-link v-if="item.agencyId" :to="'/company/' + encodeStr(item.agencyId) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="item.agency"></router-link>
<span v-else class="blue">{{item.agency||'--'}}</span>
</p> </p>
</div> </div>
...@@ -275,6 +277,7 @@ ...@@ -275,6 +277,7 @@
data() { data() {
return { return {
//有无联系方式 //有无联系方式
encodeStr,
phonePointType: [{ phonePointType: [{
value: '', value: '',
label: '不限' label: '不限'
......
...@@ -103,20 +103,20 @@ ...@@ -103,20 +103,20 @@
<router-link :to="'/radar/debtProject/details/'+item.uuid " tag="a" class="list-titel-a" v-html="item.projectName"></router-link> <router-link :to="'/radar/debtProject/details/'+item.uuid " tag="a" class="list-titel-a" v-html="item.projectName"></router-link>
</p> </p>
<div class="content-label"> <div class="content-label" v-if="item.domicile">
<span class="list-label">{{item.domicile}}</span> <span class="list-label">{{item.domicile}}</span>
</div> </div>
<div class="list-content"> <div class="list-content">
<p class="list-content-text"> <p class="list-content-text" v-if="item.projectType">
<span>项目类型:</span> <span>项目类型:</span>
<span>{{item.projectType}}</span> <span>{{item.projectType}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text"v-if="item.projectTotalInvestment">
<span>项目总投资(亿):</span> <span>项目总投资(亿):</span>
<span>{{item.projectTotalInvestment}}</span> <span>{{item.projectTotalInvestment}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text" v-if="item.specialCapital">
<span>项目资本金(亿):</span> <span>项目资本金(亿):</span>
<span>{{item.projectCapital}}</span> <span>{{item.projectCapital}}</span>
</p> </p>
...@@ -126,17 +126,17 @@ ...@@ -126,17 +126,17 @@
</p> </p>
</div> </div>
<div class="list-content"> <div class="list-content">
<p class="list-content-text"> <p class="list-content-text" v-if="item.specialCapital">
<span>项目主体:</span> <span>项目主体:</span>
<span class="blue">{{item.projectEntity}}</span> <span >{{item.projectEntity}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text" v-if="item.chargeDepartment">
<span>主管部门:</span> <span>主管部门:</span>
<span class="blue">{{item.chargeDepartment}}</span> <span >{{item.chargeDepartment}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text" v-if="item.piu">
<span>实施单位:</span> <span>实施单位:</span>
<span class="blue">{{item.piu}}</span> <span >{{item.piu}}</span>
</p> </p>
</div> </div>
</li> </li>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
import "@/assets/styles/public.css"; import "@/assets/styles/public.css";
export default { export default {
name: 'radar', name: 'Radar',
components: { debtProject,Land,Establishment,bxprozbgg,Tender,BidRecord,Bidding }, components: { debtProject,Land,Establishment,bxprozbgg,Tender,BidRecord,Bidding },
data() { data() {
return { return {
...@@ -95,7 +95,9 @@ ...@@ -95,7 +95,9 @@
personnelHerf:'debtProject' personnelHerf:'debtProject'
} }
}, },
created() {}, created() {
// console.log(this.$route.name)
},
methods: { methods: {
personnelListbtn(index) { personnelListbtn(index) {
for (var i = 0; i < this.personnelList.length; i++) { for (var i = 0; i < this.personnelList.length; i++) {
......
...@@ -22,9 +22,9 @@ public class BusinessListDto { ...@@ -22,9 +22,9 @@ public class BusinessListDto {
private Integer userId; private Integer userId;
/** /**
* 部门id * 用户查看全部他人可见项目标示
*/ */
private Integer deptId; private Integer others;
/** /**
* 省id * 省id
......
package com.dsk.system.dskService; package com.dsk.system.dskService;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.dsk.common.core.domain.R; import com.dsk.common.core.domain.R;
import com.dsk.common.core.domain.model.*; import com.dsk.common.core.domain.model.*;
...@@ -12,6 +13,7 @@ import org.slf4j.LoggerFactory; ...@@ -12,6 +13,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -52,6 +54,30 @@ public class EnterpriseBussinessService { ...@@ -52,6 +54,30 @@ public class EnterpriseBussinessService {
public R tenderDetail(EnterpriseBussinessTenderDetailBody body) throws Exception { public R tenderDetail(EnterpriseBussinessTenderDetailBody body) throws Exception {
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/tenderDetail", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseBussiness/tenderDetail", BeanUtil.beanToMap(body, false, false));
Map data = MapUtils.getMap(map, "data", null);
String mongoContentId = MapUtils.getString(data, "mongoContentId");
if (ObjectUtil.isEmpty(mongoContentId)) {
return BeanUtil.toBean(map, R.class);
}
HashMap<String, Object> contentParam = new HashMap<>();
contentParam.put("data_type", "kaibiao");
contentParam.put("filter_type", 2);
contentParam.put("strategy_id", mongoContentId);
Map<String, Object> contentMap = dskOpenApiUtil.requestBody("/mongocontent/v1/cjb/mongo_content", contentParam);
Map contentData = MapUtils.getMap(contentMap, "data", null);
log.info("contentData:{}", JSONUtil.toJsonStr(contentData));
if (200 != MapUtils.getInteger(contentMap, "code", 300)) {
return BeanUtil.toBean(map, R.class);
}
String htmlContent = MapUtils.getString(contentData, "htmlContent");
data.put("content", htmlContent);
map.put("data", data);
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
......
...@@ -2,6 +2,7 @@ package com.dsk.system.dskService; ...@@ -2,6 +2,7 @@ package com.dsk.system.dskService;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONUtil;
import com.dsk.common.core.domain.R; import com.dsk.common.core.domain.R;
import com.dsk.common.core.domain.model.*; import com.dsk.common.core.domain.model.*;
import com.dsk.common.core.page.TableDataInfo; import com.dsk.common.core.page.TableDataInfo;
...@@ -124,9 +125,10 @@ public class EnterpriseProjectService { ...@@ -124,9 +125,10 @@ public class EnterpriseProjectService {
contentParam.put("data_type", "bid_plan"); contentParam.put("data_type", "bid_plan");
contentParam.put("filter_type", 2); contentParam.put("filter_type", 2);
contentParam.put("strategy_id", contentId); contentParam.put("strategy_id", contentId);
Map<String, Object> contentMap = dskOpenApiUtil.requestBody("/mongocontent/v1/cjb/mongo_content", BeanUtil.beanToMap(contentParam, false, false)); Map<String, Object> contentMap = dskOpenApiUtil.requestBody("/mongocontent/v1/cjb/mongo_content", contentParam);
Map contentData = MapUtils.getMap(contentMap, "data", null); Map contentData = MapUtils.getMap(contentMap, "data", null);
log.info("contentData:{}", JSONUtil.toJsonStr(contentData));
if (200 != MapUtils.getInteger(contentMap, "code", 300)) { if (200 != MapUtils.getInteger(contentMap, "code", 300)) {
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
...@@ -134,7 +136,8 @@ public class EnterpriseProjectService { ...@@ -134,7 +136,8 @@ public class EnterpriseProjectService {
String htmlContent = MapUtils.getString(contentData, "htmlContent"); String htmlContent = MapUtils.getString(contentData, "htmlContent");
map.put("content", htmlContent); data.put("content", htmlContent);
map.put("data", data);
return BeanUtil.toBean(map, R.class); return BeanUtil.toBean(map, R.class);
} }
......
...@@ -32,6 +32,7 @@ import org.springframework.transaction.annotation.Transactional; ...@@ -32,6 +32,7 @@ import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -80,13 +81,21 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -80,13 +81,21 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
*/ */
@Override @Override
public List<BusinessListVo> selectBusinessInfoList(BusinessListDto dto) { public List<BusinessListVo> selectBusinessInfoList(BusinessListDto dto) {
//userId不传值,就查询全部门项目 List<BusinessListVo> othersList = new ArrayList<>();
// if (dto.getUserId() == null) { //userId不传值,就查询全部他人可见项目+自己的
// Long deptId = SecurityUtils.getLoginUser().getDeptId(); if (dto.getUserId() == null) {
// if (deptId == null) throw new BaseException("请登录"); Long userId = SecurityUtils.getLoginUser().getUserId();
// dto.setDeptId(deptId.intValue()); if (userId == null) throw new BaseException("请登录");
// } dto.setOthers(userId.intValue());
return businessInfoMapper.selectBusinessInfoList(dto); //查询他人可见项目
othersList = businessInfoMapper.selectBusinessInfoList(dto);
}
dto.setOthers(null);
//查询自己参与的项目
List<BusinessListVo> businessList = businessInfoMapper.selectBusinessInfoList(dto);
businessList.addAll(othersList);
return businessList;
} }
@Override @Override
......
...@@ -131,8 +131,8 @@ ...@@ -131,8 +131,8 @@
<if test="userId != null"> <if test="userId != null">
and bu.user_id = #{userId} and bu.user_id = #{userId}
</if> </if>
<if test="userId == null"> <if test="others != null">
and i.is_private = 1 and bu.user_id != #{others} and i.is_private = 1
</if> </if>
<if test="provinceId != null and provinceId.size > 0 and cityId == null and districtId == null"> <if test="provinceId != null and provinceId.size > 0 and cityId == null and districtId == null">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment