12.1bug修复
This commit is contained in:
+24
-1
@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.annotations.Api;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -53,6 +53,29 @@ public class SarStandItemsController extends BaseController<SarStandItems> {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "项目评估流程分解单查询")
|
||||
@GetMapping("/workflowFindItems")
|
||||
public ResponseMessage workflowFindItems( @RequestParam("ids") String ids,@RequestParam("types") String types){
|
||||
List<String> id=new ArrayList<>(Arrays.asList(ids.split(",")));
|
||||
List<String> type=new ArrayList<>(Arrays.asList(types.split(",")));
|
||||
Map<String,String> map=new HashMap<>();
|
||||
int i =0 ;
|
||||
for (String s:type) {
|
||||
if (null!=map.get(s)){
|
||||
map.put(s,map.get(s)+","+id.get(i));
|
||||
}else {
|
||||
map.put(s,id.get(i));
|
||||
}
|
||||
}
|
||||
List<SarStandItemsDto> ItemDto = new ArrayList<>();
|
||||
map.entrySet().forEach(stringStringEntry -> {
|
||||
if (!"BDR".equals(stringStringEntry.getKey())){
|
||||
ItemDto.addAll(ServiceImpl.findAllItems(stringStringEntry.getKey(),stringStringEntry.getValue().split(",")));
|
||||
}
|
||||
});
|
||||
return Result.success("200",ItemDto);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "分解单查询")
|
||||
@GetMapping("/querySarItemAndInterpretation")
|
||||
public ResponseMessage querySarItemAndInterpretation(FindSarItemsPageReqDTO page){
|
||||
|
||||
Reference in New Issue
Block a user