|
|
|
@ -9,7 +9,9 @@ import com.gaotao.common.exception.XJException; |
|
|
|
import com.gaotao.common.utils.DateUtils; |
|
|
|
import com.gaotao.common.utils.PageUtils; |
|
|
|
import com.gaotao.common.utils.R; |
|
|
|
import com.gaotao.modules.app.service.SupplierService; |
|
|
|
import com.gaotao.modules.base.entity.PartFamilyData; |
|
|
|
import com.gaotao.modules.base.entity.SupplierData; |
|
|
|
import com.gaotao.modules.base.service.BaseService; |
|
|
|
import com.gaotao.modules.finishedProduct.dao.ReportFileDao; |
|
|
|
import com.gaotao.modules.finishedProduct.entity.ReportfilelistUserprinter; |
|
|
|
@ -76,6 +78,9 @@ public class ToolHeaderServiceImpl implements ToolHeaderService { |
|
|
|
@Autowired |
|
|
|
private SysMsgService sysMsgService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SupplierService supplierService; |
|
|
|
|
|
|
|
|
|
|
|
@Transactional |
|
|
|
public R saveToolDetail1(ToolDetailQuery toolDetailQuery) { |
|
|
|
@ -808,6 +813,13 @@ public class ToolHeaderServiceImpl implements ToolHeaderService { |
|
|
|
throw new XJException(sysMsgService.getLanguageMsg(SysMsgConstant.OBJECT_ID_200206)); |
|
|
|
} |
|
|
|
} |
|
|
|
// 校验供应商 |
|
|
|
if (StringUtils.isNotEmpty(toolDetailQuery.getSupplierId())) { |
|
|
|
SupplierData supplierData = supplierService.getSupplier(toolDetailQuery.getSite(),toolDetailQuery.getSupplierId()); |
|
|
|
if (supplierData == null) { |
|
|
|
throw new XJException(sysMsgService.getLanguageMsg(SysMsgConstant.OBJECT_ID_200612)); |
|
|
|
} |
|
|
|
} |
|
|
|
toolDetailMapper.updateToolDetailInfo(toolDetailQuery); |
|
|
|
} |
|
|
|
} |