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
337aa807
Commit
337aa807
authored
Jun 12, 2023
by
zhangyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
955b9af0
73d93455
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
250 additions
and
68 deletions
+250
-68
CustomerController.java
...a/com/dsk/web/controller/customer/CustomerController.java
+6
-2
enterpriseData.js
dsk-operate-ui/src/api/enterpriseData/enterpriseData.js
+10
-1
renling1.png
dsk-operate-ui/src/assets/images/owner/renling1.png
+0
-0
renling2.png
dsk-operate-ui/src/assets/images/owner/renling2.png
+0
-0
index.vue
...te-ui/src/views/enterpriseData/components/Owner/index.vue
+234
-65
No files found.
dsk-admin/src/main/java/com/dsk/web/controller/customer/CustomerController.java
View file @
337aa807
...
@@ -83,7 +83,7 @@ public class CustomerController extends BaseController {
...
@@ -83,7 +83,7 @@ public class CustomerController extends BaseController {
return
AjaxResult
.
success
(
baseService
.
add
(
customer
));
return
AjaxResult
.
success
(
baseService
.
add
(
customer
));
}
}
private
void
dealWithcustomerData
(
Customer
customer
){
private
void
dealWithcustomerData
(
Customer
customer
)
{
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCompanyName
()))
throw
new
BeanException
(
"企业名称不能为空"
);
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCompanyName
()))
throw
new
BeanException
(
"企业名称不能为空"
);
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCompanyId
()))
{
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCompanyId
()))
{
try
{
try
{
...
@@ -131,6 +131,7 @@ public class CustomerController extends BaseController {
...
@@ -131,6 +131,7 @@ public class CustomerController extends BaseController {
public
AjaxResult
importData
(
@RequestPart
(
"file"
)
MultipartFile
file
)
throws
Exception
{
public
AjaxResult
importData
(
@RequestPart
(
"file"
)
MultipartFile
file
)
throws
Exception
{
List
<
Customer
>
customerList
=
new
ExcelUtil
<>(
Customer
.
class
).
importExcel
(
file
.
getInputStream
(),
2
);
List
<
Customer
>
customerList
=
new
ExcelUtil
<>(
Customer
.
class
).
importExcel
(
file
.
getInputStream
(),
2
);
List
<
String
>
resultList
=
new
ArrayList
<>();
List
<
String
>
resultList
=
new
ArrayList
<>();
int
successCount
=
0
;
for
(
Customer
customer
:
customerList
)
{
for
(
Customer
customer
:
customerList
)
{
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCompanyName
()))
{
if
(
ObjectUtils
.
isEmpty
(
customer
.
getCompanyName
()))
{
continue
;
continue
;
...
@@ -152,10 +153,13 @@ public class CustomerController extends BaseController {
...
@@ -152,10 +153,13 @@ public class CustomerController extends BaseController {
customer
.
setCreditCode
(
MapUtil
.
getStr
(
obj
,
"creditCode"
));
customer
.
setCreditCode
(
MapUtil
.
getStr
(
obj
,
"creditCode"
));
}
}
baseService
.
add
(
customer
);
baseService
.
add
(
customer
);
successCount
++;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
resultList
.
add
(
customer
.
getCompanyName
().
concat
(
":"
).
concat
(
e
.
getMessage
()));
resultList
.
add
(
customer
.
getCompanyName
().
concat
(
":"
).
concat
(
e
.
getMessage
()));
}
}
}
}
return
AjaxResult
.
success
(
resultList
);
AjaxResult
success
=
AjaxResult
.
success
(
resultList
);
success
.
put
(
"successCount"
,
successCount
);
return
success
;
}
}
}
}
dsk-operate-ui/src/api/enterpriseData/enterpriseData.js
View file @
337aa807
...
@@ -42,6 +42,15 @@ let uipSerach= function uipSerach(param) {
...
@@ -42,6 +42,15 @@ let uipSerach= function uipSerach(param) {
data
:
param
data
:
param
})
})
}
}
// 认领用户
let
claim
=
function
claim
(
param
)
{
return
request
({
url
:
'/customer/claim'
,
method
:
'post'
,
data
:
param
})
}
export
default
{
aptitudeCode
,
personCert
,
searchDic
,
regionWebList
,
uipGroupData
,
uipSerach
}
export
default
{
aptitudeCode
,
personCert
,
searchDic
,
regionWebList
,
uipGroupData
,
uipSerach
,
claim
}
\ No newline at end of file
\ No newline at end of file
dsk-operate-ui/src/assets/images/owner/renling1.png
0 → 100644
View file @
337aa807
1.06 KB
dsk-operate-ui/src/assets/images/owner/renling2.png
0 → 100644
View file @
337aa807
1.06 KB
dsk-operate-ui/src/views/enterpriseData/components/Owner/index.vue
View file @
337aa807
This diff is collapsed.
Click to expand it.
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