Commit 595b0e44 zshaohui

1.增加中控,抛送小车信息

1 个父辈 0b3f6abe
......@@ -37,6 +37,7 @@ import com.neotel.smfcore.core.system.util.TaskService;
import com.neotel.smfcore.custom.lizhen.innerBox.enums.ExtendType;
import com.neotel.smfcore.custom.luxsan.api.LuxsanApi;
import com.neotel.smfcore.custom.luxsan.factory_c.common.util.DisableBarcodeUtil;
import com.neotel.smfcore.custom.luxsan.factory_c.wipstor.kafka.service.KafkaService;
import com.neotel.smfcore.custom.siemens.SiemensApi;
import com.neotel.smfcore.security.annotation.AnonymousAccess;
import io.swagger.annotations.Api;
......@@ -88,6 +89,9 @@ public class StoragePosController {
@Autowired
private IBarcodeManager barcodeManager;
@Autowired
private KafkaService kafkaService;
@ApiOperation("查询库位")
@GetMapping
......@@ -265,6 +269,12 @@ public class StoragePosController {
log.info("启用禁用库位:库位号[" + pos.getId() + "][" + pos.getPosName() + "]=" + enabledDto.isEnabled());
DeviceMessageUtil.addEnabledPosMessage(pos,SecurityUtils.getCurrentUsername());
if (!pos.isEnabled()){
kafkaService.sendPosChange(pos.getPosName(),"2");
} else {
kafkaService.sendPosChange(pos.getPosName(),"3");
}
return ResultBean.newOkResult("");
}
......
package com.neotel.smfcore.custom.luxsan.factory_c.wipstor.kafka.config;
import java.util.ArrayList;
import java.util.List;
public class StorageNameConfig {
//原材料仓货架
//半成品仓货架
public static final String semiFinishedTower = "semi-finished-tower";
static List<String> agvMachineIdList = new ArrayList<>();
public static List<String> getAgvMachineIdList(){
if (agvMachineIdList != null && !agvMachineIdList.isEmpty()){
return agvMachineIdList;
}
agvMachineIdList.add(semiFinishedCtu5040);
agvMachineIdList.add(semiFinishedCtu5041);
agvMachineIdList.add(semiFinishedCtu5070);
return agvMachineIdList;
}
public static final String semiFinishedCtu5040 = "semi-finished-ctu-5040";//半成品第1台CTU
public static final String semiFinishedCtu5041 = "semi-finished-ctu-5040";//半成品第1台CTU
public static final String semiFinishedCtu5070 = "semi-finished-ctu-5040";//半成品第1台CTU
}
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!