Merge remote-tracking branch 'origin/master'

This commit is contained in:
2025-02-17 14:27:37 +08:00
3 changed files with 3 additions and 12 deletions

View File

@@ -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>

View File

@@ -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[]{"非生物性物证", "生物特性物证"}));

View File

@@ -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