Commit 1fa13ff5 authored by huangjie's avatar huangjie
parents 18f3c4a4 9124a0ec
...@@ -44,6 +44,8 @@ public class CompanySearchController { ...@@ -44,6 +44,8 @@ public class CompanySearchController {
public AjaxResult page(@RequestBody ComposeQueryDto compose) { public AjaxResult page(@RequestBody ComposeQueryDto compose) {
compose.getPage().setPage(compose.getPageNum()); compose.getPage().setPage(compose.getPageNum());
compose.getPage().setLimit(compose.getPageSize()); compose.getPage().setLimit(compose.getPageSize());
compose.getPage().setField(compose.getField());
compose.getPage().setOrder(compose.getOrder());
return opportunityRadarService.enterprisePage(compose); return opportunityRadarService.enterprisePage(compose);
} }
} }
...@@ -74,7 +74,6 @@ public class RegionalEconomicDataController { ...@@ -74,7 +74,6 @@ public class RegionalEconomicDataController {
public AjaxResult location(@RequestBody OpRegionalLocalDto vo, HttpServletRequest request){ public AjaxResult location(@RequestBody OpRegionalLocalDto vo, HttpServletRequest request){
String ip = IpUtil.getIpAddr(request); String ip = IpUtil.getIpAddr(request);
vo.setIp(ip); vo.setIp(ip);
log.info("location====================================>" +ip);
return economicService.location(vo); return economicService.location(vo);
} }
......
...@@ -34,6 +34,10 @@ public class BasePage { ...@@ -34,6 +34,10 @@ public class BasePage {
*/ */
private Integer pageMaxSize; private Integer pageMaxSize;
private String field;
private String order;
public Integer getPageIndex() { public Integer getPageIndex() {
return pageNum; return pageNum;
...@@ -74,6 +78,22 @@ public class BasePage { ...@@ -74,6 +78,22 @@ public class BasePage {
this.pageIndex = pageNum; this.pageIndex = pageNum;
} }
public String getField() {
return field;
}
public void setField(String field) {
this.field = field;
}
public String getOrder() {
return order;
}
public void setOrder(String order) {
this.order = order;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -270,6 +270,9 @@ select { ...@@ -270,6 +270,9 @@ select {
cursor: pointer; cursor: pointer;
position: relative; position: relative;
} }
.select-popper .select-active{
color: #0381fa;
}
.content_item .select-popper:hover .select-caret { .content_item .select-popper:hover .select-caret {
color: #0074E5; color: #0074E5;
......
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
}, },
methods: { methods: {
async logout() { async logout() {
this.$confirm('确定注销并退出系统吗?', '提示', { this.$confirm('确定退出系统吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
......
...@@ -99,7 +99,7 @@ export const constantRoutes = [ ...@@ -99,7 +99,7 @@ export const constantRoutes = [
path: '/enterprise/:id', path: '/enterprise/:id',
component: () => import('@/views/detail/party-a/index'), component: () => import('@/views/detail/party-a/index'),
name: 'PartyA', name: 'PartyA',
meta: { title: '甲方详情' }, meta: { title: '甲方详情', icon: 'enterprise' },
} }
] ]
}, },
...@@ -113,7 +113,7 @@ export const constantRoutes = [ ...@@ -113,7 +113,7 @@ export const constantRoutes = [
path: '/company/:id', path: '/company/:id',
component: () => import('@/views/detail/party-b/index'), component: () => import('@/views/detail/party-b/index'),
name: 'Company', name: 'Company',
meta: { title: '方详情' } meta: { title: '方详情' }
} }
] ]
}, },
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<!-- 输入框 --> <!-- 输入框 -->
<template v-if="form.type==3"> <template v-if="form.type==3">
<div class="cooperate-name"> <div class="cooperate-name">
<el-input @focus="clickFocus('detailFocus'+i)" @blur="clickFocus('detailFocus'+i)" v-model="form.value" :placeholder="form.placeholder"></el-input> <el-input @focus="clickFocus('detailFocus'+i)" @blur="clickFocus('detailFocus'+i)" v-model="form.value" :placeholder="form.placeholder" :style="form.width?'width:'+form.width+'px':'width:180px'"></el-input>
<span :id="'detailFocus'+i" @click="changeSelect">搜索</span> <span :id="'detailFocus'+i" @click="changeSelect">搜索</span>
</div> </div>
</template> </template>
...@@ -197,7 +197,6 @@ export default { ...@@ -197,7 +197,6 @@ export default {
::v-deep .el-input__inner { ::v-deep .el-input__inner {
border-right: 0; border-right: 0;
border-radius: 2px 0 2px 0; border-radius: 2px 0 2px 0;
width: 180px;
} }
} }
.fromTime{ .fromTime{
......
...@@ -28,14 +28,14 @@ ...@@ -28,14 +28,14 @@
prefix-icon="fromTime-icon" prefix-icon="fromTime-icon"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="至" range-separator="至"
start-placeholder="开始月份" start-placeholder="开始日期"
end-placeholder="结束月份"> end-placeholder="结束日期">
</el-date-picker> </el-date-picker>
</template> </template>
<!-- 输入框 --> <!-- 输入框 -->
<template v-if="form.type==3"> <template v-if="form.type==3">
<div class="cooperate-name"> <div class="cooperate-name">
<el-input clearable @clear="changeSelect" @focus="clickFocus('focus'+i)" @blur="clickFocus('focus'+i)" v-model="form.value" :placeholder="form.placeholder"></el-input> <el-input clearable @clear="changeSelect" @focus="clickFocus('focus'+i)" @blur="clickFocus('focus'+i)" v-model="form.value" :placeholder="form.placeholder" :style="form.width?'width:'+form.width+'px':'width:180px'"></el-input>
<span :id="'focus'+i" @click="changeSelect">搜索</span> <span :id="'focus'+i" @click="changeSelect">搜索</span>
</div> </div>
</template> </template>
...@@ -230,7 +230,6 @@ export default { ...@@ -230,7 +230,6 @@ export default {
} }
::v-deep .el-input__inner { ::v-deep .el-input__inner {
border-radius: 2px 0 2px 0; border-radius: 2px 0 2px 0;
width: 180px;
border: 1px solid #D9D9D9; border: 1px solid #D9D9D9;
border-right: 0; border-right: 0;
} }
......
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
<div class="header-container"> <div class="header-container">
<div class="bread-crumb"> <div class="bread-crumb">
<el-breadcrumb separator="/"> <el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/enterpriseData' }">企业数据</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
<el-breadcrumb-item :to="{ path: '/enterpriseData?tag=1' }">查企业</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: fromPath }" v-if="fromName">{{fromName}}</el-breadcrumb-item>
<!-- <el-breadcrumb-item :to="{ path: '/enterpriseData?tag=1' }">查企业</el-breadcrumb-item>-->
<el-breadcrumb-item>{{companyInfo.simpleName || companyInfo.companyName || '--'}}</el-breadcrumb-item> <el-breadcrumb-item>{{companyInfo.simpleName || companyInfo.companyName || '--'}}</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
</div> </div>
...@@ -17,7 +18,7 @@ ...@@ -17,7 +18,7 @@
<script> <script>
export default { export default {
name: 'Header', name: 'Header',
props: ['companyId', 'companyInfo'], props: ['companyId', 'companyInfo', 'fromPath', 'fromName'],
data() { data() {
return { return {
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<el-table-column <el-table-column
v-if="isIndex" v-if="isIndex"
label="序号" label="序号"
width="50" :width="flexWidth(tableData)"
align="left" align="left"
:fixed="indexFixed" :fixed="indexFixed"
:resizable="false"> :resizable="false">
...@@ -112,7 +112,6 @@ export default { ...@@ -112,7 +112,6 @@ export default {
}, },
data() { data() {
return { return {
} }
}, },
methods:{ methods:{
...@@ -124,6 +123,14 @@ export default { ...@@ -124,6 +123,14 @@ export default {
}, },
sortChange(e){ sortChange(e){
this.$emit('sort-change',e) this.$emit('sort-change',e)
},
flexWidth(tableData) {
let currentMax = this.queryParams.pageNum*this.queryParams.pageSize - this.queryParams.pageSize + tableData.length, wdth = 50
// return currentMax.toString().length*25 + 'px'
if(currentMax.toString().length>3){
wdth = wdth + (currentMax.toString().length-3)*10
}
return wdth+'px'
} }
} }
} }
...@@ -136,4 +143,36 @@ export default { ...@@ -136,4 +143,36 @@ export default {
/*::v-deep .el-table__fixed{ /*::v-deep .el-table__fixed{
height: calc(100% - 16px) !important; height: calc(100% - 16px) !important;
}*/ }*/
::v-deep .el-table__row{
&:nth-child(even){
background-color: #F9FCFF;
.more{
background: #F8FBFF;
span{
color: #0081FF;
}
}
}
&:nth-child(odd){
.more{
span{
color: #0081FF;
}
}
}
}
::v-deep .el-table th.el-table__cell.is-leaf,::v-deep .el-table td.el-table__cell {
border-bottom: 1px solid #E6EAF1;
}
::v-deep .el-table--border .el-table__cell {
border-right: 1px solid #E6EAF1;
}
::v-deep .el-table__body tr.hover-row.current-row>td,::v-deep .el-table__body tr.hover-row.el-table__row--striped.current-row>td,::v-deep .el-table__body tr.hover-row.el-table__row--striped>td,::v-deep .el-table__body tr.hover-row>td{
background-color:#DCEBFF;
.more{
background: #DCEBFF;
}
}
</style> </style>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<!-- 弹窗关联项目 --> <!-- 弹窗关联项目 -->
<el-drawer <el-drawer
title="添加合作情况" title="添加合作情况"
size="40%" size="45%"
:visible.sync="drawer" :visible.sync="drawer"
:direction="direction" :direction="direction"
:with-header="false" :with-header="false"
...@@ -55,19 +55,19 @@ ...@@ -55,19 +55,19 @@
<div class="addhzqk_top"> <div class="addhzqk_top">
<div class="addhzqk_top_t"> <div class="addhzqk_top_t">
<div class="top_t_h1"> <div class="top_t_h1">
<img src="@/assets/images/economies/icon.png" />{{ info.companyName }} <img src="@/assets/images/economies/icon.png" />{{ companyInfo.companyName }}
</div> </div>
<div class="top_t_close"><i class="el-icon-close" @click="handleClose"></i></div> <div class="top_t_close"><i class="el-icon-close" @click="handleClose"></i></div>
</div> </div>
<div class="addhzqk_top_d"> <div class="addhzqk_top_d">
<div class="top_d_item"> <div class="top_d_item">
法定代表人:<span>{{ info.legalPerson }}</span> 法定代表人:<span>{{ companyInfo.corporatePerson }}</span>
</div> </div>
<div class="top_d_item"> <div class="top_d_item">
注册资本:<span>{{ info.registerCapital }}万</span> 注册资本:<span>{{ companyInfo.regCapital }}</span>
</div> </div>
<div class="top_d_item"> <div class="top_d_item">
注册地址:<span>{{ info.registerAddress }}</span> 注册地址:<span>{{ companyInfo.addressDetail }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
components: { components: {
Detail Detail
}, },
props: ['customerIds'], props: ['customerIds','companyInfo'],
data() { data() {
return { return {
ifEmpty:false, ifEmpty:false,
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
formData: [ formData: [
{ type: 1, fieldName: 'projectStage', value: '', placeholder: '项目阶段', options: []}, { type: 1, fieldName: 'projectStage', value: '', placeholder: '项目阶段', options: []},
{ type: 1, fieldName: 'status', value: '', placeholder: '项目状态', options: []}, { type: 1, fieldName: 'status', value: '', placeholder: '项目状态', options: []},
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入企业名称查询'}, { type: 3, fieldName: 'projectName', value: '', placeholder: '输入项目名称关键字搜索'},
], ],
stageOptions:[], stageOptions:[],
statusOptions:[], statusOptions:[],
...@@ -352,7 +352,7 @@ export default { ...@@ -352,7 +352,7 @@ export default {
}, },
//输入数字 //输入数字
number(value){ number(value){
this.addParam.investmentAmount = value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')//输入2位小数 this.addParam.investmentAmount = value.replace(/^\D*(\d*(?:\.\d{0,6})?).*$/g, '$1')//输入2位小数
}, },
//打开详情 //打开详情
clickDetail(id){ clickDetail(id){
......
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
pageSize: 20 pageSize: 20
}, },
formData: [ formData: [
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入合作项目/工程名称查询', options: []}, { type: 3, fieldName: 'keys', value: '', placeholder: '输入合作项目/工程名称查询', options: [], width: 260},
], ],
forData: [ forData: [
{label: '合作项目/工程名称', prop: 'dealTitle', width: '720', slot: true}, {label: '合作项目/工程名称', prop: 'dealTitle', width: '720', slot: true},
......
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
pageSize: 20 pageSize: 20
}, },
formData: [ formData: [
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入合作项目/工程名称查询', options: []}, { type: 3, fieldName: 'keys', value: '', placeholder: '输入合作项目/工程名称查询', options: [], width: 260},
], ],
forData: [ forData: [
{label: '合作项目/工程名称', prop: 'projectAllName', width: '720', fixed: true, slot: true}, {label: '合作项目/工程名称', prop: 'projectAllName', width: '720', fixed: true, slot: true},
......
<template> <template>
<div class="app-container part-container"> <div class="app-container part-container">
<Header :company-id="companyId" :companyInfo="companyInfo" v-if="companyId" /> <Header :company-id="companyId" :companyInfo="companyInfo" :fromPath="fromPath" :fromName="fromName" v-if="companyId" />
<div class="flex-box part-main"> <div class="flex-box part-main">
<div class="part-left"> <div class="part-left">
<side-bar @currentPath="showPartPage" :pathName="currentPath.pathName" :partBoxHeight="partBoxHeight" :customerId="customerId" /> <side-bar @currentPath="showPartPage" :pathName="currentPath.pathName" :partBoxHeight="partBoxHeight" :customerId="customerId" />
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<!-- 招标偏好 --> <!-- 招标偏好 -->
<Preference v-if="currentPath.pathName=='preference'" :customer-ids="customerId" /> <Preference v-if="currentPath.pathName=='preference'" :customer-ids="customerId" />
<!-- 合作情况 --> <!-- 合作情况 -->
<Cooperate v-if="currentPath.pathName=='cooperate'" :customer-ids="customerId" /> <Cooperate v-if="currentPath.pathName=='cooperate'" :customer-ids="customerId" :companyInfo="companyInfo" />
<!-- 决策链条 --> <!-- 决策链条 -->
<DecisionMaking v-if="currentPath.pathName=='decisionMaking'" :customer-ids="customerId" :companyInfo="companyInfo" /> <DecisionMaking v-if="currentPath.pathName=='decisionMaking'" :customer-ids="customerId" :companyInfo="companyInfo" />
<!-- 跟进记录 --> <!-- 跟进记录 -->
...@@ -147,9 +147,17 @@ export default { ...@@ -147,9 +147,17 @@ export default {
currentPath: { currentPath: {
pathName: 'overview' //默认展示页 pathName: 'overview' //默认展示页
}, },
partBoxHeight: null partBoxHeight: null,
fromPath: '',
fromName: ''
} }
}, },
beforeRouteEnter(to, from, next) {
next(vm => {
vm.fromPath = from.path
vm.fromName = from.meta.title
})
},
created() { created() {
if (this.$route.params.id) { // 获取companyId if (this.$route.params.id) { // 获取companyId
let companyId = this.$route.params.id let companyId = this.$route.params.id
......
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
{label: '专项债用作资本金(亿元)', prop: 'specialBondCapital', sortable: 'custom', descending: '19', ascending: '20', width: '200'} {label: '专项债用作资本金(亿元)', prop: 'specialBondCapital', sortable: 'custom', descending: '19', ascending: '20', width: '200'}
], ],
formData: [ formData: [
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: []}, { type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: [], width: 220},
], ],
//列表 //列表
tableLoading:false, tableLoading:false,
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
], ],
formData: [ formData: [
{ type: 4, fieldName: 'landUse', value: '', placeholder: '土地用途', options: []}, { type: 4, fieldName: 'landUse', value: '', placeholder: '土地用途', options: []},
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: []} { type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: [], width: 220}
], ],
//列表 //列表
tableLoading:false, tableLoading:false,
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
{label: '是否为民间推介项目', prop: 'isProjcet', width: '150', slot: true} {label: '是否为民间推介项目', prop: 'isProjcet', width: '150', slot: true}
], ],
formData: [ formData: [
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: []}, { type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: [], width: 220},
], ],
//列表 //列表
tableLoading:false, tableLoading:false,
......
...@@ -56,6 +56,7 @@ export default { ...@@ -56,6 +56,7 @@ export default {
}, },
forData: [ forData: [
{label: '项目名称', prop: 'projectName', minWidth: '320', slot: true}, {label: '项目名称', prop: 'projectName', minWidth: '320', slot: true},
{label: '发布日期', prop: 'pubdate', width: '110'},
{label: '金额(万元)', prop: '', children: [ {label: '金额(万元)', prop: '', children: [
{ label: '建安费暂估', prop: 'projectSafeAmount', width: '88px'}, { label: '建安费暂估', prop: 'projectSafeAmount', width: '88px'},
{ label: '勘察费暂估', prop: 'projectSurveyAmount', width: '88px'}, { label: '勘察费暂估', prop: 'projectSurveyAmount', width: '88px'},
...@@ -74,8 +75,7 @@ export default { ...@@ -74,8 +75,7 @@ export default {
{label: '分部分项', prop: 'projectSub', width: '130'}, {label: '分部分项', prop: 'projectSub', width: '130'},
{label: '项目级别', prop: 'projectLevel', width: '130'}, {label: '项目级别', prop: 'projectLevel', width: '130'},
{label: '评标办法', prop: 'bidAssessmentWay', width: '130'}, {label: '评标办法', prop: 'bidAssessmentWay', width: '130'},
{label: '项目属地', prop: 'province', width: '130', slot: true}, {label: '项目属地', prop: 'province', width: '130', slot: true}
{label: '发布日期', prop: 'pubdate', width: '130'}
], ],
formData: [ formData: [
{ type: 1, fieldName: 'projectType', value: '', placeholder: '项目类别', options: []}, { type: 1, fieldName: 'projectType', value: '', placeholder: '项目类别', options: []},
...@@ -131,6 +131,13 @@ export default { ...@@ -131,6 +131,13 @@ export default {
this.tableLoading = false this.tableLoading = false
if(res.code==200){ if(res.code==200){
this.tableData = res.rows this.tableData = res.rows
if(this.tableData&&this.tableData.length>0){
this.tableData.forEach(item => {
item.projectSafeAmount ? item.projectSafeAmount = parseFloat(parseFloat(item.projectSafeAmount).toFixed(4)) : ''
item.projectSurveyAmount ? item.projectSurveyAmount = parseFloat(parseFloat(item.projectSurveyAmount).toFixed(4)) : ''
item.projectEnsureAmount ? item.projectEnsureAmount = parseFloat(parseFloat(item.projectEnsureAmount).toFixed(4)) : ''
})
}
} }
this.tableDataTotal = res.total this.tableDataTotal = res.total
} }
......
<template> <template xmlns="http://www.w3.org/1999/html">
<div class="app-container detail-container"> <div class="app-container detail-container">
<el-tabs v-model="activeName" @tab-click="handleClick" class="detail-tab"> <el-tabs v-model="activeName" @tab-click="handleClick" class="detail-tab">
<el-tab-pane label="工商信息" name="first"></el-tab-pane> <el-tab-pane label="工商信息" name="first"></el-tab-pane>
...@@ -10,6 +10,22 @@ ...@@ -10,6 +10,22 @@
<template slot="provinceCode" slot-scope="scope"> <template slot="provinceCode" slot-scope="scope">
<span>{{showRegion(scope.data.provinceCode)}}</span> <span>{{showRegion(scope.data.provinceCode)}}</span>
</template> </template>
<template slot="term" slot-scope="scope">
<span v-if="scope.data.termStart&&scope.data.termEnd">{{ scope.data.termStart }} ~ {{ scope.data.termEnd }}</span>
<span v-else-if="scope.data.termStart&&!scope.data.termEnd">{{ scope.data.termStart }}</span>
<span v-else-if="!scope.data.termStart&&scope.data.termEnd">{{ scope.data.termEnd }}</span>
<span v-else>--</span>
</template>
<template slot="actualCapi" slot-scope="scope">
<span>
{{ scope.data.actualCapi?scope.data.actualCapi+'万元人民币':'--' }}
</span>
</template>
<template slot="colleguesNum" slot-scope="scope">
<span>
{{ scope.data.colleguesNum?scope.data.colleguesNum+'人':'--' }}
</span>
</template>
</info-table> </info-table>
<tables <tables
:tableLoading="tableLoading" :tableLoading="tableLoading"
...@@ -53,18 +69,18 @@ export default { ...@@ -53,18 +69,18 @@ export default {
{ name: '登记状态', prop: 'status' }, { name: '登记状态', prop: 'status' },
{ name: '成立日期', prop: 'startDate' }, { name: '成立日期', prop: 'startDate' },
{ name: '注册资本', prop: 'registCapi' }, { name: '注册资本', prop: 'registCapi' },
{ name: '实缴资本', prop: 'actualCapi' }, { name: '实缴资本', prop: 'actualCapi', slot: true },
{ name: '核准日期', prop: 'checkDate' }, { name: '核准日期', prop: 'checkDate' },
{ name: '组织机构代码', prop: 'orgNo' }, { name: '组织机构代码', prop: 'orgNo' },
{ name: '工商注册号', prop: 'regNo' }, { name: '工商注册号', prop: 'regNo' },
{ name: '纳税人识别号', prop: 'creditNo' }, { name: '纳税人识别号', prop: 'creditNo' },
{ name: '企业类型', prop: 'econKind' }, { name: '企业类型', prop: 'econKind' },
{ name: '营业期限', prop: 'termEnd' }, { name: '营业期限', prop: 'term', slot: true },
{ name: '纳税人资质', prop: 'qualification' }, { name: '纳税人资质', prop: 'qualification' },
{ name: '所属地区', prop: 'provinceCode', slot: true }, { name: '所属地区', prop: 'provinceCode', slot: true },
{ name: '登记机关', prop: 'belongOrg' }, { name: '登记机关', prop: 'belongOrg' },
{ name: '人员规模', prop: 'colleguesNum' }, { name: '人员规模', prop: 'colleguesNum', slot: true },
{ name: '参保人数', prop: 'colleguesNum' }, { name: '参保人数', prop: 'colleguesNum', slot: true },
{ name: '经营范围', prop: 'scope', style: true } { name: '经营范围', prop: 'scope', style: true }
], ],
forData: [ forData: [
......
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
this.tableLoading = false this.tableLoading = false
if(res.code==200){ if(res.code==200){
this.dialogVisible=true this.dialogVisible=true
this.ifClaim = true this.ifClaim = 1
} }
}else{ }else{
this.$message.warning('对不起,当前不能认领') this.$message.warning('对不起,当前不能认领')
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
}, },
//获取认领状态 //获取认领状态
getClaimStatus(){ getClaimStatus(){
this.ifClaim = this.companyInfo.regCapital this.ifClaim = this.companyInfo.claimStatus
}, },
handleWidth(){ handleWidth(){
if(this.companyInfo.introduction){ if(this.companyInfo.introduction){
......
...@@ -11,7 +11,12 @@ ...@@ -11,7 +11,12 @@
<el-table-column label="序号" width="55" align="left" fixed> <el-table-column label="序号" width="55" align="left" fixed>
<template slot-scope="scope">{{ holderParams.pageNum * holderParams.pageSize - holderParams.pageSize + scope.$index + 1 }}</template> <template slot-scope="scope">{{ holderParams.pageNum * holderParams.pageSize - holderParams.pageSize + scope.$index + 1 }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="stockName" min-width="140" label="股东名称"></el-table-column> <el-table-column min-width="140" label="股东名称">
<template slot-scope="scope">
<router-link :to="`/enterprise/${encodeStr(scope.row.stockId)}`" tag="a" class="a-link" v-if="scope.row.stockId&&scope.row.stockName" v-html="scope.row.stockName"></router-link>
<div v-else v-html="scope.row.stockName || '--'"></div>
</template>
</el-table-column>
<el-table-column prop="shouldCapiConv" label="应缴金额"></el-table-column> <el-table-column prop="shouldCapiConv" label="应缴金额"></el-table-column>
<el-table-column prop="stockPercent" label="持股比例"></el-table-column> <el-table-column prop="stockPercent" label="持股比例"></el-table-column>
<el-table-column prop="" label="法定代表人"> <el-table-column prop="" label="法定代表人">
......
...@@ -46,8 +46,8 @@ export default { ...@@ -46,8 +46,8 @@ export default {
{label: '列入日期', prop: 'inDate', width: '95'}, {label: '列入日期', prop: 'inDate', width: '95'},
{label: '做出决定机关(移入)', prop: 'department', width: '264'}, {label: '做出决定机关(移入)', prop: 'department', width: '264'},
{label: '移出经营异常名录原因', prop: 'outReason', width: '320'}, {label: '移出经营异常名录原因', prop: 'outReason', width: '320'},
{label: '移日期', prop: 'outDate', width: '95'}, {label: '移日期', prop: 'outDate', width: '95'},
{label: '做出决定机关(移)', prop: 'outDepartment', width: '264'} {label: '做出决定机关(移)', prop: 'outDepartment', width: '264'}
], ],
formData: [ formData: [
{ type: 4, fieldName: 'years', value: '', placeholder: '列入时间', options: []} { type: 4, fieldName: 'years', value: '', placeholder: '列入时间', options: []}
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<template slot="punishReason" slot-scope="scope"> <template slot="punishReason" slot-scope="scope">
<span :class="[isOverHiddenFlag(scope.data.width, showList, scope.index, 0, scope.row.punishReason)?'cell-span':'']" :style="{'-webkit-line-clamp': 5}"> <span :class="[isOverHiddenFlag(scope.data.width, showList, scope.index, 0, scope.row.punishReason)?'cell-span':'']" :style="{'-webkit-line-clamp': 5}">
<div v-html="scope.row.punishReason"></div> <div v-html="scope.row.punishReason"></div>
<span v-if="isOverHiddenFlag(scope.data.width, showList, scope.index, 0, scope.row.punishReason)" @click="changeShowAll(scope.index, 0)">...<span style="color: #0081FF;">更多</span></span> <span v-if="isOverHiddenFlag(scope.data.width, showList, scope.index, 0, scope.row.punishReason)" @click="changeShowAll(scope.index, 0)" class="more">...<span>更多</span></span>
</span> </span>
</template> </template>
</tables> </tables>
......
...@@ -185,11 +185,11 @@ ...@@ -185,11 +185,11 @@
</p> </p>
<p class="list-content-text"> <p class="list-content-text">
<span>预计招标时间:</span> <span>预计招标时间:</span>
<span>{{item.issueTimestamp||'--'}}</span> <span>{{item.planTenderDateStart||'--'}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text">
<span>来源网站:</span> <span>来源网站:</span>
<span >{{item.issueTimestamp||'--'}}</span> <span >{{item.sourceName||'--'}}</span>
</p> </p>
......
...@@ -1057,8 +1057,6 @@ ...@@ -1057,8 +1057,6 @@
reset() { reset() {
Object.assign(this.$data, this.$options.data.call(this)); //重置data Object.assign(this.$data, this.$options.data.call(this)); //重置data
this.init(); this.init();
this.$emit("reset");
this.token = getCookie("tokenNew");
}, },
init() { init() {
this.search(); this.search();
......
...@@ -234,15 +234,19 @@ ...@@ -234,15 +234,19 @@
<div class="list-content"> <div class="list-content">
<p class="list-content-text"> <p class="list-content-text">
<span>受让人:</span> <span>受让人:</span>
<router-link :to="'/company/' + encodeStr(item.id) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="item.companyName"></router-link> <span v-if="item.companyName">
<router-link :to="'/company/' + encodeStr(item.id) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="item.companyName"></router-link>
</span>
<span v-else>--</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text">
<span>成交金额:</span> <span>成交金额:</span>
<span>{{item.transactionPrice||'--'}}</span> <span>{{item.transactionPrice||'--'}}万元</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text">
<span>总面积:</span> <span>总面积:</span>
<span>{{item.acreage||'--'}}</span> <span>{{item.acreage||'--'}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text">
<span>合同签订:</span> <span>合同签订:</span>
...@@ -254,6 +258,10 @@ ...@@ -254,6 +258,10 @@
<span>土地用途:</span> <span>土地用途:</span>
<span >{{item.landUse||'--'}}</span> <span >{{item.landUse||'--'}}</span>
</p> </p>
<p class="list-content-text">
<span>行业分类:</span>
<span >{{item.industry||'--'}}</span>
</p>
<p class="list-content-text"> <p class="list-content-text">
<span>供应方式:</span> <span>供应方式:</span>
<span >{{item.supplyLandWay||'--'}}</span> <span >{{item.supplyLandWay||'--'}}</span>
...@@ -275,7 +283,8 @@ ...@@ -275,7 +283,8 @@
</p> </p>
<p class="list-content-text"> <p class="list-content-text">
<span>土地坐落:</span> <span>土地坐落:</span>
<span >{{item.landAddr||'--'}}</span> <span v-if="item.landAddr" v-html="item.landAddr"></span>
<span v-else>--</span>
</p> </p>
</div> </div>
</li> </li>
...@@ -562,7 +571,7 @@ ...@@ -562,7 +571,7 @@
searchDic(){ searchDic(){
api.searchDic().then(res=>{ api.searchDic().then(res=>{
this.landMarketIndustryList = res.landMarketIndustry; this.landMarketIndustryList = res.landMarketIndustry;
this.landUseOptions = res.data.landUse this.landUseOptions = res.landUse
}).catch(error=>{ }).catch(error=>{
}); });
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
工程类型{{jskBidNewsDto.projectType.length? jskBidNewsDto.projectType.length + "项": ""}} 工程类型{{jskBidNewsDto.projectType.length? jskBidNewsDto.projectType.length + "项": ""}}
<i class="el-icon-caret-bottom"></i> <i class="el-icon-caret-bottom"></i>
</span> </span>
<el-select v-model="jskBidNewsDto.projectType" class="select-multiple" multipleplaceholder="请选择"> <el-select v-model="jskBidNewsDto.projectType" class="select-multiple" multiple placeholder="请选择">
<el-option v-for="(item, i) in projectTypeList" :key="i":label="item" :value="item"> <el-option v-for="(item, i) in projectTypeList" :key="i":label="item" :value="item">
</el-option> </el-option>
</el-select> </el-select>
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
<div class="label">人员要求</div> <div class="label">人员要求</div>
<div class="content_right"> <div class="content_right">
<el-input class="ename_input" <el-input class="ename_input"
placeholder="请输入关键词句,如:建筑工程" v-model="jskBidNewsDto.personLimit" ></el-input> placeholder="请输入关键词句,如:一级建造师" v-model="jskBidNewsDto.personLimit" ></el-input>
<span class="land_content_wrap_label_tipspan"> <span class="land_content_wrap_label_tipspan">
<el-tooltip popper-class="explain_tooltip" content="根据输入的关键词全称进行匹配" <el-tooltip popper-class="explain_tooltip" content="根据输入的关键词全称进行匹配"
placement="bottom" effect="light"> placement="bottom" effect="light">
...@@ -882,7 +882,8 @@ ...@@ -882,7 +882,8 @@
created() { created() {
this.searchDic(); this.searchDic();
this.clickProvince(0,1); this.clickProvince(0,1);
this.bxproggSearch(); this.search();
this.changeDown(false)
}, },
mounted() { mounted() {
}, },
...@@ -1002,7 +1003,7 @@ ...@@ -1002,7 +1003,7 @@
} }
this.fieldText = this.fieldOptions[index].value; this.fieldText = this.fieldOptions[index].value;
this.fieldOptions[index].status = true; this.fieldOptions[index].status = true;
this.bxproggSearch(); this.search();
}, },
//项目级别 //项目级别
addressListfn() { addressListfn() {
...@@ -1431,12 +1432,12 @@ ...@@ -1431,12 +1432,12 @@
handleCurrentChange(e){ handleCurrentChange(e){
this.page = e; this.page = e;
this.jump1(); this.jump1();
this.bxproggSearch(e, this.limit); this.search(e, this.limit);
}, },
handleSizeChange(e){ handleSizeChange(e){
this.limit = e; this.limit = e;
this.jump1(); this.jump1();
this.bxproggSearch(this.page, e); this.search(this.page, e);
}, },
jump1() { jump1() {
// 用 class="d_jump" 添加锚点 // 用 class="d_jump" 添加锚点
...@@ -1489,10 +1490,10 @@ ...@@ -1489,10 +1490,10 @@
}, },
lowerRateClick() { lowerRateClick() {
this.bxproggSearch(); this.search();
}, },
bxproggSearch(page, limit,exportFlag){ search(page, limit,exportFlag){
// return false; // return false;
if (!page) { if (!page) {
this.page = 1; this.page = 1;
...@@ -1504,6 +1505,7 @@ ...@@ -1504,6 +1505,7 @@
this.reloadPage(); this.reloadPage();
} }
var data = JSON.parse(JSON.stringify(this.jskBidNewsDto)); var data = JSON.parse(JSON.stringify(this.jskBidNewsDto));
console.log(data);
if(this.projectTerritoryId.length >0){ if(this.projectTerritoryId.length >0){
for (var i=0;i<this.projectTerritoryId.length;i++){ for (var i=0;i<this.projectTerritoryId.length;i++){
...@@ -1561,8 +1563,17 @@ ...@@ -1561,8 +1563,17 @@
reset(){ reset(){
Object.assign(this.$data, this.$options.data.call(this)); //重置data Object.assign(this.$data, this.$options.data.call(this)); //重置data
// this.clickProvince(0,1); // this.clickProvince(0,1);
this.bxproggSearch(); this.search();
}, },
changeDown(isHeight){
if(isHeight){
this.isHeight = false
this.maxHeight = 'auto'
}else{
this.isHeight = true
this.maxHeight = '36px'
}
},
provinceChange(e){ provinceChange(e){
let obj='' let obj=''
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<el-input class="ename_input" <el-input class="ename_input"
placeholder="请输入项目名称关键字" v-model="projectName" ></el-input> placeholder="请输入项目名称关键字" v-model="projectName" ></el-input>
<template v-if="projectName"> <template v-if="projectName">
<span v-for=" (item,k) in enameQueryTypeList" :key="k" style="margin-right: 24px;"> <span v-for=" (item,k) in nameTypeList" :key="k" style="margin-right: 24px;">
<el-radio v-model="enameQueryType" :label="item.key">{{item.value}}</el-radio> <el-radio v-model="nameType" :label="item.key">{{item.value}}</el-radio>
</span> </span>
</template> </template>
</div> </div>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
项目类型{{projectType.length? projectType.length + "项": ""}} 项目类型{{projectType.length? projectType.length + "项": ""}}
<i class="el-icon-caret-bottom"></i> <i class="el-icon-caret-bottom"></i>
</span> </span>
<el-select v-model="projectType" class="select-multiple" multipleplaceholder="请选择"> <el-select v-model="projectType" class="select-multiple" multiple placeholder="请选择">
<el-option v-for="(item, i) in specialBondProjectType" :key="i":label="item" :value="item"> <el-option v-for="(item, i) in specialBondProjectType" :key="i":label="item" :value="item">
</el-option> </el-option>
</el-select> </el-select>
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
</div> </div>
<div class="list-content"> <div class="list-content">
<p class="list-content-text" v-if="item.projectType"> <p class="list-content-text" v-if="item.projectType&&item.projectType!='空白'">
<span>项目类型:</span> <span>项目类型:</span>
<span>{{item.projectType}}</span> <span>{{item.projectType}}</span>
</p> </p>
...@@ -116,27 +116,27 @@ ...@@ -116,27 +116,27 @@
<span>项目总投资(亿):</span> <span>项目总投资(亿):</span>
<span>{{item.projectTotalInvestment}}</span> <span>{{item.projectTotalInvestment}}</span>
</p> </p>
<p class="list-content-text" v-if="item.specialCapital"> <p class="list-content-text" v-if="item.projectCapital">
<span>项目资本金(亿):</span> <span>项目资本金(亿):</span>
<span>{{item.projectCapital}}</span> <span>{{item.projectCapital}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text" v-if="item.specialBondCapital">
<span>专项债金额(亿):</span> <span>专项债金额(亿):</span>
<span>{{item.specialCapital}}</span> <span>{{item.specialBondCapital}}</span>
</p> </p>
</div> </div>
<div class="list-content"> <div class="list-content">
<p class="list-content-text" v-if="item.specialCapital"> <p class="list-content-text" v-if="item.projectEntity">
<span>项目主体:</span> <span>项目主体:</span>
<span >{{item.projectEntity}}</span> <span v-html="item.projectEntity"></span>
</p> </p>
<p class="list-content-text" v-if="item.chargeDepartment"> <p class="list-content-text" v-if="item.chargeDepartment">
<span>主管部门:</span> <span>主管部门:</span>
<span >{{item.chargeDepartment}}</span> <span v-html="item.chargeDepartment"></span>
</p> </p>
<p class="list-content-text" v-if="item.piu"> <p class="list-content-text" v-if="item.piu">
<span>实施单位:</span> <span>实施单位:</span>
<span >{{item.piu}}</span> <span v-html="item.piu"></span>
</p> </p>
</div> </div>
</li> </li>
...@@ -171,20 +171,18 @@ ...@@ -171,20 +171,18 @@
return { return {
encodeStr, encodeStr,
projectName:'', projectName:'',
enameQueryTypeList: [{ nameTypeList: [{
key: 'and', key: 'like',
status: false, status: false,
value: '模糊搜索', value: '模糊搜索',
keyid: 'businessScope'
}, },
{ {
key: 'or', key: 'match',
status: true, status: true,
value: '精准匹配', value: '精准匹配',
keyid: 'businessScope'
}, },
], ],
enameQueryType: 'or', nameType: 'match',
projectEntity:'', projectEntity:'',
countTypelist: [{ countTypelist: [{
key: '1', key: '1',
...@@ -201,7 +199,7 @@ ...@@ -201,7 +199,7 @@
], ],
chargeDepartment: { chargeDepartment: {
key: '3', key: '3',
value: '实施单位' value: '项目主体'
}, },
addressList: [], addressList: [],
addressType: [], addressType: [],
...@@ -213,7 +211,7 @@ ...@@ -213,7 +211,7 @@
specialBondProjectType: [ specialBondProjectType: [
], ],
projectTypeText: ['不限'], projectTypeText: ['不限'],
projectType:['不限'], projectType:[],
arrList:[], arrList:[],
pageFlag:true, pageFlag:true,
...@@ -226,11 +224,14 @@ ...@@ -226,11 +224,14 @@
} }
}, },
created() { created() {
this.addressListfn(); this.init();
this.searchDic();
this.search();
}, },
methods: { methods: {
init(){
this.addressListfn();
this.searchDic();
this.search();
},
searchDic(){ searchDic(){
api.searchDic().then(res=>{ api.searchDic().then(res=>{
this.specialBondProjectType=res.specialBondProjectType; this.specialBondProjectType=res.specialBondProjectType;
...@@ -444,7 +445,7 @@ ...@@ -444,7 +445,7 @@
if(this.projectName){ if(this.projectName){
params.specialBondProjectDto['projectName']=this.projectName; params.specialBondProjectDto['projectName']=this.projectName;
params.specialBondProjectDto['enameQueryType']=this.enameQueryType; params.specialBondProjectDto['nameType']=this.nameType;
} }
if(this.projectEntity){ if(this.projectEntity){
...@@ -534,7 +535,8 @@ ...@@ -534,7 +535,8 @@
return this.hasValue; return this.hasValue;
}, },
reset(){ reset(){
Object.assign(this.$data, this.$options.data.call(this)); //重置data
this.init();
} }
} }
} }
......
...@@ -19,6 +19,10 @@ public class CustomerBusinessSearchDto implements Serializable { ...@@ -19,6 +19,10 @@ public class CustomerBusinessSearchDto implements Serializable {
* 企业id * 企业id
*/ */
private Long userId; private Long userId;
/**
* 项目名称
*/
private String projectName;
/** /**
* 项目阶段 * 项目阶段
*/ */
......
...@@ -130,5 +130,10 @@ public class BusinessBrowseVo { ...@@ -130,5 +130,10 @@ public class BusinessBrowseVo {
*/ */
private Integer fileCount; private Integer fileCount;
/**
* 是否创建人(1 是,0 否)
*/
private Integer isFounder;
} }
...@@ -56,7 +56,10 @@ public class EnterpriseService { ...@@ -56,7 +56,10 @@ public class EnterpriseService {
companyData.put("claimStatus", 0); companyData.put("claimStatus", 0);
companyData.put("uipId", null); companyData.put("uipId", null);
Map<String, Object> uipMap = dskOpenApiUtil.requestBody("/operate/enterprise/financial", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = BeanUtil.beanToMap(body, false, false);
map.put("cid", body.getCompanyId());
Map<String, Object> uipMap = dskOpenApiUtil.requestBody("/operate/enterprise/financial", map);
Integer uipCode = MapUtils.getInteger(uipMap, "code", 300); Integer uipCode = MapUtils.getInteger(uipMap, "code", 300);
if (200 != uipCode) return R.ok(companyData); if (200 != uipCode) return R.ok(companyData);
......
package com.dsk.system.mapper; package com.dsk.system.mapper;
import com.dsk.common.core.domain.entity.BusinessUser; import com.dsk.common.core.domain.entity.BusinessUser;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
/** /**
...@@ -65,4 +67,11 @@ public interface BusinessUserMapper ...@@ -65,4 +67,11 @@ public interface BusinessUserMapper
* @return * @return
*/ */
String selectCreatorByBusinessId(Integer businessId); String selectCreatorByBusinessId(Integer businessId);
/**
* 查询是否为项目的创建人
* @param businessId
* @return
*/
Integer selectFounder(@Param("businessId") Integer businessId,@Param("userId") Long userId);
} }
...@@ -2,6 +2,7 @@ package com.dsk.system.service.impl; ...@@ -2,6 +2,7 @@ package com.dsk.system.service.impl;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil;
import com.dsk.common.config.RuoYiConfig; import com.dsk.common.config.RuoYiConfig;
import com.dsk.common.constant.HttpStatus; import com.dsk.common.constant.HttpStatus;
import com.dsk.common.core.domain.AjaxResult; import com.dsk.common.core.domain.AjaxResult;
...@@ -70,7 +71,8 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -70,7 +71,8 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
@Override @Override
public BusinessInfo getConstruction(Integer id) { public BusinessInfo getConstruction(Integer id) {
return businessInfoMapper.getConstruction(id); BusinessInfo businessInfo =businessInfoMapper.getConstruction(id);
return ObjectUtil.isEmpty(businessInfo) ? new BusinessInfo() : businessInfo;
} }
/** /**
...@@ -89,7 +91,6 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -89,7 +91,6 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
dto.setOthers(userId.intValue()); dto.setOthers(userId.intValue());
//查询他人可见项目 //查询他人可见项目
othersList = businessInfoMapper.selectBusinessInfoList(dto); othersList = businessInfoMapper.selectBusinessInfoList(dto);
} }
dto.setOthers(null); dto.setOthers(null);
//查询自己参与的项目 //查询自己参与的项目
...@@ -103,9 +104,14 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -103,9 +104,14 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
BusinessBrowseVo businessBrowseVo = new BusinessBrowseVo(); BusinessBrowseVo businessBrowseVo = new BusinessBrowseVo();
//查询项目基本信息 //查询项目基本信息
BusinessInfo businessInfo = businessInfoMapper.selectBusinessInfoById(businessId); BusinessInfo businessInfo = businessInfoMapper.selectBusinessInfoById(businessId);
BeanUtil.copyProperties(businessInfo, businessBrowseVo); if(ObjectUtil.isNotEmpty(businessInfo)) BeanUtil.copyProperties(businessInfo, businessBrowseVo);
//商务团队 //商务团队
businessBrowseVo.setTeam(businessUserMapper.selectCreatorByBusinessId(businessId)); businessBrowseVo.setTeam(businessUserMapper.selectCreatorByBusinessId(businessId));
//查询是否是项目创建人
Long userId = SecurityUtils.getLoginUser().getUserId();
if (userId == null) throw new BaseException("请登录");
Integer founder = businessUserMapper.selectFounder(businessId, userId);
businessBrowseVo.setIsFounder(founder == null ? 0 : founder);
//查询项目标签 //查询项目标签
businessBrowseVo.setLabelList(businessLabelMapper.selectBusinessLabelList(new BusinessLabel(businessId)).stream().map(p -> p.getLabel()).collect(Collectors.toList())); businessBrowseVo.setLabelList(businessLabelMapper.selectBusinessLabelList(new BusinessLabel(businessId)).stream().map(p -> p.getLabel()).collect(Collectors.toList()));
//相关数据统计 //相关数据统计
......
...@@ -388,6 +388,7 @@ ...@@ -388,6 +388,7 @@
from business_info bi from business_info bi
left join business_user bu on bi.id = bu.business_id left join business_user bu on bi.id = bu.business_id
where bi.customer_id = #{customerId} and (bu.user_id = #{userId} or bi.is_private = 1) where bi.customer_id = #{customerId} and (bu.user_id = #{userId} or bi.is_private = 1)
<if test="projectName != null and projectName != '' "> and bi.project_name like concat('%',#{projectName},'%') </if>
<if test="projectStage != null and projectStage != '' "> and bi.project_stage = #{projectStage}</if> <if test="projectStage != null and projectStage != '' "> and bi.project_stage = #{projectStage}</if>
<if test="status != null "> and bi.status = #{status}</if> <if test="status != null "> and bi.status = #{status}</if>
order by bi.create_time desc order by bi.create_time desc
......
...@@ -41,6 +41,12 @@ ...@@ -41,6 +41,12 @@
where bu.is_founder = 1 where bu.is_founder = 1
and i.id = #{BusinessId} and i.id = #{BusinessId}
</select> </select>
<select id="selectFounder" resultType="java.lang.Integer">
select is_founder
from business_user
where business_id = #{businessId}
and user_id = #{userId}
</select>
<insert id="insertBusinessUser" parameterType="com.dsk.common.core.domain.entity.BusinessUser" useGeneratedKeys="true" keyProperty="id"> <insert id="insertBusinessUser" parameterType="com.dsk.common.core.domain.entity.BusinessUser" useGeneratedKeys="true" keyProperty="id">
insert into business_user insert into business_user
......
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