提交代码

dev-discount
胡锐 3 years ago
parent 1af33b4da7
commit da9b846912
  1. 4
      hai-service/src/main/java/com/hai/config/SpPrinterTemplate.java
  2. 2
      hai-service/src/main/java/com/hai/dao/HighOrderMapperExt.java
  3. 4
      hai-service/src/main/java/com/hai/service/impl/HighMerchantStoreServiceImpl.java

@ -41,7 +41,7 @@ public class SpPrinterTemplate {
"<L1>加油金额</L1><BR>" + "<L1>加油金额</L1><BR>" +
"<L1>¥" + orderPrice + "元</L1><BR>" + "<L1>¥" + orderPrice + "元</L1><BR>" +
"------------------------------<BR>" + "------------------------------<BR>" +
"<C><B>来"嗨森逛“;开心又省钱</B></C>"; "<C><B>开心又省钱;来"嗨森逛“</B></C>";
return str; return str;
} }
@ -80,7 +80,7 @@ public class SpPrinterTemplate {
"<L1>加油金额</L1><BR>" + "<L1>加油金额</L1><BR>" +
"<L1>¥" + orderPrice + "元</L1><BR>" + "<L1>¥" + orderPrice + "元</L1><BR>" +
"------------------------------<BR>" + "------------------------------<BR>" +
"<C><B>来"嗨森逛“;开心又省钱</B></C>"; "<C><B>开心又省钱;来"嗨森逛“</B></C>";
return str; return str;
} }

@ -1094,7 +1094,7 @@ public interface HighOrderMapperExt {
" b.order_status status," + " b.order_status status," +
" a.goods_name gasName," + " a.goods_name gasName," +
" (select address from high_merchant_store where id = a.goods_id) gasAddress," + " (select address from high_merchant_store where id = a.goods_id) gasAddress," +
" (select store_logo from high_merchant_store where id = a.goods_id) gasLogo," + " a.goods_img gasLogo," +
" a.gas_oil_type gasOilType," + " a.gas_oil_type gasOilType," +
" a.gas_oil_no gasOilNo," + " a.gas_oil_no gasOilNo," +
" a.gas_gun_no gasGunNo," + " a.gas_gun_no gasGunNo," +

@ -71,8 +71,8 @@ public class HighMerchantStoreServiceImpl implements HighMerchantStoreService {
&& StringUtils.isNotBlank(highMerchantStore.getDeviceName())) { && StringUtils.isNotBlank(highMerchantStore.getDeviceName())) {
SpPrinterConfig sp = new SpPrinterConfig(); SpPrinterConfig sp = new SpPrinterConfig();
JSONObject jsonObject = JSONObject.parseObject(sp.addPrinter(highMerchantStore.getDeviceSn(), highMerchantStore.getDeviceKey(), highMerchantStore.getDeviceName())); JSONObject jsonObject = JSONObject.parseObject(sp.addPrinter(highMerchantStore.getDeviceSn(), highMerchantStore.getDeviceKey(), highMerchantStore.getDeviceName()));
if (!jsonObject.getLong("errorcode").equals(0)) { if (!jsonObject.getInteger("errorcode").equals(0)) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.MERCHANT_NOF_FOUND, jsonObject.getString("errormsg")); throw ErrorHelp.genException(SysCode.System, ErrorCode.MERCHANT_NOF_FOUND, "设备绑定失败");
} }
} }

Loading…
Cancel
Save