fix: 修复体系Code生成错误
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ public class SystemTreeRule implements IFillRuleHandler {
|
||||
|
||||
@Override
|
||||
public Object execute(JSONObject params, JSONObject formData) {
|
||||
String moduleCode = (String)params.get("module_code");
|
||||
String moduleCode = (String)formData.get("moduleCode");
|
||||
ILawsTreeNodeService lawsTreeNodeService = (ILawsTreeNodeService) SpringContextUtils.getBean("lawsTreeNodeServiceImpl");
|
||||
|
||||
LambdaQueryWrapper<LawsTreeNode> query = new LambdaQueryWrapper<>();
|
||||
|
||||
-1
@@ -22,7 +22,6 @@ import com.jero.modules.tag.entity.LawsTag;
|
||||
import com.jero.modules.tag.enums.TableNameEnum;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
||||
+2
@@ -117,9 +117,11 @@ public class LawsTreeNodeServiceImpl extends ServiceImpl<LawsTreeNodeMapper, Law
|
||||
// 先判断该对象有无父级ID,有则意味着不是最高级,否则意味着是最高级
|
||||
// 获取父级ID
|
||||
String parentId = lawsTreeNode.getParentId();
|
||||
String moduleCode = lawsTreeNode.getModuleCode();
|
||||
//update-begin--Author:baihailong Date:20191209 for:部门编码规则生成器做成公用配置
|
||||
JSONObject formData = new JSONObject();
|
||||
formData.put("parentId", parentId);
|
||||
formData.put("moduleCode", moduleCode);
|
||||
String[] codeArray = (String[]) FillRuleUtil.executeRule(FillRuleConstant.SYSTEM, formData);
|
||||
//update-end--Author:baihailong Date:20191209 for:部门编码规则生成器做成公用配置
|
||||
lawsTreeNode.setNodeCode(codeArray[0]);
|
||||
|
||||
Reference in New Issue
Block a user