标准 发布搞
This commit is contained in:
+4
-4
@@ -37,18 +37,18 @@ public class SarStandItemsController extends BaseController<SarStandItems> {
|
||||
|
||||
@ApiOperation(value = "分解单查询")
|
||||
@GetMapping("/findAllItems")
|
||||
public ResponseMessage findAllItems(@RequestParam(defaultValue = "1")int Page, @RequestParam(defaultValue = "10") int Size,String type,String ids){
|
||||
public ResponseMessage findAllItems( String type,String ids){
|
||||
if (!StringUtils.isEmpty(ids) && ids.contains(",")){
|
||||
String[] Sids=ids.split(",");
|
||||
List<SarStandItemsDto> ItemDto = ServiceImpl.findAllItems(Page,Size,type,Sids);
|
||||
List<SarStandItemsDto> ItemDto = ServiceImpl.findAllItems(type,Sids);
|
||||
return Result.success("200",ItemDto);
|
||||
}else if (!StringUtils.isEmpty(ids)){
|
||||
String[] Sids=new String[1];
|
||||
Sids[0]=ids;
|
||||
List<SarStandItemsDto> ItemDto = ServiceImpl.findAllItems(Page,Size,type,Sids);
|
||||
List<SarStandItemsDto> ItemDto = ServiceImpl.findAllItems(type,Sids);
|
||||
return Result.success("200",ItemDto);
|
||||
}else {
|
||||
List<SarStandItemsDto> ItemDto = ServiceImpl.findAllItems(Page,Size,type,null);
|
||||
List<SarStandItemsDto> ItemDto = ServiceImpl.findAllItems(type,null);
|
||||
return Result.success("200",ItemDto);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,5 +53,5 @@ public interface SarStandItemsDao extends BaseMapper<SarStandItems> {
|
||||
|
||||
List<SelectionResult> selectAllItemsSvpps(SarStandItems sarStandItemsEO);
|
||||
|
||||
List<SarStandItemsDto> selectAllItemsByIds(@Param("page") int Page, @Param("size") int Size,@Param("type") String type,@Param("ids") String[] ids);
|
||||
List<SarStandItemsDto> selectAllItemsByIds(@Param("type") String type,@Param("ids") String[] ids);
|
||||
}
|
||||
|
||||
+2
-2
@@ -58,7 +58,7 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
||||
return actitemsEOList;
|
||||
}
|
||||
|
||||
public List<SarStandItemsDto> findAllItems(int Page,int Size,String type,String[] ids){
|
||||
return dao.selectAllItemsByIds((Page-1)*Size,Size*Page,type,ids);
|
||||
public List<SarStandItemsDto> findAllItems(String type,String[] ids){
|
||||
return dao.selectAllItemsByIds(type,ids);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user