opt:越南富佳优化

This commit is contained in:
2025-12-24 17:41:05 +08:00
parent 32b11ad087
commit 552d48b758
3 changed files with 18 additions and 1 deletions

View File

@@ -409,7 +409,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
public GetCarStatusResponse getCarStatus() {
GetCarStatusResponse response = new GetCarStatusResponse();
List<Device> agvDevices = deviceAppService.findAllDevice().stream().filter(a -> "agv_ndc_two".equals(a.getDevice_type())).collect(Collectors.toList());
List<Instruction> instructions = instructionService.queryAll(new HashMap()).stream().filter(a -> InstructionStatusEnum.BUSY.getIndex().equals(a.getInstruction_status())).collect(Collectors.toList());
List<Instruction> instructions = instructionService.findByStatus(InstructionStatusEnum.BUSY.getIndex());
List<JSONObject> jsonObjectList = new ArrayList<>();
for (Device device : agvDevices) {

View File

@@ -168,6 +168,14 @@ public interface InstructionService extends CommonService<InstructionMybatis> {
*/
Instruction findByTaskcodeAndStatus(String code);
/**
* 根据任务status查询
*
* @param code code
* @return Instruction
*/
List<Instruction> findByStatus(String status);
/**
* 根据任务id查询
*
@@ -498,6 +506,7 @@ public interface InstructionService extends CommonService<InstructionMybatis> {
List<Instruction> findByCodeAndExcute(String nextDeviceCode);
List<Instruction> findByNextCode(String nextDeviceCode);
List<Instruction> findReadyIns();

View File

@@ -362,6 +362,14 @@ public class InstructionServiceImpl extends CommonServiceImpl<InstructionMapper,
return null;
}
@Override
public List<Instruction> findByStatus(String status) {
List<InstructionMybatis> ins = new LambdaQueryChainWrapper<>(instructionMapper)
.eq(InstructionMybatis::getInstruction_status, status)
.list();
return ConvertUtil.convertList(ins, Instruction.class);
}
@Override
public Instruction findByTaskid(String id, String wherecaluse) {