Commit f1d35223 authored by 韩桐桐's avatar 韩桐桐

feat(jg):证的详情相关接口

parent 67d2cb78
...@@ -38,6 +38,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -38,6 +38,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest; import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import org.typroject.tyboot.core.restful.utils.ResponseModel; import org.typroject.tyboot.core.restful.utils.ResponseModel;
import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -219,17 +220,17 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr ...@@ -219,17 +220,17 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
* @return * @return
*/ */
public List<Map<String, String>> operationRecord(String sequenceNbr) { public List<Map<String, String>> operationRecord(String sequenceNbr) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
JgUseRegistrationManage jgUseRegistrationManage = this.baseMapper.selectById(sequenceNbr); JgUseRegistrationManage jgUseRegistrationManage = this.baseMapper.selectById(sequenceNbr);
List<JgCertificateChangeRecord> changeRecordList = jgCertificateChangeRecordService.list(new LambdaQueryWrapper<JgCertificateChangeRecord>() List<JgCertificateChangeRecord> changeRecordList = jgCertificateChangeRecordService.list(new LambdaQueryWrapper<JgCertificateChangeRecord>()
.eq(JgCertificateChangeRecord::getUseRegistrationCode, jgUseRegistrationManage.getUseRegistrationCode())); .eq(JgCertificateChangeRecord::getUseRegistrationCode, jgUseRegistrationManage.getUseRegistrationCode()));
return changeRecordList.stream() return changeRecordList.stream()
.map(x -> { .map(x -> {
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
map.put("operatingTime", String.valueOf(x.getRecDate())); map.put("operatingTime", simpleDateFormat.format(x.getRecDate()));
map.put("content", x.getChangeContent()); map.put("content", x.getChangeContent());
return map; return map;
}) }).collect(Collectors.toList());
.collect(Collectors.toList());
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment