Browse Source

查询接口调用信息

master
常熟吴彦祖 3 months ago
parent
commit
315f4d427e
  1. 1
      src/main/java/com/gaotao/modules/automatedWarehouse/mapper/WcsIntegrationMapper.java
  2. 9
      src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java
  3. 6
      src/main/resources/mapper/automatedWarehouse/WcsIntegrationMapper.xml

1
src/main/java/com/gaotao/modules/automatedWarehouse/mapper/WcsIntegrationMapper.java

@ -96,6 +96,7 @@ public interface WcsIntegrationMapper {
List<Integer> getOccupiedLayersExcludeSerial(@Param("site") String site, @Param("palletId") String palletId, List<Integer> getOccupiedLayersExcludeSerial(@Param("site") String site, @Param("palletId") String palletId,
@Param("position") String position, @Param("excludeSerialNo") String excludeSerialNo); @Param("position") String position, @Param("excludeSerialNo") String excludeSerialNo);
void updatePalletLocationCode(@Param("site") String site, @Param("palletId") String palletId, @Param("newLocationCode") String newLocationCode);
/** /**
* 更新栈板明细位置 - AI制作 * 更新栈板明细位置 - AI制作
*/ */

9
src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java

@ -408,7 +408,7 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService {
String inStockFlag = (String) labelInfo.get("inStockFlag"); String inStockFlag = (String) labelInfo.get("inStockFlag");
String labelWarehouseId = (String) labelInfo.get("warehouseId"); String labelWarehouseId = (String) labelInfo.get("warehouseId");
String labelLocationId = (String) labelInfo.get("locationId");
if (!"Y".equals(inStockFlag)) { if (!"Y".equals(inStockFlag)) {
throw new Exception("标签不在库状态"); throw new Exception("标签不在库状态");
} }
@ -416,8 +416,15 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService {
// 获取栈板当前所在站点 // 获取栈板当前所在站点
AgvStation nowStation = wcsIntegrationMapper.getNowStation(site, palletId); AgvStation nowStation = wcsIntegrationMapper.getNowStation(site, palletId);
if (nowStation == null) { if (nowStation == null) {
if("Temp".equals(labelWarehouseId)){
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "Temp");
}else if("AS".equals(labelLocationId)){
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "Virtual_AS");
}else {
throw new Exception("栈板不在运输点位,无法进行打托操作"); throw new Exception("栈板不在运输点位,无法进行打托操作");
} }
}
// 校验栈板和物料的仓库是否一致栈板的仓库通过location_code关联agv_station获取warehouse_code // 校验栈板和物料的仓库是否一致栈板的仓库通过location_code关联agv_station获取warehouse_code
String palletWarehouseCode = nowStation.getWarehouseCode(); String palletWarehouseCode = nowStation.getWarehouseCode();

6
src/main/resources/mapper/automatedWarehouse/WcsIntegrationMapper.xml

@ -228,6 +228,12 @@
AND serial_no != #{excludeSerialNo} AND serial_no != #{excludeSerialNo}
ORDER BY layer ORDER BY layer
</select> </select>
<update id="updatePalletLocationCode" >
update pallet
set location_code = #{newLocationCode}
where site = #{site}
and pallet_id = #{palletId}
</update>
<!-- 更新栈板明细位置 - AI制作 --> <!-- 更新栈板明细位置 - AI制作 -->
<update id="updatePalletDetailPosition"> <update id="updatePalletDetailPosition">

Loading…
Cancel
Save