Commit 765f1ba9 by huluobin

update

parent 6b3f695c
......@@ -27,7 +27,7 @@ public class ProduceStorePriceServiceImpl extends ServiceImpl<ProduceStorePriceM
@Override
public void setProduceStorePrice(BaseProduce baseProduce) {
Integer departmentId = SessionUtils.getCustomerDepartmentId();
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.getCustomerDepartmentId();
Integer departmentId = SessionUtils.getDepartmentId();
List<ProduceStorePrice> produceStorePriceList = baseMapper.selectList(new LambdaQueryWrapper<ProduceStorePrice>()
.in(ProduceStorePrice::getProduceId, baseProduceList.stream().map(BaseProduce::getId).collect(Collectors.toList()))
......
......@@ -141,7 +141,7 @@ public class SessionUtils {
return sourceFromThreadLocal.get().equals("technician");
}
public static Integer getCustomerDepartmentId() {
private static Integer getCustomerDepartmentId() {
return customerDepartmentIdThreadLocal.get();
}
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment