Merge branch 'refs/heads/feature/DM/nflg-bom' into feature/DM/nflg-bom-transition
This commit is contained in:
commit
f8d5f29fbc
|
|
@ -210,7 +210,8 @@ public class MaterialService {
|
|||
materialMainService.saveOrUpdateBatch(resultList);
|
||||
initCategoryInfo(syncOaEnts);
|
||||
//同步OA
|
||||
CompletableFuture.runAsync(() -> sysnToOa(syncOaEnts),syncOAThreadPool);
|
||||
sysnToOa(syncOaEnts);
|
||||
// CompletableFuture.runAsync(() -> sysnToOa(syncOaEnts),syncOAThreadPool);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ import com.nflg.product.bomnew.util.OrderNoUtil;
|
|||
import nflg.product.common.constant.STATE;
|
||||
import nflg.product.common.vo.ResultVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
|
|
@ -46,8 +47,7 @@ public class PublishMaterialService {
|
|||
MaterialService materialService;
|
||||
|
||||
|
||||
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public ResultVO<String> publishWork(OptionalEbomPublishAddDTO optionalEbomPublishAddDTO) {
|
||||
|
||||
List<OptionalEbomImportChildVO> optionList = optionalEbomConfigService.getPreviewOptionList(optionalEbomPublishAddDTO.getRowId());
|
||||
|
|
@ -81,9 +81,6 @@ public class PublishMaterialService {
|
|||
).concat(".0"));
|
||||
|
||||
|
||||
|
||||
try {
|
||||
|
||||
List<OptionalMbomMaterialEntity> materialList = null;
|
||||
//第一层级 机型发货 和制作
|
||||
// Long parentId = genVirtualPackLevel1(materialList, optionalEbomPublishAddDTO.getRowId(), optionalEbomPublishAddDTO.getGoodsDesc());
|
||||
|
|
@ -107,17 +104,12 @@ public class PublishMaterialService {
|
|||
optionalEbomConfigService.updateById(optionalEbomConfigEntity);
|
||||
}
|
||||
|
||||
} catch (NflgBusinessException e) {
|
||||
return ResultVO.error(e.getMsg());
|
||||
}
|
||||
|
||||
return ResultVO.success("发布成功");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Deprecated
|
||||
public ResultVO<String> publishWorkOld(OptionalEbomPublishAddDTO optionalEbomPublishAddDTO) {
|
||||
|
||||
|
|
@ -258,8 +250,6 @@ public class PublishMaterialService {
|
|||
// makePack.setMaterialNo(data);
|
||||
|
||||
|
||||
|
||||
|
||||
AddVirtrualMaterialDTO toM = new AddVirtrualMaterialDTO();
|
||||
String key = String.valueOf(IdWorker.getId());
|
||||
toM.setKey(key);
|
||||
|
|
@ -273,7 +263,6 @@ public class PublishMaterialService {
|
|||
makePack.setMaterialNo(materialNo);
|
||||
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new NflgBusinessException(STATE.Error, "机型制作," + e.getMessage());
|
||||
}
|
||||
|
|
@ -305,7 +294,6 @@ public class PublishMaterialService {
|
|||
* @param materialList
|
||||
* @param rootRowId
|
||||
* @param parentId
|
||||
|
||||
* @return
|
||||
*/
|
||||
private void genVirtualPackMachineLevel2(List<OptionalMbomMaterialEntity> materialList, List<OptionalEbomImportChildVO> optionList, Long rootRowId, Long parentId, Long deviceRowId) throws NflgBusinessException {
|
||||
|
|
@ -386,7 +374,6 @@ public class PublishMaterialService {
|
|||
}
|
||||
|
||||
|
||||
|
||||
} else { //同物料号
|
||||
material = Convert.convert(new TypeReference<OptionalMbomMaterialEntity>() {
|
||||
}, optionalMbomCompareEntity);
|
||||
|
|
@ -463,8 +450,6 @@ public class PublishMaterialService {
|
|||
// makePack.setMaterialNo(data);
|
||||
|
||||
|
||||
|
||||
|
||||
AddVirtrualMaterialDTO toM = new AddVirtrualMaterialDTO();
|
||||
String key = String.valueOf(IdWorker.getId());
|
||||
toM.setKey(key);
|
||||
|
|
@ -508,7 +493,6 @@ public class PublishMaterialService {
|
|||
// sendPack.setMaterialNo(data);
|
||||
|
||||
|
||||
|
||||
AddVirtrualMaterialDTO toM = new AddVirtrualMaterialDTO();
|
||||
String key = String.valueOf(IdWorker.getId());
|
||||
toM.setKey(key);
|
||||
|
|
|
|||
Loading…
Reference in New Issue