feat: 获取企标计划列表新增排除id
This commit is contained in:
+18
-5
@@ -10,6 +10,7 @@ import lombok.NoArgsConstructor;
|
|||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -93,15 +94,27 @@ public class ESPlanQueryDTO {
|
|||||||
@ApiModelProperty(value = "项目状态列表,流程中用")
|
@ApiModelProperty(value = "项目状态列表,流程中用")
|
||||||
private List<String> projectStatusList;
|
private List<String> projectStatusList;
|
||||||
|
|
||||||
public void transIdsToList() {
|
@ApiModelProperty(value = "排除Id列表,流程中用")
|
||||||
if (StrUtil.isBlank(this.selections)) {
|
private String excludeIds;
|
||||||
return;
|
|
||||||
|
@JSONField(serialize = false)
|
||||||
|
@ApiModelProperty(value = "排除Id列表,流程中用")
|
||||||
|
private List<String> excludeIdList;
|
||||||
|
|
||||||
|
public List<String> transIdsToList(String values) {
|
||||||
|
if (StrUtil.isBlank(values)) {
|
||||||
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
this.idList = StrUtil.split(this.selections, StrUtil.COMMA);
|
return StrUtil.split(values, StrUtil.COMMA);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSelections(String selections) {
|
public void setSelections(String selections) {
|
||||||
this.selections = selections;
|
this.selections = selections;
|
||||||
this.transIdsToList();
|
this.idList = transIdsToList(selections);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExcludeIds(String excludeIds) {
|
||||||
|
this.excludeIds = excludeIds;
|
||||||
|
this.excludeIdList = transIdsToList(excludeIds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+6
@@ -185,6 +185,12 @@
|
|||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
<if test="param.excludeIdList != null and param.excludeIdList.size() > 0">
|
||||||
|
AND p.id NOT IN
|
||||||
|
<foreach item="item" index="index" collection="param.excludeIdList" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getDetailById" resultType="com.jero.modules.laws.enterprise.entity.EnterpriseStandardPlan">
|
<select id="getDetailById" resultType="com.jero.modules.laws.enterprise.entity.EnterpriseStandardPlan">
|
||||||
|
|||||||
Reference in New Issue
Block a user