|
@@ -24,10 +24,11 @@ import com.platform.dao.entity.upms.SysUserDept;
|
|
|
import com.platform.dao.enums.*;
|
|
|
import com.platform.dao.mapper.project.ProjectMapper;
|
|
|
import com.platform.dao.mapper.repair.RepairApplicationFormMapper;
|
|
|
-import com.platform.dao.mapper.sb.SbInfoMapper;
|
|
|
import com.platform.dao.mapper.sb.SbModelSpareBomMapper;
|
|
|
-import com.platform.dao.mapper.sb.SbPositionMapper;
|
|
|
-import com.platform.dao.mapper.store.*;
|
|
|
+import com.platform.dao.mapper.store.OutStoreDetailMapper;
|
|
|
+import com.platform.dao.mapper.store.OutStoreFormMapper;
|
|
|
+import com.platform.dao.mapper.store.SparePickFormMapper;
|
|
|
+import com.platform.dao.mapper.store.SpareStoreMapper;
|
|
|
import com.platform.dao.util.MessageTemplateUtil;
|
|
|
import com.platform.dao.vo.query.project.ProjectVO;
|
|
|
import com.platform.dao.vo.query.store.*;
|
|
@@ -35,13 +36,11 @@ import com.platform.dao.vo.repair.RepairApplicationFormVO;
|
|
|
import com.platform.dao.vo.sb.SbModelSpareBomVO;
|
|
|
import com.platform.service.base.impl.BaseServiceImpl;
|
|
|
import com.platform.service.event.WorkplaceBacklogEvent;
|
|
|
-import com.platform.service.store.OutStoreDetailService;
|
|
|
import com.platform.service.store.OutStoreFormService;
|
|
|
import com.platform.service.store.StoreService;
|
|
|
import com.platform.service.upms.SysConfigService;
|
|
|
import com.platform.service.upms.SysUserDeptService;
|
|
|
import com.platform.service.upms.SysUserRoleService;
|
|
|
-import com.platform.service.yongyou.YongyouService;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -51,6 +50,7 @@ import tk.mybatis.mapper.weekend.Weekend;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -63,23 +63,17 @@ import java.util.stream.Collectors;
|
|
|
@AllArgsConstructor
|
|
|
@Service("outStoreFormService")
|
|
|
public class OutStoreFormServiceImpl extends BaseServiceImpl<OutStoreFormMapper, OutStoreForm, OutStoreFormDTO> implements OutStoreFormService {
|
|
|
+ private final OutStoreDetailMapper outStoreDetailMapper;
|
|
|
private OutStoreDetailMapper detailMapper;
|
|
|
private StoreService storeService;
|
|
|
private SpareStoreMapper spareStoreMapper;
|
|
|
- private SpareStoreSecondMapper spareStoreSecondMapper;
|
|
|
private SparePickFormMapper sparePickFormMapper;
|
|
|
- private SparePickDetailMapper sparePickDetailMapper;
|
|
|
- private InStoreFormServiceImpl inStoreFormServiceImpl;
|
|
|
private RepairApplicationFormMapper repairApplicationFormMapper;
|
|
|
- private SbInfoMapper sbInfoMapper;
|
|
|
- private SbPositionMapper sbPositionMapper;
|
|
|
private SysUserRoleService sysUserService;
|
|
|
- private OutStoreDetailService outStoreDetailService;
|
|
|
private ProjectMapper projectMapper;
|
|
|
private SbModelSpareBomMapper sbModelSpareBomMapper;
|
|
|
private SysConfigService sysConfigService;
|
|
|
private SysUserDeptService sysUserDeptService;
|
|
|
- private YongyouService yongyouService;
|
|
|
|
|
|
@Override
|
|
|
public List<OutStoreFormVO> selectbyRepairForm(String id) {
|
|
@@ -1051,4 +1045,17 @@ public class OutStoreFormServiceImpl extends BaseServiceImpl<OutStoreFormMapper,
|
|
|
outStoreForm.setUpdateTime(LocalDateTime.now());
|
|
|
mapper.updateByPrimaryKeySelective(outStoreForm);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<OutStoreFormVO> selectList(OutStoreFormDTO outStoreFormDTO) {
|
|
|
+ List<OutStoreFormVO> list = mapper.selectList(outStoreFormDTO);
|
|
|
+ if(!CollectionUtils.isEmpty(list)){
|
|
|
+ for (OutStoreFormVO outStoreFormVO : list) {
|
|
|
+ OutStoreDetailDTO outStoreDetail = new OutStoreDetailDTO();
|
|
|
+ outStoreDetail.setOutId(outStoreFormVO.getId());
|
|
|
+ outStoreFormVO.setDetailList(outStoreDetailMapper.selectList(outStoreDetail));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return list;
|
|
|
+ }
|
|
|
}
|