修改字典写入和查询的root字段

main
expressgy 3 months ago
parent 255f1ccc5b
commit c7c8458711
  1. 4
      src/application/core-dict/core-dict.service.ts

@ -255,7 +255,7 @@ export class CoreDictService {
dictName: createCoreDictDto.dictName, dictName: createCoreDictDto.dictName,
dictIcon: createCoreDictDto.dictIcon, dictIcon: createCoreDictDto.dictIcon,
dictType: createCoreDictDto.dictType, dictType: createCoreDictDto.dictType,
root: isTrueEnum(createCoreDictDto) ? 1 : 0, root: isTrueEnum(createCoreDictDto.root) ? 1 : 0,
orderNum: createCoreDictDto.orderNum, orderNum: createCoreDictDto.orderNum,
serviceKey: createCoreDictDto.serviceKey, serviceKey: createCoreDictDto.serviceKey,
createby: userId, createby: userId,
@ -303,7 +303,7 @@ export class CoreDictService {
); );
// ? 是否查pac的数据 // ? 是否查pac的数据
wl.push(eq(pacCoreDict.root, isTrueEnum(data['root']) ? 0 : 1).if(isExistKey(data, 'root') && isTrueEnum(data['root']))); wl.push(eq(pacCoreDict.root, isTrueEnum(data['root']) ? 1 : 0).if(isExistKey(data, 'root')));
// ? 按照层级查 // ? 按照层级查
wl.push(eq(pacCoreDict.pid, data.hierarchy).if(isExistKey(data, 'hierarchy'))); wl.push(eq(pacCoreDict.pid, data.hierarchy).if(isExistKey(data, 'hierarchy')));

Loading…
Cancel
Save