update 订单汇总信息权限校验

This commit is contained in:
Lemon
2023-08-23 10:59:22 +08:00
parent 544319bf95
commit 791fee3e24
6 changed files with 53 additions and 4 deletions

View File

@@ -81,4 +81,11 @@ public interface PileStationInfoMapper {
List<String> queryByStationDeptIds(@Param("stationDeptIds") List<String> stationDeptIds);
int updateAmapFlag(@Param("stationId") String stationId, @Param("amapFlag") String amapFlag);
/**
* 通过站点部门id 查询站点id
* @param deptId
* @return
*/
List<String> getIdsByDeptId(String deptId);
}

View File

@@ -98,4 +98,11 @@ public interface IPileStationInfoService {
String selectAdapayMemberId(String stationId);
int updateAmapFlag(String stationId, String amapFlag);
/**
* 通过站点部门id查询站点id
* @param deptId
* @return
*/
List<String> getIdsByDeptId(String deptId);
}

View File

@@ -372,6 +372,9 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
public OrderTotalDataVO getOrderTotalDataV2(QueryOrderDTO dto) {
// 确定查询的站点
List<String> stationIdList = Lists.newArrayList();
if (CollectionUtils.isNotEmpty(dto.getStationIdList())) {
stationIdList.addAll(dto.getStationIdList());
}
if (StringUtils.isNotBlank(dto.getStationId())) {
stationIdList.add(dto.getStationId());
}

View File

@@ -476,5 +476,15 @@ public class PileStationInfoServiceImpl implements IPileStationInfoService {
return pileStationInfoMapper.updateAmapFlag(stationId, amapFlag);
}
/**
* 通过站点部门id查询站点id
* @param deptId
* @return
*/
@Override
public List<String> getIdsByDeptId(String deptId) {
return pileStationInfoMapper.getIdsByDeptId(deptId);
}
}

View File

@@ -407,4 +407,13 @@
where
id = #{stationId,jdbcType=VARCHAR}
</update>
<select id="getIdsByDeptId" resultType="java.lang.String">
select
id
from
pile_station_info
where
dept_id = #{deptId,jdbcType=VARCHAR}
</select>
</mapper>