20250220 更新

1.送检页面中的委托案件列表以及委托申请修改列表添加鉴定情况返回
2.处理已审核的委托在次进入页面调用查看检材接口导致的报错问题
3.回显鉴定情况
master
陈江保 3 days ago
parent 1aa2a7a892
commit 62619cff80
  1. 4
      src/main/java/digital/laboratory/platform/entrustment/controller/CaseEventController.java
  2. 10
      src/main/java/digital/laboratory/platform/entrustment/dto/UpdateCaseAndEntrustTypeDTO.java
  3. 2
      src/main/java/digital/laboratory/platform/entrustment/entity/Entrustment.java
  4. 14
      src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustmentIdentificationMaterialServiceImpl.java
  5. 10
      src/main/java/digital/laboratory/platform/entrustment/vo/CaseEventVO.java
  6. 5
      src/main/java/digital/laboratory/platform/entrustment/vo/EntrustAlterApplyVO.java
  7. 8
      src/main/resources/mapper/CaseEventMapper.xml
  8. 3
      src/main/resources/mapper/EntrustAlterApplyMapper.xml

@ -96,7 +96,7 @@ public class CaseEventController {
Entrustment one = entrustmentService.getOne(Wrappers.<Entrustment>lambdaQuery().eq(Entrustment::getCaseId, id));
cevo.setEntrustmentType(one.getEntrustmentType());
// cevo.setType(one.getType());
cevo.setOldIdentificationResult(one.getOldIdentificationResult());
return R.ok(cevo);
}
@ -242,7 +242,7 @@ public class CaseEventController {
entrustmentService.update(Wrappers.<Entrustment>lambdaUpdate()
.eq(Entrustment::getId, dto.getEntrustId())
.set(Entrustment::getEntrustmentType, dto.getEntrustmentType())
// .set(StrUtil.isNotBlank(dto.getType()), Entrustment::getType, dto.getType())
.set(StrUtil.isNotBlank(dto.getOldIdentificationResult()), Entrustment::getOldIdentificationResult, dto.getOldIdentificationResult())
);
}
return R.ok(caseEvent, "保存案件信息成功");

@ -97,10 +97,8 @@ public class UpdateCaseAndEntrustTypeDTO {
@ApiModelProperty(value="委托类型: 0=常规毒品, 1=生物样本")
private Integer entrustmentType;
/**
* 20250121 新增的一个委托类型选择生物样本类型后需要区分是 0 委托1 初筛 2 两社人员 3 其他人员 常规毒品 0 委托 1 初筛其他的不需要区分
* 存字符串不用code表达
*/
@ApiModelProperty("新增的一个委托类型,选择生物样本类型后需要区分是 0 委托、1 初筛、 2 两社人员、 3 其他人员, 常规毒品 0 委托 1 初筛,其他的不需要区分")
private String type;
@ApiModelProperty(value="原鉴定结果(鉴定情况)," +
"常规毒品:首次鉴定、初筛(不要报告、只要结果)、补充鉴定、重新鉴定;" +
"生物样本:首次鉴定、初筛(不要报告、只要结果)、涉缅人员、自愿戒治人员、补充鉴定、重新鉴定")
private String oldIdentificationResult;
}

