|
|
|
|
@ -1108,8 +1108,8 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
|
String[] split = examine.getExperieNum().split(","); |
|
|
|
|
// 如果检测编号截取后长度
|
|
|
|
|
String s = "/"; |
|
|
|
|
if (split[0].length() > 12) { |
|
|
|
|
s = split[0].substring(0, 12); |
|
|
|
|
if (split[0].split("-").length > 1) { |
|
|
|
|
s = split[0].split("-")[0]; |
|
|
|
|
} |
|
|
|
|
result.put("1", s); |
|
|
|
|
result.put("2", examineResult.getDisposal()); |
|
|
|
|
@ -3178,13 +3178,16 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
map.put("simpleName", examine.getSimpleName()); |
|
|
|
|
map.put("simpleCount", examine.getSimpleCount()); |
|
|
|
|
// 获取当前检测对应的检测编号
|
|
|
|
|
String[] split = examine.getExperieNum().split(","); |
|
|
|
|
String[] split1 = split[0].split("-"); |
|
|
|
|
String num = split1[0]; |
|
|
|
|
if (split.length > 1) { |
|
|
|
|
num = split1[0] + "-" + split1[1]; |
|
|
|
|
} |
|
|
|
|
map.put("experieNum", num + examine.getMin() + "~" + num + examine.getMax()); |
|
|
|
|
// String[] split1 = split[0].split("-");
|
|
|
|
|
// 组装检测编号(只要开头和结尾)
|
|
|
|
|
String num = split[0] + "~" + split[split.length - 1]; |
|
|
|
|
// if (split.length > 1) {
|
|
|
|
|
// num = split1[0] + "-" + split1[1];
|
|
|
|
|
// }
|
|
|
|
|
// map.put("experieNum", num + examine.getMin() + "~" + num + examine.getMax());
|
|
|
|
|
map.put("experieNum", num); |
|
|
|
|
//检测项目
|
|
|
|
|
ExamineItem examineItem = examineItemService.getById(examine.getExamineItemId()); |
|
|
|
|
if (examineItem != null) { |
|
|
|
|
@ -3928,6 +3931,8 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
|
Integer simpleCount = 0; |
|
|
|
|
List<Map<String, Object>> list = entrust.getSimpleNames(); |
|
|
|
|
|
|
|
|
|
// 检测编号计数器
|
|
|
|
|
int experieNumCount = 1; |
|
|
|
|
// 样品排序
|
|
|
|
|
for (int sort = 0; sort < list.size(); sort++) { |
|
|
|
|
Map<String, Object> map = list.get(sort); |
|
|
|
|
@ -3955,15 +3960,17 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
|
} |
|
|
|
|
simpleRel.setSimpleName(name); |
|
|
|
|
simpleRel.setReagentNum(1); |
|
|
|
|
simpleRel.setReagentExperieNum(s + ((a - 1) * 2 + i + 1 + count)); |
|
|
|
|
simpleRel.setReagentExperieNum(experieNumCount + count + ""); |
|
|
|
|
simpleRel.setExamineNum(1); |
|
|
|
|
simpleRel.setExamineExperieNum(s + ((a - 1) * 2 + i + 1)); |
|
|
|
|
simpleRel.setExamineExperieNum(experieNumCount + ""); |
|
|
|
|
simpleRel.setRecessiveNum((i + a) + ""); |
|
|
|
|
simpleRel.setOriginalNum((i + a) + ""); |
|
|
|
|
simpleRel.setStatus(0); |
|
|
|
|
simpleRel.setSort(sort); |
|
|
|
|
experieNumCount++; |
|
|
|
|
rels.add(simpleRel); |
|
|
|
|
} |
|
|
|
|
experieNumCount += count; |
|
|
|
|
} |
|
|
|
|
simpleRelService.saveBatch(rels); |
|
|
|
|
// 委托单内容补充
|
|
|
|
|
@ -4019,6 +4026,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust> |
|
|
|
|
customer.setStatus(2); |
|
|
|
|
customer.setId(RandomUtils.nextLong()); |
|
|
|
|
customer.setPhone(entrust.getTakePhone()); |
|
|
|
|
// 单位名称
|
|
|
|
|
customer.setName(entrust.getTakeCompany()); |
|
|
|
|
customer.setFullName(entrust.getTakePerson()); |
|
|
|
|
customer.setAddress(entrust.getTakeCompanyAddress()); |
|
|
|
|
|