冻胚胚胎等级修改
This commit is contained in:
@@ -134,12 +134,6 @@ public class DdFeController extends BaseController {
|
||||
case "D":
|
||||
qty = (Integer) flush.getOrDefault("gradeD", 0);
|
||||
break;
|
||||
case "囊胚":
|
||||
qty = (Integer) flush.getOrDefault("cell24", 0);
|
||||
break;
|
||||
case "桑椹胚":
|
||||
qty = (Integer) flush.getOrDefault("cell8", 0);
|
||||
break;
|
||||
default:
|
||||
qty = 0;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ public class DdFeServiceImpl implements IDdFeService
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getLastFlushInfoByEwe(String eweNo) {
|
||||
// 1. 冲胚数据(冻胚自己的 SQL)
|
||||
// 1. 冲胚数据
|
||||
Map<String, Object> flush = ddFeMapper.selectFlushByEwe(eweNo);
|
||||
if (flush == null) return null;
|
||||
|
||||
@@ -118,10 +118,16 @@ public class DdFeServiceImpl implements IDdFeService
|
||||
|
||||
// 2. 公羊品种
|
||||
Map<String, Object> ram = scEmbryoFlushMapper.selectSheepInfoByManageTag(ramId);
|
||||
if (ram == null) {
|
||||
throw new ServiceException("供体公羊耳号在羊只档案中未找到");
|
||||
}
|
||||
String ramBreed = (String) ram.get("variety");
|
||||
|
||||
// 3. 母羊品种
|
||||
Map<String, Object> ewe = scEmbryoFlushMapper.selectSheepInfoByManageTag(eweNo);
|
||||
if (ewe == null) {
|
||||
throw new ServiceException("供体母羊耳在羊只档案中未找到");
|
||||
}
|
||||
String eweBreed = (String) ewe.get("variety");
|
||||
|
||||
// 4. 胚胎品种
|
||||
@@ -133,7 +139,6 @@ public class DdFeServiceImpl implements IDdFeService
|
||||
rsp.put("drBreed", ramBreed);
|
||||
rsp.put("deBreed", eweBreed);
|
||||
rsp.put("embBreed", embryoBreed);
|
||||
// 如果以后需要等级数量,也从这个 flush map 里取
|
||||
rsp.put("gradeA", flush.get("gradeA"));
|
||||
rsp.put("gradeB", flush.get("gradeB"));
|
||||
rsp.put("gradeC", flush.get("gradeC"));
|
||||
|
||||
@@ -170,8 +170,6 @@
|
||||
grade_b gradeB,
|
||||
grade_c gradeC,
|
||||
grade_d gradeD,
|
||||
cell_2_4 cell24,
|
||||
cell_8 cell8,
|
||||
donor_male_no ramId
|
||||
FROM sc_embryo_flush
|
||||
WHERE donor_female_no = #{eweNo}
|
||||
|
||||
Reference in New Issue
Block a user