Commit d852444c by lzxry

bugfix

parent 492577bc
......@@ -144,4 +144,7 @@ public interface ContractRepository extends JpaRepository<Contract, Long> {
@Query(value = "select * from contract where platform=?1 and share_sign = ?2 ",nativeQuery = true)
List<Contract> findByPlatformAndShareSign(String platform, int share_sign);
@Query(value = "select * from contract where contract_code = ?1 and status != 'del'", nativeQuery = true)
Contract findByCodeAndNotDel(String contractCode);
}
......@@ -1878,7 +1878,9 @@ public class ContractServiceImpl implements ContractService {
@Override
public Contract change(User loginUser, ContractChange resource, FlowChange flowChange) {
Contract contract = contractRepository.findByCode(resource.getContractCode());
//Contract contract = contractRepository.findByCode(resource.getContractCode());
Contract contract = contractRepository.findByCodeAndNotDel(resource.getContractCode());
Map<Long, String> packageMap = getPackageMap(contract);
boolean showTip = false;
......
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