Commit c24c5ac8 by kangxiaoshan

DMP 收入导入

parent bd6da457
...@@ -3,6 +3,7 @@ package common.repository; ...@@ -3,6 +3,7 @@ package common.repository;
import common.model.Contract; import common.model.Contract;
import common.model.Role; import common.model.Role;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query; import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param; import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
...@@ -153,4 +154,9 @@ public interface ContractRepository extends JpaRepository<Contract, Long> { ...@@ -153,4 +154,9 @@ public interface ContractRepository extends JpaRepository<Contract, Long> {
@Query(value = "select id from contract where contract_code = ?1 ", nativeQuery = true) @Query(value = "select id from contract where contract_code = ?1 ", nativeQuery = true)
List<Long> findIdByCode(String relationCode); List<Long> findIdByCode(String relationCode);
@Transactional
@Modifying
@Query(value = "delete from contract where contract_code = ?1 and platform=?2", nativeQuery = true)
void deleteByCode(String contractCode, String platform);
} }
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