Browse Source

天合修复bug

master
songguoqiang 6 months ago
parent
commit
39a3f827b5
  1. 3
      win-module-eam/win-module-eam-biz/src/main/java/com/win/module/eam/dal/mysql/inventorywarning/InventoryWarningMapper.java
  2. 2
      win-module-eam/win-module-eam-biz/src/main/java/com/win/module/eam/dal/mysql/itemaccounts/ItemAccountsMapper.java
  3. 2
      win-module-eam/win-module-eam-biz/src/main/java/com/win/module/eam/service/itemoutlocation/ItemOutLocationServiceImpl.java

3
win-module-eam/win-module-eam-biz/src/main/java/com/win/module/eam/dal/mysql/inventorywarning/InventoryWarningMapper.java

@ -42,7 +42,8 @@ public interface InventoryWarningMapper extends BaseMapperX<InventoryWarningDO>
.eqIfPresent(InventoryWarningDO::getExtraProperties, reqVO.getExtraProperties()) .eqIfPresent(InventoryWarningDO::getExtraProperties, reqVO.getExtraProperties())
.eqIfPresent(InventoryWarningDO::getConcurrencyStamp, reqVO.getConcurrencyStamp()) .eqIfPresent(InventoryWarningDO::getConcurrencyStamp, reqVO.getConcurrencyStamp())
.eqIfPresent(InventoryWarningDO::getSiteId, reqVO.getSiteId()) .eqIfPresent(InventoryWarningDO::getSiteId, reqVO.getSiteId())
.orderByDesc(InventoryWarningDO::getId)); .orderByAsc(InventoryWarningDO::getProcureStatus)
.orderByDesc(InventoryWarningDO::getCreateTime));
} }
default List<InventoryWarningDO> selectList(InventoryWarningExportReqVO reqVO) { default List<InventoryWarningDO> selectList(InventoryWarningExportReqVO reqVO) {

2
win-module-eam/win-module-eam-biz/src/main/java/com/win/module/eam/dal/mysql/itemaccounts/ItemAccountsMapper.java

@ -193,7 +193,7 @@ public interface ItemAccountsMapper extends BaseMapperX<ItemAccountsDO> {
TransactionDO transactionDO8 = new TransactionDO(); TransactionDO transactionDO8 = new TransactionDO();
transactionDO8.setQty(qtyNew); transactionDO8.setQty(qtyNew);
transactionDO8.setType(outLocation.getType()); transactionDO8.setType(outLocation.getType());
transactionDO8.setInventoryAction(TransactionEnum.INOUT.getCode()); transactionDO8.setInventoryAction(TransactionEnum.OUTOUT.getCode());
list.add(transactionDO8); list.add(transactionDO8);
} }
} else {//非领用出库 } else {//非领用出库

2
win-module-eam/win-module-eam-biz/src/main/java/com/win/module/eam/service/itemoutlocation/ItemOutLocationServiceImpl.java

@ -32,6 +32,7 @@ import org.springframework.validation.annotation.Validated;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
@ -126,6 +127,7 @@ public class ItemOutLocationServiceImpl implements ItemOutLocationService {
inventoryWarningDOQueryWrapper.ne("procure_status", ProcureStatusEnum.YESPURCHASED.getCode()); inventoryWarningDOQueryWrapper.ne("procure_status", ProcureStatusEnum.YESPURCHASED.getCode());
List<InventoryWarningDO> inventoryWarningDOList = inventoryWarningMapper.selectList(inventoryWarningDOQueryWrapper); List<InventoryWarningDO> inventoryWarningDOList = inventoryWarningMapper.selectList(inventoryWarningDOQueryWrapper);
if(inventoryWarningDOList.isEmpty()){ if(inventoryWarningDOList.isEmpty()){
inventoryWarningDO.setCreateTime(LocalDateTime.now());
result = inventoryWarningMapper.insert(inventoryWarningDO); result = inventoryWarningMapper.insert(inventoryWarningDO);
} }
} }

Loading…
Cancel
Save