| | |
| | | // 是否有真实合同 |
| | | contractNumber.append(newTrueContract); |
| | | } |
| | | if (oldSignYear.equals(newSignYear)) { |
| | | contractNumber.append(resources.getContractNumber().substring(15)); |
| | | } else { |
| | | // 全部公司当年编号(以签订日期为准)(因先存后改故排除本身数据) |
| | | Long allCompanySort = contractRepository.countAllContractSort(String.valueOf(calendar.get(Calendar.YEAR)), resources.getContractId()); |
| | | contractNumber.append(String.format("%04d", (allCompanySort == null ? 0L : allCompanySort) + 1)); |
| | | } |
| | | // 全部公司当年编号(以签订日期为准) |
| | | // TODO:250115业务方提出修改为以创建日期为准 |
| | | contractNumber.append(resources.getContractNumber().substring(15)); |
| | | |
| | | if (resources.getContractNumber().equals(contractNumber.toString())) { |
| | | return resources; |
| | |
| | | contractNumber.append("Y"); |
| | | } |
| | | // 全部公司当年编号(以签订日期为准)(因先存后改故排除本身数据) |
| | | // TODO:250115业务方提出修改为以创建日期为准 |
| | | calendar.setTime(resources.getCreateTime()); |
| | | Long allCompanySort = contractRepository.countAllContractSort(String.valueOf(calendar.get(Calendar.YEAR)), resources.getContractId()); |
| | | contractNumber.append(String.format("%04d", (allCompanySort == null ? 0L : allCompanySort) + 1)); |
| | | |