Commit 5afbd597 by kangxiaoshan

Update ContractServiceImpl.java

parent f5c2fc51
......@@ -611,7 +611,7 @@ public class ContractServiceImpl implements ContractService {
Contract contract = contractRepository.findOne(resource.getId());
if (!contract.getContractCode().equals(resource.getContractCode())) {
Contract contractExist = contractRepository.findByCode(resource.getContractCode());
Contract contractExist = contractRepository.findByCode(resource.getContractCode().trim());
if (contractExist != null) {
// 合同编号已存在
contractExist = new Contract();
......
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