修改导入BUG
This commit is contained in:
parent
5f5e2f2b8e
commit
e9924bb232
@ -181,9 +181,12 @@ public class InspectPatientController {
|
||||
List<InspectPatientitemsSaveReqVO> dataList2 = new ArrayList<>();
|
||||
while (rowIterator.hasNext()) {
|
||||
org.apache.poi.ss.usermodel.Row row = rowIterator.next();
|
||||
long timestamp = System.currentTimeMillis();
|
||||
long uniqueNumber = counter.incrementAndGet();
|
||||
String MedicalSn = Long.toString(timestamp) + String.format("%04d", uniqueNumber % 10000);
|
||||
// 获取当前日期并格式化为 yyyyMMdd 格式
|
||||
LocalDate currentDate = LocalDate.now();
|
||||
String datePart = currentDate.format(DateTimeFormatter.ofPattern("yyyyMMdd"));
|
||||
// 生成一个6位的序列号
|
||||
int sequenceNumber = counter.incrementAndGet() % 1000000; // 确保序列号是6位数
|
||||
String MedicalSn = datePart+String.format("%06d", sequenceNumber);
|
||||
//患者信息
|
||||
InspectPatientSaveReqVO rowData = new InspectPatientSaveReqVO();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user