fix: 81668

This commit is contained in:
2024-02-04 14:56:24 +08:00
parent 58100ffcb8
commit c7e046a447
2 changed files with 22 additions and 2 deletions
@@ -133,6 +133,10 @@ public class ESQueryCommonDTO {
@ApiModelProperty(value = "复审计划-复审结果")
private String recheckResult;
@ApiModelProperty(value = "复审计划-复审结果")
@JSONField(serialize = false)
private List<String> recheckResultList;
public void transIdsToList() {
if (StrUtil.isBlank(this.selections)) {
return;
@@ -144,4 +148,16 @@ public class ESQueryCommonDTO {
this.selections = selections;
this.transIdsToList();
}
public void setRecheckResult(String recheckResult) {
this.recheckResult = recheckResult;
this.transIdsToList();
}
public void transResultsToList() {
if (StrUtil.isBlank(this.recheckResult)) {
return;
}
this.recheckResultList = StrUtil.split(this.recheckResult, StrUtil.COMMA);
}
}
@@ -26,6 +26,7 @@
<select id="page" resultType="com.jero.modules.laws.enterprise.entity.vo.EnterpriseStandardRecheckPlanVo">
SELECT
p.id,
p.create_time,
s.id AS standardId,
s.standard_number AS standardNo,
s.standard_name AS standardName,
@@ -72,8 +73,11 @@
AND s.main_drafting_unit = #{param.mainDraftingUnit}
</if>
<!--复审结果-->
<if test="param.recheckResult != null and param.recheckResult != ''">
AND p.recheck_result IN #{param.recheckResult}
<if test="param.recheckResultList != null and param.recheckResultList.size() > 0">
AND p.recheck_result IN
<foreach item="item" index="index" collection="param.recheckResultList" open="(" separator="," close=")">
#{item}
</foreach>
</if>
GROUP BY
s.standard_number, p.create_time