You've already forked FrameTour-BE
逻辑修改
This commit is contained in:
@ -104,7 +104,7 @@ public class GoodsServiceImpl implements GoodsService {
|
||||
sourceReqQuery.setIsBuy(query.getIsBuy());
|
||||
sourceReqQuery.setMemberId(query.getMemberId());
|
||||
sourceReqQuery.setType(sourceType);
|
||||
List<SourceRespVO> list = sourceMapper.list(sourceReqQuery);
|
||||
List<SourceRespVO> list = sourceMapper.listUser(sourceReqQuery);
|
||||
List<GoodsDetailVO> goodsDetailVOList = new ArrayList<>();
|
||||
|
||||
String goodsNamePrefix = "";
|
||||
|
@ -37,8 +37,8 @@ public class SourceServiceImpl implements SourceService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public ApiResponse<SourceRespVO> getById(Long id) {
|
||||
return ApiResponse.success(sourceMapper.getById(id));
|
||||
public ApiResponse<SourceRespVO> getById(Long id, Long userId) {
|
||||
return ApiResponse.success(sourceMapper.userGetById(id, userId));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -15,7 +15,7 @@ import java.util.List;
|
||||
public interface SourceService {
|
||||
ApiResponse<PageInfo<SourceRespVO>> pageQuery(SourceReqQuery sourceReqQuery);
|
||||
ApiResponse<List<SourceRespVO>> list(SourceReqQuery sourceReqQuery);
|
||||
ApiResponse<SourceRespVO> getById(Long id);
|
||||
ApiResponse<SourceRespVO> getById(Long id, Long userId);
|
||||
ApiResponse<Integer> add(SourceEntity source);
|
||||
ApiResponse<Integer> deleteById(Long id);
|
||||
ApiResponse<Integer> update(SourceEntity source);
|
||||
|
Reference in New Issue
Block a user