pad接口-退货-退货指令列表 可根据退货指令id或单号精准匹配
This commit is contained in:
parent
826b17adf8
commit
18b0319068
|
|
@ -77,6 +77,11 @@ public class InvoicingThdMainEntity implements Serializable {
|
|||
*/
|
||||
private String searchContent;
|
||||
|
||||
/**
|
||||
* 前后台交互用字段
|
||||
*/
|
||||
private String refreshDataKey;
|
||||
|
||||
/**
|
||||
* 发起人姓名
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -26,6 +26,13 @@
|
|||
or baseInfo.nu_name LIKE CONCAT('%', #{dto.searchContent}, '%')
|
||||
or main.nu_id LIKE CONCAT('%', #{dto.searchContent}, '%')
|
||||
or main.thd_no LIKE CONCAT('%', #{dto.searchContent}, '%')
|
||||
or main.id = #{dto.searchContent}
|
||||
)
|
||||
</if>
|
||||
<if test="dto.refreshDataKey != null and dto.refreshDataKey != ''">
|
||||
AND (
|
||||
main.thd_no = #{dto.refreshDataKey}
|
||||
or main.id = #{dto.refreshDataKey}
|
||||
)
|
||||
</if>
|
||||
<if test="dto.status != null and dto.status != ''">
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public class ConfigServiceDirectiveServiceImpl extends ServiceImpl<ConfigService
|
|||
if (list_.getRecords() == null || list_.getRecords().isEmpty()) {
|
||||
return list_.getRecords();
|
||||
}
|
||||
configServiceDirective.setIzEnabled("Y");
|
||||
// configServiceDirective.setIzEnabled("Y");
|
||||
List<ConfigServiceDirective> list = baseMapper.pageList(configServiceDirective, list_.getRecords());
|
||||
//处理服务标签字段
|
||||
if (list != null && !list.isEmpty()) {
|
||||
|
|
@ -375,11 +375,11 @@ public class ConfigServiceDirectiveServiceImpl extends ServiceImpl<ConfigService
|
|||
});
|
||||
|
||||
// 查询未删除并带标签的所有服务指令
|
||||
List<ConfigServiceDirective> directives = baseMapper.getActiveDirectivesWithTags();
|
||||
// List<ConfigServiceDirective> directives = baseMapper.getActiveDirectivesWithTags();
|
||||
|
||||
// 按 typeId 分组
|
||||
Map<String, List<ConfigServiceDirective>> directiveMap = directives.stream()
|
||||
.collect(Collectors.groupingBy(ConfigServiceDirective::getTypeId));
|
||||
// Map<String, List<ConfigServiceDirective>> directiveMap = directives.stream()
|
||||
// .collect(Collectors.groupingBy(ConfigServiceDirective::getTypeId));
|
||||
|
||||
// 获取被引用的各级分类
|
||||
List<InstructionTag> instructions = baseMapper.getUsedInstructionTags();
|
||||
|
|
@ -414,29 +414,29 @@ public class ConfigServiceDirectiveServiceImpl extends ServiceImpl<ConfigService
|
|||
List<ConfigServiceType> typeList = typeMap.get(cat.getId());
|
||||
if (typeList != null) {
|
||||
typeList.sort(Comparator.comparingInt(ConfigServiceType::getSort));
|
||||
for (ConfigServiceType tp : typeList) {
|
||||
typUsing = "Y".equals(tp.getIzEnabled());
|
||||
if ("enabled".equals(filterIzEnabled) && !typUsing) {
|
||||
continue;
|
||||
}
|
||||
TreeNode typeNode = new TreeNode(inst.getId(), cat.getId(), tp.getId(), tp.getId(), tp.getTypeName(), 3, "", tp.getIzEnabled(), tp.getSort(), insUsing && catUsing && typUsing, insUsing && catUsing,"");
|
||||
List<ConfigServiceDirective> dirList = directiveMap.get(tp.getId());
|
||||
if (dirList != null) {
|
||||
dirList.sort(Comparator.comparingInt(ConfigServiceDirective::getSort));
|
||||
for (ConfigServiceDirective dir : dirList) {
|
||||
if ("enabled".equals(filterIzEnabled) && "N".equals(dir.getIzEnabled())) {
|
||||
continue;
|
||||
}
|
||||
TreeNode dirNode = new TreeNode(inst.getId(), cat.getId(), tp.getId(), dir.getId(), dir.getDirectiveName(), 4, cycleTypeMap.get(dir.getCycleType()), dir.getIzEnabled(), dir.getSort(), insUsing && catUsing && typUsing, insUsing && catUsing && typUsing,"");
|
||||
// TreeNode tagNode = new TreeNode(inst.getId(), cat.getId(), tp.getId(), IdUtil.simpleUUID(), "标签", 5, cycleTypeMap.get(dir.getCycleType()), dir.getIzEnabled(), dir.getSort(), insUsing && catUsing && typUsing,insUsing && catUsing && typUsing);
|
||||
// tagNode.setBodyTagList(dir.getBodyTagList());
|
||||
// tagNode.setEmotionTagList(dir.getEmotionTagList());
|
||||
typeNode.addChild(dirNode);
|
||||
// dirNode.addChild(tagNode);
|
||||
}
|
||||
}
|
||||
catNode.addChild(typeNode);
|
||||
}
|
||||
// for (ConfigServiceType tp : typeList) {
|
||||
// typUsing = "Y".equals(tp.getIzEnabled());
|
||||
// if ("enabled".equals(filterIzEnabled) && !typUsing) {
|
||||
// continue;
|
||||
// }
|
||||
// TreeNode typeNode = new TreeNode(inst.getId(), cat.getId(), tp.getId(), tp.getId(), tp.getTypeName(), 3, "", tp.getIzEnabled(), tp.getSort(), insUsing && catUsing && typUsing, insUsing && catUsing,"");
|
||||
// List<ConfigServiceDirective> dirList = directiveMap.get(tp.getId());
|
||||
// if (dirList != null) {
|
||||
// dirList.sort(Comparator.comparingInt(ConfigServiceDirective::getSort));
|
||||
// for (ConfigServiceDirective dir : dirList) {
|
||||
// if ("enabled".equals(filterIzEnabled) && "N".equals(dir.getIzEnabled())) {
|
||||
// continue;
|
||||
// }
|
||||
// TreeNode dirNode = new TreeNode(inst.getId(), cat.getId(), tp.getId(), dir.getId(), dir.getDirectiveName(), 4, cycleTypeMap.get(dir.getCycleType()), dir.getIzEnabled(), dir.getSort(), insUsing && catUsing && typUsing, insUsing && catUsing && typUsing,"");
|
||||
//// TreeNode tagNode = new TreeNode(inst.getId(), cat.getId(), tp.getId(), IdUtil.simpleUUID(), "标签", 5, cycleTypeMap.get(dir.getCycleType()), dir.getIzEnabled(), dir.getSort(), insUsing && catUsing && typUsing,insUsing && catUsing && typUsing);
|
||||
//// tagNode.setBodyTagList(dir.getBodyTagList());
|
||||
//// tagNode.setEmotionTagList(dir.getEmotionTagList());
|
||||
// typeNode.addChild(dirNode);
|
||||
//// dirNode.addChild(tagNode);
|
||||
// }
|
||||
// }
|
||||
// catNode.addChild(typeNode);
|
||||
// }
|
||||
}
|
||||
instNode.addChild(catNode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue