13 changed files with 324 additions and 42 deletions
@ -0,0 +1,34 @@ |
|||||
|
package com.yxt.supervise.report.biz.projectinformation; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.supervise.report.feign.crm.projectinformation.ProjectInformationFeign; |
||||
|
import com.yxt.supervise.report.feign.crm.projectinformation.ProjectInformationQuery; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/12 17:10 |
||||
|
*/ |
||||
|
@Api(tags = "项目信息") |
||||
|
@RestController |
||||
|
@RequestMapping("v1/projectinformation") |
||||
|
public class ProjectInformationRest { |
||||
|
@Autowired |
||||
|
ProjectInformationFeign projectInformationFeign; |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean listPage(@RequestBody PagerQuery<ProjectInformationQuery> pq, @RequestHeader("token") String token) { |
||||
|
return projectInformationFeign.listPage(pq, token); |
||||
|
} |
||||
|
@GetMapping("/getProjectType") |
||||
|
public ResultBean getProjectType(){ |
||||
|
return projectInformationFeign.getProjectType(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.yxt.supervise.report.biz.projectstatedictionary; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.report.feign.crm.projectstatedictionary.ProjectStateDictionaryFeign; |
||||
|
import com.yxt.supervise.report.feign.crm.projectstatedictionary.ProjectStateDictionaryVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/10/16 10:06 |
||||
|
*/ |
||||
|
@Api(tags = "项目状态字典") |
||||
|
@RestController |
||||
|
@RequestMapping("projectstatedictionary") |
||||
|
public class ProjectStateDictionaryRest { |
||||
|
@Autowired |
||||
|
ProjectStateDictionaryFeign projectStateDictionaryFeign; |
||||
|
|
||||
|
@ApiOperation("查询全部") |
||||
|
@GetMapping("/listAll") |
||||
|
public ResultBean<List<ProjectStateDictionaryVo>> listAll() { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
|
||||
|
return projectStateDictionaryFeign.listAll(); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
package com.yxt.supervise.report.biz.sysorganization; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.supervise.report.feign.system.sysorganization.SysOrganizationFeign; |
||||
|
import com.yxt.supervise.system.sysorganization.SysOrganizationVo; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/11/6 15:36 |
||||
|
*/ |
||||
|
@RestController("com.yxt.supervise.crm.biz.system.SysOrganizationRest") |
||||
|
@RequestMapping("v1/sysorganization") |
||||
|
public class SysOrganizationRest { |
||||
|
@Autowired |
||||
|
SysOrganizationFeign sysOrganizationFeign; |
||||
|
@ApiOperation("获取组织结构某一组织") |
||||
|
@GetMapping("/getUserListByOrg/{orgCode}") |
||||
|
public ResultBean<List<SysOrganizationVo>> getUserListByOrg(@PathVariable("orgCode")String orgCode){ |
||||
|
return sysOrganizationFeign.getUserListByOrg(orgCode); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 获取组织结构下人员信息 |
||||
|
* @return |
||||
|
*/ |
||||
|
@ApiOperation("获取组织结构下关联项目人员信息") |
||||
|
@GetMapping("/associationUserList/{projectSid}") |
||||
|
public ResultBean<List<SysOrganizationVo>> associationUserList(@PathVariable("projectSid") String projectSid){ |
||||
|
return sysOrganizationFeign.associationUserList(projectSid); |
||||
|
}; |
||||
|
/** |
||||
|
* 获取组织结构下人员信息 |
||||
|
* @return |
||||
|
*/ |
||||
|
@ApiOperation("获取组织结构下人员信息") |
||||
|
@GetMapping("/userList/{projectSid}") |
||||
|
public ResultBean<List<SysOrganizationVo>> userList(@PathVariable("projectSid")String projectSid){ |
||||
|
return sysOrganizationFeign.userList(projectSid); |
||||
|
}; |
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package com.yxt.supervise.report.feign.crm.projectinformation; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/25 9:29 |
||||
|
*/ |
||||
|
@ApiModel(value = "项目信息 查询条件", description = "项目信息 查询条件") |
||||
|
@Data |
||||
|
public class ProjectInformationQuery implements Query { |
||||
|
private String id; |
||||
|
private String sid; |
||||
|
private String entryName; |
||||
|
private String engaDate; |
||||
|
private String creditLimit; |
||||
|
private String signingDate; |
||||
|
private String endDate; |
||||
|
private String regulatoryLeader; |
||||
|
private String generalManager; |
||||
|
private String fillInDate; |
||||
|
private String bankSid; |
||||
|
private String bManagerSid; |
||||
|
private String enterpriseSid; |
||||
|
private String industrySid; |
||||
|
private String typeSid; |
||||
|
private String remarks; |
||||
|
private String projectType; |
||||
|
private String bankName; |
||||
|
private String stateSid; |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package com.yxt.supervise.report.feign.crm.projectstatedictionary; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/11/15 11:40 |
||||
|
*/ |
||||
|
@FeignClient( |
||||
|
contextId = "supervise-crm-projectstatedictionary", |
||||
|
name = "supervise-crm", |
||||
|
path = "projectstatedictionary") |
||||
|
public interface ProjectStateDictionaryFeign { |
||||
|
@ApiOperation("查询全部") |
||||
|
@GetMapping("/listAll") |
||||
|
public ResultBean<List<ProjectStateDictionaryVo>> listAll(); |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.yxt.supervise.report.feign.crm.projectstatedictionary; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/10/16 10:05 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ProjectStateDictionaryVo implements Query { |
||||
|
private String id; |
||||
|
private String sid; |
||||
|
private String name; |
||||
|
private String remarks; |
||||
|
} |
@ -0,0 +1,46 @@ |
|||||
|
package com.yxt.supervise.report.feign.system.sysorganization; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.supervise.system.sysorganization.SysOrganizationVo; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/10/7 15:31 |
||||
|
*/ |
||||
|
@FeignClient( |
||||
|
contextId = "supervise-system-sysorganization", |
||||
|
name = "supervise-system", |
||||
|
path = "v1/sysorganization") |
||||
|
public interface SysOrganizationFeign { |
||||
|
@ApiOperation("获取组织结构下人员信息") |
||||
|
@GetMapping("/userList") |
||||
|
public ResultBean<List<SysOrganizationVo>> userList(); |
||||
|
@ApiOperation("获取一条记录 根据sid") |
||||
|
@ResponseBody |
||||
|
@GetMapping("/fetchBySid/{sid}") |
||||
|
public ResultBean<SysOrganizationVo> fetchBySid(@PathVariable("sid") String sid); |
||||
|
@ApiOperation("获取组织结构某一组织") |
||||
|
@GetMapping("/getUserListByOrg/{orgCode}") |
||||
|
public ResultBean<List<SysOrganizationVo>> getUserListByOrg(@PathVariable("orgCode")String orgCode); |
||||
|
/** |
||||
|
* 获取组织结构下人员信息 |
||||
|
* @return |
||||
|
*/ |
||||
|
@ApiOperation("获取组织结构下关联项目人员信息") |
||||
|
@GetMapping("/associationUserList/{projectSid}") |
||||
|
public ResultBean<List<SysOrganizationVo>> associationUserList(@PathVariable("projectSid") String projectSid); |
||||
|
/** |
||||
|
* 获取组织结构下人员信息 |
||||
|
* @return |
||||
|
*/ |
||||
|
@ApiOperation("获取组织结构下人员信息") |
||||
|
@GetMapping("/userList/{projectSid}") |
||||
|
public ResultBean<List<SysOrganizationVo>> userList(@PathVariable("projectSid")String projectSid); |
||||
|
} |
Loading…
Reference in new issue