Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
haoban3.0
haoban-manage3.0
Commits
c32ea00d
Commit
c32ea00d
authored
Sep 27, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:代码优化
parent
06826390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+6
-12
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
c32ea00d
...
@@ -5,7 +5,6 @@ import com.gic.api.base.commons.Page;
...
@@ -5,7 +5,6 @@ import com.gic.api.base.commons.Page;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.ToolUtil
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.common.utils.PageUtil
;
import
com.gic.haoban.common.utils.PageUtil
;
import
com.gic.haoban.common.utils.StringUtil
;
import
com.gic.haoban.common.utils.StringUtil
;
...
@@ -149,15 +148,8 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -149,15 +148,8 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
if
(
clerkDTO
!=
null
)
{
if
(
clerkDTO
!=
null
)
{
dto
.
setClerkType
(
clerkDTO
.
getClerkType
());
dto
.
setClerkType
(
clerkDTO
.
getClerkType
());
}
}
Date
now
=
new
Date
();
String
staffClerkRelationId
=
insert
(
dto
);
dto
.
setStaffClerkRelationId
(
ToolUtil
.
randomUUID
());
if
(
StringUtils
.
isNotBlank
(
staffClerkRelationId
))
{
dto
.
setStatusFlag
(
1
);
dto
.
setOpenConcatFlag
(
1
);
dto
.
setCreateTime
(
now
);
dto
.
setUpdateTime
(
now
);
int
insert
=
mapper
.
insert
(
EntityUtil
.
changeEntityByJSON
(
TabHaobanStaffClerkRelation
.
class
,
dto
));
String
s
=
insert
>
0
?
dto
.
getStaffClerkRelationId
()
:
null
;
if
(
null
!=
s
)
{
String
wxEnterpriseId
=
dto
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
dto
.
getWxEnterpriseId
();
clerkMainStoreRelatedService
.
getMainStoreByStaffId
(
staffId
,
wxEnterpriseId
);
clerkMainStoreRelatedService
.
getMainStoreByStaffId
(
staffId
,
wxEnterpriseId
);
//推入日志
//推入日志
...
@@ -175,7 +167,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -175,7 +167,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
hmQrcodeQDTO
.
setInvokingType
(
channelCode
);
hmQrcodeQDTO
.
setInvokingType
(
channelCode
);
hmQrcodeApiService
.
add
(
hmQrcodeQDTO
);
hmQrcodeApiService
.
add
(
hmQrcodeQDTO
);
}
}
return
s
;
return
s
taffClerkRelationId
;
}
}
@Override
@Override
...
@@ -203,12 +195,14 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -203,12 +195,14 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
@Override
@Override
public
String
insert
(
StaffClerkRelationDTO
staffClerkRelation
)
{
public
String
insert
(
StaffClerkRelationDTO
staffClerkRelation
)
{
Integer
manageFlag
=
staffClerkRelation
.
getManageFlag
();
String
uuid
=
StringUtil
.
randomUUID
();
String
uuid
=
StringUtil
.
randomUUID
();
staffClerkRelation
.
setStaffClerkRelationId
(
uuid
);
staffClerkRelation
.
setStaffClerkRelationId
(
uuid
);
staffClerkRelation
.
setCreateTime
(
new
Date
());
staffClerkRelation
.
setCreateTime
(
new
Date
());
staffClerkRelation
.
setUpdateTime
(
new
Date
());
staffClerkRelation
.
setUpdateTime
(
new
Date
());
staffClerkRelation
.
setStatusFlag
(
1
);
staffClerkRelation
.
setStatusFlag
(
1
);
staffClerkRelation
.
setOpenConcatFlag
(
1
);
staffClerkRelation
.
setOpenConcatFlag
(
1
);
staffClerkRelation
.
setManageFlag
(
manageFlag
==
null
?
0
:
manageFlag
);
TabHaobanStaffClerkRelation
relation
=
EntityUtil
.
changeEntityByJSON
(
TabHaobanStaffClerkRelation
.
class
,
staffClerkRelation
);
TabHaobanStaffClerkRelation
relation
=
EntityUtil
.
changeEntityByJSON
(
TabHaobanStaffClerkRelation
.
class
,
staffClerkRelation
);
mapper
.
insert
(
relation
);
mapper
.
insert
(
relation
);
return
uuid
;
return
uuid
;
...
@@ -376,6 +370,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -376,6 +370,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
@Override
@Override
public
List
<
StaffClerkRelationDTO
>
listManageBindByStaffId
(
String
staffId
)
{
public
List
<
StaffClerkRelationDTO
>
listManageBindByStaffId
(
String
staffId
)
{
return
EntityUtil
.
changeEntityListNew
(
StaffClerkRelationDTO
.
class
,
mapper
.
listManageBindByStaffId
(
staffId
));
return
EntityUtil
.
changeEntityListNew
(
StaffClerkRelationDTO
.
class
,
mapper
.
listManageBindByStaffId
(
staffId
));
}
}
}
}
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