Commit 69aa7ef5 by 王军业

[导入接口]

1 parent d6e4b99d
......@@ -639,6 +639,7 @@ public class ContractServiceImpl implements ContractService {
String result = HttpNetClient.doGet(url, null);
Map map = JavaBean2Json.Json2JavaBean(result, Map.class);
list_data = (List<Map>) map.get("list_data");
List<String> contractIdList=contractMapper.queryList();
ContractVo contractVo = null;
ReturnInfo returnInfo=null;
Receipt receipt=null;
......@@ -905,10 +906,11 @@ public class ContractServiceImpl implements ContractService {
projectAcceptanc_end.setAcceptanc_date(importModel.getEnd_acceptanc_date());
projectAcceptanc_end.setAcceptanc_note(importModel.getEnd_acceptanc_note());
}
ContractVo contracto=contractMapper.queryOne(contractVo.getContract_unid());
if(contracto==null ) {
//ContractVo contracto=contractMapper.queryOne(contractVo.getContract_unid());
if(!contractIdList.contains(contractVo.getContract_unid())) {
System.out.println("contractVo="+JavaBean2Json.javaBean2Json(contractVo));
contractMapper.addOne(contractVo);
contractIdList.add(contractVo.getContract_unid());
//if(paymentAgreeMapper.queryPaymentAgree(importModel.getContract_unid()).size()==0 ) {
if(returnInfo.getReback_date()!=null ||returnInfo.getActual_reback_amount()!=null ||returnInfo.getReback_note()!=null) {
returnInfoMapper.addReturnInfo(returnInfo);
......@@ -940,7 +942,7 @@ public class ContractServiceImpl implements ContractService {
continue;
//}
}else {
if(importModel.getSalesperson_name()!=null && contracto!=null) {
if(importModel.getSalesperson_name()!=null && contractVo.getContract_unid()!=null) {
is_repeat=false;
repeatListId.add(contractVo.getContract_unid());
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!