Commit aae949ad authored by 郝彦辉's avatar 郝彦辉

D3筛选替换reqId

parent aecddf5d
......@@ -1742,7 +1742,7 @@ public class ManualToolService implements CommonSuperService {
}
}
//===============================================================================================
public static void d3_logicerror_20191223() {
private static void d3_logicerror_20191223() {
List<String> logicerror_other_List = ReadOrWriteTxt.readTxtList("D:\\用户目录\\Downloads\\生产p2p新\\log\\all_err_other_reqID.tmp");
Map<String,String> err_other_reqIdMap = new HashMap<>(logicerror_other_List.size());
int c1 = 0;
......@@ -1886,7 +1886,7 @@ public class ManualToolService implements CommonSuperService {
for(String key : oldD3_reqIdMap.keySet()){
log.info("oldD3_reqIdMap wr:"+(wr++));
try {
FileUtils.write(new File(mapNotEmptyFile), oldD3_reqIdMap.get(key)+"="+oldD3_reqIdMap+"\r\n", "UTF-8", true);
FileUtils.write(new File(mapNotEmptyFile), key+"="+oldD3_reqIdMap.get(key)+"\r\n", "UTF-8", true);
} catch (IOException e) {
log.error("oldD3_reqIdMap 写入 error ", e);
}
......@@ -1901,6 +1901,30 @@ public class ManualToolService implements CommonSuperService {
}
private static void build_key() {
List<String> d3lineList = ReadOrWriteTxt.readTxtList("D:\\用户目录\\Downloads\\生产p2p新\\build_ok\\err_D3_024,D3_044\\test\\oldList75.txt");
for (int i = 0; i < d3lineList.size(); i++) {
try {
String d3JsonStr = d3lineList.get(i);
if (d3JsonStr.length() < 30) {
continue;
}
RepaymentInfoZhuDai repaymentLoanInfo = new Gson().fromJson(d3JsonStr, new TypeToken<RepaymentInfoZhuDai>() {
}.getType());
String key_replace = repaymentLoanInfo.getLoanId() + "|" + repaymentLoanInfo.getTermNo() + "|" + repaymentLoanInfo.getStatusConfirmAt()
+ "|ts:" + repaymentLoanInfo.getTermStatus() + "|ls:" + repaymentLoanInfo.getLoanStatus()
+ "=" + repaymentLoanInfo.getReqID();
FileUtils.write(new File("D:\\用户目录\\Downloads\\生产p2p新\\build_ok\\err_D3_024,D3_044\\test\\key_oldList75.txt"), key_replace + "\n", "UTF-8", true);
} catch (Exception e) {
System.err.println("build_key() D3 data error," + e.toString());
}
}
System.out.println("build_key() D3 end.");
}
public static void main(String[] args) {
// List<String> lineList = ReadOrWriteTxt.readTxtList("D:\\用户目录\\Downloads\\D2_M_01.txt");
// System.out.println("lineList:"+lineList.size());
......@@ -1952,7 +1976,9 @@ public class ManualToolService implements CommonSuperService {
"D:\\JavaTeam\\test\\rm_byPhone_err.txt");*/
d3_logicerror_20191223();
//d3_logicerror_20191223();
build_key();
}
......
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