|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
package com.supervision.police.dto.caseScore;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@ -16,8 +18,11 @@ public class CaseScoreDetailDTO {
|
|
|
|
|
@Schema(description = "共性指标分数")
|
|
|
|
|
private Integer commonScore;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "入罪指标分数")
|
|
|
|
|
private Integer crimeScore;
|
|
|
|
|
@Schema(description = "入罪/出罪指标分数")
|
|
|
|
|
private Integer specificCrimeScore;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "总分数")
|
|
|
|
|
private Integer totalScore;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "分数描述")
|
|
|
|
|
private String scoreDesc;
|
|
|
|
@ -49,5 +54,46 @@ public class CaseScoreDetailDTO {
|
|
|
|
|
@Schema(description = "缺失的原子指标数量")
|
|
|
|
|
private Integer missAtomicIndexCount;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 公共指标描述
|
|
|
|
|
private String commonIndexDesc;
|
|
|
|
|
|
|
|
|
|
// 出罪\入罪指标描述
|
|
|
|
|
private String specificCrimeIndexDesc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void buildDesc(){
|
|
|
|
|
if (CollUtil.isNotEmpty(this.getCommonIndexDescList())){
|
|
|
|
|
StringBuilder append = new StringBuilder();
|
|
|
|
|
for (int i = 0; i < this.getCommonIndexDescList().size(); i++) {
|
|
|
|
|
String text = this.getCommonIndexDescList().get(i);
|
|
|
|
|
if (!StrUtil.endWith(text,"。")){
|
|
|
|
|
text = text + "。";
|
|
|
|
|
}
|
|
|
|
|
if (i > 0){
|
|
|
|
|
append.append("\t");
|
|
|
|
|
}
|
|
|
|
|
append.append(i+1).append(".\t").append(text);
|
|
|
|
|
if (i < this.getCommonIndexDescList().size()-1){
|
|
|
|
|
append.append("\n");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.setCommonIndexDesc(append.toString());
|
|
|
|
|
|
|
|
|
|
append = new StringBuilder();
|
|
|
|
|
for (int i = 0; i < this.getSpecificCrimeIndexDescList().size(); i++) {
|
|
|
|
|
String text = this.getSpecificCrimeIndexDescList().get(i);
|
|
|
|
|
if (!StrUtil.endWith(text,"。")){
|
|
|
|
|
text = text + "。";
|
|
|
|
|
}
|
|
|
|
|
if (i > 0){
|
|
|
|
|
append.append("\t");
|
|
|
|
|
}
|
|
|
|
|
append.append(i+1).append(".\t").append(text);
|
|
|
|
|
if (i < this.getSpecificCrimeIndexDescList().size()-1){
|
|
|
|
|
append.append("\n");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.setSpecificCrimeIndexDesc(append.toString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|