mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 12:05:05 +08:00
update 自定义二维码前缀
This commit is contained in:
@@ -19,7 +19,6 @@ import com.jsowell.pile.service.IPileBillingTemplateService;
|
||||
import com.jsowell.pile.service.IPileStationInfoService;
|
||||
import com.jsowell.pile.vo.web.BillingTemplateVO;
|
||||
import com.jsowell.pile.vo.web.PileDetailVO;
|
||||
import com.jsowell.pile.vo.web.PileStationVO;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -111,11 +110,13 @@ public class PileRemoteService {
|
||||
* @param pileSn 充电桩sn
|
||||
*/
|
||||
public void issueQRCode(String pileSn) {
|
||||
issueQRCode(pileSn, null);
|
||||
}
|
||||
|
||||
public void issueQRCode(String pileSn, String qrcodePrefix) {
|
||||
IssueQRCodeCommand command = IssueQRCodeCommand.builder().pileSn(pileSn).build();
|
||||
// 查询充电站info
|
||||
PileStationVO pileStationVO = pileStationInfoService.getStationInfoByPileSn(pileSn);
|
||||
if (StringUtils.isNotBlank(pileStationVO.getQrcodePrefix())) {
|
||||
command.setQrcodePrefix(pileStationVO.getQrcodePrefix());
|
||||
if (StringUtils.isNotBlank(qrcodePrefix)) {
|
||||
command.setQrcodePrefix(qrcodePrefix);
|
||||
}
|
||||
ykcPushCommandService.pushIssueQRCodeCommand(command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user