Merge branch 'wcd-2411-update' of http://192.168.1.110:5678/r/pms-upgrade into wcd
| | |
| | | * @return |
| | | */ |
| | | @Query(value = "SELECT CAST(SUBSTRING(contract_number, 12, 3) AS UNSIGNED) AS val FROM contract \n" + |
| | | "WHERE sign_date LIKE CONCAT(?1, '%') AND contract_number LIKE CONCAT(?2, '%') AND contract_id != ?3 \n" + |
| | | "WHERE SUBSTRING(contract_number, 5, 2) = SUBSTRING(?1, 3, 2) AND contract_number LIKE CONCAT(?2, '%') AND contract_id != ?3 \n" + |
| | | "ORDER BY CAST(SUBSTRING(contract_number, 12, 3) AS UNSIGNED) DESC LIMIT 1", nativeQuery = true) |
| | | Long countContractSort(String year, String companyCode, Long id); |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @Query(value = "SELECT CAST(SUBSTRING(contract_number, 16, 4) AS UNSIGNED) AS val FROM contract \n" + |
| | | "WHERE sign_date LIKE CONCAT(?1, '%') AND contract_id != ?2 \n" + |
| | | "WHERE SUBSTRING(contract_number, 5, 2) = SUBSTRING(?1, 3, 2) AND contract_id != ?2 \n" + |
| | | "ORDER BY CAST(SUBSTRING(contract_number, 16, 4) AS UNSIGNED) DESC LIMIT 1", nativeQuery = true) |
| | | Long countAllContractSort(String year, Long id); |
| | | } |
| | |
| | | e.printStackTrace(); |
| | | throw new BadRequestException("数据保存失败"); |
| | | } finally { |
| | | reader.close(); |
| | | if (uploadFile.exists()) { |
| | | uploadFile.deleteOnExit(); |
| | | } |