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
92b58935
Commit
92b58935
authored
Jun 28, 2023
by
lixiaolei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
submit
parent
1f742afe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
BusinessAddDto.java
...m/src/main/java/com/dsk/system/domain/BusinessAddDto.java
+5
-0
BusinessInfoServiceImpl.java
.../com/dsk/system/service/impl/BusinessInfoServiceImpl.java
+2
-5
No files found.
dsk-system/src/main/java/com/dsk/system/domain/BusinessAddDto.java
View file @
92b58935
...
...
@@ -40,6 +40,11 @@ public class BusinessAddDto {
*/
private
String
projectStage
;
/**
* 项目状态(0.储备中1.跟进中2.已合作)
*/
private
Integer
status
;
/**
* 业主单位
*/
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/BusinessInfoServiceImpl.java
View file @
92b58935
...
...
@@ -106,9 +106,8 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
//商务团队
businessBrowseVo
.
setTeam
(
businessUserMapper
.
selectCreatorByBusinessId
(
businessId
));
//查询是否是项目创建人
// Long userId = SecurityUtils.getLoginUser().getUserId();
// if (userId == null) throw new BaseException("请登录");
Long
userId
=
103
l
;
Long
userId
=
SecurityUtils
.
getLoginUser
().
getUserId
();
if
(
userId
==
null
)
throw
new
BaseException
(
"请登录"
);
Integer
founder
=
businessUserMapper
.
selectFounder
(
businessId
,
userId
);
businessBrowseVo
.
setIsFounder
(
founder
==
null
?
0
:
founder
);
//查询项目标签
...
...
@@ -135,7 +134,6 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
public
AjaxResult
batchUpload
(
MultipartFile
file
)
{
//获取当前登录用户id
Long
userId
=
SecurityUtils
.
getLoginUser
().
getUserId
();
// Long userId = 103L;
if
(
userId
==
null
)
return
AjaxResult
.
error
(
"请登录"
);
int
row
=
3
;
//起始行数
int
rowSuccess
=
0
;
//成功条数
...
...
@@ -196,7 +194,6 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
if
(
addBusiness
>
0
)
{
//获取登陆用户的部门id
Long
deptId
=
SecurityUtils
.
getLoginUser
().
getDeptId
();
// Long deptId = 100l;
//新增用户-项目关系信息
int
addbusinessUser
=
businessUserMapper
.
insertBusinessUser
(
new
BusinessUser
(
businessInfo
.
getId
(),
deptId
.
intValue
(),
dto
.
getUserId
(),
1
));
return
addbusinessUser
>
0
?
AjaxResult
.
success
()
:
AjaxResult
.
error
();
...
...
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