Commit 7db24d88 by kangxiaoshan

1

parent 774b9756
......@@ -19,4 +19,7 @@ public interface ContractBodyRepository extends JpaRepository<ContractBody, Long
@Query(value = "select code from contract_body where id in ?1",nativeQuery = true)
List<String> findByIds(List bodyids);
@Query(value = "select * from contract_body group by code",nativeQuery = true)
List<ContractBody> findAllCodeDis();
}
......@@ -252,7 +252,7 @@ public class ContractServiceImpl implements ContractService {
public List<ContractBody> findBody(String platform, User loginAccount) {
if ("all".equals(platform)) {
List<ContractBody> all = contractBodyRepository.findAllDis();
List<ContractBody> all = contractBodyRepository.findAllCodeDis();
return all;
} else {
......
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