提交代码

dev-discount
胡锐 3 years ago
parent 7841ddf57d
commit abbfe7b697
  1. 7
      hai-cweb/src/main/java/com/cweb/controller/HighGasController.java
  2. 2
      hai-cweb/src/main/java/com/cweb/controller/HighTestController.java
  3. 1
      hai-service/src/main/java/com/hai/dao/HighOrderMapperExt.java
  4. 9
      hai-service/src/main/java/com/hai/model/GasOrderModel.java
  5. 6
      hai-service/src/main/java/com/hai/service/impl/HighMerchantStoreServiceImpl.java

@ -92,6 +92,11 @@ public class HighGasController {
if (region != null) { if (region != null) {
List<Map<String, Object>> storeList = highGasOilPriceService.getStoreListByOilNo(storeName,region.getRegionId(), oilNoName); List<Map<String, Object>> storeList = highGasOilPriceService.getStoreListByOilNo(storeName,region.getRegionId(), oilNoName);
for (Map<String, Object> store : storeList) { for (Map<String, Object> store : storeList) {
if (StringUtils.isNotBlank(MapUtils.getString(store, "store_logo"))) {
store.put("store_logo", CommonSysConst.getSysConfig().getHsgDomainName() +"/filesystem/"+MapUtils.getString(store, "store_logo"));
} else {
store.put("store_logo", null);
}
double distance = CoordCommonUtil.getDistance(Double.valueOf(store.get("latitude").toString()), Double.valueOf(store.get("longitude").toString()), Double.valueOf(latitude), Double.valueOf(longitude)); double distance = CoordCommonUtil.getDistance(Double.valueOf(store.get("latitude").toString()), Double.valueOf(store.get("longitude").toString()), Double.valueOf(latitude), Double.valueOf(longitude));
store.put("distance", Math.round(distance/100d)/10d); store.put("distance", Math.round(distance/100d)/10d);
} }
@ -230,7 +235,7 @@ public class HighGasController {
param.put("gasLogoBig", CommonSysConst.getSysConfig().getHsgDomainName()+"/filesystem/"+store.getStoreLogo()); param.put("gasLogoBig", CommonSysConst.getSysConfig().getHsgDomainName()+"/filesystem/"+store.getStoreLogo());
param.put("gasLogoSmall", CommonSysConst.getSysConfig().getHsgDomainName()+"/filesystem/"+store.getStoreLogo()); param.put("gasLogoSmall", CommonSysConst.getSysConfig().getHsgDomainName()+"/filesystem/"+store.getStoreLogo());
param.put("gasAddressLatitude", store.getLatitude()); param.put("gasAddressLatitude", store.getLatitude());
param.put("gasAddressLongitude", store.getLatitude()); param.put("gasAddressLongitude", store.getLongitude());
// 距离 // 距离
double distance = CoordCommonUtil.getDistance(Double.valueOf(param.get("gasAddressLatitude").toString()), Double.valueOf(param.get("gasAddressLongitude").toString()), Double.valueOf(latitude), Double.valueOf(longitude)); double distance = CoordCommonUtil.getDistance(Double.valueOf(param.get("gasAddressLatitude").toString()), Double.valueOf(param.get("gasAddressLongitude").toString()), Double.valueOf(latitude), Double.valueOf(longitude));
param.put("distance", Math.round(distance/100d)/10d); param.put("distance", Math.round(distance/100d)/10d);

File diff suppressed because one or more lines are too long

@ -1084,6 +1084,7 @@ public interface HighOrderMapperExt {
@Select({ @Select({
"<script> " + "<script> " +
" select " + " select " +
" b.id orderId," +
" b.order_no orderNo," + " b.order_no orderNo," +
" a.gas_order_no gasOrderNo," + " a.gas_order_no gasOrderNo," +
" b.pay_type payType," + " b.pay_type payType," +

@ -9,6 +9,7 @@ import java.util.Date;
*/ */
public class GasOrderModel { public class GasOrderModel {
private Long orderId;
private String orderNo; private String orderNo;
private String gasOrderNo; private String gasOrderNo;
private Integer payType; private Integer payType;
@ -32,6 +33,14 @@ public class GasOrderModel {
private Date payTime; private Date payTime;
private Date refundTime; private Date refundTime;
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public String getGasOilType() { public String getGasOilType() {
return gasOilType; return gasOilType;
} }

@ -63,9 +63,9 @@ public class HighMerchantStoreServiceImpl implements HighMerchantStoreService {
secUserService.addUser(highMerchantStore.getSecUser()); secUserService.addUser(highMerchantStore.getSecUser());
// 绑定设备 // 绑定设备
if (StringUtils.isBlank(highMerchantStore.getDeviceKey()) if (StringUtils.isNotBlank(highMerchantStore.getDeviceKey())
&& StringUtils.isBlank(highMerchantStore.getDeviceSn()) && StringUtils.isNotBlank(highMerchantStore.getDeviceSn())
&& StringUtils.isBlank(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.getLong("errorcode").equals(0)) {

Loading…
Cancel
Save