mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-11 13:30:15 +08:00
update 小程序查询充电站列表
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
package com.jsowell.api.uniapp;/**
|
||||||
|
* TODO
|
||||||
|
*
|
||||||
|
* @Date 2023/8/18 8:55
|
||||||
|
* @author Lemon
|
||||||
|
*/public class OccupyOrderController {
|
||||||
|
}
|
||||||
@@ -59,9 +59,9 @@ public class PileController extends BaseController {
|
|||||||
// 获取appid(第三方平台用)
|
// 获取appid(第三方平台用)
|
||||||
String appId = request.getHeader("appId");
|
String appId = request.getHeader("appId");
|
||||||
if (StringUtils.isNotBlank(appId)) {
|
if (StringUtils.isNotBlank(appId)) {
|
||||||
// 获取merchantId
|
// 获取deptIds
|
||||||
String merchantId = pileMerchantInfoService.getFirstLevelMerchantIdByAppId(appId);
|
List<String> deptIds = pileMerchantInfoService.getDeptIdsByAppId(appId);
|
||||||
queryStationDTO.setMerchantId(merchantId);
|
queryStationDTO.setMerchantDeptIds(deptIds);
|
||||||
}
|
}
|
||||||
PageResponse pageResponse = pileStationInfoService.uniAppQueryStationInfoList(queryStationDTO);
|
PageResponse pageResponse = pileStationInfoService.uniAppQueryStationInfoList(queryStationDTO);
|
||||||
response = new RestApiResponse<>(pageResponse);
|
response = new RestApiResponse<>(pageResponse);
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package com.jsowell.pile.dto;/**
|
||||||
|
* TODO
|
||||||
|
*
|
||||||
|
* @Date 2023/8/18 9:00
|
||||||
|
* @author Lemon
|
||||||
|
*/public class GenerateOccupyOrderDTO {
|
||||||
|
}
|
||||||
@@ -6,6 +6,8 @@ import lombok.Builder;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 站点管理前台参数
|
* 站点管理前台参数
|
||||||
*
|
*
|
||||||
@@ -73,4 +75,9 @@ public class QueryStationDTO extends BaseEntity {
|
|||||||
* 站点二维码前缀
|
* 站点二维码前缀
|
||||||
*/
|
*/
|
||||||
private String qrcodePrefix;
|
private String qrcodePrefix;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 运营商部门id
|
||||||
|
*/
|
||||||
|
private List<String> merchantDeptId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,4 +96,11 @@ public interface PileMerchantInfoMapper {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
String getFirstLevelMerchantIdByAppId(String appId);
|
String getFirstLevelMerchantIdByAppId(String appId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过appid查询运营商部门id
|
||||||
|
* @param appId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<String> getDeptIdsByAppId(@Param("appId") String appId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,4 +98,11 @@ public interface IPileMerchantInfoService {
|
|||||||
List<PileMerchantInfo> queryFirstLevelMerchant();
|
List<PileMerchantInfo> queryFirstLevelMerchant();
|
||||||
|
|
||||||
String queryAppIdByMerchantId(String merchantId);
|
String queryAppIdByMerchantId(String merchantId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过appid获取运营商部门id
|
||||||
|
* @param appId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<String> getDeptIdsByAppId(String appId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -378,5 +378,15 @@ public class PileMerchantInfoServiceImpl implements IPileMerchantInfoService {
|
|||||||
return appId;
|
return appId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过appid查询运营商部门id
|
||||||
|
* @param appId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<String> getDeptIdsByAppId(String appId) {
|
||||||
|
return pileMerchantInfoMapper.getDeptIdsByAppId(appId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -343,4 +343,15 @@
|
|||||||
and merchant_level = '1'
|
and merchant_level = '1'
|
||||||
and app_id = #{appId,jdbcType=VARCHAR}
|
and app_id = #{appId,jdbcType=VARCHAR}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="getDeptIdsByAppId" resultType="java.lang.String">
|
||||||
|
select
|
||||||
|
dept_id as deptId
|
||||||
|
from
|
||||||
|
pile_merchant_info
|
||||||
|
where 1 = 1
|
||||||
|
<if test="appId != null and appId != ''">
|
||||||
|
and app_id = #{appId,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user