Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
a292d17d
Commit
a292d17d
authored
May 24, 2023
by
caixingbing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.60.201/root/dsk-operate-sys
parents
5d41ea7a
bfc6304a
Changes
40
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
1109 additions
and
345 deletions
+1109
-345
BusinessBacklogController.java
...sk/web/controller/business/BusinessBacklogController.java
+1
-1
BusinessContactsController.java
...k/web/controller/business/BusinessContactsController.java
+1
-1
BusinessFollowRecordController.java
...b/controller/business/BusinessFollowRecordController.java
+16
-6
BusinessInfoController.java
...m/dsk/web/controller/business/BusinessInfoController.java
+37
-15
BusinessRelateCompanyController.java
.../controller/business/BusinessRelateCompanyController.java
+11
-11
BusinessContacts.java
...a/com/dsk/common/core/domain/entity/BusinessContacts.java
+3
-0
BusinessFollowRecord.java
...m/dsk/common/core/domain/entity/BusinessFollowRecord.java
+24
-24
BusinessInfo.java
.../java/com/dsk/common/core/domain/entity/BusinessInfo.java
+4
-4
BusinessLabel.java
...java/com/dsk/common/core/domain/entity/BusinessLabel.java
+8
-28
BusinessRelateCompany.java
.../dsk/common/core/domain/entity/BusinessRelateCompany.java
+11
-72
edit_1.png
dsk-operate-ui/src/assets/images/project/edit_1.png
+0
-0
edit_2.png
dsk-operate-ui/src/assets/images/project/edit_2.png
+0
-0
import.png
dsk-operate-ui/src/assets/images/project/import.png
+0
-0
index.scss
dsk-operate-ui/src/assets/styles/index.scss
+15
-1
project.scss
dsk-operate-ui/src/assets/styles/project.scss
+49
-15
public.scss
dsk-operate-ui/src/assets/styles/public.scss
+114
-0
index.vue
dsk-operate-ui/src/views/custom/customList/index.vue
+294
-4
lxr.vue
...perate-ui/src/views/project/projectList/component/lxr.vue
+1
-1
detail.vue
dsk-operate-ui/src/views/project/projectList/detail.vue
+0
-9
index.vue
...erate-ui/src/views/radar/components/debtProject/index.vue
+31
-0
index.vue
dsk-operate-ui/src/views/radar/index.vue
+227
-0
index.vue
dsk-operate-ui/src/views/radar/list/index.vue
+0
-23
index.vue
dsk-operate-ui/src/views/radar/opportunity/index.vue
+0
-23
index.vue
dsk-operate-ui/src/views/radar/overview/index.vue
+0
-23
index.vue
dsk-operate-ui/src/views/radar/subscription/index.vue
+0
-23
index.vue
dsk-operate-ui/src/views/radar/trends/index.vue
+0
-23
BusinessBrowseVo.java
.../main/java/com/dsk/system/domain/vo/BusinessBrowseVo.java
+88
-0
BusinessFollowRecordMapper.java
...ava/com/dsk/system/mapper/BusinessFollowRecordMapper.java
+10
-2
BusinessInfoMapper.java
...c/main/java/com/dsk/system/mapper/BusinessInfoMapper.java
+24
-6
IBusinessFollowRecordService.java
.../com/dsk/system/service/IBusinessFollowRecordService.java
+10
-2
IBusinessInfoService.java
...ain/java/com/dsk/system/service/IBusinessInfoService.java
+23
-8
BusinessBacklogServiceImpl.java
...m/dsk/system/service/impl/BusinessBacklogServiceImpl.java
+3
-0
BusinessContactsServiceImpl.java
.../dsk/system/service/impl/BusinessContactsServiceImpl.java
+7
-0
BusinessFollowRecordServiceImpl.java
.../system/service/impl/BusinessFollowRecordServiceImpl.java
+9
-8
BusinessInfoServiceImpl.java
.../com/dsk/system/service/impl/BusinessInfoServiceImpl.java
+36
-4
BusinessLabelServiceImpl.java
...com/dsk/system/service/impl/BusinessLabelServiceImpl.java
+3
-0
BusinessRelateCompanyServiceImpl.java
...system/service/impl/BusinessRelateCompanyServiceImpl.java
+8
-0
BusinessContactsMapper.xml
...main/resources/mapper/business/BusinessContactsMapper.xml
+1
-0
BusinessFollowRecordMapper.xml
.../resources/mapper/business/BusinessFollowRecordMapper.xml
+11
-6
BusinessInfoMapper.xml
...src/main/resources/mapper/business/BusinessInfoMapper.xml
+29
-2
No files found.
dsk-admin/src/main/java/com/dsk/web/controller/business/BusinessBacklogController.java
View file @
a292d17d
...
@@ -42,7 +42,7 @@ public class BusinessBacklogController extends BaseController
...
@@ -42,7 +42,7 @@ public class BusinessBacklogController extends BaseController
private
IBusinessBacklogService
businessBacklogService
;
private
IBusinessBacklogService
businessBacklogService
;
/**
/**
* 查询项目工作待办列表
*
分页
查询项目工作待办列表
*/
*/
// @PreAuthorize("@ss.hasPermi('system:backlog:list')")
// @PreAuthorize("@ss.hasPermi('system:backlog:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
...
...
dsk-admin/src/main/java/com/dsk/web/controller/business/BusinessContactsController.java
View file @
a292d17d
...
@@ -36,7 +36,7 @@ public class BusinessContactsController extends BaseController
...
@@ -36,7 +36,7 @@ public class BusinessContactsController extends BaseController
private
IBusinessContactsService
businessContactsService
;
private
IBusinessContactsService
businessContactsService
;
/**
/**
* 查询项目联系人列表
*
分页
查询项目联系人列表
*/
*/
// @PreAuthorize("@ss.hasPermi('system:contacts:list')")
// @PreAuthorize("@ss.hasPermi('system:contacts:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
...
...
dsk-admin/src/main/java/com/dsk/web/controller/business/BusinessFollowRecordController.java
View file @
a292d17d
...
@@ -36,15 +36,13 @@ public class BusinessFollowRecordController extends BaseController
...
@@ -36,15 +36,13 @@ public class BusinessFollowRecordController extends BaseController
private
IBusinessFollowRecordService
businessFollowRecordService
;
private
IBusinessFollowRecordService
businessFollowRecordService
;
/**
/**
*
查询项目跟进记录列表
*
根据项目id查询项目跟进记录
*/
*/
// @PreAuthorize("@ss.hasPermi('system:record:list')")
// @PreAuthorize("@ss.hasPermi('system:record:list')")
@GetMapping
(
"/list"
)
@GetMapping
(
"/list
/{businessId}
"
)
public
TableDataInfo
list
(
BusinessFollowRecord
businessFollowRecor
d
)
public
AjaxResult
list
(
@PathVariable
Integer
businessI
d
)
{
{
startPage
();
return
success
(
businessFollowRecordService
.
selectBusinessFollowRecordList
(
businessId
));
List
<
BusinessFollowRecord
>
list
=
businessFollowRecordService
.
selectBusinessFollowRecordList
(
businessFollowRecord
);
return
getDataTable
(
list
);
}
}
/**
/**
...
@@ -58,6 +56,18 @@ public class BusinessFollowRecordController extends BaseController
...
@@ -58,6 +56,18 @@ public class BusinessFollowRecordController extends BaseController
return
toAjax
(
businessFollowRecordService
.
insertBusinessFollowRecord
(
businessFollowRecord
));
return
toAjax
(
businessFollowRecordService
.
insertBusinessFollowRecord
(
businessFollowRecord
));
}
}
/**
* 分页查询项目跟进记录
*/
// @PreAuthorize("@ss.hasPermi('system:record:list')")
// @GetMapping("/list")
// public TableDataInfo list(BusinessFollowRecord businessFollowRecord)
// {
// startPage();
// List<BusinessFollowRecord> list = businessFollowRecordService.selectBusinessFollowRecordList(businessFollowRecord);
// return getDataTable(list);
// }
// /**
// /**
// * 导出项目跟进记录列表
// * 导出项目跟进记录列表
// */
// */
...
...
dsk-admin/src/main/java/com/dsk/web/controller/business/BusinessInfoController.java
View file @
a292d17d
...
@@ -6,6 +6,7 @@ import com.dsk.common.core.domain.entity.BusinessInfo;
...
@@ -6,6 +6,7 @@ import com.dsk.common.core.domain.entity.BusinessInfo;
import
com.dsk.common.dtos.BusinessInfoDto
;
import
com.dsk.common.dtos.BusinessInfoDto
;
import
com.dsk.system.domain.BusinessAddDto
;
import
com.dsk.system.domain.BusinessAddDto
;
import
com.dsk.system.domain.BusinessListDto
;
import
com.dsk.system.domain.BusinessListDto
;
import
com.dsk.system.domain.vo.BusinessBrowseVo
;
import
com.dsk.system.domain.vo.BusinessListVo
;
import
com.dsk.system.domain.vo.BusinessListVo
;
import
com.dsk.system.service.IBusinessInfoService
;
import
com.dsk.system.service.IBusinessInfoService
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
@@ -37,7 +38,7 @@ public class BusinessInfoController extends BaseController
...
@@ -37,7 +38,7 @@ public class BusinessInfoController extends BaseController
// @PreAuthorize("@ss.hasPermi('system:info:list')")
// @PreAuthorize("@ss.hasPermi('system:info:list')")
@PostMapping
(
"/query/project"
)
@PostMapping
(
"/query/project"
)
public
AjaxResult
queryprojectName
(
@RequestBody
BusinessListDto
dto
){
public
AjaxResult
queryprojectName
(
@RequestBody
BusinessListDto
dto
){
return
AjaxResult
.
success
(
businessInfoService
.
queryp
rojectName
(
dto
));
return
AjaxResult
.
success
(
businessInfoService
.
selectP
rojectName
(
dto
));
}
}
/**
/**
...
@@ -53,12 +54,32 @@ public class BusinessInfoController extends BaseController
...
@@ -53,12 +54,32 @@ public class BusinessInfoController extends BaseController
}
}
/**
/**
* 删除项目详情
* 查询项目速览
*/
// @PreAuthorize("@ss.hasPermi('system:info:list')")
@GetMapping
(
"/browse/{businessId}"
)
public
AjaxResult
browse
(
@PathVariable
Integer
id
)
{
return
success
(
businessInfoService
.
browse
(
id
));
}
/**
* 获取项目建设内容
*/
// @PreAuthorize("@ss.hasPermi('system:info:query')")
@GetMapping
(
value
=
"/construction/{id}"
)
public
AjaxResult
getConstruction
(
@PathVariable
(
"id"
)
Integer
id
)
{
return
success
(
businessInfoService
.
getConstruction
(
id
));
}
/**
* 删除项目列表
*/
*/
// @PreAuthorize("@ss.hasPermi('system:info:remove')")
// @PreAuthorize("@ss.hasPermi('system:info:remove')")
// @Log(title = "项目详情", businessType = BusinessType.DELETE)
// @Log(title = "项目详情", businessType = BusinessType.DELETE)
@DeleteMapping
(
"/remove/{ids}"
)
@DeleteMapping
(
"/remove/{ids}"
)
public
AjaxResult
remove
(
@
RequestParam
(
value
=
"ids"
,
required
=
false
)
Long
[]
ids
)
public
AjaxResult
remove
(
@
PathVariable
(
value
=
"ids"
,
required
=
false
)
Long
[]
ids
)
{
{
return
toAjax
(
businessInfoService
.
deleteBusinessInfoByIds
(
ids
));
return
toAjax
(
businessInfoService
.
deleteBusinessInfoByIds
(
ids
));
}
}
...
@@ -77,14 +98,24 @@ public class BusinessInfoController extends BaseController
...
@@ -77,14 +98,24 @@ public class BusinessInfoController extends BaseController
/**
/**
* 修改项目详情
* 修改项目详情
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:info:edit')"
)
//
@PreAuthorize("@ss.hasPermi('system:info:edit')")
@Log
(
title
=
"项目详情"
,
businessType
=
BusinessType
.
UPDATE
)
//
@Log(title = "项目详情", businessType = BusinessType.UPDATE)
@PostMapping
(
"/edit"
)
@PostMapping
(
"/edit"
)
public
AjaxResult
edit
(
@RequestBody
BusinessInfo
businessInfo
)
public
AjaxResult
edit
(
@RequestBody
BusinessInfo
businessInfo
)
{
{
return
toAjax
(
businessInfoService
.
updateBusinessInfo
(
businessInfo
));
return
toAjax
(
businessInfoService
.
updateBusinessInfo
(
businessInfo
));
}
}
// /**
// * 获取项目详情详细信息
// */
// @PreAuthorize("@ss.hasPermi('system:info:query')")
// @GetMapping(value = "/{id}")
// public AjaxResult getInfo(@PathVariable("id") Integer id)
// {
// return success(businessInfoService.selectBusinessInfoById(id));
// }
// /**
// /**
// * 导出项目详情列表
// * 导出项目详情列表
// */
// */
...
@@ -97,14 +128,5 @@ public class BusinessInfoController extends BaseController
...
@@ -97,14 +128,5 @@ public class BusinessInfoController extends BaseController
// ExcelUtil<BusinessInfo> util = new ExcelUtil<BusinessInfo>(BusinessInfo.class);
// ExcelUtil<BusinessInfo> util = new ExcelUtil<BusinessInfo>(BusinessInfo.class);
// util.exportExcel(response, list, "项目详情数据");
// util.exportExcel(response, list, "项目详情数据");
// }
// }
//
// /**
// * 获取项目详情详细信息
// */
// @PreAuthorize("@ss.hasPermi('system:info:query')")
// @GetMapping(value = "/{id}")
// public AjaxResult getInfo(@PathVariable("id") Long id)
// {
// return success(businessInfoService.selectBusinessInfoById(id));
// }
}
}
dsk-admin/src/main/java/com/dsk/web/controller/business/BusinessRelateCompanyController.java
View file @
a292d17d
...
@@ -67,6 +67,17 @@ public class BusinessRelateCompanyController extends BaseController
...
@@ -67,6 +67,17 @@ public class BusinessRelateCompanyController extends BaseController
return
toAjax
(
businessRelateCompanyService
.
insertBusinessRelateCompany
(
businessRelateCompany
));
return
toAjax
(
businessRelateCompanyService
.
insertBusinessRelateCompany
(
businessRelateCompany
));
}
}
/**
* 修改项目关联单位
*/
// @PreAuthorize("@ss.hasPermi('system:company:edit')")
// @Log(title = "项目关联单位", businessType = BusinessType.UPDATE)
@PostMapping
(
"/edit"
)
public
AjaxResult
edit
(
@RequestBody
BusinessRelateCompany
businessRelateCompany
)
{
return
toAjax
(
businessRelateCompanyService
.
updateBusinessRelateCompany
(
businessRelateCompany
));
}
// /**
// /**
// * 导出项目关联单位列表
// * 导出项目关联单位列表
// */
// */
...
@@ -90,17 +101,6 @@ public class BusinessRelateCompanyController extends BaseController
...
@@ -90,17 +101,6 @@ public class BusinessRelateCompanyController extends BaseController
// return success(businessRelateCompanyService.selectBusinessRelateCompanyById(id));
// return success(businessRelateCompanyService.selectBusinessRelateCompanyById(id));
// }
// }
// /**
// * 修改项目关联单位
// */
// @PreAuthorize("@ss.hasPermi('system:company:edit')")
// @Log(title = "项目关联单位", businessType = BusinessType.UPDATE)
// @PutMapping
// public AjaxResult edit(@RequestBody BusinessRelateCompany businessRelateCompany)
// {
// return toAjax(businessRelateCompanyService.updateBusinessRelateCompany(businessRelateCompany));
// }
//
//
// /**
// /**
// * 删除项目关联单位
// * 删除项目关联单位
...
...
dsk-common/src/main/java/com/dsk/common/core/domain/entity/BusinessContacts.java
View file @
a292d17d
...
@@ -3,11 +3,14 @@ package com.dsk.common.core.domain.entity;
...
@@ -3,11 +3,14 @@ package com.dsk.common.core.domain.entity;
import
java.util.Date
;
import
java.util.Date
;
import
com.dsk.common.core.domain.BaseEntity
;
import
com.dsk.common.core.domain.BaseEntity
;
import
com.dsk.common.utils.CheckUtils
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.dsk.common.annotation.Excel
;
import
com.dsk.common.annotation.Excel
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
javax.validation.constraints.Pattern
;
/**
/**
* 项目联系人对象 business_contacts
* 项目联系人对象 business_contacts
*
*
...
...
dsk-common/src/main/java/com/dsk/common/core/domain/entity/BusinessFollowRecord.java
View file @
a292d17d
...
@@ -33,30 +33,6 @@ public class BusinessFollowRecord extends BaseEntity
...
@@ -33,30 +33,6 @@ public class BusinessFollowRecord extends BaseEntity
@Excel
(
name
=
"用户昵称"
)
@Excel
(
name
=
"用户昵称"
)
private
Integer
userName
;
private
Integer
userName
;
public
Integer
getUserName
()
{
return
userName
;
}
public
String
getVisitPerson
()
{
return
visitPerson
;
}
public
String
getPosition
()
{
return
position
;
}
public
void
setUserName
(
Integer
userName
)
{
this
.
userName
=
userName
;
}
public
void
setVisitPerson
(
String
visitPerson
)
{
this
.
visitPerson
=
visitPerson
;
}
public
void
setPosition
(
String
position
)
{
this
.
position
=
position
;
}
/** 拜访对象 */
/** 拜访对象 */
@Excel
(
name
=
"拜访对象"
)
@Excel
(
name
=
"拜访对象"
)
private
String
visitPerson
;
private
String
visitPerson
;
...
@@ -88,6 +64,30 @@ public class BusinessFollowRecord extends BaseEntity
...
@@ -88,6 +64,30 @@ public class BusinessFollowRecord extends BaseEntity
@Excel
(
name
=
"创建时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"创建时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
creatTime
;
private
Date
creatTime
;
public
Integer
getUserName
()
{
return
userName
;
}
public
String
getVisitPerson
()
{
return
visitPerson
;
}
public
String
getPosition
()
{
return
position
;
}
public
void
setUserName
(
Integer
userName
)
{
this
.
userName
=
userName
;
}
public
void
setVisitPerson
(
String
visitPerson
)
{
this
.
visitPerson
=
visitPerson
;
}
public
void
setPosition
(
String
position
)
{
this
.
position
=
position
;
}
public
void
setId
(
Integer
id
)
public
void
setId
(
Integer
id
)
{
{
this
.
id
=
id
;
this
.
id
=
id
;
...
...
dsk-common/src/main/java/com/dsk/common/core/domain/entity/BusinessInfo.java
View file @
a292d17d
...
@@ -31,12 +31,12 @@ public class BusinessInfo extends BaseEntity
...
@@ -31,12 +31,12 @@ public class BusinessInfo extends BaseEntity
@Excel
(
name
=
"项目名称"
)
@Excel
(
name
=
"项目名称"
)
private
String
projectName
;
private
String
projectName
;
/** 总投金额 */
/** 总投金额
(万元)
*/
@Excel
(
name
=
"总投金额"
)
@Excel
(
name
=
"总投金额
(万元)
"
)
private
Double
investmentAmount
;
private
Double
investmentAmount
;
/** 资金来源
(万元)
*/
/** 资金来源 */
@Excel
(
name
=
"资金来源
(万元)
"
)
@Excel
(
name
=
"资金来源"
)
private
String
amountSource
;
private
String
amountSource
;
/** 计划招标时间 */
/** 计划招标时间 */
...
...
dsk-common/src/main/java/com/dsk/common/core/domain/entity/BusinessLabel.java
View file @
a292d17d
...
@@ -2,6 +2,8 @@ package com.dsk.common.core.domain.entity;
...
@@ -2,6 +2,8 @@ package com.dsk.common.core.domain.entity;
import
com.dsk.common.annotation.Excel
;
import
com.dsk.common.annotation.Excel
;
import
com.dsk.common.core.domain.BaseEntity
;
import
com.dsk.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
@@ -11,6 +13,8 @@ import org.apache.commons.lang3.builder.ToStringStyle;
...
@@ -11,6 +13,8 @@ import org.apache.commons.lang3.builder.ToStringStyle;
* @author lxl
* @author lxl
* @date 2023-05-17
* @date 2023-05-17
*/
*/
@Data
@NoArgsConstructor
public
class
BusinessLabel
extends
BaseEntity
public
class
BusinessLabel
extends
BaseEntity
{
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -26,34 +30,6 @@ public class BusinessLabel extends BaseEntity
...
@@ -26,34 +30,6 @@ public class BusinessLabel extends BaseEntity
@Excel
(
name
=
"标签"
)
@Excel
(
name
=
"标签"
)
private
String
label
;
private
String
label
;
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
Integer
getId
()
{
return
id
;
}
public
void
setBusinessId
(
Integer
businessId
)
{
this
.
businessId
=
businessId
;
}
public
Integer
getBusinessId
()
{
return
businessId
;
}
public
void
setLabel
(
String
label
)
{
this
.
label
=
label
;
}
public
String
getLabel
()
{
return
label
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
@@ -64,4 +40,8 @@ public class BusinessLabel extends BaseEntity
...
@@ -64,4 +40,8 @@ public class BusinessLabel extends BaseEntity
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
toString
();
.
toString
();
}
}
public
BusinessLabel
(
Integer
businessId
)
{
this
.
businessId
=
businessId
;
}
}
}
dsk-common/src/main/java/com/dsk/common/core/domain/entity/BusinessRelateCompany.java
View file @
a292d17d
...
@@ -2,15 +2,22 @@ package com.dsk.common.core.domain.entity;
...
@@ -2,15 +2,22 @@ package com.dsk.common.core.domain.entity;
import
com.dsk.common.annotation.Excel
;
import
com.dsk.common.annotation.Excel
;
import
com.dsk.common.core.domain.BaseEntity
;
import
com.dsk.common.core.domain.BaseEntity
;
import
com.dsk.common.utils.CheckUtils
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
javax.validation.constraints.Pattern
;
/**
/**
* 项目关联单位对象 business_relate_company
* 项目关联单位对象 business_relate_company
*
*
* @author lxl
* @author lxl
* @date 2023-05-17
* @date 2023-05-17
*/
*/
@Data
@NoArgsConstructor
public
class
BusinessRelateCompany
extends
BaseEntity
public
class
BusinessRelateCompany
extends
BaseEntity
{
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -46,78 +53,6 @@ public class BusinessRelateCompany extends BaseEntity
...
@@ -46,78 +53,6 @@ public class BusinessRelateCompany extends BaseEntity
@Excel
(
name
=
"对接深度/竞争力度"
)
@Excel
(
name
=
"对接深度/竞争力度"
)
private
String
depth
;
private
String
depth
;
public
String
getDepth
()
{
return
depth
;
}
public
void
setDepth
(
String
depth
)
{
this
.
depth
=
depth
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
Integer
getId
()
{
return
id
;
}
public
void
setBusinessId
(
Integer
businessId
)
{
this
.
businessId
=
businessId
;
}
public
Integer
getBusinessId
()
{
return
businessId
;
}
public
void
setCompanyId
(
Integer
companyId
)
{
this
.
companyId
=
companyId
;
}
public
Integer
getCompanyId
()
{
return
companyId
;
}
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
public
String
getCompanyName
()
{
return
companyName
;
}
public
void
setCompanyRole
(
String
companyRole
)
{
this
.
companyRole
=
companyRole
;
}
public
String
getCompanyRole
()
{
return
companyRole
;
}
public
void
setResponsiblePerson
(
String
responsiblePerson
)
{
this
.
responsiblePerson
=
responsiblePerson
;
}
public
String
getResponsiblePerson
()
{
return
responsiblePerson
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getPhone
()
{
return
phone
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
@@ -140,4 +75,8 @@ public class BusinessRelateCompany extends BaseEntity
...
@@ -140,4 +75,8 @@ public class BusinessRelateCompany extends BaseEntity
this
.
companyName
=
companyName
;
this
.
companyName
=
companyName
;
this
.
companyRole
=
companyRole
;
this
.
companyRole
=
companyRole
;
}
}
public
BusinessRelateCompany
(
Integer
businessId
)
{
this
.
businessId
=
businessId
;
}
}
}
dsk-operate-ui/src/assets/images/project/edit_1.png
0 → 100644
View file @
a292d17d
333 Bytes
dsk-operate-ui/src/assets/images/project/edit_2.png
0 → 100644
View file @
a292d17d
321 Bytes
dsk-operate-ui/src/assets/images/project/import.png
0 → 100644
View file @
a292d17d
335 Bytes
dsk-operate-ui/src/assets/styles/index.scss
View file @
a292d17d
...
@@ -543,6 +543,14 @@ ul, li {
...
@@ -543,6 +543,14 @@ ul, li {
background
:
#D3D3D3
;
background
:
#D3D3D3
;
}
}
}
}
&
.btn_shallow
{
color
:
#0081FF
;
background
:
rgba
(
0
,
129
,
255
,
0
.16
);
&
:hover
{
background
:
#0081FF
;
color
:
#fff
;
}
}
&
.h28
{
&
.h28
{
line-height
:
28px
;
line-height
:
28px
;
}
}
...
@@ -588,7 +596,13 @@ ul, li {
...
@@ -588,7 +596,13 @@ ul, li {
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
overflow
:
hidden
;
.el-input
{
.el-input
{
margin
:
-2px
-1px
;
margin-top
:
-1px
;
//line-height: 32px;
.el-input__inner
{
line-height
:
32px
;
height
:
32px
;
border
:
0
;
}
}
}
.btn
{
.btn
{
background
:
#F5F5F5
;
background
:
#F5F5F5
;
...
...
dsk-operate-ui/src/assets/styles/project.scss
View file @
a292d17d
//小导航
.miantitle
{
color
:
#232323
;
font-size
:
12px
;
margin
:
12px
24px
;
>
span
{
opacity
:
0
.4
;
&
:last-child
{
opacity
:
0
.8
}
}
}
.overflows
{
.overflows
{
overflow
:
initial
;
overflow
:
initial
;
}
}
...
@@ -237,6 +246,9 @@
...
@@ -237,6 +246,9 @@
.el-table--striped
.el-table__body
tr
.el-table__row--striped
td
.el-table__cell
{
.el-table--striped
.el-table__body
tr
.el-table__row--striped
td
.el-table__cell
{
background
:
#F9FCFF
;
background
:
#F9FCFF
;
}
}
.el-table
th
.el-table__cell.is-leaf
{
border-bottom
:
0
;
}
.has-gutter
{
.has-gutter
{
th
{
th
{
height
:
40px
;
height
:
40px
;
...
@@ -347,13 +359,18 @@
...
@@ -347,13 +359,18 @@
width
:
137px
;
width
:
137px
;
display
:
inline-block
;
display
:
inline-block
;
text-align
:
right
;
text-align
:
right
;
opacity
:
0
.8
opacity
:
0
.8
;
i
{
color
:
#FF3C3C
;
font-style
:
initial
;
padding-right
:
2px
;
}
}
}
.el-input
{
.el-input
{
display
:
inline-block
;
display
:
inline-block
;
width
:
240px
;
width
:
240px
;
.el-input__inner
{
.el-input__inner
{
width
:
240px
;
width
:
100%
;
height
:
32px
;
height
:
32px
;
border-radius
:
0px
;
border-radius
:
0px
;
...
@@ -376,7 +393,7 @@
...
@@ -376,7 +393,7 @@
.popbot
{
.popbot
{
text-align
:
right
;
text-align
:
right
;
padding-top
:
8px
;
padding-top
:
8px
;
padding-right
:
47px
;
padding-right
:
0
;
.btn
{
.btn
{
border-radius
:
0
;
border-radius
:
0
;
width
:
80px
;
width
:
80px
;
...
@@ -386,18 +403,17 @@
...
@@ -386,18 +403,17 @@
.popform.i
{
.popform.i
{
.left
{
.left
{
width
:
85px
;
width
:
85px
;
i
{
color
:
#FF3C3C
;
}
}
}
.el-input
{
.el-input
{
width
:
335px
;
width
:
335px
;
.el-input__inner
{
width
:
335px
;
}
}
}
.popbot
{
}
padding-right
:
0
;
.popform.j
{
.left
{
width
:
116px
;
}
.el-input
{
width
:
374px
;
}
}
}
}
.types
{
.types
{
...
@@ -672,12 +688,9 @@
...
@@ -672,12 +688,9 @@
top
:
17px
;
top
:
17px
;
.searchInput
{
.searchInput
{
width
:
178px
;
width
:
178px
;
height
:
32px
;
border
:
1px
solid
#D9D9D9
;
border
:
1px
solid
#D9D9D9
;
.el-input--medium
.el-input__inner
{
.el-input--medium
.el-input__inner
{
line-height
:
32px
;
font-size
:
12px
;
font-size
:
12px
;
}
}
}
}
.b1
{
.b1
{
...
@@ -757,3 +770,24 @@
...
@@ -757,3 +770,24 @@
}
}
}
}
}
}
/*
客户管理
*/
//表格搜索
.table_search
{
padding-bottom
:
16px
;
display
:
flex
;
justify-content
:
space-between
;
.searchInput
{
width
:
320px
;
.el-input__inner
{
font-size
:
12px
;
}
}
}
.p10
{
padding
:
0
10px
;
}
dsk-operate-ui/src/assets/styles/public.scss
0 → 100644
View file @
a292d17d
*
{
padding
:
0
;
margin
:
0
;
}
div
,
dl
,
dt
,
dd
,
form
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
img
,
ol
,
ul
,
li
,
table
,
th
,
td
,
p
,
span
,
a
{
border
:
0
;
}
img
,
input
{
border
:
none
;
vertical-align
:
middle
;
background
:
none
;
outline
:
none
;
}
html
{
height
:
100%
;
box-sizing
:
border-box
;
}
body
{
height
:
100%
;
-moz-osx-font-smoothing
:
grayscale
;
-webkit-font-smoothing
:
antialiased
;
text-rendering
:
optimizeLegibility
;
font-family
:
Helvetica
Neue
,
Helvetica
,
PingFang
SC
,
Hiragino
Sans
GB
,
Microsoft
YaHei
,
Arial
,
sans-serif
;
}
ul
,
ol
{
list-style-type
:
none
;
}
th
,
td
,
input
{
font-size
:
12px
;
}
h3
{
font-size
:
14px
;
}
s
,
i
,
em
{
font-style
:
normal
;
text-decoration
:
none
;
}
button
{
border
:
none
;
cursor
:
pointer
;
font-size
:
12px
;
background-color
:
transparent
;
}
select
{
border-width
:
1px
;
_zoom
:
1
;
border-style
:
solid
;
padding-top
:
2px
;
font-size
:
12px
;
}
.clear
{
clear
:
both
;
font-size
:
1px
;
height
:
0
;
visibility
:
hidden
;
line-height
:
0
;
}
.clearfix
:after
{
content
:
""
;
display
:
block
;
clear
:
both
;
}
.clearfix
{
zoom
:
1
;
}
.float_left
{
float
:
left
;
}
.float_right
{
float
:
right
;
}
dsk-operate-ui/src/views/custom/customList/index.vue
View file @
a292d17d
<
template
>
<
template
>
<div
class=
"app-container"
>
<div>
客户列表
<div
class=
"miantitle"
>
<span>
客户管理
</span>
<span>
/ 客户列表
</span>
</div>
<div
class=
"app-container"
>
<el-card
class=
"box-card noborder"
>
<div
class=
"tables"
>
<div
class=
"empty"
v-if=
"tableData == null || tableData.length == 0"
>
<img
src=
"@/assets/images/project/empty.png"
>
<div
class=
"p1"
>
添加你的第一位客户吧
</div>
<div
class=
"p2"
>
抱歉,你还未添加客户,快去添加吧
</div>
<div
class=
"btn btn_primary h36 w88"
@
click=
"opennew"
>
添加客户
</div>
<div
class=
"btn btn_primary btn_shallow h36 w88"
>
批量导入
</div>
</div>
<div
class=
"table_search"
>
<div
class=
"searchInput"
>
<el-input
type=
"text"
placeholder=
"输入企业名称查询"
></el-input>
<div
class=
"btn"
>
搜索
</div>
</div>
<div
class=
"dc"
>
<div
class=
"total"
>
共126条
</div>
<div
class=
"btn-export"
><img
src=
"@/assets/images/project/import.png"
>
批量导入
</div>
<div
class=
"btn btn_primary h32 p10"
@
click=
"opennew"
><div
class=
"img img1"
></div>
添加客户
</div>
</div>
</div>
<el-table
:data=
"tableData"
stripe
border
style=
"width: 100%"
:default-sort =
"
{prop: 'date', order: 'descending'}"
>
<el-table-column
prop=
"index"
label=
"序号"
width=
"47"
>
</el-table-column>
<el-table-column
prop=
"date"
label=
"企业名称"
width=
"441"
>
<template
slot-scope=
"scope"
>
<div
class=
"ps1"
>
<div
class=
"wordprimary ps2"
>
中国建筑第八工程局有限公司重庆至万州高铁
</div>
<div
class=
"ps3"
>
<div>
写跟进
<img
src=
"@/assets/images/project/edit_1.png"
></div>
<div>
编辑信息
<img
src=
"@/assets/images/project/edit_2.png"
></div>
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"合作项目"
width=
"76"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"跟进项目"
width=
"76"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"储备项目"
width=
"76"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"法定代表人"
width=
"110"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"注册地区"
width=
"160"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"注册资本金(万元)"
width=
"140"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"企业主体评级"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"上市公司"
width=
"76"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"局级大客户"
width=
"88"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"客户等级"
width=
"76"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"客户性质"
width=
"76"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"客户级别"
width=
"76"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"企业母公司"
width=
"268"
>
<
template
slot-scope=
"scope"
>
<div
class=
"wordprimary"
>
中国建筑第八工程局有限公司重庆至万州高铁
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"主营业务"
width=
"120"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"发包属性"
width=
"120"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"跟进人"
width=
"110"
>
</el-table-column>
</el-table>
<div
class=
"bottems"
>
<el-pagination
background
:page-size=
"20"
:current-page=
"1"
@
current-change=
"handleCurrentChange"
layout=
"prev, pager, next"
:total=
"1000"
>
</el-pagination>
</div>
</div>
<el-dialog
class=
"popups"
:visible
.
sync=
"dialogVisible"
width=
"534px"
>
<div
class=
"poptitle"
>
<img
src=
"@/assets/images/economies/icon.png"
>
<span>
添加客户
</span>
</div>
<div
class=
"popform j"
>
<div
class=
"row"
>
<span
class=
"left"
><i>
*
</i>
企业名称:
</span>
<el-input
type=
"text"
placeholder=
"请输入"
></el-input>
</div>
<div
class=
"row"
>
<span
class=
"left"
>
法定代表人:
</span>
<el-input
type=
"text"
placeholder=
"请输入"
></el-input>
</div>
<div
class=
"row"
>
<span
class=
"left"
>
注册资本(万):
</span>
<el-input
type=
"text"
placeholder=
"请输入"
></el-input>
</div>
<div
class=
"row"
>
<span
class=
"left"
>
企业注册地:
</span>
<el-select
placeholder=
"请选择"
>
<el-option
label=
"cccc"
value=
"11"
></el-option>
<el-option
label=
"cccc"
value=
"121"
></el-option>
</el-select>
</div>
<div
class=
"popbot"
>
<div
class=
"wordprimary"
>
前往城投平台寻找客户线索>
</div>
<div
class=
"btn btn_cancel h32"
@
click=
"cancel"
>
返回
</div>
<div
class=
"btn btn_primary h32"
>
添加
</div>
</div>
</div>
</el-dialog>
</el-card>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
"@/assets/styles/project.scss"
export
default
{
export
default
{
name
:
'CustomList'
,
name
:
'CustomList'
,
data
()
{
data
()
{
return
{
return
{
dialogVisible
:
false
,
textarea
:
""
,
nowedit
:
-
1
,
//当前正在编辑的文本
tipslit
:[],
//项目标签
tipsvalue
:
""
,
//标签填写内容
tableData
:
[
{
date
:
'2016-05-02'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1518 弄'
},
{
date
:
'2016-05-04'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1517 弄'
},
{
date
:
'2016-05-01'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1519 弄'
},
{
date
:
'2016-05-03'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1516 弄'
}
]
}
}
},
},
created
()
{
created
()
{
},
},
methods
:
{
methods
:{
//翻页
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
);
},
cancel
(){
this
.
dialogVisible
=
false
},
//打开新建窗口
opennew
(){
this
.
dialogVisible
=
true
},
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.app-container
{
padding
:
0
;
height
:
calc
(
100vh
-
134px
)
}
.box-card
{
padding-top
:
16px
;
width
:
100%
;
height
:
100%
;
}
.dc
{
font-size
:
12px
;
color
:
#3D3D3D
;
font-weight
:
400
;
position
:
relative
;
&
:
:
after
{
content
:
' '
;
width
:
2px
;
height
:
2px
;
background
:
rgba
(
35
,
35
,
35
,
0
.4
);
border-radius
:
50%
;
position
:
absolute
;
top
:
16px
;
left
:
14px
;
}
>
div
{
display
:
inline-block
;
margin-left
:
20px
;
}
}
.img.img1
{
margin-right
:
2px
;
background
:
url('../../../../src/assets/images/project/add_2.png')
no-repeat
center
center
;
}
.w88
{
width
:
88px
;
}
.tables
{
position
:
relative
;
height
:
calc
(
100vh
-
134px
);
.empty
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,-
50%
);
.btn
{
margin-right
:
8px
;
margin-top
:
12px
;
}
}
}
.ps1
{
display
:
flex
;
justify-content
:
space-between
;
.ps2
{
width
:
270px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.ps3
{
width
:
150px
;
display
:
flex
;
justify-content
:
right
;
>
div
{
margin-left
:
12px
;
&
:hover
{
color
:
#0CBC6D
;
cursor
:
pointer
;
}
>
img
{
float
:
right
;
margin
:
3px
0
0
4px
}
}
}
}
.popbot
{
.wordprimary
{
display
:
inline
;
padding-right
:
26px
;
}
}
</
style
>
</
style
>
dsk-operate-ui/src/views/project/projectList/component/lxr.vue
View file @
a292d17d
<
template
>
<
template
>
<div>
<div>
<el-card
class=
"box-card noborder"
>
<el-card
class=
"box-card noborder"
>
<div
class=
"cardtitles"
>
基本信息
</div>
<div
class=
"cardtitles"
>
基本信息
</div>
...
@@ -171,6 +170,7 @@
...
@@ -171,6 +170,7 @@
width
:
102px
;
width
:
102px
;
}
}
.popups
.popform
.popbot
{
padding-right
:
47px
;}
.img.img1
{
.img.img1
{
margin-right
:
8px
;
margin-right
:
8px
;
background
:
url('../../../../../src/assets/images/project/add_2.png')
no-repeat
center
center
;
background
:
url('../../../../../src/assets/images/project/add_2.png')
no-repeat
center
center
;
...
...
dsk-operate-ui/src/views/project/projectList/detail.vue
View file @
a292d17d
...
@@ -135,15 +135,6 @@
...
@@ -135,15 +135,6 @@
.app-container
{
.app-container
{
padding
:
0
;
padding
:
0
;
}
}
.miantitle
{
color
:
#232323
;
font-size
:
12px
;
margin
:
12px
24px
;
>
span
{
opacity
:
0
.4
;
&
:last-child
{
opacity
:
0
.8
}
}
}
.head
{
.head
{
.titles
{
.titles
{
line-height
:
31px
;
line-height
:
31px
;
...
...
dsk-operate-ui/src/views/radar/components/debtProject/index.vue
0 → 100644
View file @
a292d17d
<
template
>
<div
class=
"content"
>
</div>
</
template
>
<
script
>
export
default
{
name
:
'debtProject'
,
data
()
{
return
{
}
},
created
()
{},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.content
{
padding
:
0px
16px
;
background
:
#FFFFFF
;
}
</
style
>
\ No newline at end of file
dsk-operate-ui/src/views/radar/index.vue
0 → 100644
View file @
a292d17d
<
template
>
<div
class=
"app-container"
>
<div
class=
"content"
>
<div
class=
"combined-title"
>
<div
class=
"title-right"
>
<div
class=
"tab"
>
<div
style=
"position:relative"
v-for=
"(itme,i) in personnelList"
:class=
"itme.status==true?'active':'' "
:key=
'i'
@
click=
"personnelListbtn(i)"
>
<p>
{{
itme
.
value
}}
</p>
</div>
</div>
<p
class=
"solid"
></p>
</div>
</div>
</div>
<debtProject
v-if=
"personnelHerf=='debtProject'"
/>
</div>
</
template
>
<
script
>
import
debtProject
from
"./components/debtProject/index.vue"
;
export
default
{
name
:
'radar'
,
components
:
{
debtProject
},
data
()
{
return
{
// tablist
personnelList
:
[{
key
:
'debtProject'
,
status
:
true
,
value
:
'企业专项债项目'
,
},
{
key
:
'Builder'
,
status
:
false
,
value
:
'土地交易'
,
},
{
key
:
'KeyPersonnel'
,
status
:
false
,
value
:
'拟建项目'
,
},
{
key
:
'KeyPersonnel'
,
status
:
false
,
value
:
'招标计划'
,
},
{
key
:
'KeyPersonnel'
,
status
:
false
,
value
:
'标讯pro'
,
},
{
key
:
'KeyPersonnel'
,
status
:
false
,
value
:
'公招标讯'
,
},
{
key
:
'KeyPersonnel'
,
status
:
false
,
value
:
'开标记录'
,
},
],
personnelHerf
:
'debtProject'
}
},
created
()
{},
methods
:
{
personnelListbtn
(
index
)
{
for
(
var
i
=
0
;
i
<
this
.
personnelList
.
length
;
i
++
)
{
this
.
personnelList
[
i
].
status
=
false
;
}
this
.
personnelList
[
index
].
status
=
true
;
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"~@/assets/styles/public.scss"
;
.app-container
{
margin
:
12px
24px
;
padding
:
0
;
}
.content
{
padding
:
0px
16px
;
background
:
#FFFFFF
;
}
.app-container
.combined-title
{
display
:
flex
;
padding-top
:
16px
;
align-items
:
center
}
.app-container
.combined-title
.title-icon
{
display
:
inline-block
;
width
:
6px
;
height
:
26px
;
background
:
#0081FF
;
border-radius
:
0px
0px
0px
0px
;
opacity
:
1
;
margin-right
:
18px
;
}
.app-container
.combined-title
.title-right
{
display
:
flex
;
width
:
1044px
;
position
:
relative
;
height
:
40px
;
}
.app-container
.combined-title
.title-right
.title-text
{
font-size
:
16px
;
font-weight
:
bold
;
color
:
#333333
;
line-height
:
40px
;
}
.app-container
.combined-title
.title-right
.title-add
{
color
:
#0081FF
;
cursor
:
pointer
;
position
:
absolute
;
right
:
0
;
}
.app-container
.combined-title
.title-right
.title-addyj
{
top
:
5px
;
}
.app-container
.combined-title
.title-right
.title-add
.add-img
{
position
:
relative
;
top
:
-1px
;
margin-right
:
6px
;
}
.app-container
.combined-title
.title-right
.solid
{
width
:
100%
;
height
:
1px
;
background-color
:
#EEEEEE
;
position
:
absolute
;
bottom
:
0px
;
left
:
0
;
z-index
:
1
;
}
.tab
{
display
:
flex
;
z-index
:
2
;
}
.tab_p_32
{
padding-right
:
32px
;
padding-left
:
32px
;
}
.tab
div
{
cursor
:
pointer
;
color
:
#666666
;
font-size
:
14px
;
text-align
:
center
;
margin-right
:
32px
;
line-height
:
40px
;
}
.tab
div
p
{
display
:
inline-block
;
padding
:
0px
;
}
.tab
div
.logo
{
color
:
#fff
;
font-weight
:
400
;
font-size
:
10px
;
position
:
absolute
;
top
:
-6px
;
right
:
-24px
;
display
:
inline-block
;
line-height
:
14px
;
padding
:
1px
2px
;
text-align
:
center
;
background
:
#3663DE
;
border-radius
:
2px
2px
2px
2px
;
}
.tab
div
.triangle
{
display
:
inline-block
;
width
:
0px
;
height
:
0px
;
border-left
:
3px
solid
transparent
;
border-right
:
3px
solid
transparent
;
border-top
:
4px
solid
#3663DE
;
position
:
absolute
;
top
:
9
.5px
;
right
:
-3px
;
}
.tab
.active
{
color
:
#0081FF
;
}
.tab
.active
.triangle
{
border-top
:
4px
solid
#0081FF
;
}
.tab
.active
.logo
{
background
:
#0081FF
;
}
.tab
.active
p
{
border-bottom
:
2px
solid
#0081FF
;
font-weight
:
bold
;
}
</
style
>
\ No newline at end of file
dsk-operate-ui/src/views/radar/list/index.vue
deleted
100644 → 0
View file @
5d41ea7a
<
template
>
<div
class=
"app-container"
>
监控列表
</div>
</
template
>
<
script
>
export
default
{
name
:
'List'
,
data
()
{
return
{
}
},
created
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
dsk-operate-ui/src/views/radar/opportunity/index.vue
deleted
100644 → 0
View file @
5d41ea7a
<
template
>
<div
class=
"app-container"
>
商机查询
</div>
</
template
>
<
script
>
export
default
{
name
:
'Opportunity'
,
data
()
{
return
{
}
},
created
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
dsk-operate-ui/src/views/radar/overview/index.vue
deleted
100644 → 0
View file @
5d41ea7a
<
template
>
<div
class=
"app-container"
>
监控动态
</div>
</
template
>
<
script
>
export
default
{
name
:
'Trends'
,
data
()
{
return
{
}
},
created
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
dsk-operate-ui/src/views/radar/subscription/index.vue
deleted
100644 → 0
View file @
5d41ea7a
<
template
>
<div
class=
"app-container"
>
项目订阅
</div>
</
template
>
<
script
>
export
default
{
name
:
'Subscription'
,
data
()
{
return
{
}
},
created
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
dsk-operate-ui/src/views/radar/trends/index.vue
deleted
100644 → 0
View file @
5d41ea7a
<
template
>
<div
class=
"app-container"
>
监控动态
</div>
</
template
>
<
script
>
export
default
{
name
:
'Trends'
,
data
()
{
return
{
}
},
created
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
dsk-system/src/main/java/com/dsk/system/domain/vo/BusinessBrowseVo.java
View file @
a292d17d
package
com
.
dsk
.
system
.
domain
.
vo
;
package
com
.
dsk
.
system
.
domain
.
vo
;
import
com.dsk.common.core.domain.entity.BusinessRelateCompany
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
/**
/**
* @author lxl
* @author lxl
* @Description:
* @Description:
...
@@ -10,5 +13,90 @@ import lombok.Data;
...
@@ -10,5 +13,90 @@ import lombok.Data;
@Data
@Data
public
class
BusinessBrowseVo
{
public
class
BusinessBrowseVo
{
/**
* 项目名称
*/
private
String
projectName
;
/**
* 项目名称
*/
private
Integer
isPrivate
;
/**
* 项目类型
*/
private
String
projectType
;
/**
* 项目类别
*/
private
String
projectCategory
;
/**
* 投资估算
*/
private
Double
investmentAmount
;
/**
* 省
*/
private
String
provinceName
;
/**
* 市
*/
private
String
cityName
;
/**
* 区
*/
private
String
districtName
;
/**
* 商务团队
*/
private
String
team
;
/**
* 项目阶段
*/
private
String
projectStage
;
/**
* 项目级别
*/
private
String
projectLevel
;
/**
* 项目标签
*/
private
List
<
String
>
labelList
;
/**
* 关键企业
*/
private
List
<
BusinessRelateCompany
>
relateCompany
;
/**
* 联系人统计
*/
private
Integer
contactsCount
;
/**
* 跟进记录统计
*/
private
Integer
followRecordCount
;
/**
* 工作待办统计
*/
private
Integer
backlogCount
;
/**
* 相关企业统计
*/
private
Integer
relateCompanyCount
;
}
}
dsk-system/src/main/java/com/dsk/system/mapper/BusinessFollowRecordMapper.java
View file @
a292d17d
...
@@ -21,12 +21,20 @@ public interface BusinessFollowRecordMapper
...
@@ -21,12 +21,20 @@ public interface BusinessFollowRecordMapper
public
BusinessFollowRecord
selectBusinessFollowRecordById
(
Long
id
);
public
BusinessFollowRecord
selectBusinessFollowRecordById
(
Long
id
);
/**
/**
* 查询项目跟进记录列表
*
分页
查询项目跟进记录列表
*
*
* @param businessFollowRecord 项目跟进记录
* @param businessFollowRecord 项目跟进记录
* @return 项目跟进记录集合
* @return 项目跟进记录集合
*/
*/
public
List
<
BusinessFollowRecord
>
selectBusinessFollowRecordList
(
BusinessFollowRecord
businessFollowRecord
);
public
List
<
BusinessFollowRecord
>
businessFollowRecordPaging
(
BusinessFollowRecord
businessFollowRecord
);
/**
* 根据项目id查询项目跟进记录
*
* @param businessId 项目id
* @return 项目跟进记录集合
*/
public
List
<
BusinessFollowRecord
>
selectBusinessFollowRecordList
(
Integer
businessId
);
/**
/**
* 新增项目跟进记录
* 新增项目跟进记录
...
...
dsk-system/src/main/java/com/dsk/system/mapper/BusinessInfoMapper.java
View file @
a292d17d
...
@@ -5,6 +5,7 @@ import com.dsk.common.core.domain.entity.BusinessInfo;
...
@@ -5,6 +5,7 @@ import com.dsk.common.core.domain.entity.BusinessInfo;
import
com.dsk.system.domain.BusinessListDto
;
import
com.dsk.system.domain.BusinessListDto
;
import
com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto
;
import
com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto
;
import
com.dsk.system.domain.customer.vo.CustomerBusinessListVo
;
import
com.dsk.system.domain.customer.vo.CustomerBusinessListVo
;
import
com.dsk.system.domain.vo.BusinessBrowseVo
;
import
com.dsk.system.domain.vo.BusinessListVo
;
import
com.dsk.system.domain.vo.BusinessListVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
@@ -13,7 +14,7 @@ import java.util.List;
...
@@ -13,7 +14,7 @@ import java.util.List;
/**
/**
* 项目详情Mapper接口
* 项目详情Mapper接口
*
*
* @author lxl
* @author lxl
* @date 2023-05-17
* @date 2023-05-17
*/
*/
...
@@ -22,21 +23,29 @@ public interface BusinessInfoMapper extends BaseMapper<BusinessInfo>
...
@@ -22,21 +23,29 @@ public interface BusinessInfoMapper extends BaseMapper<BusinessInfo>
{
{
/**
/**
* 查询项目详情
* 查询项目详情
*
*
* @param id 项目详情主键
* @param id 项目详情主键
* @return 项目详情
* @return 项目详情
*/
*/
public
BusinessInfo
selectBusinessInfoById
(
Long
id
);
public
BusinessInfo
selectBusinessInfoById
(
Integer
id
);
/**
* 查询项目建设内容
*
* @param id 项目详情主键
* @return
*/
BusinessInfo
getConstruction
(
Integer
id
);
/**
/**
* 查询所有项目名称(支持模糊查询)
* 查询所有项目名称(支持模糊查询)
* @return
* @return
*/
*/
List
<
String
>
queryp
rojectName
(
BusinessListDto
dto
);
List
<
String
>
selectP
rojectName
(
BusinessListDto
dto
);
/**
/**
* 查询项目详情列表
* 查询项目详情列表
*
*
* @param dto 项目详情
* @param dto 项目详情
* @return 项目详情集合
* @return 项目详情集合
*/
*/
...
@@ -44,7 +53,7 @@ public interface BusinessInfoMapper extends BaseMapper<BusinessInfo>
...
@@ -44,7 +53,7 @@ public interface BusinessInfoMapper extends BaseMapper<BusinessInfo>
/**
/**
* 新增项目详情
* 新增项目详情
*
*
* @param businessInfo 项目详情
* @param businessInfo 项目详情
* @return 结果
* @return 结果
*/
*/
...
@@ -74,6 +83,15 @@ public interface BusinessInfoMapper extends BaseMapper<BusinessInfo>
...
@@ -74,6 +83,15 @@ public interface BusinessInfoMapper extends BaseMapper<BusinessInfo>
*/
*/
public
int
deleteBusinessInfoByIds
(
Long
[]
ids
);
public
int
deleteBusinessInfoByIds
(
Long
[]
ids
);
/**
* 根据项目统计
* @param business
* @return
*/
BusinessBrowseVo
selectTotal
(
Integer
business
);
int
selectCountByStatusAndCustomerId
(
@Param
(
"status"
)
Integer
status
,
@Param
(
"customerId"
)
String
customerId
);
int
selectCountByStatusAndCustomerId
(
@Param
(
"status"
)
Integer
status
,
@Param
(
"customerId"
)
String
customerId
);
List
<
CustomerBusinessListVo
>
selectCustomerBusinessList
(
CustomerBusinessSearchDto
dto
);
List
<
CustomerBusinessListVo
>
selectCustomerBusinessList
(
CustomerBusinessSearchDto
dto
);
...
...
dsk-system/src/main/java/com/dsk/system/service/IBusinessFollowRecordService.java
View file @
a292d17d
...
@@ -21,12 +21,20 @@ public interface IBusinessFollowRecordService
...
@@ -21,12 +21,20 @@ public interface IBusinessFollowRecordService
public
BusinessFollowRecord
selectBusinessFollowRecordById
(
Long
id
);
public
BusinessFollowRecord
selectBusinessFollowRecordById
(
Long
id
);
/**
/**
*
查询项目跟进记录列表
*
根据项目id查询项目跟进记录
*
*
* @param businessId 项目跟进记录
* @return 项目跟进记录集合
*/
public
List
<
BusinessFollowRecord
>
selectBusinessFollowRecordList
(
Integer
businessId
);
/**
* 分页查询项目跟进记录列表
*
* @param businessFollowRecord 项目跟进记录
* @param businessFollowRecord 项目跟进记录
* @return 项目跟进记录集合
* @return 项目跟进记录集合
*/
*/
public
List
<
BusinessFollowRecord
>
selectBusinessFollowRecordList
(
BusinessFollowRecord
businessFollowRecord
);
public
List
<
BusinessFollowRecord
>
businessFollowRecordPaging
(
BusinessFollowRecord
businessFollowRecord
);
/**
/**
* 新增项目跟进记录
* 新增项目跟进记录
...
...
dsk-system/src/main/java/com/dsk/system/service/IBusinessInfoService.java
View file @
a292d17d
...
@@ -2,11 +2,11 @@ package com.dsk.system.service;
...
@@ -2,11 +2,11 @@ package com.dsk.system.service;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.core.domain.entity.BusinessInfo
;
import
com.dsk.common.core.domain.entity.BusinessInfo
;
import
com.dsk.common.dtos.BusinessInfoDto
;
import
com.dsk.system.domain.BusinessAddDto
;
import
com.dsk.system.domain.BusinessAddDto
;
import
com.dsk.system.domain.BusinessListDto
;
import
com.dsk.system.domain.BusinessListDto
;
import
com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto
;
import
com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto
;
import
com.dsk.system.domain.customer.vo.CustomerBusinessListVo
;
import
com.dsk.system.domain.customer.vo.CustomerBusinessListVo
;
import
com.dsk.system.domain.vo.BusinessBrowseVo
;
import
com.dsk.system.domain.vo.BusinessListVo
;
import
com.dsk.system.domain.vo.BusinessListVo
;
import
java.util.List
;
import
java.util.List
;
...
@@ -25,25 +25,40 @@ public interface IBusinessInfoService
...
@@ -25,25 +25,40 @@ public interface IBusinessInfoService
* @param id 项目详情主键
* @param id 项目详情主键
* @return 项目详情
* @return 项目详情
*/
*/
public
BusinessInfo
selectBusinessInfoById
(
Long
id
);
public
BusinessInfo
selectBusinessInfoById
(
Integer
id
);
/**
/**
* 查询项目
详情列表
* 查询项目
建设内容
*
*
* @param id 项目详情主键
* @return
*/
BusinessInfo
getConstruction
(
Integer
id
);
/**
* 查询项目详情列表
*
* @param dto 项目详情
* @param dto 项目详情
* @return 项目详情集合
* @return 项目详情集合
*/
*/
public
List
<
BusinessListVo
>
selectBusinessInfoList
(
BusinessListDto
dto
);
public
List
<
BusinessListVo
>
selectBusinessInfoList
(
BusinessListDto
dto
);
/**
* 查询项目速览
* @param businessId
* @return
*/
BusinessBrowseVo
browse
(
Integer
businessId
);
/**
/**
* 查询所有项目名称(支持模糊查询)
* 查询所有项目名称(支持模糊查询)
* @return
* @return
*/
*/
List
<
String
>
queryp
rojectName
(
BusinessListDto
dto
);
List
<
String
>
selectP
rojectName
(
BusinessListDto
dto
);
/**
/**
* 新增项目详情
* 新增项目详情
*
*
* @param dto 项目详情
* @param dto 项目详情
* @return 结果
* @return 结果
*/
*/
...
@@ -51,7 +66,7 @@ public interface IBusinessInfoService
...
@@ -51,7 +66,7 @@ public interface IBusinessInfoService
/**
/**
* 修改项目详情
* 修改项目详情
*
*
* @param businessInfo 项目详情
* @param businessInfo 项目详情
* @return 结果
* @return 结果
*/
*/
...
@@ -59,7 +74,7 @@ public interface IBusinessInfoService
...
@@ -59,7 +74,7 @@ public interface IBusinessInfoService
/**
/**
* 批量删除项目详情
* 批量删除项目详情
*
*
* @param ids 需要删除的项目详情主键集合
* @param ids 需要删除的项目详情主键集合
* @return 结果
* @return 结果
*/
*/
...
@@ -67,7 +82,7 @@ public interface IBusinessInfoService
...
@@ -67,7 +82,7 @@ public interface IBusinessInfoService
/**
/**
* 删除项目详情信息
* 删除项目详情信息
*
*
* @param id 项目详情主键
* @param id 项目详情主键
* @return 结果
* @return 结果
*/
*/
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/BusinessBacklogServiceImpl.java
View file @
a292d17d
...
@@ -6,6 +6,7 @@ import com.dsk.system.mapper.BusinessBacklogMapper;
...
@@ -6,6 +6,7 @@ import com.dsk.system.mapper.BusinessBacklogMapper;
import
com.dsk.system.service.IBusinessBacklogService
;
import
com.dsk.system.service.IBusinessBacklogService
;
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
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
java.util.List
;
...
@@ -52,6 +53,7 @@ public class BusinessBacklogServiceImpl implements IBusinessBacklogService
...
@@ -52,6 +53,7 @@ public class BusinessBacklogServiceImpl implements IBusinessBacklogService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
insertBusinessBacklog
(
BusinessBacklog
businessBacklog
)
public
int
insertBusinessBacklog
(
BusinessBacklog
businessBacklog
)
{
{
businessBacklog
.
setCreateTime
(
DateUtils
.
getNowDate
());
businessBacklog
.
setCreateTime
(
DateUtils
.
getNowDate
());
...
@@ -67,6 +69,7 @@ public class BusinessBacklogServiceImpl implements IBusinessBacklogService
...
@@ -67,6 +69,7 @@ public class BusinessBacklogServiceImpl implements IBusinessBacklogService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
updateBusinessBacklog
(
BusinessBacklog
businessBacklog
)
public
int
updateBusinessBacklog
(
BusinessBacklog
businessBacklog
)
{
{
businessBacklog
.
setUpdateTime
(
DateUtils
.
getNowDate
());
businessBacklog
.
setUpdateTime
(
DateUtils
.
getNowDate
());
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/BusinessContactsServiceImpl.java
View file @
a292d17d
...
@@ -3,11 +3,14 @@ package com.dsk.system.service.impl;
...
@@ -3,11 +3,14 @@ package com.dsk.system.service.impl;
import
java.util.List
;
import
java.util.List
;
import
com.dsk.common.core.domain.entity.BusinessContacts
;
import
com.dsk.common.core.domain.entity.BusinessContacts
;
import
com.dsk.common.exception.base.BaseException
;
import
com.dsk.common.utils.CheckUtils
;
import
com.dsk.common.utils.DateUtils
;
import
com.dsk.common.utils.DateUtils
;
import
com.dsk.system.mapper.BusinessContactsMapper
;
import
com.dsk.system.mapper.BusinessContactsMapper
;
import
com.dsk.system.service.IBusinessContactsService
;
import
com.dsk.system.service.IBusinessContactsService
;
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
org.springframework.transaction.annotation.Transactional
;
/**
/**
* 项目联系人Service业务层处理
* 项目联系人Service业务层处理
...
@@ -52,8 +55,10 @@ public class BusinessContactsServiceImpl implements IBusinessContactsService
...
@@ -52,8 +55,10 @@ public class BusinessContactsServiceImpl implements IBusinessContactsService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
insertBusinessContacts
(
BusinessContacts
businessContacts
)
public
int
insertBusinessContacts
(
BusinessContacts
businessContacts
)
{
{
if
(!
CheckUtils
.
isPhone
(
businessContacts
.
getPhone
()))
throw
new
BaseException
(
"500"
,
"请输入正确的手机号码"
);
return
businessContactsMapper
.
insertBusinessContacts
(
businessContacts
);
return
businessContactsMapper
.
insertBusinessContacts
(
businessContacts
);
}
}
...
@@ -64,8 +69,10 @@ public class BusinessContactsServiceImpl implements IBusinessContactsService
...
@@ -64,8 +69,10 @@ public class BusinessContactsServiceImpl implements IBusinessContactsService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
updateBusinessContacts
(
BusinessContacts
businessContacts
)
public
int
updateBusinessContacts
(
BusinessContacts
businessContacts
)
{
{
if
(!
CheckUtils
.
isPhone
(
businessContacts
.
getPhone
()))
throw
new
BaseException
(
"500"
,
"请输入正确的手机号码"
);
businessContacts
.
setUpdateTime
(
DateUtils
.
getNowDate
());
businessContacts
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
businessContactsMapper
.
updateBusinessContacts
(
businessContacts
);
return
businessContactsMapper
.
updateBusinessContacts
(
businessContacts
);
}
}
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/BusinessFollowRecordServiceImpl.java
View file @
a292d17d
...
@@ -8,6 +8,7 @@ import com.dsk.system.mapper.BusinessFollowRecordMapper;
...
@@ -8,6 +8,7 @@ import com.dsk.system.mapper.BusinessFollowRecordMapper;
import
com.dsk.system.service.IBusinessFollowRecordService
;
import
com.dsk.system.service.IBusinessFollowRecordService
;
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
org.springframework.transaction.annotation.Transactional
;
/**
/**
* 项目跟进记录Service业务层处理
* 项目跟进记录Service业务层处理
...
@@ -33,16 +34,15 @@ public class BusinessFollowRecordServiceImpl implements IBusinessFollowRecordSer
...
@@ -33,16 +34,15 @@ public class BusinessFollowRecordServiceImpl implements IBusinessFollowRecordSer
return
businessFollowRecordMapper
.
selectBusinessFollowRecordById
(
id
);
return
businessFollowRecordMapper
.
selectBusinessFollowRecordById
(
id
);
}
}
/**
* 查询项目跟进记录列表
*
* @param businessFollowRecord 项目跟进记录
* @return 项目跟进记录
*/
@Override
@Override
public
List
<
BusinessFollowRecord
>
selectBusinessFollowRecordList
(
BusinessFollowRecord
businessFollowRecor
d
)
public
List
<
BusinessFollowRecord
>
selectBusinessFollowRecordList
(
Integer
businessI
d
)
{
{
return
businessFollowRecordMapper
.
selectBusinessFollowRecordList
(
businessFollowRecord
);
return
businessFollowRecordMapper
.
selectBusinessFollowRecordList
(
businessId
);
}
@Override
public
List
<
BusinessFollowRecord
>
businessFollowRecordPaging
(
BusinessFollowRecord
businessFollowRecord
)
{
return
businessFollowRecordMapper
.
businessFollowRecordPaging
(
businessFollowRecord
);
}
}
/**
/**
...
@@ -52,6 +52,7 @@ public class BusinessFollowRecordServiceImpl implements IBusinessFollowRecordSer
...
@@ -52,6 +52,7 @@ public class BusinessFollowRecordServiceImpl implements IBusinessFollowRecordSer
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
insertBusinessFollowRecord
(
BusinessFollowRecord
businessFollowRecord
)
public
int
insertBusinessFollowRecord
(
BusinessFollowRecord
businessFollowRecord
)
{
{
return
businessFollowRecordMapper
.
insertBusinessFollowRecord
(
businessFollowRecord
);
return
businessFollowRecordMapper
.
insertBusinessFollowRecord
(
businessFollowRecord
);
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/BusinessInfoServiceImpl.java
View file @
a292d17d
...
@@ -2,10 +2,12 @@ package com.dsk.system.service.impl;
...
@@ -2,10 +2,12 @@ package com.dsk.system.service.impl;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.core.domain.entity.BusinessInfo
;
import
com.dsk.common.core.domain.entity.BusinessInfo
;
import
com.dsk.common.core.domain.entity.BusinessLabel
;
import
com.dsk.common.core.domain.entity.BusinessRelateCompany
;
import
com.dsk.common.core.domain.entity.BusinessRelateCompany
;
import
com.dsk.common.core.domain.entity.BusinessUser
;
import
com.dsk.common.core.domain.entity.BusinessUser
;
import
com.dsk.common.dtos.BusinessInfoDto
;
import
com.dsk.common.dtos.BusinessInfoDto
;
...
@@ -15,8 +17,10 @@ import com.dsk.system.domain.BusinessAddDto;
...
@@ -15,8 +17,10 @@ import com.dsk.system.domain.BusinessAddDto;
import
com.dsk.system.domain.BusinessListDto
;
import
com.dsk.system.domain.BusinessListDto
;
import
com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto
;
import
com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto
;
import
com.dsk.system.domain.customer.vo.CustomerBusinessListVo
;
import
com.dsk.system.domain.customer.vo.CustomerBusinessListVo
;
import
com.dsk.system.domain.vo.BusinessBrowseVo
;
import
com.dsk.system.domain.vo.BusinessListVo
;
import
com.dsk.system.domain.vo.BusinessListVo
;
import
com.dsk.system.mapper.BusinessInfoMapper
;
import
com.dsk.system.mapper.BusinessInfoMapper
;
import
com.dsk.system.mapper.BusinessLabelMapper
;
import
com.dsk.system.mapper.BusinessRelateCompanyMapper
;
import
com.dsk.system.mapper.BusinessRelateCompanyMapper
;
import
com.dsk.system.mapper.BusinessUserMapper
;
import
com.dsk.system.mapper.BusinessUserMapper
;
import
com.dsk.system.service.IBusinessInfoService
;
import
com.dsk.system.service.IBusinessInfoService
;
...
@@ -40,6 +44,8 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
...
@@ -40,6 +44,8 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
private
BusinessUserMapper
businessUserMapper
;
private
BusinessUserMapper
businessUserMapper
;
@Resource
@Resource
private
BusinessRelateCompanyMapper
businessRelateCompanyMapper
;
private
BusinessRelateCompanyMapper
businessRelateCompanyMapper
;
@Resource
private
BusinessLabelMapper
businessLabelMapper
;
/**
/**
* 查询项目详情
* 查询项目详情
...
@@ -48,10 +54,15 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
...
@@ -48,10 +54,15 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
* @return 项目详情
* @return 项目详情
*/
*/
@Override
@Override
public
BusinessInfo
selectBusinessInfoById
(
Long
id
)
{
public
BusinessInfo
selectBusinessInfoById
(
Integer
id
)
{
return
businessInfoMapper
.
selectBusinessInfoById
(
id
);
return
businessInfoMapper
.
selectBusinessInfoById
(
id
);
}
}
@Override
public
BusinessInfo
getConstruction
(
Integer
id
)
{
return
businessInfoMapper
.
getConstruction
(
id
);
}
/**
/**
* 查询项目详情列表
* 查询项目详情列表
*
*
...
@@ -64,8 +75,26 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
...
@@ -64,8 +75,26 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
}
}
@Override
@Override
public
List
<
String
>
queryprojectName
(
BusinessListDto
dto
)
{
public
BusinessBrowseVo
browse
(
Integer
businessId
)
{
return
businessInfoMapper
.
queryprojectName
(
dto
);
BusinessBrowseVo
businessBrowseVo
=
new
BusinessBrowseVo
();
//查询项目基本信息
BusinessInfo
businessInfo
=
businessInfoMapper
.
selectBusinessInfoById
(
businessId
);
BeanUtil
.
copyProperties
(
businessInfo
,
businessBrowseVo
);
//查询项目标签
businessBrowseVo
.
setLabelList
(
businessLabelMapper
.
selectBusinessLabelList
(
new
BusinessLabel
(
businessId
)).
stream
().
map
(
p
->
p
.
getLabel
()).
collect
(
Collectors
.
toList
()));
//查询关键企业
businessBrowseVo
.
setRelateCompany
(
businessRelateCompanyMapper
.
selectBusinessRelateCompanyList
(
new
BusinessRelateCompany
(
businessId
)));
BusinessBrowseVo
total
=
businessInfoMapper
.
selectTotal
(
businessId
);
businessBrowseVo
.
setBacklogCount
(
total
.
getBacklogCount
());
businessBrowseVo
.
setContactsCount
(
total
.
getContactsCount
());
businessBrowseVo
.
setFollowRecordCount
(
total
.
getFollowRecordCount
());
businessBrowseVo
.
setRelateCompanyCount
(
total
.
getRelateCompanyCount
());
return
businessBrowseVo
;
}
@Override
public
List
<
String
>
selectProjectName
(
BusinessListDto
dto
)
{
return
businessInfoMapper
.
selectProjectName
(
dto
);
}
}
/**
/**
...
@@ -102,7 +131,9 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
...
@@ -102,7 +131,9 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
* @return 结果
* @return 结果
*/
*/
@Override
@Override
public
int
updateBusinessInfo
(
BusinessInfo
businessInfo
)
{
@Transactional
public
int
updateBusinessInfo
(
BusinessInfo
businessInfo
)
{
businessInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
businessInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
businessInfoMapper
.
updateBusinessInfo
(
businessInfo
);
return
businessInfoMapper
.
updateBusinessInfo
(
businessInfo
);
}
}
...
@@ -114,6 +145,7 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
...
@@ -114,6 +145,7 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
deleteBusinessInfoByIds
(
Long
[]
ids
)
{
public
int
deleteBusinessInfoByIds
(
Long
[]
ids
)
{
return
businessInfoMapper
.
deleteBusinessInfoByIds
(
ids
);
return
businessInfoMapper
.
deleteBusinessInfoByIds
(
ids
);
}
}
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/BusinessLabelServiceImpl.java
View file @
a292d17d
...
@@ -9,6 +9,7 @@ import com.dsk.system.mapper.BusinessLabelMapper;
...
@@ -9,6 +9,7 @@ import com.dsk.system.mapper.BusinessLabelMapper;
import
com.dsk.system.service.IBusinessLabelService
;
import
com.dsk.system.service.IBusinessLabelService
;
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
org.springframework.transaction.annotation.Transactional
;
/**
/**
* 项目标签Service业务层处理
* 项目标签Service业务层处理
...
@@ -53,6 +54,7 @@ public class BusinessLabelServiceImpl implements IBusinessLabelService
...
@@ -53,6 +54,7 @@ public class BusinessLabelServiceImpl implements IBusinessLabelService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
insertBusinessLabel
(
BusinessLabel
businessLabel
)
public
int
insertBusinessLabel
(
BusinessLabel
businessLabel
)
{
{
businessLabel
.
setCreateTime
(
DateUtils
.
getNowDate
());
businessLabel
.
setCreateTime
(
DateUtils
.
getNowDate
());
...
@@ -91,6 +93,7 @@ public class BusinessLabelServiceImpl implements IBusinessLabelService
...
@@ -91,6 +93,7 @@ public class BusinessLabelServiceImpl implements IBusinessLabelService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
deleteBusinessLabelById
(
BusinessIdDto
dto
)
public
int
deleteBusinessLabelById
(
BusinessIdDto
dto
)
{
{
return
businessLabelMapper
.
deleteBusinessLabelById
(
dto
);
return
businessLabelMapper
.
deleteBusinessLabelById
(
dto
);
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/BusinessRelateCompanyServiceImpl.java
View file @
a292d17d
...
@@ -4,12 +4,16 @@ import java.util.List;
...
@@ -4,12 +4,16 @@ import java.util.List;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.core.domain.entity.BusinessRelateCompany
;
import
com.dsk.common.core.domain.entity.BusinessRelateCompany
;
import
com.dsk.common.exception.base.BaseException
;
import
com.dsk.common.utils.CheckUtils
;
import
com.dsk.common.utils.DateUtils
;
import
com.dsk.common.utils.DateUtils
;
import
com.dsk.system.domain.BusinessIdDto
;
import
com.dsk.system.domain.BusinessIdDto
;
import
com.dsk.system.mapper.BusinessRelateCompanyMapper
;
import
com.dsk.system.mapper.BusinessRelateCompanyMapper
;
import
com.dsk.system.service.IBusinessRelateCompanyService
;
import
com.dsk.system.service.IBusinessRelateCompanyService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -56,8 +60,10 @@ public class BusinessRelateCompanyServiceImpl implements IBusinessRelateCompanyS
...
@@ -56,8 +60,10 @@ public class BusinessRelateCompanyServiceImpl implements IBusinessRelateCompanyS
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
insertBusinessRelateCompany
(
BusinessRelateCompany
businessRelateCompany
)
public
int
insertBusinessRelateCompany
(
BusinessRelateCompany
businessRelateCompany
)
{
{
if
(!
CheckUtils
.
isPhone
(
businessRelateCompany
.
getPhone
()))
throw
new
BaseException
(
"500"
,
"请输入正确的手机号码"
);
businessRelateCompany
.
setCreateTime
(
DateUtils
.
getNowDate
());
businessRelateCompany
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
businessRelateCompanyMapper
.
insertBusinessRelateCompany
(
businessRelateCompany
);
return
businessRelateCompanyMapper
.
insertBusinessRelateCompany
(
businessRelateCompany
);
}
}
...
@@ -69,8 +75,10 @@ public class BusinessRelateCompanyServiceImpl implements IBusinessRelateCompanyS
...
@@ -69,8 +75,10 @@ public class BusinessRelateCompanyServiceImpl implements IBusinessRelateCompanyS
* @return 结果
* @return 结果
*/
*/
@Override
@Override
@Transactional
public
int
updateBusinessRelateCompany
(
BusinessRelateCompany
businessRelateCompany
)
public
int
updateBusinessRelateCompany
(
BusinessRelateCompany
businessRelateCompany
)
{
{
if
(!
CheckUtils
.
isPhone
(
businessRelateCompany
.
getPhone
()))
throw
new
BaseException
(
"500"
,
"请输入正确的手机号码"
);
businessRelateCompany
.
setUpdateTime
(
DateUtils
.
getNowDate
());
businessRelateCompany
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
businessRelateCompanyMapper
.
updateBusinessRelateCompany
(
businessRelateCompany
);
return
businessRelateCompanyMapper
.
updateBusinessRelateCompany
(
businessRelateCompany
);
}
}
...
...
dsk-system/src/main/resources/mapper/business/BusinessContactsMapper.xml
View file @
a292d17d
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
<if
test=
"accendant != null and accendant != ''"
>
and accendant = #{accendant}
</if>
<if
test=
"accendant != null and accendant != ''"
>
and accendant = #{accendant}
</if>
<if
test=
"creatTime != null "
>
and creat_time = #{creatTime}
</if>
<if
test=
"creatTime != null "
>
and creat_time = #{creatTime}
</if>
</where>
</where>
order by creat_time desc
</select>
</select>
<select
id=
"selectBusinessContactsById"
parameterType=
"Long"
resultMap=
"BusinessContactsResult"
>
<select
id=
"selectBusinessContactsById"
parameterType=
"Long"
resultMap=
"BusinessContactsResult"
>
...
...
dsk-system/src/main/resources/mapper/business/BusinessFollowRecordMapper.xml
View file @
a292d17d
...
@@ -33,10 +33,20 @@
...
@@ -33,10 +33,20 @@
from business_follow_record
from business_follow_record
</sql>
</sql>
<select
id=
"selectBusinessFollowRecordList"
parameter
Type=
"com.dsk.common.core.domain.entity.BusinessFollowRecord"
>
<select
id=
"selectBusinessFollowRecordList"
result
Type=
"com.dsk.common.core.domain.entity.BusinessFollowRecord"
>
select f.*,u.nick_name as nickName
select f.*,u.nick_name as nickName
from business_follow_record f
from business_follow_record f
left join sys_user u on f.user_id = u.user_id
left join sys_user u on f.user_id = u.user_id
where f.business_id = #{businessId}
ORDER BY create_time DESC
</select>
<select
id=
"selectBusinessFollowRecordById"
parameterType=
"Long"
resultMap=
"BusinessFollowRecordResult"
>
<include
refid=
"selectBusinessFollowRecordVo"
/>
where id = #{id}
</select>
<select
id=
"businessFollowRecordPaging"
resultType=
"com.dsk.common.core.domain.entity.BusinessFollowRecord"
>
<include
refid=
"selectBusinessFollowRecordVo"
></include>
<where>
<where>
<if
test=
"businessId != null "
>
and f.business_id = #{businessId}
</if>
<if
test=
"businessId != null "
>
and f.business_id = #{businessId}
</if>
<if
test=
"userId != null "
>
and f.user_id = #{userId}
</if>
<if
test=
"userId != null "
>
and f.user_id = #{userId}
</if>
...
@@ -51,11 +61,6 @@
...
@@ -51,11 +61,6 @@
ORDER BY create_time DESC
ORDER BY create_time DESC
</select>
</select>
<select
id=
"selectBusinessFollowRecordById"
parameterType=
"Long"
resultMap=
"BusinessFollowRecordResult"
>
<include
refid=
"selectBusinessFollowRecordVo"
/>
where id = #{id}
</select>
<insert
id=
"insertBusinessFollowRecord"
parameterType=
"com.dsk.common.core.domain.entity.BusinessFollowRecord"
useGeneratedKeys=
"true"
<insert
id=
"insertBusinessFollowRecord"
parameterType=
"com.dsk.common.core.domain.entity.BusinessFollowRecord"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
keyProperty=
"id"
>
insert into business_follow_record
insert into business_follow_record
...
...
dsk-system/src/main/resources/mapper/business/BusinessInfoMapper.xml
View file @
a292d17d
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
ORDER BY i.create_time DESC
ORDER BY i.create_time DESC
</select>
</select>
<select
id=
"
queryp
rojectName"
resultType=
"java.lang.String"
>
<select
id=
"
selectP
rojectName"
resultType=
"java.lang.String"
>
SELECT *
SELECT *
FROM
FROM
(SELECT project_name as name FROM business_info) AS bu
(SELECT project_name as name FROM business_info) AS bu
...
@@ -132,11 +132,26 @@
...
@@ -132,11 +132,26 @@
</where>
</where>
</select>
</select>
<select
id=
"selectBusinessInfoById"
parameterType=
"
Long
"
resultMap=
"BusinessInfoResult"
>
<select
id=
"selectBusinessInfoById"
parameterType=
"
integer
"
resultMap=
"BusinessInfoResult"
>
<include
refid=
"selectBusinessInfoVo"
/>
<include
refid=
"selectBusinessInfoVo"
/>
where id = #{id}
where id = #{id}
</select>
</select>
<select
id=
"selectTotal"
resultType=
"com.dsk.system.domain.vo.BusinessBrowseVo"
>
SELECT
count(DISTINCT c.id) contactsCount,
count(DISTINCT f.id) followRecordCount,
count(DISTINCT b.id) backlogCount,
count(DISTINCT r.id) relateCompanyCount
FROM
business_info i
LEFT JOIN business_contacts c on c.business_id = i.id
LEFT JOIN business_follow_record f on f.business_id = i.id
LEFT JOIN business_backlog b on b.business_id = i.id
LEFT JOIN business_relate_company r on r.business_id = i.id
WHERE i.id = #{business}
</select>
<insert
id=
"insertBusinessInfo"
parameterType=
"com.dsk.common.core.domain.entity.BusinessInfo"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insertBusinessInfo"
parameterType=
"com.dsk.common.core.domain.entity.BusinessInfo"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into business_info
insert into business_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -255,4 +270,16 @@
...
@@ -255,4 +270,16 @@
<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
</select>
</select>
<select
id=
"getConstruction"
resultType=
"com.dsk.common.core.domain.entity.BusinessInfo"
>
select
investment_amount,
amount_source,
plan_bid_time,
plan_start_time,
plan_complete_time,
build_property,
project_details
from business_info
where id = #{id}
</select>
</mapper>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment