1. 修改 bug
parent
b5ef604f49
commit
1fa9b1d4ac
@ -1,83 +1,63 @@
|
||||
package com.supervision.police.dto;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.supervision.police.domain.NoteRecord;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class NoteRecordDTO {
|
||||
|
||||
@Schema(description = "笔录ID")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 案件id
|
||||
*/
|
||||
@Schema(description = "案件ID")
|
||||
private String caseId;
|
||||
|
||||
/**
|
||||
* 笔录名称
|
||||
*/
|
||||
@Schema(description = "笔录名称")
|
||||
private String recordName;
|
||||
|
||||
/**
|
||||
* 笔录文件id集合
|
||||
*/
|
||||
private List<String> fileIdList;
|
||||
|
||||
@Schema(description = "文件ID")
|
||||
private String fileIds;
|
||||
|
||||
@Schema(description = "笔录人员id")
|
||||
private String personId;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
@Schema(description = "案件人员ID")
|
||||
private String casePersonId;
|
||||
|
||||
@Schema(description = "案件人员身份证号")
|
||||
private String casePersonIdCard;
|
||||
|
||||
|
||||
@Schema(description = "姓名")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 角色
|
||||
*/
|
||||
|
||||
@Schema(description = "角色")
|
||||
private String role;
|
||||
|
||||
/**
|
||||
* 供述材料
|
||||
*/
|
||||
|
||||
@Schema(description = "供述材料数量")
|
||||
private Integer confessionMaterial;
|
||||
|
||||
/**
|
||||
* 询问人
|
||||
*/
|
||||
|
||||
@Schema(description = "询问人")
|
||||
private String lawAsker;
|
||||
|
||||
/**
|
||||
* 供述开始时间
|
||||
*/
|
||||
|
||||
@Schema(description = "供述开始时间")
|
||||
private String confessionStartTime;
|
||||
|
||||
/**
|
||||
* 供述结束时间
|
||||
*/
|
||||
@Schema(description = "供述结束时间")
|
||||
private String confessionEndTime;
|
||||
|
||||
public NoteRecord toNoteRecord(){
|
||||
NoteRecord noteRecord = new NoteRecord();
|
||||
noteRecord.setId(id);
|
||||
noteRecord.setCaseId(caseId);
|
||||
noteRecord.setRecordName(recordName);
|
||||
if (CollUtil.isNotEmpty(fileIdList)){
|
||||
noteRecord.setFileIds(CollUtil.join(fileIdList, ","));
|
||||
}
|
||||
noteRecord.setName(name);
|
||||
noteRecord.setRole(role);
|
||||
noteRecord.setConfessionMaterial(confessionMaterial);
|
||||
noteRecord.setLawAsker(lawAsker);
|
||||
noteRecord.setConfessionStartTime(confessionStartTime);
|
||||
noteRecord.setConfessionEndTime(confessionEndTime);
|
||||
noteRecord.setCasePersonId(personId);
|
||||
return noteRecord;
|
||||
}
|
||||
@Schema(description = "排序序号")
|
||||
private Integer indexNum;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,12 @@
|
||||
package com.supervision.police.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.supervision.police.domain.NoteRecord;
|
||||
import com.supervision.police.dto.NoteRecordDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface NoteRecordService extends IService<NoteRecord> {
|
||||
|
||||
List<NoteRecordDTO> selectNoteRecordDTOList(NoteRecord noteRecord);
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package com.supervision.police.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.police.domain.NoteRecord;
|
||||
import com.supervision.police.dto.NoteRecordDTO;
|
||||
import com.supervision.police.mapper.NoteRecordMapper;
|
||||
import com.supervision.police.service.NoteRecordService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class NoteRecordServiceImpl extends ServiceImpl<NoteRecordMapper, NoteRecord>
|
||||
implements NoteRecordService {
|
||||
@Override
|
||||
public List<NoteRecordDTO> selectNoteRecordDTOList(NoteRecord noteRecord) {
|
||||
return super.getBaseMapper().selectNoteRecordDTOList(noteRecord);
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.supervision.police.vo;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.supervision.police.domain.NoteRecord;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class NoteRecordReqVO {
|
||||
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 案件id
|
||||
*/
|
||||
private String caseId;
|
||||
|
||||
/**
|
||||
* 笔录名称
|
||||
*/
|
||||
private String recordName;
|
||||
|
||||
/**
|
||||
* 笔录文件id集合
|
||||
*/
|
||||
private List<String> fileIdList;
|
||||
|
||||
|
||||
@Schema(description = "笔录人员id")
|
||||
private String personId;
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 角色
|
||||
*/
|
||||
private String role;
|
||||
|
||||
/**
|
||||
* 供述材料
|
||||
*/
|
||||
private Integer confessionMaterial;
|
||||
|
||||
/**
|
||||
* 询问人
|
||||
*/
|
||||
private String lawAsker;
|
||||
|
||||
/**
|
||||
* 供述开始时间
|
||||
*/
|
||||
private String confessionStartTime;
|
||||
|
||||
/**
|
||||
* 供述结束时间
|
||||
*/
|
||||
private String confessionEndTime;
|
||||
|
||||
public NoteRecord toNoteRecord(){
|
||||
NoteRecord noteRecord = new NoteRecord();
|
||||
noteRecord.setId(id);
|
||||
noteRecord.setCaseId(caseId);
|
||||
noteRecord.setRecordName(recordName);
|
||||
if (CollUtil.isNotEmpty(fileIdList)){
|
||||
noteRecord.setFileIds(CollUtil.join(fileIdList, ","));
|
||||
}
|
||||
noteRecord.setName(name);
|
||||
noteRecord.setRole(role);
|
||||
noteRecord.setConfessionMaterial(confessionMaterial);
|
||||
noteRecord.setLawAsker(lawAsker);
|
||||
noteRecord.setConfessionStartTime(confessionStartTime);
|
||||
noteRecord.setConfessionEndTime(confessionEndTime);
|
||||
noteRecord.setCasePersonId(personId);
|
||||
return noteRecord;
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue