Browse Source

feat: 手术跟台任务类型相关修改

lixuesong 2 years ago
parent
commit
8b1207f541

+ 0 - 30
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/MedicalEquipmentController.java

@@ -117,34 +117,4 @@ public class MedicalEquipmentController {
 		return R.ok(equipmentPage);
 	}
 
-	/**
-	 * 查询当前企业对应的医疗器械
-	 *
-	 * @return
-	 */
-	@GetMapping("/list-current")
-	public R<?> listByDrugId() {
-		Integer deptId = SecurityUtils.getUser().getDeptId();
-		// 查询父级企业id
-		SysDeptRelation deptRelation = sysDeptRelationService.getOne(Wrappers.<SysDeptRelation>lambdaQuery()
-				.eq(SysDeptRelation::getDescendant, deptId)
-				.ne(SysDeptRelation::getAncestor, deptId));
-		if (deptRelation == null) {
-			return R.ok(Collections.emptyList());
-		}
-		// 查询是否存在父级的父级
-		SysDeptRelation pDeptRelation = sysDeptRelationService.getOne(Wrappers.<SysDeptRelation>lambdaQuery()
-				.eq(SysDeptRelation::getDescendant, deptRelation.getAncestor())
-				.ne(SysDeptRelation::getAncestor, deptRelation.getAncestor()));
-		if (pDeptRelation != null && pDeptRelation.getAncestor() != 1) {
-			deptRelation = pDeptRelation;
-		}
-
-		// 查询企业对应药企id
-		WmDaDrugEnt wmDaDrugEnt = wmDaDrugEntService.selectByDeptId(deptRelation.getAncestor());
-
-		List<MedicalEquipment> medicalEquipmentList = medicalEquipmentService.list(Wrappers.<MedicalEquipment>lambdaQuery()
-				.eq(MedicalEquipment::getDrugEntId, wmDaDrugEnt.getId()));
-		return R.ok(medicalEquipmentList);
-	}
 }

+ 2 - 0
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/service/impl/WmTaskContentServiceImpl.java

@@ -1094,6 +1094,8 @@ public class WmTaskContentServiceImpl extends ServiceImpl<WmTaskContentMapper, W
 					wmTaskType2.setTaskTypeName(baseTaskType.getTaskTypeName());
 					wmTaskType2.setRuleId(wmScorePackage1.getRuleId());
 					score = wmTaskTypeService.getWmTaskTypeByEnt(wmTaskType2);
+					// 设置实际的任务类型
+					wmTaskContent.setTemp30(taskTypeId);
 				}
 
 				log.info("获取任务得分:{}", score);