|
|
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import org.jeecg.common.util.oConvertUtils;
|
|
|
import org.jeecg.modules.medical.entity.DiagnoseItems;
|
|
|
import org.jeecg.modules.medical.entity.DiagnosesVO;
|
|
|
import org.jeecg.modules.medical.entity.MaterialItems;
|
|
|
@@ -29,15 +30,18 @@ public class DiagnoseItemsServiceImpl extends ServiceImpl<DiagnoseItemsMapper, D
|
|
|
|
|
|
@Override
|
|
|
public IPage<DiagnoseItems> diagnosePage(Page<DiagnoseItems> page, DiagnoseItems diagnoseItems) {
|
|
|
- String[] lines = diagnoseItems.getMedicalDiagnoseCode().split("\n");
|
|
|
- List<String> stringList;
|
|
|
- if (lines.length > 0) {
|
|
|
- stringList = new ArrayList<>(Arrays.asList(lines));
|
|
|
- } else {
|
|
|
- stringList = new ArrayList<>();
|
|
|
- stringList.add(diagnoseItems.getMedicalDiagnoseCode());
|
|
|
+ if(oConvertUtils.isNotEmpty(diagnoseItems.getMedicalDiagnoseCode())){
|
|
|
+ String[] lines = diagnoseItems.getMedicalDiagnoseCode().split("\n");
|
|
|
+ List<String> stringList;
|
|
|
+ if (lines.length > 0) {
|
|
|
+ stringList = new ArrayList<>(Arrays.asList(lines));
|
|
|
+ } else {
|
|
|
+ stringList = new ArrayList<>();
|
|
|
+ stringList.add(diagnoseItems.getMedicalDiagnoseCode());
|
|
|
+ }
|
|
|
+ diagnoseItems.setCodes(stringList);
|
|
|
}
|
|
|
- diagnoseItems.setCodes(stringList);
|
|
|
+
|
|
|
|
|
|
return baseMapper.diagnosePage(page, diagnoseItems);
|
|
|
}
|