修改二维码生产

This commit is contained in:
yuyang 2022-03-18 14:46:28 +08:00
parent 1329355111
commit c8e28e0aaa
5 changed files with 13 additions and 2 deletions

View File

@ -87,6 +87,9 @@ public class XhpcDownCodeServiceImpl implements IXhpcDownCodeService {
for(int i = 1; i <= list.size(); i ++){ for(int i = 1; i <= list.size(); i ++){
Map<String,Object> map = list.get(i - 1); Map<String,Object> map = list.get(i - 1);
if(null != map) { if(null != map) {
if(map.get("qrContent") !=null){
map.put("qrContent",environment.getProperty("img.qrLinkContent")+map.get("qrContent").toString());
}
dataRow = sheet.createRow(i); dataRow = sheet.createRow(i);
for(int j = 0; j < valuesLength; j ++){ for(int j = 0; j < valuesLength; j ++){
if(null != map.get(values[j])){ if(null != map.get(values[j])){
@ -162,6 +165,9 @@ public class XhpcDownCodeServiceImpl implements IXhpcDownCodeService {
for (int i = 1; i <= list.size(); i++) { for (int i = 1; i <= list.size(); i++) {
Map<String, Object> map = list.get(i - 1); Map<String, Object> map = list.get(i - 1);
if (null != map) { if (null != map) {
if(map.get("qrContent") !=null){
map.put("qrContent",environment.getProperty("img.qrLinkContent")+map.get("qrContent").toString());
}
dataRow = sheet.createRow(i); dataRow = sheet.createRow(i);
for (int j = 0; j < valuesLength; j++) { for (int j = 0; j < valuesLength; j++) {
if (null != map.get(values[j])) { if (null != map.get(values[j])) {

View File

@ -31,6 +31,9 @@ public class QrImgUtils {
//生成桩的二维码图片 //生成桩的二维码图片
//1.生成二维码链接内容 //1.生成二维码链接内容
StringBuilder prefix = new StringBuilder(environment.getProperty("img.qrLinkContent")); StringBuilder prefix = new StringBuilder(environment.getProperty("img.qrLinkContent"));
System.out.println("========prefix===========》"+environment.getProperty("img.qrLinkContent"));
System.out.println("========prefix===========》"+environment.getProperty("img.qrLinkContent"));
System.out.println("========prefix===========》"+environment.getProperty("img.qrLinkContent"));
String QrContent = prefix.append(xhpcTerminal.getSerialNumber()).toString(); String QrContent = prefix.append(xhpcTerminal.getSerialNumber()).toString();
try { try {
//2.生成二维码图片 //2.生成二维码图片

View File

@ -38,7 +38,7 @@
p.serial_number AS psn, p.serial_number AS psn,
p.type, p.type,
p.power, p.power,
concat('https://www.scxhua.cn?pNum=', t.serial_number) AS qrContent t.serial_number as qrContent
FROM xhpc_terminal AS t FROM xhpc_terminal AS t
LEFT JOIN xhpc_charging_station AS s ON t.charging_station_id = s.charging_station_id LEFT JOIN xhpc_charging_station AS s ON t.charging_station_id = s.charging_station_id
LEFT JOIN xhpc_charging_pile AS p ON p.charging_pile_id = t.charging_pile_id LEFT JOIN xhpc_charging_pile AS p ON p.charging_pile_id = t.charging_pile_id
@ -57,7 +57,7 @@
pile.serial_number AS psn, pile.serial_number AS psn,
pile.type, pile.type,
pile.power, pile.power,
concat('https://www.scxhua.cn?pNum=', terminal.serial_number) AS qrContent terminal.serial_number as qrContent
FROM xhpc_terminal AS terminal FROM xhpc_terminal AS terminal
LEFT JOIN xhpc_img img ON img.terminal_id = terminal.terminal_id LEFT JOIN xhpc_img img ON img.terminal_id = terminal.terminal_id
AND img.del_flag = 0 AND img.del_flag = 0

View File

@ -196,6 +196,7 @@
co.community_id as communityId, co.community_id as communityId,
co.name as name, co.name as name,
co.service_preferential as servicePreferential, co.service_preferential as servicePreferential,
co.commission_type as commissionType,
co.min_people as minPeople, co.min_people as minPeople,
co.contact_name as contactName, co.contact_name as contactName,
co.contact_phone as contactPhone, co.contact_phone as contactPhone,

View File

@ -195,6 +195,7 @@
co.address as address, co.address as address,
co.dimension as dimension, co.dimension as dimension,
co.status as status, co.status as status,
co.commission_type as commissionType,
group_concat(me.charging_station_id) chargingStationIds group_concat(me.charging_station_id) chargingStationIds
from xhpc_customers co from xhpc_customers co
left join xhpc_mechanism me on me.mechanism_id = co.customers_id and me.source = 1 and me.del_flag =0 left join xhpc_mechanism me on me.mechanism_id = co.customers_id and me.source = 1 and me.del_flag =0