杨海航 1 week ago
parent 55ee3eddb7
commit 6f79db7507
  1. 2
      pom.xml
  2. 1
      src/main/java/digital/laboratory/platform/entrustment/controller/CaseEvidenceController.java
  3. 12
      src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentIdentificationMaterialServiceImpl.java

@ -11,7 +11,7 @@
<artifactId>dlp-entrustment</artifactId>
<packaging>jar</packaging>
<description>送检受理</description>
<description>送检受理</description>111
<properties>
<dlp.version>2022.10.11-snapshots</dlp.version>

@ -386,7 +386,6 @@ public class CaseEvidenceController {
ce.setCaseId(cj.getId());
ce.setEvidenceNo(caseEvidenceService.getNewEvidenceCode(cj.getCaseNo()));
ce.setName(cj.getCaseName()+" 的第 "+i+"个物证");
ce.setType(RandomUtil.randomEle(new String[]{"非生物性物证", "生物特性物证"}));
ce.setFieldLabelNo(String.format("现场标牌 %d 号", RandomUtil.randomInt(1, 200)));
ce.setSource(RandomUtil.randomEle(new String[]{"非生物性物证", "生物特性物证"}));

@ -111,16 +111,8 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl<En
/**
* ## 检材编码
* ```
* JC <物证编号后 28 > <顺序号4位>
* 例如:
* JC 5201010400002020030002 0000001 0001
* 合计 34
* ```
* 一份物证, 有可能会多次送检每次送检的时候, 在原来的顺序号上递增
* 定义这个编号的时候有点纠结, 有两个方向的关联: 在案件号上扩充在物证号上扩充我们选择在物证号上扩充
* 检材编码的长度不一定刚好是 34 我们取物证编号后 28 , 其实是去掉物证编码前第1个字符后剩下的部分
* 如果物证编码不是 29 , 那么取到的就不是 28 , 而是物证编码长度减1位
* JC1020250001001
* [prefixJC][10:表示是哪种类型的检材缴获物生物样本][20250001委托编号注意后缀需要用0补齐四位][001流水号需用0补齐三位]
*
* @param evidenceNo
* @return

Loading…
Cancel
Save