|
@@ -53,10 +53,13 @@ public class LogisticsAmountServiceImpl extends ServiceImpl<LogisticsAmountMappe
|
|
|
@DSTransactional
|
|
|
@Override
|
|
|
public void saveOrEditList(LogisticsAmountDto dto) {
|
|
|
+ Assert.notEmpty(dto.getLogisticsCompanyId(), "物流公司不能为空!");
|
|
|
+
|
|
|
List<LogisticsAmount> logisticsAmountList = dto.getLogisticsAmountList();
|
|
|
for (LogisticsAmount logisticsAmount : logisticsAmountList) {
|
|
|
- Assert.notEmpty(logisticsAmount.getLogisticsCompanyId(), "物流公司不能为空!");
|
|
|
Assert.notEmpty(logisticsAmount.getYear(), "年份不能为空!");
|
|
|
+
|
|
|
+ logisticsAmount.setLogisticsCompanyId(dto.getLogisticsCompanyId());
|
|
|
}
|
|
|
this.editLinked(logisticsAmountList, LogisticsAmount::getLogisticsCompanyId, dto.getLogisticsCompanyId());
|
|
|
}
|