|
@@ -33,7 +33,29 @@ public interface CostInfoMapper extends JpaRepository<CostInfoEntity, Integer>,
|
|
* @param costType
|
|
* @param costType
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- CostInfoEntity findByApplyCostIdAndCostType(Integer applyCostId, String costType);
|
|
|
|
|
|
+ @Transactional
|
|
|
|
+ @Query(value = "SELECT\n" +
|
|
|
|
+ "\tcostinfoen0_.cost_id,\n" +
|
|
|
|
+ "\tcostinfoen0_.apply_cost_id ,\n" +
|
|
|
|
+ "\tcostinfoen0_.cost_status ,\n" +
|
|
|
|
+ "\tcostinfoen0_.cost_type ,\n" +
|
|
|
|
+ "\tcostinfoen0_.create_date ,\n" +
|
|
|
|
+ "\tcostinfoen0_.flow_task_status ,\n" +
|
|
|
|
+ "\tcostinfoen0_.happen_date ,\n" +
|
|
|
|
+ "\tcostinfoen0_.payment_date ,\n" +
|
|
|
|
+ "\tcostinfoen0_.perform_amount ,\n" +
|
|
|
|
+ "\tcostinfoen0_.process_definition_id ,\n" +
|
|
|
|
+ "\tcostinfoen0_.process_instance_id ,\n" +
|
|
|
|
+ "\tcostinfoen0_.project_name ,\n" +
|
|
|
|
+ "\tcostinfoen0_.proposer ,\n" +
|
|
|
|
+ "\tcostinfoen0_.relevance_user \n" +
|
|
|
|
+ "FROM\n" +
|
|
|
|
+ "\tcost_info costinfoen0_\n" +
|
|
|
|
+ "WHERE\n" +
|
|
|
|
+ "\tcostinfoen0_.cost_id =?1 \n" +
|
|
|
|
+ "\tAND costinfoen0_.cost_type =?2"
|
|
|
|
+ , nativeQuery = true)
|
|
|
|
+ CostInfoEntity findByApplyCostIdAndCostType(Integer costId, String costType);
|
|
|
|
|
|
@Transactional
|
|
@Transactional
|
|
@Modifying
|
|
@Modifying
|