fix(征求意见流程): 查询条文详情根据目录id
This commit is contained in:
+11
@@ -446,6 +446,17 @@ public class DocumentSplitController {
|
|||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标准拆分详情-查询条文详情根据目录id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "标准拆分详情-查询条文详情根据目录id")
|
||||||
|
@ApiOperation(value = "标准拆分详情-查询条文详情根据目录id")
|
||||||
|
@PostMapping("/queryItemValueByMenuId")
|
||||||
|
public Result<String> queryItemValueByMenuId(String menuId) {
|
||||||
|
return Result.OK(MessageUtils.getMessage(ResultCommon.OK), documentSplitService.queryItemValueByMenuId(menuId));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 标准拆分详情-重新处理条文详情
|
* 标准拆分详情-重新处理条文详情
|
||||||
* @param isAsmsImport
|
* @param isAsmsImport
|
||||||
|
|||||||
+7
@@ -230,4 +230,11 @@ public interface IDocumentSplitService {
|
|||||||
* @param serialNumber
|
* @param serialNumber
|
||||||
*/
|
*/
|
||||||
void disposeItemVal(String isAsmsImport, String serialNumber);
|
void disposeItemVal(String isAsmsImport, String serialNumber);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标准拆分详情-查询条文详情根据目录id
|
||||||
|
* @param menuId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
String queryItemValueByMenuId(String menuId);
|
||||||
}
|
}
|
||||||
|
|||||||
+14
@@ -1468,6 +1468,20 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String queryItemValueByMenuId(String menuId) {
|
||||||
|
LawsDocumentSplit lawsDocumentSplit = documentSplitMapper.selectOne(new LambdaQueryWrapper<LawsDocumentSplit>()
|
||||||
|
.eq(LawsDocumentSplit::getMenuId, menuId));
|
||||||
|
if (!Objects.isNull(lawsDocumentSplit)){
|
||||||
|
SarFileSplitItemsValEO sarFileSplitItemsValEO = new SarFileSplitItemsValEO();
|
||||||
|
sarFileSplitItemsValEO.setItemId(lawsDocumentSplit.getId());
|
||||||
|
sarFileSplitItemsValEO.setType("TEXT");
|
||||||
|
List<SarFileSplitItemsValEO> list = sarFileSplitItemsValEOService.queryList(sarFileSplitItemsValEO);
|
||||||
|
return list.stream().map(SarFileSplitItemsValEO::getItemContent).collect(Collectors.joining("\n\r"));
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
private void manageData(Map<String, Object> resultMap, StringBuilder fieldsBuilder, List<String> valuesList) {
|
private void manageData(Map<String, Object> resultMap, StringBuilder fieldsBuilder, List<String> valuesList) {
|
||||||
// 所有key(字段名)
|
// 所有key(字段名)
|
||||||
resultMap.forEach((k, v) -> {
|
resultMap.forEach((k, v) -> {
|
||||||
|
|||||||
+1
@@ -54,4 +54,5 @@ public interface SarFileSplitItemsValEOMapper extends BaseMapper<SarFileSplitIte
|
|||||||
|
|
||||||
List<SarFileSplitItemsValEO> queryByPage(SarFileSplitItemsValEOPage page);
|
List<SarFileSplitItemsValEO> queryByPage(SarFileSplitItemsValEOPage page);
|
||||||
|
|
||||||
|
List<SarFileSplitItemsValEO> queryList(@Param("sarFileSplitItemsValEO") SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-1
@@ -310,5 +310,16 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="queryList" resultType="com.jero.modules.split.entity.SarFileSplitItemsValEO">
|
||||||
|
select * from SAR_FILE_SPLIT_ITEMS_VAL
|
||||||
|
<where>
|
||||||
|
valid_flag = 0
|
||||||
|
<if test="sarFileSplitItemsValEO.itemId != null and sarFileSplitItemsValEO.itemId != ''">
|
||||||
|
and item_id = #{sarFileSplitItemsValEO.itemId}
|
||||||
|
</if>
|
||||||
|
<if test="sarFileSplitItemsValEO.type != null and sarFileSplitItemsValEO.type != ''">
|
||||||
|
and type = #{sarFileSplitItemsValEO.type}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
+2
@@ -36,4 +36,6 @@ public interface ISarFileSplitItemsValEOService extends IService<SarFileSplitIte
|
|||||||
List<SarFileSplitItemsValEO> queryByPage(SarFileSplitItemsValEOPage page);
|
List<SarFileSplitItemsValEO> queryByPage(SarFileSplitItemsValEOPage page);
|
||||||
|
|
||||||
int insertForeach(List<SarFileSplitItemsValEO> itemValList);
|
int insertForeach(List<SarFileSplitItemsValEO> itemValList);
|
||||||
|
|
||||||
|
List<SarFileSplitItemsValEO> queryList(SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||||
}
|
}
|
||||||
|
|||||||
+5
@@ -102,4 +102,9 @@ public class SarFileSplitItemsValEOServiceImpl extends ServiceImpl<SarFileSplitI
|
|||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<SarFileSplitItemsValEO> queryList(SarFileSplitItemsValEO sarFileSplitItemsValEO) {
|
||||||
|
return dao.queryList(sarFileSplitItemsValEO);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user