12 changed files with 862 additions and 17 deletions
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBank.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBank <br/> |
|||
* Description: 公司开户账号表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "公司开户账号表", description = "公司开户账号表") |
|||
@TableName("fin_manufacturer_bank") |
|||
public class FinManufacturerBank extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("银行账号") |
|||
private String bankAccount; |
|||
@ApiModelProperty("开户银行") |
|||
private String depositBank; |
|||
@ApiModelProperty("账户名称") |
|||
private String accountName; |
|||
@ApiModelProperty("账户类型key") |
|||
private String dueBankKey; |
|||
@ApiModelProperty("账户类型value") |
|||
private String dueBankValue; |
|||
@ApiModelProperty("银行网点") |
|||
private String bankingOutlets; |
|||
@ApiModelProperty("开户行地址") |
|||
private String bankAddress; |
|||
@ApiModelProperty("联行号") |
|||
private String paymentLines; |
|||
@ApiModelProperty("银行代码") |
|||
private String swiftCode; |
|||
@ApiModelProperty("币种") |
|||
private String currency; |
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo <br/> |
|||
* Description: 公司开户账号表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "公司开户账号表 视图数据详情", description = "公司开户账号表 视图数据详情") |
|||
public class FinManufacturerBankDetailsVo implements Vo { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("银行账号") |
|||
private String bankAccount; |
|||
@ApiModelProperty("开户银行") |
|||
private String depositBank; |
|||
@ApiModelProperty("账户名称") |
|||
private String accountName; |
|||
@ApiModelProperty("账户类型key") |
|||
private String dueBankKey; |
|||
@ApiModelProperty("账户类型value") |
|||
private String dueBankValue; |
|||
@ApiModelProperty("银行网点") |
|||
private String bankingOutlets; |
|||
@ApiModelProperty("开户行地址") |
|||
private String bankAddress; |
|||
@ApiModelProperty("联行号") |
|||
private String paymentLines; |
|||
@ApiModelProperty("银行代码") |
|||
private String swiftCode; |
|||
@ApiModelProperty("币种") |
|||
private String currency; |
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankDto.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankDto <br/> |
|||
* Description: 公司开户账号表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "公司开户账号表 数据传输对象", description = "公司开户账号表 数据传输对象") |
|||
public class FinManufacturerBankDto implements Dto { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("银行账号") |
|||
private String bankAccount; |
|||
@ApiModelProperty("开户银行") |
|||
private String depositBank; |
|||
@ApiModelProperty("账户名称") |
|||
private String accountName; |
|||
@ApiModelProperty("账户类型key") |
|||
private String dueBankKey; |
|||
@ApiModelProperty("账户类型value") |
|||
private String dueBankValue; |
|||
@ApiModelProperty("银行网点") |
|||
private String bankingOutlets; |
|||
@ApiModelProperty("开户行地址") |
|||
private String bankAddress; |
|||
@ApiModelProperty("联行号") |
|||
private String paymentLines; |
|||
@ApiModelProperty("银行代码") |
|||
private String swiftCode; |
|||
@ApiModelProperty("币种") |
|||
private String currency; |
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
|
|||
} |
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankFeign.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankFeign <br/> |
|||
* Description: 公司开户账号表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "公司开户账号表") |
|||
@FeignClient( |
|||
contextId = "anrui-fin-FinManufacturerBank", |
|||
name = "anrui-fin", |
|||
path = "v1/finmanufacturerbank", |
|||
fallback = FinManufacturerBankFeignFallback.class) |
|||
public interface FinManufacturerBankFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<FinManufacturerBankVo>> listPage(@RequestBody PagerQuery<FinManufacturerBankQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody FinManufacturerBankDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<FinManufacturerBankDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,70 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankFeignFallback <br/> |
|||
* Description: 公司开户账号表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class FinManufacturerBankFeignFallback implements FinManufacturerBankFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<FinManufacturerBankVo>> listPage(PagerQuery<FinManufacturerBankQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-fin/finmanufacturerbank/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(FinManufacturerBankDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-fin/finmanufacturerbank/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-fin/finmanufacturerbank/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<FinManufacturerBankDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-fin/finmanufacturerbank/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankQuery.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankQuery <br/> |
|||
* Description: 公司开户账号表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "公司开户账号表 查询条件", description = "公司开户账号表 查询条件") |
|||
public class FinManufacturerBankQuery implements Query { |
|||
|
|||
@ApiModelProperty("银行账号") |
|||
private String bankAccount; |
|||
@ApiModelProperty("开户银行") |
|||
private String depositBank; |
|||
@ApiModelProperty("账户名称") |
|||
private String accountName; |
|||
@ApiModelProperty("账户类型key") |
|||
private String dueBankKey; |
|||
@ApiModelProperty("账户类型value") |
|||
private String dueBankValue; |
|||
@ApiModelProperty("银行网点") |
|||
private String bankingOutlets; |
|||
@ApiModelProperty("开户行地址") |
|||
private String bankAddress; |
|||
@ApiModelProperty("联行号") |
|||
private String paymentLines; |
|||
@ApiModelProperty("银行代码") |
|||
private String swiftCode; |
|||
@ApiModelProperty("币种") |
|||
private String currency; |
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo <br/> |
|||
* Description: 公司开户账号表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "公司开户账号表 视图数据对象", description = "公司开户账号表 视图数据对象") |
|||
public class FinManufacturerBankVo implements Vo { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("银行账号") |
|||
private String bankAccount; |
|||
@ApiModelProperty("开户银行") |
|||
private String depositBank; |
|||
@ApiModelProperty("账户名称") |
|||
private String accountName; |
|||
@ApiModelProperty("账户类型key") |
|||
private String dueBankKey; |
|||
@ApiModelProperty("账户类型value") |
|||
private String dueBankValue; |
|||
@ApiModelProperty("银行网点") |
|||
private String bankingOutlets; |
|||
@ApiModelProperty("开户行地址") |
|||
private String bankAddress; |
|||
@ApiModelProperty("联行号") |
|||
private String paymentLines; |
|||
@ApiModelProperty("银行代码") |
|||
private String swiftCode; |
|||
@ApiModelProperty("币种") |
|||
private String currency; |
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
|
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finmanufacturerbank; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBank; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankMapper.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finmanufacturerbank.FinManufacturerBankMapper <br/> |
|||
* Description: 公司开户账号表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface FinManufacturerBankMapper extends BaseMapper<FinManufacturerBank> { |
|||
|
|||
//@Update("update fin_manufacturer_bank set name=#{msg} where id=#{id}")
|
|||
//IPage<FinManufacturerBankVo> voPage(IPage<FinManufacturerBank> page, @Param(Constants.WRAPPER) QueryWrapper<FinManufacturerBank> qw);
|
|||
|
|||
IPage<FinManufacturerBankVo> selectPageVo(IPage<FinManufacturerBank> page, @Param(Constants.WRAPPER) Wrapper<FinManufacturerBank> qw); |
|||
|
|||
List<FinManufacturerBankVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<FinManufacturerBank> qw); |
|||
|
|||
@Select("select * from fin_manufacturer_bank") |
|||
List<FinManufacturerBankVo> selectListVo(); |
|||
} |
@ -0,0 +1,13 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.anrui.fin.biz.finmanufacturerbank.FinManufacturerBankMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo"> |
|||
SELECT * FROM fin_manufacturer_bank <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo"> |
|||
SELECT * FROM fin_manufacturer_bank <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,87 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finmanufacturerbank; |
|||
|
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.*; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finmanufacturerbank.FinManufacturerBankRest <br/> |
|||
* Description: 公司开户账号表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "公司开户账号表") |
|||
@RestController("com.yxt.anrui.fin.biz.finmanufacturerbank.FinManufacturerBankRest") |
|||
@RequestMapping("v1/finmanufacturerbank") |
|||
public class FinManufacturerBankRest implements FinManufacturerBankFeign { |
|||
|
|||
@Autowired |
|||
private FinManufacturerBankService finManufacturerBankService; |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<FinManufacturerBankVo>> listPage(@RequestBody PagerQuery<FinManufacturerBankQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<FinManufacturerBankVo> pv = finManufacturerBankService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(@RequestBody FinManufacturerBankDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finManufacturerBankService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids(@RequestBody String[] sids) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finManufacturerBankService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<FinManufacturerBankDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FinManufacturerBankDetailsVo vo = finManufacturerBankService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,110 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finmanufacturerbank; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBank; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankQuery; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankDetailsVo; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankDto; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankService.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finmanufacturerbank.FinManufacturerBankService <br/> |
|||
* Description: 公司开户账号表 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class FinManufacturerBankService extends MybatisBaseService<FinManufacturerBankMapper, FinManufacturerBank> { |
|||
private QueryWrapper<FinManufacturerBank> createQueryWrapper(FinManufacturerBankQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<FinManufacturerBank> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<FinManufacturerBankVo> listPageVo(PagerQuery<FinManufacturerBankQuery> pq) { |
|||
FinManufacturerBankQuery query = pq.getParams(); |
|||
QueryWrapper<FinManufacturerBank> qw = createQueryWrapper(query); |
|||
IPage<FinManufacturerBank> page = PagerUtil.queryToPage(pq); |
|||
IPage<FinManufacturerBankVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<FinManufacturerBankVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(FinManufacturerBankDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(FinManufacturerBankDto dto){ |
|||
FinManufacturerBank entity = new FinManufacturerBank(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(FinManufacturerBankDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
FinManufacturerBank entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public FinManufacturerBankDetailsVo fetchDetailsVoBySid(String sid){ |
|||
FinManufacturerBank entity = fetchBySid(sid); |
|||
FinManufacturerBankDetailsVo vo = new FinManufacturerBankDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
Loading…
Reference in new issue