111
This commit is contained in:
parent
3299851588
commit
33e17487c3
@ -328,6 +328,7 @@ public class MedicalRecordService {
|
||||
dp.setDpmasImg(item.getDpmasImg());
|
||||
dp.setCaseId(medicalRecord.getId());
|
||||
dp.setTreatTime(item.getTreatTime());
|
||||
dp.setContent(item.getContent());
|
||||
int res = medicalRecorDpmasDao.insert(dp);
|
||||
if (res <= 0){
|
||||
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
||||
|
||||
@ -236,13 +236,25 @@ public class CaseplatformCaseService {
|
||||
|
||||
Sheet sheet = workbook.getSheetAt(0);
|
||||
|
||||
// 获取最后一行的行号(从 0 开始)
|
||||
int lastRowNum = sheet.getLastRowNum();
|
||||
|
||||
// 从第 1 行开始读取(跳过标题行)
|
||||
int rowNum = 0;
|
||||
for (Iterator<Row> it = sheet.rowIterator(); it.hasNext();) {
|
||||
Row row = it.next();
|
||||
|
||||
// 跳过第一行/二行
|
||||
if (rowNum++ <= 1) continue;
|
||||
if (rowNum <= 1) {
|
||||
rowNum++;
|
||||
continue;
|
||||
}
|
||||
|
||||
// 跳过最后一行
|
||||
if (rowNum == lastRowNum) {
|
||||
rowNum++;
|
||||
continue;
|
||||
}
|
||||
|
||||
// 判断整行是否为空
|
||||
boolean isEmptyRow = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user