7 changed files with 199 additions and 3 deletions
@ -0,0 +1,37 @@ |
|||||
|
package com.yxt.supervise.feign.crm; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:07 |
||||
|
*/ |
||||
|
@ApiModel(value = "贷款银行信息 数据传输对象", description = "贷款银行信息 数据传输对象") |
||||
|
@Data |
||||
|
public class LoanBankInformationDto implements Dto { |
||||
|
@ApiModelProperty("id") |
||||
|
private String id; |
||||
|
@ApiModelProperty("sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("银行名称") |
||||
|
private String bankName; |
||||
|
@ApiModelProperty("银行简称") |
||||
|
private String bankAbbreviation; |
||||
|
@ApiModelProperty("地址") |
||||
|
private String address; |
||||
|
@ApiModelProperty("省") |
||||
|
private String province; |
||||
|
@ApiModelProperty("市") |
||||
|
private String city; |
||||
|
@ApiModelProperty("区") |
||||
|
private String county; |
||||
|
@ApiModelProperty("联系人") |
||||
|
private String contacts; |
||||
|
@ApiModelProperty("电话") |
||||
|
private String telephone; |
||||
|
@ApiModelProperty("上级sid") |
||||
|
private String pSid; |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.yxt.supervise.feign.crm; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/11 16:08 |
||||
|
*/ |
||||
|
@ApiModel(value = "贷款银行信息 查询条件", description = "贷款银行信息 查询条件") |
||||
|
@Data |
||||
|
public class LoanBankInformationQuery implements Query { |
||||
|
@ApiModelProperty("id") |
||||
|
private Integer id; |
||||
|
@ApiModelProperty("sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("银行名称") |
||||
|
private String bankName; |
||||
|
@ApiModelProperty("银行简称") |
||||
|
private String bankAbbreviation; |
||||
|
@ApiModelProperty("地址") |
||||
|
private String address; |
||||
|
@ApiModelProperty("省") |
||||
|
private String province; |
||||
|
@ApiModelProperty("市") |
||||
|
private String city; |
||||
|
@ApiModelProperty("区") |
||||
|
private String county; |
||||
|
@ApiModelProperty("联系人") |
||||
|
private String contacts; |
||||
|
@ApiModelProperty("电话") |
||||
|
private String telephone; |
||||
|
@ApiModelProperty("上级sid") |
||||
|
private String pSid; |
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
package com.yxt.supervise.system.crm; |
||||
|
|
||||
|
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.feign.crm.BankManagerDto; |
||||
|
import com.yxt.supervise.feign.crm.BankManagerFeign; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/23 11:49 |
||||
|
*/ |
||||
|
@Api(tags = "银行负责人信息") |
||||
|
@RestController |
||||
|
@RequestMapping("v1/bankmanager") |
||||
|
public class BankManagerRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private BankManagerFeign bankManagerFeign; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("删除") |
||||
|
@DeleteMapping("/delete") |
||||
|
public ResultBean del(@RequestBody String[] sids) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
bankManagerFeign.del(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
@ApiOperation("保存") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody BankManagerDto dto){ |
||||
|
return bankManagerFeign.save(dto); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,56 @@ |
|||||
|
package com.yxt.supervise.system.crm; |
||||
|
|
||||
|
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.feign.crm.BankInformationFeign; |
||||
|
import com.yxt.supervise.feign.crm.LoanBankInformationDto; |
||||
|
import com.yxt.supervise.feign.crm.LoanBankInformationQuery; |
||||
|
import com.yxt.supervise.feign.crm.LoanBankInformationVo; |
||||
|
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/11/7 16:14 |
||||
|
*/ |
||||
|
@Api(tags = "贷款银行信息") |
||||
|
@RestController |
||||
|
@RequestMapping("v1/loanbankinformation") |
||||
|
public class LoanBankInformationRest { |
||||
|
|
||||
|
@Autowired |
||||
|
BankInformationFeign bankInformationFeign; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<LoanBankInformationVo>> listPage(@RequestBody PagerQuery<LoanBankInformationQuery> pq) { |
||||
|
return bankInformationFeign.listPage(pq); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("保存") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody LoanBankInformationDto dto) { |
||||
|
return bankInformationFeign.save(dto); |
||||
|
} |
||||
|
@ApiOperation("根据sid查询") |
||||
|
@GetMapping("/getBankInfBySid/{sid}") |
||||
|
public ResultBean getBankInformation(@PathVariable String sid){ |
||||
|
return bankInformationFeign.getBankInformation(sid); |
||||
|
} |
||||
|
@ApiOperation("删除") |
||||
|
@DeleteMapping("/delete/{sid}") |
||||
|
public ResultBean delete(@PathVariable String sid) { |
||||
|
return bankInformationFeign.delete(sid); |
||||
|
} |
||||
|
@ApiOperation("修改") |
||||
|
@PostMapping("/update") |
||||
|
public ResultBean update(@RequestBody LoanBankInformationDto dto){ |
||||
|
return bankInformationFeign.update(dto); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue