Commit de889c69 authored by suichenguang's avatar suichenguang

搜索框更改

parent 5cee27ce
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("CreatePackageApi")
public class CreatePackageApi {
/**
* 打包日志数据查询
* @param newPackageName 新包名
* @param idCard 身份证号
* @param createDate 生成时间
* @param readCounty 上传地区
* @return result
*/
@RequestMapping("selectPackageData")
public String selectPackageData(@Param("newPackageName")String newPackageName,@Param("idCard")String idCard,@Param("createDate")String createDate,@Param("readCounty")String readCounty){
List<JSONObject> countyList = new ArrayList<>();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("newPackageName","123420190302001");
jsonStr1.put("createDate","20190302");
jsonStr1.put("cardCount",300);
jsonStr1.put("readCountyCode","110012");
jsonStr1.put("readCountyName","朝阳区");
countyList.add(jsonStr1);
JSONObject jsonStr2 = new JSONObject();
jsonStr2.put("newPackageName","123420190302023");
jsonStr2.put("createDate","20190302");
jsonStr2.put("cardCount",260);
jsonStr2.put("readCountyCode","110013");
jsonStr2.put("readCountyName","海淀区");
countyList.add(jsonStr2);
JSONObject jsonStr3 = new JSONObject();
jsonStr3.put("newPackageName","123420190302003");
jsonStr3.put("createDate","20190302");
jsonStr3.put("cardCount",410);
jsonStr3.put("readCountyCode","110022");
jsonStr3.put("readCountyName","东城区");
countyList.add(jsonStr3);
JSONObject jsonStr4 = new JSONObject();
jsonStr4.put("newPackageName","123420190302007");
jsonStr4.put("createDate","20190302");
jsonStr4.put("cardCount",270);
jsonStr4.put("readCountyCode","110012");
jsonStr4.put("readCountyName","朝阳区");
countyList.add(jsonStr4);
JSONObject jsonStr5 = new JSONObject();
jsonStr5.put("newPackageName","123420190302016");
jsonStr5.put("createDate","20190302");
jsonStr5.put("cardCount",280);
jsonStr5.put("readCountyCode","110018");
jsonStr5.put("readCountyName","大兴区");
countyList.add(jsonStr5);
JSONObject jsonStr6 = new JSONObject();
jsonStr6.put("newPackageName","123420190302031");
jsonStr6.put("createDate","20190302");
jsonStr6.put("cardCount",600);
jsonStr6.put("readCountyCode","110011");
jsonStr6.put("readCountyName","西城区");
countyList.add(jsonStr6);
return countyList.toString();
}
}
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("FilmPrintingApi")
public class FilmPrintingApi {
/**
*查询任务单信息
* @param date 时间
* @param gongxu 工序
* @return result
*/
@RequestMapping("selectFilmPrinting")
public List<String> selectFilmPrinting(@Param("date")String date, @Param("gongxu")String gongxu){
List<String> result = new ArrayList<>();
Map<String,Object> map1 = new HashMap<>();
Map<String,Object> map2 = new HashMap<>();
List<JSONObject> list1 = new ArrayList();
List<JSONObject> list2 = new ArrayList();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("taskId","20190228001");
jsonStr1.put("verificationDate","20190301");
jsonStr1.put("county","西城区");
jsonStr1.put("listCount ","160");
jsonStr1.put("groupNo","03687576-03687587");
jsonStr1.put("verificationCount ","160");
jsonStr1.put("readCount","160");
jsonStr1.put("invalid ","0");
list1.add(jsonStr1);
JSONObject jsonStr2 = new JSONObject();
jsonStr2.put("taskId","20190228001");
jsonStr2.put("verificationDate","20190301");
jsonStr2.put("county","东城区");
jsonStr2.put("listCount ","270");
jsonStr2.put("groupNo","03687576-03687587");
jsonStr2.put("verificationCount ","270");
jsonStr2.put("readCount","270");
jsonStr2.put("invalid ","0");
list1.add(jsonStr2);
JSONObject jsonStr3 = new JSONObject();
jsonStr3.put("taskId","20190228001");
jsonStr3.put("verificationDate","20190301");
jsonStr3.put("county","海淀区");
jsonStr3.put("listCount ","140");
jsonStr3.put("groupNo","03687576-03687587");
jsonStr3.put("verificationCount ","140");
jsonStr3.put("readCount","140");
jsonStr3.put("invalid ","0");
list1.add(jsonStr3);
JSONObject jsonStr4 = new JSONObject();
jsonStr4.put("taskId","20190228001");
jsonStr4.put("verificationDate","20190301");
jsonStr4.put("county","西城区");
jsonStr4.put("listCount ","160");
jsonStr4.put("groupNo","03687576-03687587");
jsonStr4.put("verificationCount ","160");
jsonStr4.put("readCount","160");
jsonStr4.put("invalid ","0");
list2.add(jsonStr4);
JSONObject jsonStr5 = new JSONObject();
jsonStr5.put("taskId","20190228001");
jsonStr5.put("verificationDate","20190301");
jsonStr5.put("county","东城区");
jsonStr5.put("listCount ","270");
jsonStr5.put("groupNo","03687576-03687587");
jsonStr5.put("verificationCount ","270");
jsonStr5.put("readCount","270");
jsonStr5.put("invalid ","0");
list2.add(jsonStr5);
JSONObject jsonStr6 = new JSONObject();
jsonStr6.put("taskId","20190228001");
jsonStr6.put("verificationDate","20190301");
jsonStr6.put("county","海淀区");
jsonStr6.put("listCount ","140");
jsonStr6.put("groupNo","03687576-03687587");
jsonStr6.put("verificationCount ","140");
jsonStr6.put("readCount","140");
jsonStr6.put("invalid ","0");
list2.add(jsonStr6);
map1.put("typeCode",1);
map1.put("typeName","普通证");
map1.put("typeSum",360);
map1.put("isActive","true");
map1.put("totalCount","true");
map1.put("remaining",3);
map1.put("list",list1);
map2.put("typeCode",9);
map2.put("typeName","邮寄证");
map2.put("typeSum",420);
map2.put("isActive","true");
map2.put("totalCount","true");
map2.put("remaining",3);
map2.put("list",list2);
result.add(map1.toString());
result.add(map2.toString());
return result;
}
}
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("groupListApi")
public class GroupListApi {
/**
* 根据组号列表查询
* @Param group 组号
* @return
*/
@RequestMapping("selectList")
public String selectList(@Param("group")String group){
List<JSONObject> postList = new ArrayList<>();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("policeName","东城区派出所");
jsonStr1.put("verificationData","160");
jsonStr1.put("printCount","0");
jsonStr1.put("qualityTest ","0");
postList.add(jsonStr1);
JSONObject jsonStr2 = new JSONObject();
jsonStr2.put("policeName","东城区派出所");
jsonStr2.put("verificationData","160");
jsonStr2.put("printCount","0");
jsonStr2.put("qualityTest ","0");
postList.add(jsonStr2);
JSONObject jsonStr3 = new JSONObject();
jsonStr3.put("policeName","东城区派出所");
jsonStr3.put("verificationData","160");
jsonStr3.put("printCount","0");
jsonStr3.put("qualityTest ","0");
postList.add(jsonStr3);
return postList.toString();
}
}
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("PackageInformation")
public class PackageInformationApi {
/**
* 查询制证信息用于制证信息打包
* @param requestStr
* @return
*/
@RequestMapping("selectInformation")
public Map<String, Object> selectInformation(@RequestBody String requestStr){
Map<String,Object> map = new HashMap<>();
List<JSONObject> list = new ArrayList();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("uploadNo","411032546565445");
jsonStr1.put("name","张三");
jsonStr1.put("cardId","130133195608240013");
jsonStr1.put("oldPackageNo ","1321454113");
jsonStr1.put("newPackageNo","1213134556");
jsonStr1.put("cardType ","普通证");
list.add(jsonStr1);
JSONObject jsonStr2 = new JSONObject();
jsonStr2.put("uploadNo","411032546565445");
jsonStr2.put("name","里斯");
jsonStr2.put("cardId","130133195608240013");
jsonStr2.put("oldPackageNo ","1321454113");
jsonStr2.put("newPackageNo","1213134556");
jsonStr2.put("cardType ","普通证");
list.add(jsonStr2);
JSONObject jsonStr3 = new JSONObject();
jsonStr3.put("uploadNo","411032546565445");
jsonStr3.put("name","王五");
jsonStr3.put("cardId","130133195608240013");
jsonStr3.put("oldPackageNo ","1321454113");
jsonStr3.put("newPackageNo","1213134556");
jsonStr3.put("cardType ","普通证");
list.add(jsonStr3);
JSONObject jsonStr4 = new JSONObject();
jsonStr4.put("uploadNo","411032546565445");
jsonStr4.put("name","张三");
jsonStr4.put("cardId","130133195608240013");
jsonStr4.put("oldPackageNo ","1321454113");
jsonStr4.put("newPackageNo","1213134556");
jsonStr4.put("cardType ","普通证");
list.add(jsonStr4);
JSONObject jsonStr5 = new JSONObject();
jsonStr5.put("uploadNo","411032546565445");
jsonStr5.put("name","张三");
jsonStr5.put("cardId","130133195608240013");
jsonStr5.put("oldPackageNo ","1321454113");
jsonStr5.put("newPackageNo","1213134556");
jsonStr5.put("cardType ","普通证");
list.add(jsonStr5);
JSONObject jsonStr6 = new JSONObject();
jsonStr6.put("uploadNo","411032546565445");
jsonStr6.put("name","里斯");
jsonStr6.put("cardId","130133195608240013");
jsonStr6.put("oldPackageNo ","1321454113");
jsonStr6.put("newPackageNo","1213134556");
jsonStr6.put("cardType ","普通证");
list.add(jsonStr6);
JSONObject jsonStr7 = new JSONObject();
jsonStr7.put("uploadNo","411032546565445");
jsonStr7.put("name","李四");
jsonStr7.put("cardId","130133195608240013");
jsonStr7.put("oldPackageNo ","1321454113");
jsonStr7.put("newPackageNo","1213134556");
jsonStr7.put("cardType ","普通证");
list.add(jsonStr7);
map.put("commonCardCount",2300);
map.put("postCardCount",1200);
map.put("forbiddenCount",2);
map.put("list",list);
return map;
}
}
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("ParsingLogApi")
public class ParsingLogApi {
/**
* 解析日志
* @param date 时间
* @param oldPackageData 原包数据
* @return
*/
@RequestMapping("selectParsingLog")
public String selectParsingLog(@Param("date")String date,@Param("oldPackageData")String oldPackageData){
List<JSONObject> countyList = new ArrayList<>();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("oldPackageName","123420190302001");
jsonStr1.put("count",330);
jsonStr1.put("fileName","格口信息.xls");
jsonStr1.put("parsingDate","20190302");
jsonStr1.put("commonCardCount",200);
jsonStr1.put("postCardCount",100);
jsonStr1.put("formStateTime","20190302");
jsonStr1.put("formDeadline","20190402");
JSONObject jsonStr2 = new JSONObject();
jsonStr2.put("oldPackageName","123420190302002");
jsonStr2.put("count",260);
jsonStr2.put("fileName","格口信息.xls");
jsonStr2.put("parsingDate","20190302");
jsonStr2.put("commonCardCount",210);
jsonStr2.put("postCardCount",50);
jsonStr2.put("formStateTime","20190302");
jsonStr2.put("formDeadline","20190402");
JSONObject jsonStr3 = new JSONObject();
jsonStr3.put("oldPackageName","123420190302003");
jsonStr3.put("count",380);
jsonStr3.put("fileName","格口信息.xls");
jsonStr3.put("parsingDate","20190302");
jsonStr3.put("commonCardCount",120);
jsonStr3.put("postCardCount",260);
jsonStr3.put("formStateTime","20190302");
jsonStr3.put("formDeadline","20190402");
JSONObject jsonStr4 = new JSONObject();
jsonStr4.put("oldPackageName","123420190302004");
jsonStr4.put("count",330);
jsonStr4.put("fileName","格口信息.xls");
jsonStr4.put("parsingDate","20190302");
jsonStr4.put("commonCardCount",120);
jsonStr4.put("postCardCount",210);
jsonStr4.put("formStateTime","20190302");
jsonStr4.put("formDeadline","20190402");
JSONObject jsonStr5 = new JSONObject();
jsonStr5.put("oldPackageName","123420190302005");
jsonStr5.put("count",470);
jsonStr5.put("fileName","格口信息.xls");
jsonStr5.put("parsingDate","20190302");
jsonStr5.put("commonCardCount",220);
jsonStr5.put("postCardCount",250);
jsonStr5.put("formStateTime","20190302");
jsonStr5.put("formDeadline","20190402");
countyList.add(jsonStr1);
countyList.add(jsonStr2);
countyList.add(jsonStr3);
countyList.add(jsonStr4);
countyList.add(jsonStr5);
return countyList.toString();
}
}
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("readCardApi")
public class ReadCardApi {
/**
* 查询读卡信息详情
* @param idCard 身份证号
* @param startDate 开始时间
* @param endDate 结束时间
* @return countyList
*/
@RequestMapping("selectPostData")
public String selectPostData(@Param("idCard") String idCard,@Param("startDate") String startDate,@Param("endDate") String endDate){
List<JSONObject> countyList = new ArrayList<>();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("name","周**");
jsonStr1.put("sex","男");
jsonStr1.put("nation","汉族");
jsonStr1.put("birthday","19830207");
jsonStr1.put("address","北京市海淀区马连洼学府路202号");
jsonStr1.put("idNumber",idCard);
jsonStr1.put("issuingAuthority","马连洼派出所");
jsonStr1.put("beginData","20130916");
jsonStr1.put("endData","20230916");
countyList.add(jsonStr1);
return countyList.toString();
}
}
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("selectDetailedInformation")
public class SelectDetailedInformation {
/**
* 制证信息查询
* @param uploadNo
* @param idCard
* @param name
* @param packageNo
* @param readDate
* @param cardType
* @param packageType
* @param startDate
* @param endDate
* @return countyList
*/
@RequestMapping("selectDetailedInfo")
public String selectDetailedInfo(@Param("uploadNo") String uploadNo,@Param("idCard") String idCard,@Param("name") String name,@Param("packageNo") String packageNo,@Param("readDate") String readDate,@Param("cardType") String cardType,@Param("packageType") String packageType,@Param("startDate") String startDate,@Param("endDate") String endDate){
List<JSONObject> countyList = new ArrayList<>();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("countyNo","11020");
jsonStr1.put("oldPackageNo","11020180227001");
jsonStr1.put("recordNumber",80);
jsonStr1.put("postNumber",30);
jsonStr1.put("unpackedNumber",10);
jsonStr1.put("readDate","20190228");
jsonStr1.put("analysisDate","20190228");
JSONObject jsonStr2 = new JSONObject();
jsonStr2.put("countyNo","11020");
jsonStr2.put("oldPackageNo","11020180227001");
jsonStr2.put("recordNumber",80);
jsonStr2.put("postNumber",30);
jsonStr2.put("unpackedNumber",10);
jsonStr2.put("readDate","20190228");
jsonStr2.put("analysisDate","20190228");
JSONObject jsonStr3 = new JSONObject();
jsonStr3.put("countyNo","11020");
jsonStr3.put("oldPackageNo","11020180227001");
jsonStr3.put("recordNumber",80);
jsonStr3.put("postNumber",30);
jsonStr3.put("unpackedNumber",10);
jsonStr3.put("readDate","20190228");
jsonStr3.put("analysisDate","20190228");
JSONObject jsonStr4 = new JSONObject();
jsonStr4.put("countyNo","11020");
jsonStr4.put("oldPackageNo","11020180227001");
jsonStr4.put("recordNumber",80);
jsonStr4.put("postNumber",30);
jsonStr4.put("unpackedNumber",10);
jsonStr4.put("readDate","20190228");
jsonStr4.put("analysisDate","20190228");
JSONObject jsonStr5 = new JSONObject();
jsonStr5.put("countyNo","11020");
jsonStr5.put("oldPackageNo","11020180227001");
jsonStr5.put("recordNumber",80);
jsonStr5.put("postNumber",30);
jsonStr5.put("unpackedNumber",10);
jsonStr5.put("readDate","20190228");
jsonStr5.put("analysisDate","20190228");
JSONObject jsonStr6 = new JSONObject();
jsonStr6.put("countyNo","11020");
jsonStr6.put("oldPackageNo","11020180227001");
jsonStr6.put("recordNumber",80);
jsonStr6.put("postNumber",30);
jsonStr6.put("unpackedNumber",10);
jsonStr6.put("readDate","20190228");
jsonStr6.put("analysisDate","20190228");
JSONObject jsonStr7 = new JSONObject();
jsonStr7.put("countyNo","11020");
jsonStr7.put("oldPackageNo","11020180227001");
jsonStr7.put("recordNumber",80);
jsonStr7.put("postNumber",30);
jsonStr7.put("unpackedNumber",10);
jsonStr7.put("readDate","20190228");
jsonStr7.put("analysisDate","20190228");
JSONObject jsonStr8 = new JSONObject();
jsonStr8.put("countyNo","11020");
jsonStr8.put("oldPackageNo","11020180227001");
jsonStr8.put("recordNumber",80);
jsonStr8.put("postNumber",30);
jsonStr8.put("unpackedNumber",10);
jsonStr8.put("readDate","20190228");
jsonStr8.put("analysisDate","20190228");
countyList.add(jsonStr1);
countyList.add(jsonStr2);
countyList.add(jsonStr3);
countyList.add(jsonStr4);
countyList.add(jsonStr5);
countyList.add(jsonStr6);
countyList.add(jsonStr7);
countyList.add(jsonStr8);
return countyList.toString();
}
}
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("selectExcelApi")
public class SelectExcelApi {
/**
* 邮寄信息查询
* 根据文件名和状态查询邮寄信息数据,返回数据List集合
* @param fileName
* @param state
* @return countyList
*/
@RequestMapping("selectExcel")
public String selectExcel(@Param("fileName") String fileName, @Param("state") String state){
List<JSONObject> countyList = new ArrayList<>();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("beginDate","20190221");
jsonStr1.put("deadline","20190228");
jsonStr1.put("fileName","格口导出.excel");
jsonStr1.put("uploadDate","20190227");
jsonStr1.put("state","未解析");
JSONObject jsonStr2 = new JSONObject();
jsonStr2.put("beginDate","20190221");
jsonStr2.put("deadline","20190228");
jsonStr2.put("fileName","格口导出.excel");
jsonStr2.put("uploadDate","20190227");
jsonStr2.put("state","未解析");
JSONObject jsonStr3 = new JSONObject();
jsonStr3.put("beginDate","20190221");
jsonStr3.put("deadline","20190228");
jsonStr3.put("fileName","格口导出.excel");
jsonStr3.put("uploadDate","20190227");
jsonStr3.put("state","未解析");
JSONObject jsonStr4 = new JSONObject();
jsonStr4.put("beginDate","20190221");
jsonStr4.put("deadline","20190228");
jsonStr4.put("fileName","格口导出.excel");
jsonStr4.put("uploadDate","20190227");
jsonStr4.put("state","未解析");
JSONObject jsonStr5 = new JSONObject();
jsonStr5.put("beginDate","20190221");
jsonStr5.put("deadline","20190228");
jsonStr5.put("fileName","格口导出.excel");
jsonStr5.put("uploadDate","20190227");
jsonStr5.put("state","未解析");
JSONObject jsonStr6 = new JSONObject();
jsonStr6.put("beginDate","20190221");
jsonStr6.put("deadline","20190228");
jsonStr6.put("fileName","格口导出.excel");
jsonStr6.put("uploadDate","20190227");
jsonStr6.put("state","未解析");
JSONObject jsonStr7 = new JSONObject();
jsonStr7.put("beginDate","20190221");
jsonStr7.put("deadline","20190228");
jsonStr7.put("fileName","格口导出.excel");
jsonStr7.put("uploadDate","20190227");
jsonStr7.put("state","未解析");
JSONObject jsonStr8 = new JSONObject();
jsonStr8.put("beginDate","20190221");
jsonStr8.put("deadline","20190228");
jsonStr8.put("fileName","格口导出.excel");
jsonStr8.put("uploadDate","20190227");
jsonStr8.put("state","未解析");
JSONObject jsonStr9 = new JSONObject();
jsonStr9.put("beginDate","20190221");
jsonStr9.put("deadline","20190228");
jsonStr9.put("fileName","格口导出.excel");
jsonStr9.put("uploadDate","20190227");
jsonStr9.put("state","未解析");
JSONObject jsonStr10 = new JSONObject();
jsonStr10.put("beginDate","20190221");
jsonStr10.put("deadline","20190228");
jsonStr10.put("fileName","格口导出.excel");
jsonStr10.put("uploadDate","20190227");
jsonStr10.put("state","已解析");
JSONObject jsonStr11 = new JSONObject();
jsonStr11.put("beginDate","20190221");
jsonStr11.put("deadline","20190228");
jsonStr11.put("fileName","格口导出.excel");
jsonStr11.put("uploadDate","20190227");
jsonStr11.put("state","已解析");
countyList.add(jsonStr1);
countyList.add(jsonStr2);
countyList.add(jsonStr3);
countyList.add(jsonStr4);
countyList.add(jsonStr5);
countyList.add(jsonStr6);
countyList.add(jsonStr7);
countyList.add(jsonStr8);
countyList.add(jsonStr9);
countyList.add(jsonStr10);
countyList.add(jsonStr11);
return countyList.toString();
}
}
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("selectPostData")
public class SelectPostData {
/**
* 邮寄信息查询
* @param jsonStr
* @return postList
*/
@RequestMapping("selectPost")
public String selectPost(@RequestBody String jsonStr){
List<JSONObject> postList = new ArrayList<>();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("formNo","6614038");
jsonStr1.put("waybillNumber","2102968392945");
jsonStr1.put("backWaybillNumber","2163968602938");
jsonStr1.put("firstWhite","1100120172018121900012");
jsonStr1.put("recipientName","杨家将");
jsonStr1.put("senderPhone","18532624082");
jsonStr1.put("issuingAuthority","马连洼派出所");
jsonStr1.put("applicantName","杨家将");
jsonStr1.put("printDate","20190302");
postList.add(jsonStr1);
return postList.toString();
}
}
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("selectXMLApi")
public class SelectXMLApi {
/**
* 制证信息查询
* 按日期和状态查询制证信息数据,返回List集合
* @param date 时间
* @param state 状态
* @return countyList
*/
@RequestMapping("selectXml")
public String selectXml(@Param("date") String date, @Param("state") String state){
List<JSONObject> countyList = new ArrayList<>();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("uploadDate","20190301");
jsonStr1.put("packageCount",300);
jsonStr1.put("cardCount",28000);
jsonStr1.put("commonCardCount",16000);
jsonStr1.put("postCardCount",12000);
JSONObject jsonStr2 = new JSONObject();
jsonStr2.put("uploadDate","20190301");
jsonStr2.put("packageCount",300);
jsonStr2.put("cardCount",28000);
jsonStr2.put("commonCardCount",16000);
jsonStr2.put("postCardCount",12000);
JSONObject jsonStr3 = new JSONObject();
jsonStr3.put("uploadDate","20190301");
jsonStr3.put("packageCount",300);
jsonStr3.put("cardCount",28000);
jsonStr3.put("commonCardCount",16000);
jsonStr3.put("postCardCount",12000);
JSONObject jsonStr4 = new JSONObject();
jsonStr4.put("uploadDate","20190301");
jsonStr4.put("packageCount",300);
jsonStr4.put("cardCount",28000);
jsonStr4.put("commonCardCount",16000);
jsonStr4.put("postCardCount",12000);
JSONObject jsonStr5 = new JSONObject();
jsonStr5.put("uploadDate","20190301");
jsonStr5.put("packageCount",300);
jsonStr5.put("cardCount",28000);
jsonStr5.put("commonCardCount",16000);
jsonStr5.put("postCardCount",12000);
JSONObject jsonStr6 = new JSONObject();
jsonStr6.put("uploadDate","20190301");
jsonStr6.put("packageCount",300);
jsonStr6.put("cardCount",28000);
jsonStr6.put("commonCardCount",16000);
jsonStr6.put("postCardCount",12000);
JSONObject jsonStr7 = new JSONObject();
jsonStr7.put("uploadDate","20190301");
jsonStr7.put("packageCount",300);
jsonStr7.put("cardCount",28000);
jsonStr7.put("commonCardCount",16000);
jsonStr7.put("postCardCount",12000);
JSONObject jsonStr8 = new JSONObject();
jsonStr8.put("uploadDate","20190301");
jsonStr8.put("packageCount",300);
jsonStr8.put("cardCount",28000);
jsonStr8.put("commonCardCount",16000);
jsonStr8.put("postCardCount",12000);
JSONObject jsonStr9 = new JSONObject();
jsonStr9.put("uploadDate","20190301");
jsonStr9.put("packageCount",300);
jsonStr9.put("cardCount",28000);
jsonStr9.put("commonCardCount",16000);
jsonStr9.put("postCardCount",12000);
JSONObject jsonStr10 = new JSONObject();
jsonStr10.put("uploadDate","20190301");
jsonStr10.put("packageCount",300);
jsonStr10.put("cardCount",28000);
jsonStr10.put("commonCardCount",16000);
jsonStr10.put("postCardCount",12000);
JSONObject jsonStr11 = new JSONObject();
jsonStr11.put("uploadDate","20190301");
jsonStr11.put("packageCount",300);
jsonStr11.put("cardCount",28000);
jsonStr11.put("commonCardCount",16000);
jsonStr11.put("postCardCount",12000);
countyList.add(jsonStr1);
countyList.add(jsonStr2);
countyList.add(jsonStr3);
countyList.add(jsonStr4);
countyList.add(jsonStr5);
countyList.add(jsonStr6);
countyList.add(jsonStr7);
countyList.add(jsonStr8);
countyList.add(jsonStr9);
countyList.add(jsonStr10);
countyList.add(jsonStr11);
return countyList.toString();
}
}
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("sortingGroupListApi")
public class SortingGroupListApi {
/**
* 分拣任务单中的组号查询
* @param readXMLDate XML导入时间
* @param state 状态
* @return
*/
@RequestMapping("sortingGroupList")
public List<JSONObject> sortingGroupList(@Param("readXMLDate")String readXMLDate,@Param("state")String state){
List<JSONObject> countyList = new ArrayList<>();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("readDate","20190301");
jsonStr1.put("packageCount",300);
jsonStr1.put("cardCount",28000);
jsonStr1.put("commonCardCount",16000);
jsonStr1.put("postCardCount",12000);
countyList.add(jsonStr1);
JSONObject jsonStr2 = new JSONObject();
jsonStr2.put("readDate","20190302");
jsonStr2.put("packageCount",260);
jsonStr2.put("cardCount",26500);
jsonStr2.put("commonCardCount",16500);
jsonStr2.put("postCardCount",10000);
countyList.add(jsonStr2);
JSONObject jsonStr3 = new JSONObject();
jsonStr3.put("readDate","20190302");
jsonStr3.put("packageCount",330);
jsonStr3.put("cardCount",22000);
jsonStr3.put("commonCardCount",11500);
jsonStr3.put("postCardCount",10500);
countyList.add(jsonStr3);
JSONObject jsonStr4 = new JSONObject();
jsonStr4.put("readDate","20190303");
jsonStr4.put("packageCount",300);
jsonStr4.put("cardCount",28000);
jsonStr4.put("commonCardCount",16000);
jsonStr4.put("postCardCount",12000);
countyList.add(jsonStr4);
JSONObject jsonStr5 = new JSONObject();
jsonStr5.put("readDate","20190303");
jsonStr5.put("packageCount",430);
jsonStr5.put("cardCount",56000);
jsonStr5.put("commonCardCount",33000);
jsonStr5.put("postCardCount",23000);
countyList.add(jsonStr5);
JSONObject jsonStr6 = new JSONObject();
jsonStr6.put("readDate","20190303");
jsonStr6.put("packageCount",310);
jsonStr6.put("cardCount",29000);
jsonStr6.put("commonCardCount",16000);
jsonStr6.put("postCardCount",13000);
countyList.add(jsonStr6);
return countyList;
}
}
package com.yxproject.start.api.fakeApi;
import net.sf.json.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("TaskListFakeApi")
public class TaskListFakeApi {
/**
* 根据上传时间查询数据(用于生成任务单)
* @param date
* @return
*/
@RequestMapping("selectByDate")
public List<Map> selectByDate(@Param("date") String date){
List<Map> result = new ArrayList<>();
Map<String,Object> map1 = new HashMap<>();
Map<String,Object> map2 = new HashMap<>();
List<JSONObject> list1 = new ArrayList();
List<JSONObject> list2 = new ArrayList();
JSONObject jsonStr1 = new JSONObject();
jsonStr1.put("taskId","20190228001");
jsonStr1.put("county","西城区");
jsonStr1.put("groupNo","03687576-03687587");
jsonStr1.put("valid","160");
jsonStr1.put("invalid ","0");
list1.add(jsonStr1);
JSONObject jsonStr2 = new JSONObject();
jsonStr2.put("taskId","20190228001");
jsonStr2.put("county","东城区");
jsonStr2.put("groupNo","03687576-03687587");
jsonStr2.put("valid","270");
jsonStr2.put("invalid ","0");
list1.add(jsonStr2);
JSONObject jsonStr3 = new JSONObject();
jsonStr3.put("taskId","20190228001");
jsonStr3.put("county","海淀区");
jsonStr3.put("groupNo","03687576-03687587");
jsonStr3.put("valid","140");
jsonStr3.put("invalid ","0");
list1.add(jsonStr3);
JSONObject jsonStr4 = new JSONObject();
jsonStr4.put("taskId","20190228001");
jsonStr4.put("county","西城区");
jsonStr4.put("groupNo","03687576-03687587");
jsonStr4.put("valid","160");
jsonStr4.put("invalid ","0");
list2.add(jsonStr4);
JSONObject jsonStr5 = new JSONObject();
jsonStr5.put("taskId","20190228001");
jsonStr5.put("county","东城区");
jsonStr5.put("groupNo","03687576-03687587");
jsonStr5.put("valid","270");
jsonStr5.put("invalid ","0");
list2.add(jsonStr5);
JSONObject jsonStr6 = new JSONObject();
jsonStr6.put("taskId","20190228001");
jsonStr6.put("county","海淀区");
jsonStr6.put("groupNo","03687576-03687587");
jsonStr6.put("valid","140");
jsonStr6.put("invalid ","0");
list2.add(jsonStr6);
map1.put("typeCode",1);
map1.put("typeName","普通证");
map1.put("typeSum",360);
map1.put("isActive","true");
map1.put("list",list1);
map2.put("typeCode",9);
map2.put("typeName","邮寄证");
map2.put("typeSum",420);
map2.put("isActive","false");
map2.put("list",list2);
result.add(map1);
result.add(map2);
return result;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment