Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
f5d16e61
Commit
f5d16e61
authored
Aug 31, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
db7f9b02
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
61 additions
and
408 deletions
+61
-408
application.yml
dsk-admin/src/main/resources/application.yml
+8
-0
CustomerController.java
.../main/java/com/dsk/biz/controller/CustomerController.java
+4
-4
BusinessInfo.java
...iz-api/src/main/java/com/dsk/biz/domain/BusinessInfo.java
+8
-370
Customer.java
...sk-biz-api/src/main/java/com/dsk/biz/domain/Customer.java
+4
-0
BusinessInfoMapper.java
.../src/main/java/com/dsk/biz/mapper/BusinessInfoMapper.java
+19
-3
BusinessInfoServiceImpl.java
...ava/com/dsk/biz/service/impl/BusinessInfoServiceImpl.java
+7
-6
BusinessOverviewServiceImpl.java
...com/dsk/biz/service/impl/BusinessOverviewServiceImpl.java
+0
-16
CustomerServiceImpl.java
...in/java/com/dsk/biz/service/impl/CustomerServiceImpl.java
+2
-1
BusinessInfoMapper.xml
...-api/src/main/resources/mapper/biz/BusinessInfoMapper.xml
+8
-6
CustomerFollowRecordMapper.xml
.../main/resources/mapper/biz/CustomerFollowRecordMapper.xml
+1
-2
No files found.
dsk-admin/src/main/resources/application.yml
View file @
f5d16e61
...
...
@@ -157,6 +157,14 @@ tenant:
-
sys_user_post
-
sys_user_role
-
sys_client
-
contact_info
-
customer_user
-
customer_follow_record
-
business_user
-
business_backlog
-
business_follow_record
-
business_label
-
business_relate_company
# MyBatisPlus配置
...
...
dsk-module/dsk-biz-api/src/main/java/com/dsk/biz/controller/CustomerController.java
View file @
f5d16e61
...
...
@@ -44,7 +44,7 @@ public class CustomerController extends BaseController {
/**
* 查询客户列表
*/
@SaCheckPermission
(
"'customer:list')"
)
//
@SaCheckPermission("'customer:list')")
@GetMapping
(
"/list"
)
public
TableDataInfo
<
CustomerListVo
>
selectPageList
(
CustomerSearchDto
dto
,
PageQuery
pageQuery
)
{
return
baseService
.
selectList
(
dto
,
pageQuery
);
...
...
@@ -53,7 +53,7 @@ public class CustomerController extends BaseController {
/**
* 客户详情
*/
@SaCheckPermission
(
"'customer:info')"
)
//
@SaCheckPermission("'customer:info')")
@GetMapping
(
"/{customerId}"
)
public
R
<
CustomerVo
>
info
(
@PathVariable
(
"customerId"
)
String
customerId
)
{
return
R
.
ok
(
baseService
.
info
(
customerId
));
...
...
@@ -62,7 +62,7 @@ public class CustomerController extends BaseController {
/**
* 添加客户
*/
@SaCheckPermission
(
"'customer:add')"
)
//
@SaCheckPermission("'customer:add')")
@PostMapping
()
@RepeatSubmit
public
R
<
Void
>
add
(
@RequestBody
Customer
customer
)
{
...
...
@@ -89,7 +89,7 @@ public class CustomerController extends BaseController {
/**
* 编辑客户
*/
@SaCheckPermission
(
"'customer:edit'"
)
//
@SaCheckPermission("'customer:edit'")
@PutMapping
()
@RepeatSubmit
public
R
<
Void
>
edit
(
@RequestBody
Customer
customer
)
{
...
...
dsk-module/dsk-biz-api/src/main/java/com/dsk/biz/domain/BusinessInfo.java
View file @
f5d16e61
...
...
@@ -3,6 +3,8 @@ package com.dsk.biz.domain;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.dsk.common.core.domain.BaseEntity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
...
@@ -14,6 +16,8 @@ import java.util.Date;
* @author lxl
* @date 2023-05-17
*/
@Data
@NoArgsConstructor
public
class
BusinessInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -170,374 +174,8 @@ public class BusinessInfo extends BaseEntity
/** 建设单位建设库id */
@ExcelProperty
(
value
=
"建设单位建设库id"
)
private
Integer
constructionUnitCid
;
public
String
getConstructionUnitUipId
()
{
return
constructionUnitUipId
;
}
public
void
setConstructionUnitUipId
(
String
constructionUnitUipId
)
{
this
.
constructionUnitUipId
=
constructionUnitUipId
;
}
public
Integer
getConstructionUnitCid
()
{
return
constructionUnitCid
;
}
public
void
setConstructionUnitCid
(
Integer
constructionUnitCid
)
{
this
.
constructionUnitCid
=
constructionUnitCid
;
}
public
String
getConstructionUnit
()
{
return
constructionUnit
;
}
public
void
setConstructionUnit
(
String
constructionUnit
)
{
this
.
constructionUnit
=
constructionUnit
;
}
public
String
getConstructionPrincipal
()
{
return
constructionPrincipal
;
}
public
void
setConstructionPrincipal
(
String
constructionPrincipal
)
{
this
.
constructionPrincipal
=
constructionPrincipal
;
}
public
String
getConstructionPhone
()
{
return
constructionPhone
;
}
public
void
setConstructionPhone
(
String
constructionPhone
)
{
this
.
constructionPhone
=
constructionPhone
;
}
public
String
getSupervisorUnit
()
{
return
supervisorUnit
;
}
public
void
setSupervisorUnit
(
String
supervisorUnit
)
{
this
.
supervisorUnit
=
supervisorUnit
;
}
public
String
getSupervisorPrincipal
()
{
return
supervisorPrincipal
;
}
public
void
setSupervisorPrincipal
(
String
supervisorPrincipal
)
{
this
.
supervisorPrincipal
=
supervisorPrincipal
;
}
public
String
getSupervisorPhone
()
{
return
supervisorPhone
;
}
public
void
setSupervisorPhone
(
String
supervisorPhone
)
{
this
.
supervisorPhone
=
supervisorPhone
;
}
public
String
getEvaluationBidWay
()
{
return
evaluationBidWay
;
}
public
void
setEvaluationBidWay
(
String
evaluationBidWay
)
{
this
.
evaluationBidWay
=
evaluationBidWay
;
}
public
String
getBidOpenTime
()
{
return
bidOpenTime
;
}
public
void
setBidOpenTime
(
String
bidOpenTime
)
{
this
.
bidOpenTime
=
bidOpenTime
;
}
public
String
getBidOpenPlace
()
{
return
bidOpenPlace
;
}
public
void
setBidOpenPlace
(
String
bidOpenPlace
)
{
this
.
bidOpenPlace
=
bidOpenPlace
;
}
public
String
getEarnestMoneyPay
()
{
return
earnestMoneyPay
;
}
public
void
setEarnestMoneyPay
(
String
earnestMoneyPay
)
{
this
.
earnestMoneyPay
=
earnestMoneyPay
;
}
public
String
getEarnestMoney
()
{
return
earnestMoney
;
}
public
void
setEarnestMoney
(
String
earnestMoney
)
{
this
.
earnestMoney
=
earnestMoney
;
}
public
String
getEvaluationBidCouncil
()
{
return
evaluationBidCouncil
;
}
public
void
setEvaluationBidCouncil
(
String
evaluationBidCouncil
)
{
this
.
evaluationBidCouncil
=
evaluationBidCouncil
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
String
getCustomerId
()
{
return
customerId
;
}
public
void
setCustomerId
(
String
customerId
)
{
this
.
customerId
=
customerId
;
}
public
Integer
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
Integer
getId
()
{
return
id
;
}
public
void
setProjectName
(
String
projectName
)
{
this
.
projectName
=
projectName
;
}
public
String
getProjectName
()
{
return
projectName
;
}
public
void
setInvestmentAmount
(
Double
investmentAmount
)
{
this
.
investmentAmount
=
investmentAmount
;
}
public
Double
getInvestmentAmount
()
{
return
investmentAmount
;
}
public
void
setAmountSource
(
String
amountSource
)
{
this
.
amountSource
=
amountSource
;
}
public
String
getAmountSource
()
{
return
amountSource
;
}
public
void
setPlanBidTime
(
Date
planBidTime
)
{
this
.
planBidTime
=
planBidTime
;
}
public
Date
getPlanBidTime
()
{
return
planBidTime
;
}
public
void
setPlanStartTime
(
Date
planStartTime
)
{
this
.
planStartTime
=
planStartTime
;
}
public
Date
getPlanStartTime
()
{
return
planStartTime
;
}
public
void
setProjectLevel
(
String
projectLevel
)
{
this
.
projectLevel
=
projectLevel
;
}
public
String
getProjectLevel
()
{
return
projectLevel
;
}
public
void
setProjectStage
(
String
projectStage
)
{
this
.
projectStage
=
projectStage
;
}
public
String
getProjectStage
()
{
return
projectStage
;
}
public
void
setBuildProperty
(
String
buildProperty
)
{
this
.
buildProperty
=
buildProperty
;
}
public
String
getBuildProperty
()
{
return
buildProperty
;
}
public
void
setPlanCompleteTime
(
Date
planCompleteTime
)
{
this
.
planCompleteTime
=
planCompleteTime
;
}
public
Date
getPlanCompleteTime
()
{
return
planCompleteTime
;
}
public
void
setProjectDetails
(
String
projectDetails
)
{
this
.
projectDetails
=
projectDetails
;
}
public
String
getProjectDetails
()
{
return
projectDetails
;
}
public
void
setProvinceName
(
String
provinceName
)
{
this
.
provinceName
=
provinceName
;
}
public
String
getProvinceName
()
{
return
provinceName
;
}
public
void
setProvinceId
(
Integer
provinceId
)
{
this
.
provinceId
=
provinceId
;
}
public
Integer
getProvinceId
()
{
return
provinceId
;
}
public
void
setCityName
(
String
cityName
)
{
this
.
cityName
=
cityName
;
}
public
String
getCityName
()
{
return
cityName
;
}
public
void
setCityId
(
Integer
cityId
)
{
this
.
cityId
=
cityId
;
}
public
Integer
getCityId
()
{
return
cityId
;
}
public
void
setDistrictName
(
String
districtName
)
{
this
.
districtName
=
districtName
;
}
public
String
getDistrictName
()
{
return
districtName
;
}
public
void
setDistrictId
(
Integer
districtId
)
{
this
.
districtId
=
districtId
;
}
public
Integer
getDistrictId
()
{
return
districtId
;
}
public
void
setProjectType
(
String
projectType
)
{
this
.
projectType
=
projectType
;
}
public
String
getProjectType
()
{
return
projectType
;
}
public
void
setProjectCategory
(
String
projectCategory
)
{
this
.
projectCategory
=
projectCategory
;
}
public
String
getProjectCategory
()
{
return
projectCategory
;
}
public
void
setTeam
(
String
team
)
{
this
.
team
=
team
;
}
public
String
getTeam
()
{
return
team
;
}
public
void
setIsPrivate
(
Integer
isPrivate
)
{
this
.
isPrivate
=
isPrivate
;
}
public
Integer
getIsPrivate
()
{
return
isPrivate
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"projectName"
,
getProjectName
())
.
append
(
"investmentAmount"
,
getInvestmentAmount
())
.
append
(
"amountSource"
,
getAmountSource
())
.
append
(
"planBidTime"
,
getPlanBidTime
())
.
append
(
"planStartTime"
,
getPlanStartTime
())
.
append
(
"projectLevel"
,
getProjectLevel
())
.
append
(
"projectStage"
,
getProjectStage
())
.
append
(
"buildProperty"
,
getBuildProperty
())
.
append
(
"planCompleteTime"
,
getPlanCompleteTime
())
.
append
(
"projectDetails"
,
getProjectDetails
())
.
append
(
"provinceName"
,
getProvinceName
())
.
append
(
"provinceId"
,
getProvinceId
())
.
append
(
"cityName"
,
getCityName
())
.
append
(
"cityId"
,
getCityId
())
.
append
(
"districtName"
,
getDistrictName
())
.
append
(
"districtId"
,
getDistrictId
())
.
append
(
"projectType"
,
getProjectType
())
.
append
(
"projectCategory"
,
getProjectCategory
())
.
append
(
"team"
,
getTeam
())
.
append
(
"isPrivate"
,
getIsPrivate
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"customerId"
,
getCustomerId
())
.
append
(
"evaluationBidWay"
,
getEvaluationBidWay
())
.
append
(
"bidOpenTime"
,
getBidOpenTime
())
.
append
(
"bidOpenPlace"
,
getBidOpenPlace
())
.
append
(
"earnestMoneyPay"
,
getEarnestMoneyPay
())
.
append
(
"earnestMoney"
,
getEarnestMoney
())
.
append
(
"evaluationBidCouncil"
,
getEvaluationBidCouncil
())
.
append
(
"constructionUnit"
,
getConstructionUnit
())
.
append
(
"constructionPrincipal"
,
getConstructionPrincipal
())
.
append
(
"constructionPhone"
,
getConstructionPhone
())
.
append
(
"supervisorUnit"
,
getSupervisorUnit
())
.
append
(
"supervisorPrincipal"
,
getSupervisorPrincipal
())
.
append
(
"supervisorPhone"
,
getSupervisorPhone
())
.
append
(
"constructionUnitUipId"
,
getConstructionUnitUipId
())
.
append
(
"constructionUnitCid"
,
getConstructionUnitCid
())
.
toString
();
}
/**
* 租户编号
*/
private
String
tenantId
;
}
dsk-module/dsk-biz-api/src/main/java/com/dsk/biz/domain/Customer.java
View file @
f5d16e61
...
...
@@ -123,6 +123,10 @@ public class Customer implements Serializable {
* 其它管理体系特点
*/
private
String
otherMsCharacteistic
;
/**
* 租户编号
*/
private
String
tenantId
;
private
Long
createId
;
...
...
dsk-module/dsk-biz-api/src/main/java/com/dsk/biz/mapper/BusinessInfoMapper.java
View file @
f5d16e61
...
...
@@ -56,7 +56,7 @@ public interface BusinessInfoMapper extends BaseMapper<BusinessInfo> {
@DataColumn
(
key
=
"deptName"
,
value
=
"d.dept_id"
),
@DataColumn
(
key
=
"userName"
,
value
=
"u.user_id"
)
})
public
Page
<
BusinessListVo
>
selectBusinessInfoList
(
@Param
(
"page"
)
Page
<
BusinessListVo
>
page
,
@Param
(
"dto"
)
BusinessListDto
dto
);
Page
<
BusinessListVo
>
selectBusinessInfoList
(
@Param
(
"page"
)
IPage
<
BusinessListDto
>
page
,
@Param
(
"dto"
)
BusinessListDto
dto
);
/**
* 新增项目详情
...
...
@@ -114,12 +114,28 @@ public interface BusinessInfoMapper extends BaseMapper<BusinessInfo> {
Page
<
CustomerBusinessListVo
>
selectCustomerBusinessList
(
IPage
<
CustomerBusinessSearchDto
>
page
,
@Param
(
"dto"
)
CustomerBusinessSearchDto
dto
);
@DataPermission
({
@DataColumn
(
key
=
"deptName"
,
value
=
"d.dept_id"
),
@DataColumn
(
key
=
"userName"
,
value
=
"u.user_id"
)
})
int
selectCountByStatus
(
BusinessSearchDto
dto
);
@DataPermission
({
@DataColumn
(
key
=
"deptName"
,
value
=
"d.dept_id"
),
@DataColumn
(
key
=
"userName"
,
value
=
"u.user_id"
)
})
List
<
BusinessAnalyzeVo
>
selectAmountAnalyze
(
BusinessSearchDto
dto
);
@DataPermission
({
@DataColumn
(
key
=
"deptName"
,
value
=
"d.dept_id"
),
@DataColumn
(
key
=
"userName"
,
value
=
"u.user_id"
)
})
List
<
BusinessAnalyzeVo
>
selectTypeAnalyze
(
BusinessSearchDto
dto
);
@DataPermission
({
@DataColumn
(
key
=
"deptName"
,
value
=
"d.dept_id"
),
@DataColumn
(
key
=
"userName"
,
value
=
"u.user_id"
)
})
List
<
BusinessAnalyzeVo
>
selectCategoryAnalyze
(
BusinessSearchDto
dto
);
}
dsk-module/dsk-biz-api/src/main/java/com/dsk/biz/service/impl/BusinessInfoServiceImpl.java
View file @
f5d16e61
...
...
@@ -11,6 +11,8 @@ import com.dsk.biz.domain.bo.BusinessExcelDto;
import
com.dsk.biz.domain.bo.BusinessListDto
;
import
com.dsk.biz.domain.bo.CustomerBusinessSearchDto
;
import
com.dsk.biz.domain.vo.*
;
import
com.dsk.common.annotation.DataColumn
;
import
com.dsk.common.annotation.DataPermission
;
import
com.dsk.jsk.service.EnterpriseService
;
import
com.dsk.biz.mapper.BusinessInfoMapper
;
import
com.dsk.biz.mapper.BusinessLabelMapper
;
...
...
@@ -92,15 +94,14 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
@Override
public
TableDataInfo
<
BusinessListVo
>
selectBusinessInfoList
(
BusinessListDto
dto
,
PageQuery
pageQuery
)
{
dto
.
setUserId
(
LoginHelper
.
getUserId
());
Page
<
BusinessListVo
>
page
=
businessInfoMapper
.
selectBusinessInfoList
(
pageQuery
.
build
(),
dto
);
List
<
BusinessListVo
>
businessListVos
=
page
.
getRecords
();
if
(!
CollectionUtils
.
isEmpty
(
businessListVos
)
&&
ObjectUtil
.
isNotEmpty
(
dto
.
getProjectName
()))
{
for
(
BusinessListVo
vo
:
businessListVos
)
{
TableDataInfo
<
BusinessListVo
>
result
=
TableDataInfo
.
build
(
businessInfoMapper
.
selectBusinessInfoList
(
pageQuery
.
build
(),
dto
));
if
(!
CollectionUtils
.
isEmpty
(
result
.
getRows
())
&&
ObjectUtil
.
isNotEmpty
(
dto
.
getProjectName
()))
{
for
(
BusinessListVo
vo
:
result
.
getRows
())
{
vo
.
setProjectName
(
StringUtils
.
markInRed
(
vo
.
getProjectName
(),
dto
.
getProjectName
()));
vo
.
setOwnerCompany
(
StringUtils
.
markInRed
(
vo
.
getOwnerCompany
(),
dto
.
getProjectName
()));
}
}
return
TableDataInfo
.
build
(
page
)
;
return
result
;
}
...
...
@@ -255,7 +256,7 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
businessInfo
.
setConstructionUnitUipId
(
vo
.
getUipId
());
businessInfo
.
setConstructionUnitCid
(
vo
.
getCompanyId
());
businessInfo
.
setConstructionPrincipal
(
vo
.
getLegalPerson
());
businessInfo
.
setTenantId
(
LoginHelper
.
getTenantId
());
int
addBusiness
=
businessInfoMapper
.
insertBusinessInfo
(
businessInfo
);
if
(
addBusiness
>
0
)
{
//获取登陆用户的部门id
...
...
dsk-module/dsk-biz-api/src/main/java/com/dsk/biz/service/impl/BusinessOverviewServiceImpl.java
View file @
f5d16e61
...
...
@@ -31,10 +31,6 @@ public class BusinessOverviewServiceImpl implements IBusinessOverviewService {
private
DskOpenApiUtil
dskOpenApiUtil
;
@Override
@DataPermission
({
@DataColumn
(
key
=
"deptName"
,
value
=
"d.dept_id"
),
@DataColumn
(
key
=
"userName"
,
value
=
"u.user_id"
)
})
public
Map
<
String
,
Object
>
statusStatistics
(
BusinessSearchDto
dto
)
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
//总
...
...
@@ -52,28 +48,16 @@ public class BusinessOverviewServiceImpl implements IBusinessOverviewService {
}
@Override
@DataPermission
({
@DataColumn
(
key
=
"deptName"
,
value
=
"d.dept_id"
),
@DataColumn
(
key
=
"userName"
,
value
=
"u.user_id"
)
})
public
List
<
BusinessAnalyzeVo
>
amountAnalyze
(
BusinessSearchDto
dto
)
{
return
businessInfoMapper
.
selectAmountAnalyze
(
dto
);
}
@Override
@DataPermission
({
@DataColumn
(
key
=
"deptName"
,
value
=
"d.dept_id"
),
@DataColumn
(
key
=
"userName"
,
value
=
"u.user_id"
)
})
public
List
<
BusinessAnalyzeVo
>
typeAnalyze
(
BusinessSearchDto
dto
)
{
return
businessInfoMapper
.
selectTypeAnalyze
(
dto
);
}
@Override
@DataPermission
({
@DataColumn
(
key
=
"deptName"
,
value
=
"d.dept_id"
),
@DataColumn
(
key
=
"userName"
,
value
=
"u.user_id"
)
})
public
List
<
BusinessAnalyzeVo
>
categoryAnalyze
(
BusinessSearchDto
dto
)
{
return
businessInfoMapper
.
selectCategoryAnalyze
(
dto
);
}
...
...
dsk-module/dsk-biz-api/src/main/java/com/dsk/biz/service/impl/CustomerServiceImpl.java
View file @
f5d16e61
...
...
@@ -61,7 +61,7 @@ public class CustomerServiceImpl implements ICustomerService {
dto
.
setUserId
(
LoginHelper
.
getUserId
());
dto
.
setStatus
(
ObjectUtils
.
isEmpty
(
dto
.
getStatus
())
?
0
:
dto
.
getStatus
());
final
TableDataInfo
<
CustomerListVo
>
result
=
TableDataInfo
.
build
(
baseMapper
.
selectList
(
pageQuery
.
build
(),
dto
));
if
(!
ObjectUtils
.
isEmpty
(
result
.
getRows
())){
if
(!
ObjectUtils
.
isEmpty
(
result
.
getRows
())
&&
!
ObjectUtils
.
isEmpty
(
dto
.
getCompanyName
())
){
for
(
CustomerListVo
vo
:
result
.
getRows
())
{
vo
.
setCompanyName
(
StringUtils
.
markInRed
(
vo
.
getCompanyName
(),
dto
.
getCompanyName
()));
}
...
...
@@ -87,6 +87,7 @@ public class CustomerServiceImpl implements ICustomerService {
Long
userId
=
LoginHelper
.
getUserId
();
customer
.
setCreateId
(
userId
);
customer
.
setUpdateId
(
userId
);
customer
.
setTenantId
(
LoginHelper
.
getTenantId
());
//查重
Customer
verifyCustomer
=
baseMapper
.
selectByCompanyNameAndUserId
(
customer
.
getCompanyName
(),
userId
);
if
(!
ObjectUtils
.
isEmpty
(
verifyCustomer
))
{
...
...
dsk-module/dsk-biz-api/src/main/resources/mapper/biz/BusinessInfoMapper.xml
View file @
f5d16e61
...
...
@@ -96,13 +96,13 @@
i.construction_unit ownerCompany,
i.construction_unit_uip_id ownerCompanyUipId,
i.construction_unit_cid ownerCompanyCid,
<!-- MAX(f.creat_time) followTime,-->
u.nick_name nickName
<!-- GROUP_CONCAT(DISTINCT l.label) label-->
MAX(f.creat_time) followTime,
u.nick_name nickName
,
GROUP_CONCAT(DISTINCT l.label) label
FROM business_info i
LEFT JOIN business_user bu on bu.business_id = i.id
<!-- LEFT JOIN business_follow_record f on f.business_id = i.id-->
<!-- LEFT JOIN business_label l on l.business_id = i.id-->
LEFT JOIN business_follow_record f on f.business_id = i.id
LEFT JOIN business_label l on l.business_id = i.id
LEFT JOIN sys_user u on u.user_id = bu.user_id
LEFT JOIN sys_dept d on d.dept_id = u.dept_id
<where>
...
...
@@ -146,7 +146,7 @@
<choose>
<when
test=
"dto.isPrivate == 1"
>
and bu.user_id = #{dto.userId}
</when>
<!-- 数据范围过滤 -->
<otherwise>
and (bu.user_id = #{dto.userId} or i.is_private = 1) ${params.dataScope}
</otherwise>
<otherwise>
and (bu.user_id = #{dto.userId} or i.is_private = 1) ${
dto.
params.dataScope}
</otherwise>
</choose>
</where>
GROUP BY i.id
...
...
@@ -223,6 +223,7 @@
<if
test=
"supervisorPhone != null"
>
supervisor_phone,
</if>
<if
test=
"constructionUnitUipId != null"
>
construction_unit_uip_id,
</if>
<if
test=
"constructionUnitCid != null"
>
construction_unit_cid,
</if>
tenant_id
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"projectName != null"
>
#{projectName},
</if>
...
...
@@ -262,6 +263,7 @@
<if
test=
"supervisorPhone != null"
>
#{supervisorPhone},
</if>
<if
test=
"constructionUnitUipId != null"
>
#{constructionUnitUipId},
</if>
<if
test=
"constructionUnitCid != null"
>
#{constructionUnitCid},
</if>
#{tenantId}
</trim>
</insert>
...
...
dsk-module/dsk-biz-api/src/main/resources/mapper/biz/CustomerFollowRecordMapper.xml
View file @
f5d16e61
...
...
@@ -21,8 +21,7 @@
<if
test=
"dto.startTime != null and dto.startTime != '' "
>
and cfr.visit_time
>
= #{dto.startTime}
</if>
<if
test=
"dto.endTime != null and dto.endTime != '' "
>
and cfr.visit_time
<
= #{dto.endTime}
</if>
<!-- 数据范围过滤 -->
<if
test=
"ew.getCustomSqlSegment != null and ew.getCustomSqlSegment != '' "
>
${ew.getCustomSqlSegment}
</if>
<if
test=
"dto.params.dataScope != null and params.dataScope != '' "
>
${dto.params.dataScope}
</if>
<if
test=
"dto.params.dataScope != null and dto.params.dataScope != '' "
>
${dto.params.dataScope}
</if>
</where>
order by cfr.visit_time desc
</select>
...
...
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