|
|
@ -1522,13 +1522,13 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public String getQrCodeBoard(JSONObject client, QRCodeConfig config,JSONObject account) {
|
|
|
|
public String getQrCodeBoard(JSONObject client, QRCodeConfig config,JSONObject account,String plantform) {
|
|
|
|
// JSONObject org = orgMapper.findOne(client.getIntValue("org_id"));
|
|
|
|
// JSONObject org = orgMapper.findOne(client.getIntValue("org_id"));
|
|
|
|
return merchantInfoProvider.getQrCodeBoard(client, config,account);
|
|
|
|
return merchantInfoProvider.getQrCodeBoard(client, config,account,plantform);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void writeAggregateQrCodeBoard(JSONObject manager, String clientMoniker, QRCodeConfig config, OutputStream ous) {
|
|
|
|
public void writeAggregateQrCodeBoard(JSONObject manager, String clientMoniker, QRCodeConfig config, OutputStream ous,String plantform) {
|
|
|
|
JSONObject client = clientDetail(manager, clientMoniker);
|
|
|
|
JSONObject client = clientDetail(manager, clientMoniker);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
JSONObject qrboardConfig = new JSONObject();
|
|
|
|
JSONObject qrboardConfig = new JSONObject();
|
|
|
@ -1548,7 +1548,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
qrboardConfig.put("brandw", "600");
|
|
|
|
qrboardConfig.put("brandw", "600");
|
|
|
|
qrboardConfig.put("brandh", "200");
|
|
|
|
qrboardConfig.put("brandh", "200");
|
|
|
|
String type = qrboardConfig.getString("type");
|
|
|
|
String type = qrboardConfig.getString("type");
|
|
|
|
QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config,mongoTemplate,manager);
|
|
|
|
QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config,mongoTemplate,manager,plantform);
|
|
|
|
board.drawBoardImage(ous);
|
|
|
|
board.drawBoardImage(ous);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
throw new ServerErrorException("QR board config not set for current organize", e);
|
|
|
|
throw new ServerErrorException("QR board config not set for current organize", e);
|
|
|
@ -1556,7 +1556,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void writeQrCodeBoard(JSONObject manager, String clientMoniker, QRCodeConfig config, OutputStream ous) {
|
|
|
|
public void writeQrCodeBoard(JSONObject manager, String clientMoniker, QRCodeConfig config, OutputStream ous,String plantform) {
|
|
|
|
JSONObject client = clientDetail(manager, clientMoniker);
|
|
|
|
JSONObject client = clientDetail(manager, clientMoniker);
|
|
|
|
JSONObject org = orgMapper.findOne(client.getIntValue("org_id"));
|
|
|
|
JSONObject org = orgMapper.findOne(client.getIntValue("org_id"));
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -1568,7 +1568,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
JSONObject qrboardConfig = JSON.parseObject(qrBoardConfigString);
|
|
|
|
JSONObject qrboardConfig = JSON.parseObject(qrBoardConfigString);
|
|
|
|
|
|
|
|
|
|
|
|
String type = qrboardConfig.getString("type");
|
|
|
|
String type = qrboardConfig.getString("type");
|
|
|
|
QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config,mongoTemplate,manager);
|
|
|
|
QRBoard board = QRBoardProvider.getQRBoard(type, qrboardConfig, client, config,mongoTemplate,manager,plantform);
|
|
|
|
board.drawBoardImage(ous);
|
|
|
|
board.drawBoardImage(ous);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
throw new ServerErrorException("QR board config not set for current organize", e);
|
|
|
|
throw new ServerErrorException("QR board config not set for current organize", e);
|
|
|
|