Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
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
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
huluobin
gogirl-miniapp-backend
Commits
765f1ba9
Commit
765f1ba9
authored
Dec 29, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6b3f695c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ProduceStorePriceServiceImpl.java
...tion/product/serve/impl/ProduceStorePriceServiceImpl.java
+2
-2
SessionUtils.java
...a/com/gogirl/infrastructure/common/util/SessionUtils.java
+1
-1
application.yml
src/main/resources/application.yml
+2
-2
No files found.
src/main/java/com/gogirl/application/product/serve/impl/ProduceStorePriceServiceImpl.java
View file @
765f1ba9
...
...
@@ -27,7 +27,7 @@ public class ProduceStorePriceServiceImpl extends ServiceImpl<ProduceStorePriceM
@Override
public
void
setProduceStorePrice
(
BaseProduce
baseProduce
)
{
Integer
departmentId
=
SessionUtils
.
getCustomer
Department
Id
();
Integer
departmentId
=
SessionUtils
.
getCustomerId
();
ProduceStorePrice
produceStorePrice
=
baseMapper
.
selectOne
(
new
LambdaQueryWrapper
<
ProduceStorePrice
>()
.
eq
(
ProduceStorePrice:
:
getProduceId
,
baseProduce
.
getId
())
...
...
@@ -44,7 +44,7 @@ public class ProduceStorePriceServiceImpl extends ServiceImpl<ProduceStorePriceM
@Override
public
void
setProduceStorePrice
(
List
<
BaseProduce
>
baseProduceList
)
{
Integer
departmentId
=
SessionUtils
.
get
Customer
DepartmentId
();
Integer
departmentId
=
SessionUtils
.
getDepartmentId
();
List
<
ProduceStorePrice
>
produceStorePriceList
=
baseMapper
.
selectList
(
new
LambdaQueryWrapper
<
ProduceStorePrice
>()
.
in
(
ProduceStorePrice:
:
getProduceId
,
baseProduceList
.
stream
().
map
(
BaseProduce:
:
getId
).
collect
(
Collectors
.
toList
()))
...
...
src/main/java/com/gogirl/infrastructure/common/util/SessionUtils.java
View file @
765f1ba9
...
...
@@ -141,7 +141,7 @@ public class SessionUtils {
return
sourceFromThreadLocal
.
get
().
equals
(
"technician"
);
}
p
ublic
static
Integer
getCustomerDepartmentId
()
{
p
rivate
static
Integer
getCustomerDepartmentId
()
{
return
customerDepartmentIdThreadLocal
.
get
();
}
...
...
src/main/resources/application.yml
View file @
765f1ba9
...
...
@@ -14,8 +14,8 @@ spring:
mybatis-plus
:
mapper-locations
:
-
classpath:mapper/**/*.xml
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
#
configuration:
#
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
server
:
undertow
:
...
...
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