Commit 46f1be71 authored by huangjie's avatar huangjie
parents 42097f3c 5f0f2b4b
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<tags-view /> <tags-view />
</div> </div>
<div ref="rightMenu" class="flex-box right-menu"> <div ref="rightMenu" class="flex-box right-menu">
<!--<div class="menu-bells"><img src="@/assets/images/message.png"><i /></div>--> <!-- <div class="menu-bells"><img src="@/assets/images/message.png"><i /></div>-->
<i class="menu-line" /> <!-- <i class="menu-line" />-->
<el-dropdown class="avatar-container" trigger="hover"> <el-dropdown class="avatar-container" trigger="hover">
<div class="flex-box avatar-wrapper"> <div class="flex-box avatar-wrapper">
<img v-if="avatar" class="pic-avatar" :src="avatar"> <img v-if="avatar" class="pic-avatar" :src="avatar">
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<el-breadcrumb separator="/"> <el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
<el-breadcrumb-item :to="{ path: fromPath }" v-if="fromName">{{fromName}}</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: fromPath }" v-if="fromName">{{fromName}}</el-breadcrumb-item>
<el-breadcrumb-item v-if="cooDetail"><el-link :underline="false" @click="cooperateList">合作情况</el-link></el-breadcrumb-item>
<!-- <el-breadcrumb-item :to="{ path: '/enterpriseData?tag=1' }">查企业</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>
...@@ -18,7 +19,7 @@ ...@@ -18,7 +19,7 @@
<script> <script>
export default { export default {
name: 'Header', name: 'Header',
props: ['companyId', 'companyInfo', 'fromPath', 'fromName'], props: ['companyId', 'companyInfo', 'fromPath', 'fromName', 'cooDetail'],
data() { data() {
return { return {
} }
...@@ -26,6 +27,10 @@ export default { ...@@ -26,6 +27,10 @@ export default {
created() { created() {
}, },
methods: { methods: {
// 跳转到企业详情合作情况
cooperateList(){
this.$emit('close-detail')
},
} }
} }
</script> </script>
......
...@@ -146,14 +146,14 @@ export default { ...@@ -146,14 +146,14 @@ export default {
components: { components: {
Detail Detail
}, },
props: ['customerIds','companyInfo'], props: ['customerIds','companyInfo','cooDetail'],
data() { data() {
return { return {
ifEmpty:false, ifEmpty:false,
queryParams: { queryParams: {
customerId: this.customerIds, customerId: this.customerIds,
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 20
}, },
forData: [ forData: [
{label: '项目名称', prop: 'projectName', slot: true}, {label: '项目名称', prop: 'projectName', slot: true},
...@@ -222,6 +222,11 @@ export default { ...@@ -222,6 +222,11 @@ export default {
isDetailId: false, isDetailId: false,
} }
}, },
watch:{
cooDetail(newVal, oldVal){
this.isDetailId = newVal
}
},
created() { created() {
this.list() this.list()
this.customerInfos() this.customerInfos()
...@@ -301,10 +306,6 @@ export default { ...@@ -301,10 +306,6 @@ export default {
if (value.length>=2){ if (value.length>=2){
let param = { let param = {
projectName:value, projectName:value,
// page:{
// limit:20,
// page:1
// }
} }
queryProject(JSON.stringify(param)).then(result=>{ queryProject(JSON.stringify(param)).then(result=>{
if(result.code != 200) if(result.code != 200)
...@@ -361,6 +362,7 @@ export default { ...@@ -361,6 +362,7 @@ export default {
clickDetail(id){ clickDetail(id){
this.detailId = id this.detailId = id
this.isDetailId = true this.isDetailId = true
this.$emit('detail')
}, },
//关闭详情 //关闭详情
closeDetail(){ closeDetail(){
...@@ -369,7 +371,7 @@ export default { ...@@ -369,7 +371,7 @@ export default {
}, },
// 转科学计算 // 转科学计算
numbers(v){ numbers(v){
return new Number(v); return Number(v);
} }
} }
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
queryParams:{ queryParams:{
customerId:this.customerIds, customerId:this.customerIds,
pageNum:1, pageNum:1,
pageSize:10, pageSize:20,
}, },
forData: [ forData: [
{label: '姓名', prop: 'name', width: '124'}, {label: '姓名', prop: 'name', width: '124'},
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
{label: '公司/机关', prop: 'position', width: '268'}, {label: '公司/机关', prop: 'position', width: '268'},
{label: '职位', prop: 'workUnit', width: '110'}, {label: '职位', prop: 'workUnit', width: '110'},
{label: '联系方式', prop: 'contactInformation', width: '105'}, {label: '联系方式', prop: 'contactInformation', width: '105'},
{label: '内部维护人', prop: 'updateBy', width: '88'}, {label: '内部维护人', prop: 'updateBy', width: '100'},
{label: '备注', prop: 'remark'}, {label: '备注', prop: 'remark'},
], ],
addRorm: { addRorm: {
......
<template> <template>
<div class="app-container part-container"> <div class="app-container part-container">
<Header :company-id="companyId" :companyInfo="companyInfo" :fromPath="fromPath" :fromName="fromName" v-if="companyId" /> <Header :company-id="companyId" :companyInfo="companyInfo" :fromPath="fromPath" :fromName="fromName" :cooDetail="cooDetail" v-if="companyId" @close-detail="closeDetail" />
<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" :companyInfo="companyInfo" /> <Cooperate v-if="currentPath.pathName=='cooperate'" :customer-ids="customerId" :companyInfo="companyInfo" :cooDetail="cooDetail" @detail="cooperateDetail" />
<!-- 决策链条 --> <!-- 决策链条 -->
<DecisionMaking v-if="currentPath.pathName=='decisionMaking'" :customer-ids="customerId" :companyInfo="companyInfo" /> <DecisionMaking v-if="currentPath.pathName=='decisionMaking'" :customer-ids="customerId" :companyInfo="companyInfo" />
<!-- 跟进记录 --> <!-- 跟进记录 -->
...@@ -149,13 +149,19 @@ export default { ...@@ -149,13 +149,19 @@ export default {
}, },
partBoxHeight: null, partBoxHeight: null,
fromPath: '', fromPath: '',
fromName: '' fromName: '',
cooDetail: false
} }
}, },
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
next(vm => { next(vm => {
vm.fromPath = from.path vm.fromPath = from.path
vm.fromName = from.meta.title vm.fromName = from.meta.title
if(from.name == 'CustomList'){
if (to.query.path){
vm.currentPath.pathName = to.query.path
}
}
}) })
}, },
created() { created() {
...@@ -173,14 +179,6 @@ export default { ...@@ -173,14 +179,6 @@ export default {
mounted() { mounted() {
}, },
activated(){ activated(){
if (this.$route.query.path) { // 获取跳转对应板块
this.currentPath.pathName = this.$route.query.path
}else{
this.currentPath.pathName = 'overview'
}
if (this.$route.query.customerId) { // 判断是否显示
this.customerId = this.$route.query.customerId
}
}, },
methods: { methods: {
showPartPage(e){ showPartPage(e){
...@@ -208,6 +206,12 @@ export default { ...@@ -208,6 +206,12 @@ export default {
erd.listenTo(partBox, element => { erd.listenTo(partBox, element => {
_this.partBoxHeight = partBox.offsetHeight _this.partBoxHeight = partBox.offsetHeight
}) })
},
cooperateDetail(){
this.cooDetail = true
},
closeDetail(){
this.cooDetail = false
} }
} }
} }
......
...@@ -57,8 +57,8 @@ export default { ...@@ -57,8 +57,8 @@ export default {
typeList:[ typeList:[
{name: '土地交易', pathName: 'landtransaction', ico: require("@/assets/images/detail/overview/clue_ico1.png"), count: 0, category:'global', field:'landInfo', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico1.png")}, {name: '土地交易', pathName: 'landtransaction', ico: require("@/assets/images/detail/overview/clue_ico1.png"), count: 0, category:'global', field:'landInfo', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico1.png")},
{name: '拟建项目', pathName: 'proposed', ico: require("@/assets/images/detail/overview/clue_ico2.png"), count: 0, category:'global', field:'proposedProject', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico2.png")}, {name: '拟建项目', pathName: 'proposed', ico: require("@/assets/images/detail/overview/clue_ico2.png"), count: 0, category:'global', field:'proposedProject', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico2.png")},
{name: '专项债项目', pathName: 'bond', ico: require("@//assets/images/detail/overview/clue_ico3.png"), count: 0, category:'xxx', field:'yy', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico3.png")}, {name: '专项债项目', pathName: 'bond', ico: require("@//assets/images/detail/overview/clue_ico3.png"), count: 0, category:'performance', field:'specialDebt', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico3.png")},
{name: '招标计划', pathName: 'biddingplan', ico: require("@/assets/images/detail/overview/clue_ico4.png"), count: 0, category:'xxx', field:'zz', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico4.png")}, {name: '招标计划', pathName: 'biddingplan', ico: require("@/assets/images/detail/overview/clue_ico4.png"), count: 0, category:'performance', field:'bidPlan', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico4.png")},
{name: '招标公告', pathName: 'announcement', ico: require("@/assets/images/detail/overview/clue_ico5.png"), count: 0, category:'business', field:'biddingAnnouncement', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico5.png")}, {name: '招标公告', pathName: 'announcement', ico: require("@/assets/images/detail/overview/clue_ico5.png"), count: 0, category:'business', field:'biddingAnnouncement', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico5.png")},
{name: '标讯Pro', pathName: 'tencent', ico: require("@/assets/images/detail/overview/clue_ico6.png"), count: 0, category:'business', field:'proCount', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico6.png")}, {name: '标讯Pro', pathName: 'tencent', ico: require("@/assets/images/detail/overview/clue_ico6.png"), count: 0, category:'business', field:'proCount', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico6.png")},
{name: '行政许可', pathName: 'administrative', ico: require("@/assets/images/detail/overview/clue_ico7.png"), count: 0, category:'business', field:'adminLicensing', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico7.png")}, {name: '行政许可', pathName: 'administrative', ico: require("@/assets/images/detail/overview/clue_ico7.png"), count: 0, category:'business', field:'adminLicensing', dis_ico: require("@/assets/images/detail/overview/clue_dis_ico7.png")},
...@@ -148,8 +148,8 @@ export default { ...@@ -148,8 +148,8 @@ export default {
this.typeList.forEach((item, index) => { this.typeList.forEach((item, index) => {
item.count = this.statistic[item.category]?this.statistic[item.category][item.field]:0 item.count = this.statistic[item.category]?this.statistic[item.category][item.field]:0
}) })
this.typeList[2].count = 10 //写死代表有数据,英文统计里面没这项 //this.typeList[2].count = 10 //写死代表有数据,英文统计里面没这项
this.typeList[3].count = 10 //写死代表有数据,英文统计里面没这项 //this.typeList[3].count = 10 //写死代表有数据,英文统计里面没这项
}, },
handleType(it, idx){ handleType(it, idx){
if(it.count){ if(it.count){
......
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
queryParams: { queryParams: {
cid: this.companyId,//382724726 cid: this.companyId,//382724726
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 20
}, },
forData: [ forData: [
{label: '列入原因', prop: 'inReason', width: '508'}, {label: '列入原因', prop: 'inReason', width: '508'},
......
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
queryParams: { queryParams: {
cid: this.companyId, //20734 cid: this.companyId, //20734
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 20
}, },
forData: [ forData: [
{label: '案由', prop: 'caseReason'}, {label: '案由', prop: 'caseReason'},
......
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
queryParams: { queryParams: {
cid: this.companyId,//5504335 cid: this.companyId,//5504335
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 20
}, },
forData: [ forData: [
{label: '失信被执行人行为具体情形', prop: 'executionDesc', width: '508', fixed: true}, {label: '失信被执行人行为具体情形', prop: 'executionDesc', width: '508', fixed: true},
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
queryParams: { queryParams: {
cid: this.companyId,//194738907 cid: this.companyId,//194738907
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 20
}, },
forData: [ forData: [
{label: '执行标的(元)', prop: 'amount', width: '140'}, {label: '执行标的(元)', prop: 'amount', width: '140'},
......
...@@ -47,7 +47,7 @@ export default { ...@@ -47,7 +47,7 @@ export default {
queryParams: { queryParams: {
cid: this.companyId,//5504335 cid: this.companyId,//5504335
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 20
}, },
forData: [ forData: [
{label: '案由', prop: 'causeAction', width: '240'}, {label: '案由', prop: 'causeAction', width: '240'},
......
...@@ -47,7 +47,7 @@ export default { ...@@ -47,7 +47,7 @@ export default {
queryParams: { queryParams: {
cid: this.companyId,//20734 cid: this.companyId,//20734
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 20
}, },
forData: [ forData: [
{label: '案由', prop: 'causeAction', width: '240', fixed: true}, {label: '案由', prop: 'causeAction', width: '240', fixed: true},
......
...@@ -47,7 +47,7 @@ export default { ...@@ -47,7 +47,7 @@ export default {
queryParams: { queryParams: {
cid: this.companyId, cid: this.companyId,
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 20
}, },
forData: [ forData: [
{label: '处罚原因', prop: 'punishReason', width: '508', slot: true, fixed: true}, {label: '处罚原因', prop: 'punishReason', width: '508', slot: true, fixed: true},
......
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
cid: this.companyId,//3068 cid: this.companyId,//3068
sort: 3, sort: 3,
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 20
}, },
forData: [ forData: [
{label: '项目名称', prop: 'projectName', width: '508', slot: true}, {label: '项目名称', prop: 'projectName', width: '508', slot: true},
......
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
platformImportance: [], platformImportance: [],
developmentZone: [], developmentZone: [],
pageNum: 1, pageNum: 1,
pageSize: 15 pageSize: 20
}, },
forData: [ forData: [
{label: '企业名称', prop: 'companyName', width: '369', slot: true}, {label: '企业名称', prop: 'companyName', width: '369', slot: true},
......
...@@ -4,9 +4,10 @@ ...@@ -4,9 +4,10 @@
<template v-if="!detailId"> <template v-if="!detailId">
<span>项目管理</span> <span>项目管理</span>
<span class="on" @click="tolist"> / 商机列表</span> <span class="on" @click="tolist"> / 商机列表</span>
</template>
<span class="on" v-else @click="cooperateList">合作情况</span>
<span> / 项目详情</span> <span> / 项目详情</span>
</template>
<!-- <span class="on" v-else @click="cooperateList">合作情况</span>-->
<!-- <span> / 项目详情</span>-->
</div> </div>
<div class="app-container" v-if="ProjectData"> <div class="app-container" v-if="ProjectData">
<el-card class="box-card noborder pad16 overflows"> <el-card class="box-card noborder pad16 overflows">
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
<script> <script>
import { updateUserPwd } from "@/api/system/user"; import { updateUserPwd } from "@/api/system/user";
import {removeToken} from "@/utils/auth";
import store from "@/store";
export default { export default {
data() { data() {
...@@ -56,6 +58,11 @@ export default { ...@@ -56,6 +58,11 @@ export default {
if (valid) { if (valid) {
updateUserPwd(this.user.oldPassword, this.user.newPassword).then(response => { updateUserPwd(this.user.oldPassword, this.user.newPassword).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
store.commit('SET_TOKEN', '')
store.commit('SET_ROLES', [])
store.commit('SET_PERMISSIONS', [])
removeToken()
location.href = '/index'
}); });
} }
}); });
......
package com.dsk.system.mapper; package com.dsk.system.mapper;
import com.dsk.common.core.domain.entity.BusinessBacklog; import com.dsk.common.core.domain.entity.BusinessBacklog;
import java.util.List; import java.util.List;
/** /**
...@@ -17,7 +18,7 @@ public interface BusinessBacklogMapper ...@@ -17,7 +18,7 @@ public interface BusinessBacklogMapper
* @param id 项目工作待办主键 * @param id 项目工作待办主键
* @return 项目工作待办 * @return 项目工作待办
*/ */
public BusinessBacklog selectBusinessBacklogById(Long id); public BusinessBacklog selectBusinessBacklogById(Integer id);
/** /**
* 查询项目工作待办列表 * 查询项目工作待办列表
......
package com.dsk.system.service; package com.dsk.system.service;
import java.util.List;
import com.dsk.common.core.domain.entity.BusinessBacklog; import com.dsk.common.core.domain.entity.BusinessBacklog;
import java.util.List;
/** /**
* 项目工作待办Service接口 * 项目工作待办Service接口
* *
...@@ -17,7 +18,7 @@ public interface IBusinessBacklogService ...@@ -17,7 +18,7 @@ public interface IBusinessBacklogService
* @param id 项目工作待办主键 * @param id 项目工作待办主键
* @return 项目工作待办 * @return 项目工作待办
*/ */
public BusinessBacklog selectBusinessBacklogById(Long id); public BusinessBacklog selectBusinessBacklogById(Integer id);
/** /**
* 查询项目工作待办列表 * 查询项目工作待办列表
......
package com.dsk.system.service.impl; package com.dsk.system.service.impl;
import com.dsk.common.core.domain.entity.BusinessBacklog; import com.dsk.common.core.domain.entity.BusinessBacklog;
import com.dsk.common.exception.base.BaseException;
import com.dsk.common.utils.DateUtils; import com.dsk.common.utils.DateUtils;
import com.dsk.system.mapper.BusinessBacklogMapper; import com.dsk.system.mapper.BusinessBacklogMapper;
import com.dsk.system.service.IBusinessBacklogService; import com.dsk.system.service.IBusinessBacklogService;
...@@ -10,6 +11,7 @@ import org.springframework.scheduling.annotation.Scheduled; ...@@ -10,6 +11,7 @@ import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
...@@ -32,7 +34,7 @@ public class BusinessBacklogServiceImpl implements IBusinessBacklogService ...@@ -32,7 +34,7 @@ public class BusinessBacklogServiceImpl implements IBusinessBacklogService
* @return 项目工作待办 * @return 项目工作待办
*/ */
@Override @Override
public BusinessBacklog selectBusinessBacklogById(Long id) public BusinessBacklog selectBusinessBacklogById(Integer id)
{ {
return businessBacklogMapper.selectBusinessBacklogById(id); return businessBacklogMapper.selectBusinessBacklogById(id);
} }
...@@ -59,6 +61,7 @@ public class BusinessBacklogServiceImpl implements IBusinessBacklogService ...@@ -59,6 +61,7 @@ public class BusinessBacklogServiceImpl implements IBusinessBacklogService
@Transactional @Transactional
public int insertBusinessBacklog(BusinessBacklog businessBacklog) public int insertBusinessBacklog(BusinessBacklog businessBacklog)
{ {
if(businessBacklog.getFinishTime().before(new Date())) throw new BaseException("完成时间必须大于当前时间");
businessBacklog.setCreateTime(DateUtils.getNowDate()); businessBacklog.setCreateTime(DateUtils.getNowDate());
//新增记录,状态默认 进行中 //新增记录,状态默认 进行中
businessBacklog.setState(1); businessBacklog.setState(1);
...@@ -75,7 +78,14 @@ public class BusinessBacklogServiceImpl implements IBusinessBacklogService ...@@ -75,7 +78,14 @@ public class BusinessBacklogServiceImpl implements IBusinessBacklogService
@Transactional @Transactional
public int updateBusinessBacklog(BusinessBacklog businessBacklog) public int updateBusinessBacklog(BusinessBacklog businessBacklog)
{ {
businessBacklog.setUpdateTime(DateUtils.getNowDate()); //从完成状态修改到为完成,判断是否已逾期
BusinessBacklog backlog = selectBusinessBacklogById(businessBacklog.getId());
if (businessBacklog.getState() == 1 && backlog.getState() == 2 && backlog.getFinishTime().before(new Date())) {
businessBacklog.setState(0);
businessBacklog.setUpdateTime(new Date());
return businessBacklogMapper.updateBusinessBacklog(businessBacklog);
}
businessBacklog.setUpdateTime(new Date());
return businessBacklogMapper.updateBusinessBacklog(businessBacklog); return businessBacklogMapper.updateBusinessBacklog(businessBacklog);
} }
......
...@@ -29,7 +29,8 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS ...@@ -29,7 +29,8 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS
@Override @Override
public List<CustomerDecisionChain> selectList(CustomerDecisionChainSearchDto dto) { public List<CustomerDecisionChain> selectList(CustomerDecisionChainSearchDto dto) {
return baseMapper.selectList(Wrappers.<CustomerDecisionChain>lambdaQuery() return baseMapper.selectList(Wrappers.<CustomerDecisionChain>lambdaQuery()
.eq(CustomerDecisionChain::getCustomerId,dto.getCustomerId())); .eq(CustomerDecisionChain::getCustomerId, dto.getCustomerId())
.orderByDesc(CustomerDecisionChain::getCreateTime));
} }
/** /**
...@@ -63,7 +64,7 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS ...@@ -63,7 +64,7 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS
*/ */
@Override @Override
public boolean update(CustomerDecisionChain customerDecisionChain) { public boolean update(CustomerDecisionChain customerDecisionChain) {
if(ObjectUtils.isEmpty(customerDecisionChain.getId())) throw new BeanException("id不能为空!"); if (ObjectUtils.isEmpty(customerDecisionChain.getId())) throw new BeanException("id不能为空!");
verifyParameter(customerDecisionChain); verifyParameter(customerDecisionChain);
return baseMapper.updateById(customerDecisionChain) > 0; return baseMapper.updateById(customerDecisionChain) > 0;
} }
...@@ -81,10 +82,11 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS ...@@ -81,10 +82,11 @@ public class CustomerDecisionChainServiceImpl implements ICustomerDecisionChainS
/** /**
* 参数验证 * 参数验证
*
* @param customerDecisionChain * @param customerDecisionChain
*/ */
private void verifyParameter(CustomerDecisionChain customerDecisionChain){ private void verifyParameter(CustomerDecisionChain customerDecisionChain) {
if(ObjectUtils.isEmpty(customerDecisionChain.getCustomerId())) throw new BeanException("客户id不能为空!"); if (ObjectUtils.isEmpty(customerDecisionChain.getCustomerId())) throw new BeanException("客户id不能为空!");
customerDecisionChain.setUpdateId(SecurityUtils.getUserId()); customerDecisionChain.setUpdateId(SecurityUtils.getUserId());
customerDecisionChain.setUpdateBy(SecurityUtils.getLoginUser().getUser().getNickName()); customerDecisionChain.setUpdateBy(SecurityUtils.getLoginUser().getUser().getNickName());
} }
......
...@@ -84,7 +84,8 @@ ...@@ -84,7 +84,8 @@
<update id="updateBacklogState"> <update id="updateBacklogState">
update business_backlog update business_backlog
set state = 0 set state = 0
where finish_time &lt; CURRENT_TIMESTAMP where state = 1
and finish_time &lt; CURRENT_TIMESTAMP
</update> </update>
<delete id="deleteBusinessBacklogById" parameterType="Long"> <delete id="deleteBusinessBacklogById" parameterType="Long">
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
and i.investment_amount &gt;= #{minAmount} and i.investment_amount &gt;= #{minAmount}
</if> </if>
<if test="maxAmount != null and maxAmount != '' and maxAmount != minAmount"> <if test="maxAmount != null and maxAmount != '' and maxAmount != minAmount">
and i.investment_amount &lt;= #{maxAmount} and i.investment_amount &lt; #{maxAmount}
</if> </if>
<if test="minAmount != null and minAmount != '' and maxAmount != null and maxAmount != '' and maxAmount == minAmount"> <if test="minAmount != null and minAmount != '' and maxAmount != null and maxAmount != '' and maxAmount == minAmount">
and i.investment_amount = #{minAmount} and i.investment_amount = #{minAmount}
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
) bi3 on bi3.customer_id = ct.customer_id ) bi3 on bi3.customer_id = ct.customer_id
where ctu.user_id = #{dto.userId} where ctu.user_id = #{dto.userId}
<if test="dto.companyName != null and dto.companyName != '' "> and ct.company_name like concat('%',#{dto.companyName},'%')</if> <if test="dto.companyName != null and dto.companyName != '' "> and ct.company_name like concat('%',#{dto.companyName},'%')</if>
order by ct.create_time desc
</select> </select>
<select id="selectUserList" resultType="com.dsk.system.domain.customer.Customer"> <select id="selectUserList" resultType="com.dsk.system.domain.customer.Customer">
......
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