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
3f17abb0
Commit
3f17abb0
authored
Oct 12, 2023
by
tianhongyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'V20230915' of
http://192.168.60.201/root/dsk-operate-sys
into V20230915
parents
ec5f676c
624cdbbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
CustomerServiceImpl.java
...in/java/com/dsk/biz/service/impl/CustomerServiceImpl.java
+6
-5
BusinessOpportunityRadarService.java
...m/dsk/search/service/BusinessOpportunityRadarService.java
+11
-1
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/biz/service/impl/CustomerServiceImpl.java
View file @
3f17abb0
...
...
@@ -82,17 +82,18 @@ public class CustomerServiceImpl implements ICustomerService {
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
add
(
Customer
customer
)
{
dealWithcustomerData
(
customer
);
customer
.
setUipId
(
enterpriseCommonService
.
getUipIdByCompanyNameOrCompanyId
(
customer
.
getCompanyName
(),
customer
.
getCompanyId
()));
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
))
{
throw
new
ServiceException
(
"当前客户信息已存在,请勿重复添加!"
);
}
dealWithcustomerData
(
customer
);
customer
.
setUipId
(
enterpriseCommonService
.
getUipIdByCompanyNameOrCompanyId
(
customer
.
getCompanyName
(),
customer
.
getCompanyId
()));
customer
.
setCreateId
(
userId
);
customer
.
setUpdateId
(
userId
);
customer
.
setTenantId
(
LoginHelper
.
getTenantId
());
int
i
=
baseMapper
.
insert
(
customer
);
if
(
i
==
0
)
throw
new
ServiceException
(
"客户信息添加错误!"
);
...
...
dsk-module/dsk-biz-api/src/main/java/com/dsk/search/service/BusinessOpportunityRadarService.java
View file @
3f17abb0
package
com
.
dsk
.
search
.
service
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.map.MapUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.alibaba.fastjson2.JSONObject
;
...
...
@@ -13,10 +14,12 @@ import com.dsk.common.exception.ServiceException;
import
com.dsk.common.utils.DskOpenApiUtil
;
import
com.dsk.common.utils.StringUtils
;
import
com.dsk.jsk.domain.vo.ImportantProjectExportVo
;
import
com.dsk.jsk.service.EnterpriseService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.MapUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
...
...
@@ -37,6 +40,9 @@ public class BusinessOpportunityRadarService {
@Autowired
ICustomerService
iCustomerService
;
@Autowired
private
EnterpriseService
enterpriseService
;
public
AjaxResult
jskBidNewsPage
(
JSONObject
object
)
{
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/nationzj/jskBid/news/page"
,
object
);
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
...
...
@@ -111,14 +117,18 @@ public class BusinessOpportunityRadarService {
companyName
=
companyName
.
replace
(
"<font color='#FF204E'>"
,
""
);
companyName
=
companyName
.
replace
(
"</font>"
,
""
);
}
companyMap
.
put
(
"claimStatus"
,
0
);
companyMap
.
put
(
"claimStatus"
,
null
);
for
(
CustomerStatusListVo
vo
:
claimStatusList
)
{
if
(
companyName
.
equals
(
vo
.
getCompanyName
()))
{
companyMap
.
put
(
"claimStatus"
,
vo
.
getStatus
());
}
}
Integer
jskEid
=
MapUtils
.
getInteger
(
companyMap
,
"jskEid"
);
companyMap
.
put
(
"uipId"
,
enterpriseService
.
getUipIdByCompanyNameOrCompanyId
(
companyName
,
jskEid
));
}
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
}
...
...
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