Ver código fonte

调整

master
zouhantao 1 mês atrás
pai
commit
85993f2489

+ 1
- 19
zhywpt-app-managew/src/main/java/cn/com/taiji/managew/manager/ass/selfService/SelfServiceManagerImpl.java Ver arquivo

@@ -201,8 +201,6 @@ public class SelfServiceManagerImpl extends AbstractCommManager implements SelfS
}
return null;
}


// 获取诉求
public List<SelfServiceViewUserAppealResponseDTO> getUserAppeal(List<SelfServiceStaffRecord> listStaffRecord , List<SelfServiceUserRecord> listUserRecord){
List<SelfServiceViewUserAppealResponseDTO> userAppealResponseDTOS = new ArrayList<>();
@@ -247,21 +245,5 @@ public class SelfServiceManagerImpl extends AbstractCommManager implements SelfS
supportingMaterialsResponseDTOS.sort(Comparator.comparing(SelfServiceViewSupportingMaterialsResponseDTO::getInsertTime).reversed());
return supportingMaterialsResponseDTOS;
}
//获取最新工单号
private String queryMaxId(int num) {
// 获取当天时间
LocalDate nowDate = LocalDate.now();
System.out.println(nowDate);
DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("yyyyMMdd");
String time = dateFormatter.format(nowDate);
// 计算最大id值
SelfServiceOrder maxOrder = orderRepo.getMaxId();
if (maxOrder != null && maxOrder.getId().startsWith(time + ""))
{
String maxId = maxOrder.getId();
num = Integer.parseInt(maxId.replace(time, "")) + 1;
String.format("%05d",num);
}
return time + String.format("%05d",num);
}

}

Carregando…
Cancelar
Salvar