Compare commits

..

No commits in common. 'e68b7b46583921548790c31c01781b5c19587315' and 'fd4cc1135ceb9cc7e5d4986d64c76bb821c09178' have entirely different histories.

  1. 25
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/controller/RulexController.java

@ -342,21 +342,18 @@ public class RulexController extends JeecgController<Rulex, IRulexService> {
RuleVo ruleVo = ruleVoList.get(i); RuleVo ruleVo = ruleVoList.get(i);
//对应字段 //对应字段
String fieldId = ruleVo.getFieldId(); String fieldId = ruleVo.getFieldId();
if(fieldId!=null){ LambdaQueryWrapper<Fieldx> rulexLambdaQueryWrapper = new LambdaQueryWrapper<>();
LambdaQueryWrapper<Fieldx> rulexLambdaQueryWrapper = new LambdaQueryWrapper<>(); rulexLambdaQueryWrapper.eq(Fieldx::getFieldName, fieldId);
rulexLambdaQueryWrapper.eq(Fieldx::getFieldName, fieldId); Fieldx byId = iFieldxService.getOne(rulexLambdaQueryWrapper);
Fieldx byId = iFieldxService.getOne(rulexLambdaQueryWrapper); if (byId == null) {
if (byId == null) { iRuleVoService.remove(null);
iRuleVoService.remove(null); message.put("isError", "true");
message.put("isError", "true"); message.put("closeable","true");
message.put("closeable","true"); message.put("status","第"+(i + 1) + "条数据,对应字段输入错误,请核对");
message.put("status","第"+(i + 1) + "条数据,对应字段输入错误,请核对"); webSocketUtils.sendMessage(loginUser.getId(), message);
webSocketUtils.sendMessage(loginUser.getId(), message); return Result.error("第"+(i + 1) +"条数据,对应字段输入错误,请核对");
return Result.error("第"+(i + 1) +"条数据,对应字段输入错误,请核对");
}
rulex.setFieldId(byId.getId());
} }
rulex.setFieldId(byId.getId());
//对应功能 //对应功能
String functionName = ruleVo.getFunctionId(); String functionName = ruleVo.getFunctionId();
LambdaQueryWrapper<Functionx> functionxLambdaQueryWrapper = new LambdaQueryWrapper<Functionx>(); LambdaQueryWrapper<Functionx> functionxLambdaQueryWrapper = new LambdaQueryWrapper<Functionx>();

Loading…
Cancel
Save