瀏覽代碼

文书删除后恢复又提交,将状态调整过来

liuqq 3 年之前
父節點
當前提交
7ff1398b8b

+ 1 - 0
src/main/java/com/diagbot/facade/data/ABehospitalInfoFacade.java

@@ -148,6 +148,7 @@ public class ABehospitalInfoFacade extends BehospitalInfoServiceImpl {
                 if (behospitalInfo != null) {
                     s.setGmtModified(new Date());
                     s.setQcTypeId(initQcTypeId(s));
+                    s.setIsDeleted(IsDeleteEnum.N.getKey());
                     updateE.add(s);
                 } else {
                     s.setGmtCreate(new Date());

+ 1 - 0
src/main/java/com/diagbot/facade/data/AMedicalRecordContentFacade.java

@@ -80,6 +80,7 @@ public class AMedicalRecordContentFacade extends MedicalRecordContentServiceImpl
                     MedicalRecordContent mrContent = this.getOne(queryWrapper, false);
                     if (mrContent != null) {
                         s.setGmtModified(new Date());
+                        s.setIsDeleted(IsDeleteEnum.N.getKey());
                         //updateE.add(s);
                         medicalRecordContentService.update(s,queryWrapper);
                     } else {

+ 1 - 0
src/main/java/com/diagbot/facade/data/AMedicalRecordFacade.java

@@ -530,6 +530,7 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
                             .eq("behospital_code", s.getBehospitalCode()), false);
                     if (mRecord != null) {
                         s.setGmtModified(new Date());
+                        s.setIsDeleted(IsDeleteEnum.N.getKey());
                         updateE.add(s);
                     } else {
                         s.setGmtCreate(new Date());

+ 3 - 0
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -4348,6 +4348,9 @@
                 <if test="item.modifier != null">
                     modifier = #{item.modifier},
                 </if>
+                <if test="item.isDeleted != null">
+                    is_deleted = #{item.isDeleted},
+                </if>
             </set>
             where behospital_code = #{item.behospitalCode} and hospital_id = #{item.hospitalId}
         </foreach>

+ 3 - 0
src/main/resources/mapper/MedicalRecordContentMapper.xml

@@ -28,6 +28,9 @@
                 <if test="item.modifier != null">
                     modifier = #{item.modifier},
                 </if>
+                <if test="item.isDeleted != null">
+                    is_deleted = #{item.isDeleted},
+                </if>
             </set>
             where rec_id = #{item.recId} and hospital_id = #{item.hospitalId}
         </foreach>

+ 3 - 0
src/main/resources/mapper/MedicalRecordMapper.xml

@@ -64,6 +64,9 @@
                 <if test="item.modifier != null">
                     modifier = #{item.modifier},
                 </if>
+                <if test="item.isDeleted != null">
+                    is_deleted = #{item.isDeleted},
+                </if>
             </set>
             where rec_id = #{item.recId} and hospital_id = #{item.hospitalId} and behospital_code = #{item.behospitalCode}
         </foreach>