|
@@ -2,9 +2,12 @@ package cn.cslg.pas.controller;
|
|
|
|
|
|
|
|
|
import cn.cslg.pas.common.core.base.Constants;
|
|
|
+import cn.cslg.pas.common.model.cronModel.Records;
|
|
|
import cn.cslg.pas.common.utils.Response;
|
|
|
import cn.cslg.pas.common.utils.StringUtils;
|
|
|
+import cn.cslg.pas.common.dto.AddSelfFieldDTO;
|
|
|
import cn.cslg.pas.common.vo.EntityVO;
|
|
|
+import cn.cslg.pas.common.vo.PersonSelfFieldVO;
|
|
|
import cn.cslg.pas.common.vo.business.ScenarioVO;
|
|
|
import cn.cslg.pas.domain.business.AssoScenarioMatter;
|
|
|
import cn.cslg.pas.domain.business.SystemDict;
|
|
@@ -13,6 +16,7 @@ import cn.cslg.pas.service.business.AssoScenarioMatterService;
|
|
|
import cn.cslg.pas.service.business.CommonService;
|
|
|
import cn.cslg.pas.service.business.ScenarioService;
|
|
|
import cn.cslg.pas.service.business.SystemDictService;
|
|
|
+import cn.cslg.pas.service.common.PersonFieldService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -36,6 +40,8 @@ public class CommonController {
|
|
|
@Autowired
|
|
|
private AssoScenarioMatterService assoScenarioMatterService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private PersonFieldService personFieldService;
|
|
|
@PostMapping("getParams")
|
|
|
@Operation(summary = "获得实体类栏位信息")
|
|
|
public Response getQueryConditions(@RequestBody List<String> tables) {
|
|
@@ -55,6 +61,37 @@ public class CommonController {
|
|
|
return Response.success(map);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @GetMapping("getCustomField")
|
|
|
+ @Operation(summary = "查询个人栏位配置")
|
|
|
+ public Response getCustomField(String tableName) {
|
|
|
+ try {
|
|
|
+ List<PersonSelfFieldVO> personSelfFieldVOS= personFieldService.getCustomField(tableName);
|
|
|
+ Records records =new Records();
|
|
|
+ records.setData(personSelfFieldVOS);
|
|
|
+ return Response.success(records);
|
|
|
+ }
|
|
|
+ catch (Exception e){
|
|
|
+ return Response.error(e.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("setCustomField")
|
|
|
+ @Operation(summary = "设置个人栏位配置")
|
|
|
+ public Response setCustomField(AddSelfFieldDTO addSelfFieldDTO) {
|
|
|
+ try {
|
|
|
+ List<PersonSelfFieldVO> personSelfFieldVOS= personFieldService.setCustomField(addSelfFieldDTO);
|
|
|
+ Records records =new Records();
|
|
|
+ records.setData(personSelfFieldVOS);
|
|
|
+ return Response.success(records);
|
|
|
+ }
|
|
|
+ catch (Exception e){
|
|
|
+ return Response.error(e.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
@GetMapping("/scenario")
|
|
|
@Operation(summary = "查询应用场景")
|
|
|
public List<ScenarioVO> queryAllScenario(){
|