Compare commits

..

No commits in common. "80c16a4ff521f20557da16c8284af9c3ada0ec7d" and "1626935c8d6428588a75bfb1ecc913636f80db66" have entirely different histories.

4 changed files with 18 additions and 27 deletions

View File

@ -157,12 +157,6 @@
<version>2.2.9</version> <version>2.2.9</version>
</dependency> </dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>annotationProcessor</scope>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -3,14 +3,12 @@ package com.ktg.mes.md.mapper;
import com.ktg.common.annotation.DataSource; import com.ktg.common.annotation.DataSource;
import com.ktg.common.enums.DataSourceType; import com.ktg.common.enums.DataSourceType;
import com.ktg.mes.md.domain.AP0AE; import com.ktg.mes.md.domain.AP0AE;
import org.apache.ibatis.annotations.Mapper;
import java.util.List; import java.util.List;
/** /**
* @author Kelvin * @author Kelvin
*/ */
@Mapper
public interface AP0AEMapper { public interface AP0AEMapper {
@DataSource(DataSourceType.SQLSERVER) @DataSource(DataSourceType.SQLSERVER)
List<AP0AE> selectOutNewData(); List<AP0AE> selectOutNewData();

View File

@ -8,16 +8,8 @@ import java.util.List;
* @author luo26 * @author luo26
*/ */
public interface IAP0AEService { public interface IAP0AEService {
public List<AP0AE> selectOutNewData();
/**
* 获取借用记录
* @return 借用记录列表
*/
public List<AP0AE> selectBorrowedNewData();
/** public List<AP0AE> selectInNewData();
* 获取归还记录
* @return 归还记录列表
*/
public List<AP0AE> selectReturnedNewData();
} }

View File

@ -15,7 +15,6 @@ import com.ktg.mes.wm.domain.WmsInTask;
import com.ktg.mes.wm.service.IWmStorageAreaService; import com.ktg.mes.wm.service.IWmStorageAreaService;
import com.ktg.mes.wm.service.IWmsInPlanService; import com.ktg.mes.wm.service.IWmsInPlanService;
import com.ktg.mes.wm.service.IWmsInTaskService; import com.ktg.mes.wm.service.IWmsInTaskService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -30,21 +29,29 @@ import java.util.List;
* @author Kelvin * @author Kelvin
*/ */
@Service @Service
@RequiredArgsConstructor
public class AP0AEServiceImpl implements IAP0AEService { public class AP0AEServiceImpl implements IAP0AEService {
private final AP0AEMapper aP0AEMapper; @Autowired
private final IWmsInPlanService wmsInPlanService; private AP0AEMapper aP0AEMapper;
private final IWmsInTaskService wmsInTaskService;
private final IWmStorageAreaService wmStorageAreaService; @Autowired
private final IMdItemService mdItemService; private IWmsInPlanService wmsInPlanService;
@Autowired
private IWmsInTaskService wmsInTaskService;
@Autowired
private IWmStorageAreaService wmStorageAreaService;
@Autowired
private IMdItemService mdItemService;
@Override @Override
public List<AP0AE> selectBorrowedNewData() { public List<AP0AE> selectOutNewData() {
return this.aP0AEMapper.selectOutNewData(); return this.aP0AEMapper.selectOutNewData();
} }
@Override @Override
public List<AP0AE> selectReturnedNewData() { public List<AP0AE> selectInNewData() {
List<AP0AE> ap0aeList = aP0AEMapper.selectInNewData(); List<AP0AE> ap0aeList = aP0AEMapper.selectInNewData();
ap0aeList.stream().filter(ap0ae -> ap0ae.getAE003() != null).forEach(ap0ae -> { ap0aeList.stream().filter(ap0ae -> ap0ae.getAE003() != null).forEach(ap0ae -> {
WmsInPlan wmsInPlan = new WmsInPlan(); WmsInPlan wmsInPlan = new WmsInPlan();