|
|
@ -4,6 +4,7 @@ package com.digiwin.athena.app.service.order; |
|
|
|
import com.alibaba.fastjson.TypeReference; |
|
|
|
import com.digiwin.app.service.DWEAIResult; |
|
|
|
import com.digiwin.athena.app.infra.entity.SalesOrderDetailEntity; |
|
|
|
import com.digiwin.athena.app.infra.repository.SalesOrderDetailRepository; |
|
|
|
import com.digiwin.athena.app.infra.service.SalesOrderDetailService; |
|
|
|
import com.digiwin.athena.opt.common.eai.EAIRequest; |
|
|
|
import com.digiwin.athena.opt.common.eai.EAIUtil; |
|
|
@ -27,7 +28,7 @@ import java.util.stream.Collectors; |
|
|
|
public class SalesOrderDetailUpdateEAIService extends AbsEAIService { |
|
|
|
|
|
|
|
@Resource |
|
|
|
SalesOrderDetailService salesOrderDetailService; |
|
|
|
SalesOrderDetailRepository salesOrderDetailRepository; |
|
|
|
|
|
|
|
@Override |
|
|
|
public String getServiceName() { |
|
|
@ -45,11 +46,10 @@ public class SalesOrderDetailUpdateEAIService extends AbsEAIService { |
|
|
|
SalesOrderDetailEntity salesOrderDetailEntity = new SalesOrderDetailEntity(); |
|
|
|
salesOrderDetailEntity.setId(assemble.getId()); |
|
|
|
salesOrderDetailEntity.setTenantSid(1L); |
|
|
|
salesOrderDetailEntity.setStatus(2); |
|
|
|
return salesOrderDetailEntity; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
|
|
|
|
salesOrderDetailService.updateBatchById(salesOrderDetailEntityList); |
|
|
|
salesOrderDetailRepository.updateStatus(salesOrderDetailEntityList); |
|
|
|
|
|
|
|
return EAIUtil.buildEAIResult(new HashMap<>()); |
|
|
|
} |
|
|
|