|
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.dto.QcCasesAllDTO;
|
|
|
import com.diagbot.dto.QcCasesEntryFindDTO;
|
|
|
import com.diagbot.dto.QcCasesEntryHospitalDTO;
|
|
|
+import com.diagbot.entity.QcCasesEntry;
|
|
|
import com.diagbot.entity.QcCasesEntryHospital;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
@@ -31,6 +32,8 @@ import java.util.List;
|
|
|
public class QcCasesEntryHospitalFacade extends QcCasesEntryHospitalServiceImpl {
|
|
|
@Autowired
|
|
|
private QcCasesFacade qcCasesFacade;
|
|
|
+ @Autowired
|
|
|
+ private QcCasesEntryFacade qcCasesEntryFacade;
|
|
|
|
|
|
/**
|
|
|
*
|
|
@@ -57,6 +60,24 @@ public class QcCasesEntryHospitalFacade extends QcCasesEntryHospitalServiceImpl
|
|
|
if (sum == 0) {
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS, "该条目不存在");
|
|
|
}
|
|
|
+ QcCasesEntryHospital entryHospital = this.lambdaQuery()
|
|
|
+ .eq(QcCasesEntryHospital::getId, qcCasesEntryUpdataVO.getId())
|
|
|
+ .one();
|
|
|
+ if (entryHospital != null) {
|
|
|
+ QcCasesEntry one = qcCasesEntryFacade.lambdaQuery()
|
|
|
+ .eq(QcCasesEntry::getId, entryHospital.getCasesEntryId())
|
|
|
+ .one();
|
|
|
+ if (one != null) {
|
|
|
+ one.setName(qcCasesEntryUpdataVO.getName());
|
|
|
+ one.setSyRuleType(qcCasesEntryUpdataVO.getSyRuleType());
|
|
|
+ one.setRemark(qcCasesEntryUpdataVO.getRemark());
|
|
|
+ one.setCasesId(qcCasesEntryUpdataVO.getCasesId());
|
|
|
+ one.setRemindType(qcCasesEntryUpdataVO.getRemindType());
|
|
|
+ one.setRemindLevel(qcCasesEntryUpdataVO.getRemindLevel());
|
|
|
+ qcCasesEntryFacade.saveOrUpdate(one);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
UpdateWrapper<QcCasesEntryHospital> qcCasesEntry = new UpdateWrapper<>();
|
|
|
qcCasesEntry.eq("id", qcCasesEntryUpdataVO.getId())
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|