|
@@ -3,8 +3,10 @@ package com.fjhx.mes.service.bom.impl;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
+import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.fjhx.file.utils.ObsFileUtil;
|
|
|
import com.fjhx.item.entity.product.po.ProductInfo;
|
|
|
import com.fjhx.item.service.product.ProductInfoService;
|
|
|
import com.fjhx.mes.entity.bom.dto.BomInfoDto;
|
|
@@ -217,4 +219,18 @@ public class BomInfoServiceImpl extends ServiceImpl<BomInfoMapper, BomInfo> impl
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @DSTransactional
|
|
|
+ @Override
|
|
|
+ public void addByJxst(BomInfoDto bomInfoDto) {
|
|
|
+ add(bomInfoDto);
|
|
|
+ ObsFileUtil.saveFile(bomInfoDto.getFileList(), bomInfoDto.getId());
|
|
|
+ }
|
|
|
+
|
|
|
+ @DSTransactional
|
|
|
+ @Override
|
|
|
+ public void editByJxst(BomInfoDto bomInfoDto) {
|
|
|
+ edit(bomInfoDto);
|
|
|
+ ObsFileUtil.editFile(bomInfoDto.getFileList(), bomInfoDto.getId());
|
|
|
+ }
|
|
|
+
|
|
|
}
|