|
|
@@ -374,7 +374,9 @@ public class PurchaseProductServiceImpl implements PurchaseProductService {
|
|
|
for (ReleaseProductByBatch each : batchList) {
|
|
|
// 返回符合标准的唯一的物料信息
|
|
|
if (aBatch.compareSameProductTagInfo(each)) {
|
|
|
- aBatch.addErrmsg(ErrorInfoConstant.REPEAT_IN_EXCEL.getInfo());
|
|
|
+ if (!aBatch.getErrmsg().contains(ErrorInfoConstant.REPEAT_IN_EXCEL.getInfo())) {
|
|
|
+ aBatch.addErrmsg(ErrorInfoConstant.REPEAT_IN_EXCEL.getInfo());
|
|
|
+ }
|
|
|
aBatch.setReleaseStatus(ReleaseStatus.had_exists.getPhrase());
|
|
|
aBatch.setReleaseCode(ReleaseStatus.had_exists.value());
|
|
|
if (aBatch.getErrmsg().substring(0, 1).equals(",")) {
|