mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-17 00:08:35 +08:00
Merge branch 'dev' of http://192.168.2.2:8099/jsowell/jsowell-charger-web into dev
This commit is contained in:
@@ -167,6 +167,17 @@ public class PileBillingTemplateController extends BaseController {
|
|||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询站点优惠计费模板
|
||||||
|
*/
|
||||||
|
@GetMapping("/queryStationPreferentialBillingTemplateList/{stationId}")
|
||||||
|
public TableDataInfo queryStationPreferentialBillingTemplateList(@PathVariable("stationId") String stationId) {
|
||||||
|
logger.info("查询站点优惠计费模板 param:{}", stationId);
|
||||||
|
List<BillingTemplateVO> list = pileBillingTemplateService.queryStationPreferentialBillingTemplateList(stationId);
|
||||||
|
logger.info("查询站点优惠计费模板 result:{}", JSONObject.toJSONString(list));
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 发布计费模板
|
* 发布计费模板
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -103,7 +103,8 @@ public interface PileBillingTemplateMapper {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<BillingTemplateVO> queryStationBillingTemplateListWithAuth(@Param("stationId") String stationId,
|
List<BillingTemplateVO> queryStationBillingTemplateListWithAuth(@Param("stationId") String stationId,
|
||||||
@Param("stationDeptIds") List<String> stationDeptIds);
|
@Param("stationDeptIds") List<String> stationDeptIds,
|
||||||
|
@Param("memberFlag") String memberFlag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据站点id查询站点计费模板列表
|
* 根据站点id查询站点计费模板列表
|
||||||
|
|||||||
@@ -91,6 +91,8 @@ public interface PileBillingTemplateService {
|
|||||||
*/
|
*/
|
||||||
List<BillingTemplateVO> queryStationBillingTemplateList(String stationId);
|
List<BillingTemplateVO> queryStationBillingTemplateList(String stationId);
|
||||||
|
|
||||||
|
List<BillingTemplateVO> queryStationPreferentialBillingTemplateList(String stationId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询站点计费模板
|
* 查询站点计费模板
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -547,7 +547,20 @@ public class PileBillingTemplateServiceImpl implements PileBillingTemplateServic
|
|||||||
// 为空表示没有权限,返回空数组
|
// 为空表示没有权限,返回空数组
|
||||||
return Lists.newArrayList();
|
return Lists.newArrayList();
|
||||||
}
|
}
|
||||||
return pileBillingTemplateMapper.queryStationBillingTemplateListWithAuth(stationId, authorizedMap.getStationDeptIds());
|
return pileBillingTemplateMapper.queryStationBillingTemplateListWithAuth(stationId, authorizedMap.getStationDeptIds(), null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<BillingTemplateVO> queryStationPreferentialBillingTemplateList(String stationId) {
|
||||||
|
if (StringUtils.isBlank(stationId)) {
|
||||||
|
return Lists.newArrayList();
|
||||||
|
}
|
||||||
|
AuthorizedDeptVO authorizedMap = UserUtils.getAuthorizedMap();
|
||||||
|
if (authorizedMap == null) {
|
||||||
|
// 为空表示没有权限,返回空数组
|
||||||
|
return Lists.newArrayList();
|
||||||
|
}
|
||||||
|
return pileBillingTemplateMapper.queryStationBillingTemplateListWithAuth(stationId, authorizedMap.getStationDeptIds(), Constants.ONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -370,6 +370,9 @@
|
|||||||
where
|
where
|
||||||
t2.del_flag = '0'
|
t2.del_flag = '0'
|
||||||
and t2.station_id = #{stationId,jdbcType=VARCHAR}
|
and t2.station_id = #{stationId,jdbcType=VARCHAR}
|
||||||
|
<if test="memberFlag != null and memberFlag != ''">
|
||||||
|
and t2.member_flag = #{memberFlag,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
<!--数据范围过滤-->
|
<!--数据范围过滤-->
|
||||||
<if test="stationDeptIds != null and stationDeptIds.size() != 0">
|
<if test="stationDeptIds != null and stationDeptIds.size() != 0">
|
||||||
and t1.dept_id in
|
and t1.dept_id in
|
||||||
|
|||||||
Reference in New Issue
Block a user