|
|
|
@ -18,7 +18,10 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.io.*;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
|
@RequestMapping("/nanjing/selectStationPara")
|
|
|
|
@ -29,7 +32,6 @@ public class StationParaInfoController extends BaseController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private ITBdSubstationService substationService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions("nanjing:StationPara:view")
|
|
|
|
|
@GetMapping()
|
|
|
|
|
public String ProRpList(ModelMap map) {
|
|
|
|
@ -54,14 +56,7 @@ public class StationParaInfoController extends BaseController {
|
|
|
|
|
map.put("Barcode", "");
|
|
|
|
|
map.put("SemiBarcode", semiBarcode);
|
|
|
|
|
map.put("StateID", "");
|
|
|
|
|
List<Map<String,Object>> list=tracestateService.selectStationPara(map);
|
|
|
|
|
// List<Map<String, Object>> list = tracestateService.selectStationPara(map);
|
|
|
|
|
// Map newMAP=new HashMap();
|
|
|
|
|
// for(Map map1 : list){
|
|
|
|
|
// if (map1.containsKey("产品码")){
|
|
|
|
|
// newMAP.put("产品码",map1.get("产品码"));
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
List<Map<String, Object>> list = tracestateService.selectStationPara(map);
|
|
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
|
|
if (list.get(i).containsKey("产品码")) {
|
|
|
|
|
continue;
|
|
|
|
@ -72,27 +67,6 @@ public class StationParaInfoController extends BaseController {
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// public static void main(String[] args) {
|
|
|
|
|
// List<Map<String,Object>> maps=new ArrayList<>();
|
|
|
|
|
// Map map=new HashMap();
|
|
|
|
|
// map.put("测试","1552");
|
|
|
|
|
// map.put("测试2","58146");
|
|
|
|
|
// map.put("产品码","58533");
|
|
|
|
|
// maps.add(map);
|
|
|
|
|
// Map newMAP=new HashMap();
|
|
|
|
|
// List<Map<String,Object>> newListMap=new ArrayList<>();
|
|
|
|
|
// for (Map map1 : maps){
|
|
|
|
|
// if (map1.containsKey("产品码")){
|
|
|
|
|
// newMAP.put("产品码",map1.get("产品码"));
|
|
|
|
|
// }else {
|
|
|
|
|
// newMAP.put();
|
|
|
|
|
// }
|
|
|
|
|
// newListMap.add(newMAP);
|
|
|
|
|
// }
|
|
|
|
|
// System.out.println(maps);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @RequiresPermissions("nanjing:StationPara:export")
|
|
|
|
|
// @Log(title = "产品码查询", businessType = BusinessType.EXPORT)
|
|
|
|
|