feat(多选标准弹框): 标准结构树查询
This commit is contained in:
+6
@@ -104,6 +104,12 @@
|
||||
standard_number <> #{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="vo.ids != null and vo.ids != ''">
|
||||
AND id in
|
||||
<foreach collection="vo.ids.split(',')" item="item" separator="and" open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
<if test="vo.releaseSplitFlag != null and vo.releaseSplitFlag != ''">
|
||||
GROUP BY id
|
||||
|
||||
+10
@@ -1433,6 +1433,16 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
**/
|
||||
@Override
|
||||
public IPage<ManyStandardSelectionBox> getManyStandardSelectionBox(ManyStandardSelectionBoxVO selectionBoxVO, Integer pageNo, Integer pageSize) {
|
||||
if (StringUtils.isNotBlank(selectionBoxVO.getStandardSystem())){
|
||||
List<String> list = Arrays.asList(selectionBoxVO.getStandardSystem().split(","));
|
||||
List<LawsNodeRelation> lawsNodeRelationList = lawsNodeRelationService.list(
|
||||
new LambdaQueryWrapper<LawsNodeRelation>().in(LawsNodeRelation::getNodeId, list));
|
||||
if (CollectionUtils.isNotEmpty(lawsNodeRelationList)){
|
||||
String ids = lawsNodeRelationList.stream()
|
||||
.map(LawsNodeRelation::getUniqueRelationFlag).collect(Collectors.joining(","));
|
||||
selectionBoxVO.setIds(ids);
|
||||
}
|
||||
}
|
||||
Page<ManyStandardSelectionBox> page = new Page<>(pageNo, pageSize);
|
||||
IPage<ManyStandardSelectionBox> manyStandardSelectionBox = lawsCommonMapper.getManyStandardSelectionBox(page, selectionBoxVO);
|
||||
for (ManyStandardSelectionBox data : manyStandardSelectionBox.getRecords()) {
|
||||
|
||||
+6
@@ -34,4 +34,10 @@ public class ManyStandardSelectionBoxVO {
|
||||
|
||||
@ApiModelProperty(value = "拆分状态")
|
||||
private java.lang.String splitState;
|
||||
|
||||
@ApiModelProperty(value = "标准结构树")
|
||||
private String standardSystem;
|
||||
|
||||
@ApiModelProperty(value = "ids")
|
||||
private String ids;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user