@ -214,7 +214,7 @@ public class Entrustment extends BaseEntity {
/**
* 原鉴定结果
*/
@ApiModelProperty(value="原鉴定结果," +
@ApiModelProperty(value="原鉴定结果(鉴定情况)," +
"常规毒品:首次鉴定、初筛(不要报告、只要结果)、补充鉴定、重新鉴定;" +
"生物样本:首次鉴定、初筛(不要报告、只要结果)、涉缅人员、自愿戒治人员、补充鉴定、重新鉴定")
private String oldIdentificationResult;

@ -517,6 +517,11 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl<En
throw new RuntimeException(String.format("没有找到 id 为 %s 的委托", im.getEntrustmentId()));
}
// 对已经审核过的委托进行处理
if (entrustment.getStatus().compareTo(EntrustmentStatusConstants.ENTRUSTMENT_STATUS_WAITING_CONFIRM.getStatus()) >= 0) {
return null;
}
if (entrustment.getStatus() != EntrustmentStatusConstants.ENTRUSTMENT_STATUS_WAITING_CHECK.getStatus()) {
throw new RuntimeException("委托不在待审核状态");
}
@ -780,10 +785,11 @@ public class EntrustmentIdentificationMaterialServiceImpl extends ServiceImpl<En
im.setSample2Quantity(identificationMaterial.getSample2Quantity());
im.setSample2BoxId(identificationMaterial.getSample2BoxId());
if ((identificationMaterial.getSample1Quantity() == null) ||
(identificationMaterial.getSample1Quantity().equals(BigDecimal.ZERO))) {
throw new RuntimeException(String.format("样本1的数量不能为空, 也不能为 0"));
}
// 20250218 陈科长提出的不要复称
// if ((identificationMaterial.getSample1Quantity() == null) ||
// (identificationMaterial.getSample1Quantity().equals(BigDecimal.ZERO))) {
// throw new RuntimeException(String.format("样本1的数量不能为空, 也不能为 0"));
// }
if (StrUtil.isBlank(identificationMaterial.getSample1No())) {
im.setSample1No(sampleService.getNewSampleNo(im.getImNo(), 1));
}

@ -31,10 +31,8 @@ public class CaseEventVO extends CaseEvent {
@ApiModelProperty(value="委托类型: 0=常规毒品, 1=生物样本")
private Integer entrustmentType;
/**
* 20250121 新增的一个委托类型选择生物样本类型后需要区分是 0 委托1 初筛 2 两社人员 3 其他人员 常规毒品 0 委托 1 初筛其他的不需要区分
* 存字符串不用code表达
*/
@ApiModelProperty("新增的一个委托类型,选择生物样本类型后需要区分是 0 委托、1 初筛、 2 两社人员、 3 其他人员, 常规毒品 0 委托 1 初筛,其他的不需要区分")
private String type;
@ApiModelProperty(value="原鉴定结果(鉴定情况)," +
"常规毒品:首次鉴定、初筛(不要报告、只要结果)、补充鉴定、重新鉴定;" +
"生物样本:首次鉴定、初筛(不要报告、只要结果)、涉缅人员、自愿戒治人员、补充鉴定、重新鉴定")
private String oldIdentificationResult;
}

@ -119,6 +119,11 @@ public class EntrustAlterApplyVO {
@ApiModelProperty(value="委托类型: 0=常规毒品, 1=生物样本")
private Integer entrustmentType;
@ApiModelProperty(value="原鉴定结果(鉴定情况)," +
"常规毒品:首次鉴定、初筛(不要报告、只要结果)、补充鉴定、重新鉴定;" +
"生物样本:首次鉴定、初筛(不要报告、只要结果)、涉缅人员、自愿戒治人员、补充鉴定、重新鉴定")
private String oldIdentificationResult;
@TableField(exist = false)
private static final long serialVersionUID = 1L;

@ -86,7 +86,10 @@
org.name AS case_org_name,
org.alias AS case_org_short_name,
e.accept_no,
(SELECT user.name
e.entrustment_type,
e.old_identification_result,
(
SELECT user.name
FROM dlp_base.sys_user user
WHERE user.user_id=cj.create_by
) AS case_create_user_name
@ -102,7 +105,8 @@
) AS case_area_name
FROM b_case_event cj
LEFT JOIN dlp_base.sys_org org ON org.org_id=cj.case_own_org_id
LEFT JOIN dlp_base.sys_org org
ON org.org_id=cj.case_own_org_id
LEFT JOIN b_entrustment e ON cj.id=e.case_id
${ew.customSqlSegment}
</select>

@ -35,7 +35,8 @@
eaa.*,
ce.case_name,
ce.id as case_id,
e.entrustment_type
e.entrustment_type,
e.old_identification_result
FROM
b_entrust_alter_apply eaa
LEFT JOIN b_entrustment e ON eaa.entrust_id = e.id

Loading…
Cancel
Save