Commit fd5a0cdc authored by jianhua.zhang's avatar jianhua.zhang

合约验证接口调整

parent c1057f76
......@@ -125,7 +125,12 @@ public class ContractController {
con.setLicenseType(reqParam.getLicense_type());
con.setEvmVersion(reqParam.getEvm_version());
if (con != null) {
this.contractService.insert(con);
ContractExample example = new ContractExample();
example.createCriteria().andContractAddressEqualTo(reqParam.getAddress());
Contract obj = this.contractService.selectOneByExample(example);
if (obj == null) {
this.contractService.insert(con);
}
}
flag = true;
}
......
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