|
@@ -77,15 +77,18 @@ public class YzActOrderModifyService {
|
|
|
List<TYzActOrderModify> insertList = new ArrayList<>();
|
|
|
List<TYzActOrderModify> updateList = new ArrayList<>();
|
|
|
for (TYzActOrderModify pojo : param.getList()) {
|
|
|
+ //判断 这条医嘱是否已经存在了 如果有就执行 更新的操作 ,没有就插入
|
|
|
if (dao.chaKansfCunZai(pojo.getActOrderNo()) == 0) {
|
|
|
insertList.add(pojo);
|
|
|
} else {
|
|
|
updateList.add(pojo);
|
|
|
}
|
|
|
}
|
|
|
+ //执行批量插入
|
|
|
if (insertList.size() > 0) {
|
|
|
dao.yzActOrderModifyInsert(param, insertList);
|
|
|
}
|
|
|
+ //执行批量更新
|
|
|
if (updateList.size() > 0) {
|
|
|
dao.yzActOrderModifyUpdate(param, updateList);
|
|
|
}
|