This commit is contained in:
2023-04-06 15:30:55 +08:00
parent d3cf6c42b2
commit 64a8ea3379
5 changed files with 37 additions and 11 deletions

View File

@@ -15,7 +15,6 @@ import com.jsowell.common.util.DateUtils;
import com.jsowell.common.util.SecurityUtils;
import com.jsowell.common.util.StringUtils;
import com.jsowell.common.util.id.SnUtils;
import com.jsowell.netty.command.ykc.IssueQRCodeCommand;
import com.jsowell.netty.service.yunkuaichong.YKCPushCommandService;
import com.jsowell.pile.domain.MemberBasicInfo;
import com.jsowell.pile.domain.OrderBasicInfo;
@@ -106,6 +105,9 @@ public class PileService {
@Autowired
private YKCPushCommandService ykcPushCommandService;
@Autowired
private PileRemoteService pileRemoteService;
/**
* 查询设备信息
*
@@ -519,13 +521,15 @@ public class PileService {
List<String> pileSnList = pileDetailVOS.stream()
.map(PileDetailVO::getPileSn)
.collect(Collectors.toList());
IssueQRCodeCommand command;
// IssueQRCodeCommand command;
for (String pileSn : pileSnList) {
// 给桩下发二维码
command = new IssueQRCodeCommand();
command.setPileSn(pileSn);
command.setQrcodePrefix(dto.getQrcodePrefix());
ykcPushCommandService.pushIssueQRCodeCommand(command);
// command = new IssueQRCodeCommand();
// command.setPileSn(pileSn);
// command.setQrcodePrefix(dto.getQrcodePrefix());
// ykcPushCommandService.pushIssueQRCodeCommand(command);
pileRemoteService.issueQRCode(pileSn);
}
return 1;
}