Commit 6d6bf145 by kangxiaoshan

大后台

parent 7ff53275
......@@ -19,6 +19,6 @@ public interface ContractRelationRepository extends JpaRepository<ContractRelati
@Query(value = "select * from contract_relation where main_contract = ?1 and relation_id = ?2 and platform = ?3",nativeQuery = true)
ContractRelation findByRelationData(Long mainContract, Long relationId, String platform);
@Query(value = "select * from contract_relation where main_contract = ?1 ",nativeQuery = true)
@Query(value = "select a.* from contract_relation a left join contract b on a.relation_id = b.id where main_contract = ?1 and b.status <>'del' ",nativeQuery = true)
List<ContractRelation> findRelationIdsMain(String contractId);
}
......@@ -53,7 +53,7 @@ public interface ContractRepository extends JpaRepository<Contract, Long> {
@Query(value = "select count(*) from contract where my_body_code = ?1",nativeQuery = true)
BigInteger findcountContract(String platform);
@Query(value = "select new map( c.id as id, c.contractCode as contractCode ) from Contract c where c.platform in ?1 and c.contractCode is not null and c.contractCode <> 'null'")
@Query(value = "select new map( c.id as id, c.contractCode as contractCode ) from Contract c where c.platform in ?1 and c.contractCode is not null and c.contractCode <> 'null' and c.status <>'del'")
List<Map> contractCodePlatform(List<String> platform);
@Query(value = "select * from contract where platform = ?1 and contract_code = ?2",nativeQuery = 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