Browse Source

新增去除租户id

master
clong 1 year ago
parent
commit
4b17cc406c
2 changed files with 2 additions and 4 deletions
  1. +0
    -1
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailCreateEAIService.java
  2. +2
    -3
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailGetEAIService.java

+ 0
- 1
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailCreateEAIService.java View File

@ -46,7 +46,6 @@ public class SalesOrderDetailCreateEAIService extends AbsEAIService {
SalesOrderDetailEntity salesOrderDetailEntity = new SalesOrderDetailEntity();
BeanUtils.copyProperties(assemble,salesOrderDetailEntity);
salesOrderDetailEntity.setId(SnowflakeWorker.nextId());
salesOrderDetailEntity.setTenantSid(1L);
salesOrderDetailEntity.setStatus(1);
return salesOrderDetailEntity;
}).collect(Collectors.toList());


+ 2
- 3
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailGetEAIService.java View File

@ -43,14 +43,13 @@ public class SalesOrderDetailGetEAIService extends AbsEAIService {
List<Long> idList = salesOrderDetailDTOList.stream().map(SalesOrderDetailEntity::getId).collect(Collectors.toList());
// 两次调get查询
LambdaQueryWrapper queryWrapper;
LambdaQueryWrapper<SalesOrderDetailEntity> queryWrapper;
if(request.getParameter().get(ParameterConstant.OPTION).equals(ParameterConstant.SET_NUMBER)){
queryWrapper = Wrappers.<SalesOrderDetailEntity>lambdaQuery()
.eq(SalesOrderDetailEntity::getTenantSid,0L);
}else{
queryWrapper = Wrappers.<SalesOrderDetailEntity>lambdaQuery()
.eq(SalesOrderDetailEntity::getTenantSid,1L)
.in(SalesOrderDetailEntity::getId,idList)
.in(SalesOrderDetailEntity::getId,idList)
.eq(SalesOrderDetailEntity::getStatus,salesOrderDetailDTOList.get(0).getStatus());
}


Loading…
Cancel
Save