Commit 989a35a2963e4789eff2261ff3945c0ce2543de7
1 parent
8962dab1
修改调整单报错方式
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/huaheng/pc/shipment/shipmentHeader/service/ShipmentHeaderServiceImpl.java
... | ... | @@ -166,7 +166,7 @@ public class ShipmentHeaderServiceImpl extends ServiceImpl<ShipmentHeaderMapper, |
166 | 166 | public AjaxResult addHistory(ShipmentHeader shipmentHeader) throws InvocationTargetException, IllegalAccessException { |
167 | 167 | //单据主单重复 |
168 | 168 | LambdaQueryWrapper<ShipmentHeaderHistory> headerHistoryLamb = Wrappers.lambdaQuery(); |
169 | - headerHistoryLamb.eq(ShipmentHeaderHistory::getId,shipmentHeader.getId()) | |
169 | + headerHistoryLamb.eq(ShipmentHeaderHistory::getCode,shipmentHeader.getCode()) | |
170 | 170 | .eq(ShipmentHeaderHistory::getWarehouseCode,shipmentHeader.getWarehouseCode()); |
171 | 171 | |
172 | 172 | ShipmentHeaderHistory headerHistory =shipmentHeaderHistoryService.getOne(headerHistoryLamb); |
... | ... |