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

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

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

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

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

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

@ -86,23 +86,27 @@
org.name AS case_org_name, org.name AS case_org_name,
org.alias AS case_org_short_name, org.alias AS case_org_short_name,
e.accept_no, e.accept_no,
(SELECT user.name e.entrustment_type,
FROM dlp_base.sys_user user e.old_identification_result,
WHERE user.user_id=cj.create_by (
) AS case_create_user_name SELECT user.name
, ( FROM dlp_base.sys_user user
SELECT user.name WHERE user.user_id=cj.create_by
FROM dlp_base.sys_user user ) AS case_create_user_name
WHERE user.user_id=cj.update_by , (
) AS case_update_user_name SELECT user.name
, ( FROM dlp_base.sys_user user
SELECT area.name WHERE user.user_id=cj.update_by
FROM dlp_base.b_area area ) AS case_update_user_name
WHERE area.id=cj.case_area , (
) AS case_area_name SELECT area.name
FROM dlp_base.b_area area
WHERE area.id=cj.case_area
) AS case_area_name
FROM b_case_event cj 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 LEFT JOIN b_entrustment e ON cj.id=e.case_id
${ew.customSqlSegment} ${ew.customSqlSegment}
</select> </select>

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

Loading…
Cancel
Save