Commit ce92b40aa0293b2a58294d584d8fb287a179ea2b

Authored by lector
1 parent ad166d87

修复出库历史bug

src/main/java/com/huaheng/pc/shipment/shipmentDetailHistory/controller/ShipmentDetailHistoryController.java
... ... @@ -68,6 +68,7 @@ public class ShipmentDetailHistoryController extends BaseController
68 68 lambdaQueryWrapper
69 69 .eq(ShipmentDetailHistory::getWarehouseCode,ShiroUtils.getWarehouseCode())
70 70 .in(ShipmentDetailHistory::getCompanyCode,ShiroUtils.getCompanyCodeList())
  71 + .eq(StringUtils.isNotEmpty(shipmentDetailHistory.getShipmentId().toString()),ShipmentDetailHistory::getShipmentId,shipmentDetailHistory.getShipmentId())
71 72 .eq(StringUtils.isNotEmpty(shipmentDetailHistory.getShipmentCode()),ShipmentDetailHistory::getShipmentCode,shipmentDetailHistory.getShipmentCode())
72 73 .orderByAsc(ShipmentDetailHistory::getId);
73 74  
... ...
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::getCode,shipmentHeader.getCode())
  169 + headerHistoryLamb.eq(ShipmentHeaderHistory::getId,shipmentHeader.getId())
170 170 .eq(ShipmentHeaderHistory::getWarehouseCode,shipmentHeader.getWarehouseCode());
171 171  
172 172 ShipmentHeaderHistory headerHistory =shipmentHeaderHistoryService.getOne(headerHistoryLamb);
... ...
src/main/java/com/huaheng/pc/shipment/shipmentHeaderHistory/domain/ShipmentHeaderHistory.java
... ... @@ -19,7 +19,7 @@ public class ShipmentHeaderHistory implements Serializable {
19 19 /**
20 20 * 出库单内部号
21 21 */
22   - @TableId(value = "id", type = IdType.AUTO)
  22 + @TableId(value = "id")
23 23 @ApiModelProperty(value = "出库单内部号")
24 24 private Integer id;
25 25  
... ...