Browse Source

v1.0

lwx_v1
liwenxuan 2 years ago
parent
commit
807c1272da
  1. 9
      src/main/java/com/hxgk/lowcode/controller/AssociatedFormsController.java
  2. 3
      src/main/java/com/hxgk/lowcode/service/CustomerFormService.java
  3. 8
      src/main/java/com/hxgk/lowcode/service/impl/CustomerFormServiceImpl.java

9
src/main/java/com/hxgk/lowcode/controller/AssociatedFormsController.java

@ -1,5 +1,6 @@
package com.hxgk.lowcode.controller;
import com.hxgk.lowcode.model.entity.SystemRole;
import com.hxgk.lowcode.model.entity.Tree;
import com.hxgk.lowcode.service.CustomerFormService;
import com.hxgk.lowcode.service.HrService;
@ -7,6 +8,7 @@ import com.hxgk.lowcode.utils.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.Map;
/*
@ -49,4 +51,11 @@ public class AssociatedFormsController {
return JsonData.buildSuccess(tree);
}
/*获取系统角色列表*/
@RequestMapping(value = "AssociatedForms/getRoleList")
public JsonData getRoleList() {
ArrayList<SystemRole> serviceRoleList = customerFormService.getRoleList();
return JsonData.buildSuccess(serviceRoleList);
}
}

3
src/main/java/com/hxgk/lowcode/service/CustomerFormService.java

@ -2,6 +2,7 @@ package com.hxgk.lowcode.service;
import com.hxgk.lowcode.model.entity.CustomerFormView;
import com.hxgk.lowcode.model.entity.SystemRole;
import com.hxgk.lowcode.model.entity.Tree;
import java.util.ArrayList;
@ -10,4 +11,6 @@ public interface CustomerFormService {
Tree getCustomerFormList(String key, String token);
Tree getFieldTree(String key,String token,String cfid);
ArrayList<SystemRole> getRoleList();
}

8
src/main/java/com/hxgk/lowcode/service/impl/CustomerFormServiceImpl.java

@ -357,5 +357,13 @@ public class CustomerFormServiceImpl implements CustomerFormService {
}
@Override
public ArrayList<SystemRole> getRoleList() {
//得到所有启用的系统角色(state=1的)
ArrayList<SystemRole> roleList = systemRoleService.getAllRole();
return roleList;
}
}

Loading…
Cancel
Save