|
|
@@ -82,6 +82,9 @@ public class BaseInfoServiceImpl implements BaseInfoService {
|
|
|
@Autowired
|
|
|
private PurchaseOrderAllDao purchaseOrderAllDao;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CommonDao commonDao;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 批量导入物料资料
|
|
|
@@ -430,11 +433,21 @@ public class BaseInfoServiceImpl implements BaseInfoService {
|
|
|
if (!CollectionUtils.isEmpty(results)) {
|
|
|
productMatchResultDao.delete(results);
|
|
|
}
|
|
|
+ // 需要删除个人物料库的数据
|
|
|
+ deleteUserProduct(id);
|
|
|
productDao.delete(id);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
+ /**
|
|
|
+ * 删除个人物料库的数据
|
|
|
+ * @param id
|
|
|
+ */
|
|
|
+ private void deleteUserProduct(Long id) {
|
|
|
+ commonDao.getJdbcTemplate().execute("delete product$users where pu_prid = " + id);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public Vendor addCust(BasePartnersInfo partner) {
|
|
|
Enterprise enter = enterpriseDao.findEnterpriseByEnBussinessCode(partner.getVendUID());
|
|
|
UserBaseInfo user = userBaseInfoDao.findByUserUU(Long.valueOf(partner.getVendUserCode()));
|