|
@@ -1,6 +1,7 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.diagbot.dto.GetAllByHospitalDTO;
|
|
|
import com.diagbot.dto.GetAllByHospitalDetialDTO;
|
|
|
import com.diagbot.dto.QcCasesEntryDTO;
|
|
@@ -149,7 +150,18 @@ public class CasesEntryHospitalFacade extends CasesEntryHospitalServiceImpl {
|
|
|
BeanUtil.copyProperties(insertByHospitalVO,qcCasesEntry);
|
|
|
qcCasesEntry.setGmtCreate(date);
|
|
|
qcCasesEntry.setGmtModified(date);
|
|
|
- qcCacesEntryFacade.save(qcCasesEntry);
|
|
|
+ boolean res= qcCacesEntryFacade.save(qcCasesEntry);
|
|
|
+ //先保存, 在更新Coed
|
|
|
+ if(res){
|
|
|
+ Long id = qcCasesEntry.getId();
|
|
|
+ String code = qcCasesEntry.getCode()+id;
|
|
|
+ UpdateWrapper<QcCasesEntry> qcCasesEntryQueryUpdate = new UpdateWrapper<>();
|
|
|
+ qcCasesEntryQueryUpdate
|
|
|
+ .eq("is_deleted",IsDeleteEnum.N.getKey())
|
|
|
+ .eq("id",id)
|
|
|
+ .set("code",code);
|
|
|
+ qcCacesEntryFacade.update(qcCasesEntryQueryUpdate);
|
|
|
+ }
|
|
|
}
|
|
|
//添加分值明细
|
|
|
List<CasesEntryHospital> casesEntryHospitals = new ArrayList<>();
|