22 changed files with 1740 additions and 0 deletions
@ -0,0 +1,86 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapply; |
|||
|
|||
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: FinPaymentapply.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapply <br/> |
|||
* Description: fin_paymentapply. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "fin_paymentapply", description = "fin_paymentapply") |
|||
@TableName("fin_paymentapply") |
|||
public class FinPaymentapply extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; |
|||
@ApiModelProperty("申请编号") |
|||
private String billNo; |
|||
@ApiModelProperty("申请人姓名") |
|||
private String name; |
|||
@ApiModelProperty("款项类别,数据字典") |
|||
private String costTypeKey; |
|||
@ApiModelProperty("款项类别") |
|||
private String costTypeValue; |
|||
@ApiModelProperty("款项名称,数据字典") |
|||
private String costTitleKey; |
|||
@ApiModelProperty("款项名称") |
|||
private String costTitleValue; |
|||
@ApiModelProperty("金额,小数点2位") |
|||
private Integer cost; |
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; |
|||
@ApiModelProperty("付款单位名称") |
|||
private String payCompany; |
|||
@ApiModelProperty("收款单位名称") |
|||
private String receiveCompany; |
|||
@ApiModelProperty("收款银行") |
|||
private String receiveBank; |
|||
@ApiModelProperty("收款银行账号") |
|||
private String receiveBankAccount; |
|||
@ApiModelProperty("关联业务sid") |
|||
private String busSid; |
|||
@ApiModelProperty("创建组织") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织") |
|||
private String useOrgSid; |
|||
|
|||
} |
@ -0,0 +1,87 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapply; |
|||
|
|||
|
|||
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: FinPaymentapplyVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyVo <br/> |
|||
* Description: fin_paymentapply 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "fin_paymentapply 视图数据详情", description = "fin_paymentapply 视图数据详情") |
|||
public class FinPaymentapplyDetailsVo implements Vo { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; |
|||
@ApiModelProperty("申请编号") |
|||
private String billNo; |
|||
@ApiModelProperty("申请人姓名") |
|||
private String name; |
|||
@ApiModelProperty("款项类别,数据字典") |
|||
private String costTypeKey; |
|||
@ApiModelProperty("款项类别") |
|||
private String costTypeValue; |
|||
@ApiModelProperty("款项名称,数据字典") |
|||
private String costTitleKey; |
|||
@ApiModelProperty("款项名称") |
|||
private String costTitleValue; |
|||
@ApiModelProperty("金额,小数点2位") |
|||
private Integer cost; |
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; |
|||
@ApiModelProperty("付款单位名称") |
|||
private String payCompany; |
|||
@ApiModelProperty("收款单位名称") |
|||
private String receiveCompany; |
|||
@ApiModelProperty("收款银行") |
|||
private String receiveBank; |
|||
@ApiModelProperty("收款银行账号") |
|||
private String receiveBankAccount; |
|||
@ApiModelProperty("关联业务sid") |
|||
private String busSid; |
|||
@ApiModelProperty("创建组织") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织") |
|||
private String useOrgSid; |
|||
|
|||
} |
@ -0,0 +1,87 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapply; |
|||
|
|||
|
|||
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: FinPaymentapplyDto.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyDto <br/> |
|||
* Description: fin_paymentapply 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "fin_paymentapply 数据传输对象", description = "fin_paymentapply 数据传输对象") |
|||
public class FinPaymentapplyDto implements Dto { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; |
|||
@ApiModelProperty("申请编号") |
|||
private String billNo; |
|||
@ApiModelProperty("申请人姓名") |
|||
private String name; |
|||
@ApiModelProperty("款项类别,数据字典") |
|||
private String costTypeKey; |
|||
@ApiModelProperty("款项类别") |
|||
private String costTypeValue; |
|||
@ApiModelProperty("款项名称,数据字典") |
|||
private String costTitleKey; |
|||
@ApiModelProperty("款项名称") |
|||
private String costTitleValue; |
|||
@ApiModelProperty("金额,小数点2位") |
|||
private Integer cost; |
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; |
|||
@ApiModelProperty("付款单位名称") |
|||
private String payCompany; |
|||
@ApiModelProperty("收款单位名称") |
|||
private String receiveCompany; |
|||
@ApiModelProperty("收款银行") |
|||
private String receiveBank; |
|||
@ApiModelProperty("收款银行账号") |
|||
private String receiveBankAccount; |
|||
@ApiModelProperty("关联业务sid") |
|||
private String busSid; |
|||
@ApiModelProperty("创建组织") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织") |
|||
private String useOrgSid; |
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapply; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentapplyFeign.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyFeign <br/> |
|||
* Description: fin_paymentapply. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "fin_paymentapply") |
|||
@FeignClient( |
|||
contextId = "anrui-fin-FinPaymentapply", |
|||
name = "anrui-fin", |
|||
path = "v1/finpaymentapply", |
|||
fallback = FinPaymentapplyFeignFallback.class) |
|||
public interface FinPaymentapplyFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<FinPaymentapplyVo>> listPage(@RequestBody PagerQuery<FinPaymentapplyQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody FinPaymentapplyDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<FinPaymentapplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapply; |
|||
|
|||
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; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentapplyFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyFeignFallback <br/> |
|||
* Description: fin_paymentapply. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class FinPaymentapplyFeignFallback implements FinPaymentapplyFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<FinPaymentapplyVo>> listPage(PagerQuery<FinPaymentapplyQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-fin/finpaymentapply/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(FinPaymentapplyDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-fin/finpaymentapply/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-fin/finpaymentapply/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<FinPaymentapplyDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-fin/finpaymentapply/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,85 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapply; |
|||
|
|||
|
|||
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: FinPaymentapplyQuery.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyQuery <br/> |
|||
* Description: fin_paymentapply 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "fin_paymentapply 查询条件", description = "fin_paymentapply 查询条件") |
|||
public class FinPaymentapplyQuery implements Query { |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; |
|||
@ApiModelProperty("申请编号") |
|||
private String billNo; |
|||
@ApiModelProperty("申请人姓名") |
|||
private String name; |
|||
@ApiModelProperty("款项类别,数据字典") |
|||
private String costTypeKey; |
|||
@ApiModelProperty("款项类别") |
|||
private String costTypeValue; |
|||
@ApiModelProperty("款项名称,数据字典") |
|||
private String costTitleKey; |
|||
@ApiModelProperty("款项名称") |
|||
private String costTitleValue; |
|||
@ApiModelProperty("金额,小数点2位") |
|||
private Integer cost; |
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; |
|||
@ApiModelProperty("付款单位名称") |
|||
private String payCompany; |
|||
@ApiModelProperty("收款单位名称") |
|||
private String receiveCompany; |
|||
@ApiModelProperty("收款银行") |
|||
private String receiveBank; |
|||
@ApiModelProperty("收款银行账号") |
|||
private String receiveBankAccount; |
|||
@ApiModelProperty("关联业务sid") |
|||
private String busSid; |
|||
@ApiModelProperty("创建组织") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织") |
|||
private String useOrgSid; |
|||
|
|||
} |
@ -0,0 +1,87 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapply; |
|||
|
|||
|
|||
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: FinPaymentapplyVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyVo <br/> |
|||
* Description: fin_paymentapply 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "fin_paymentapply 视图数据对象", description = "fin_paymentapply 视图数据对象") |
|||
public class FinPaymentapplyVo implements Vo { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; |
|||
@ApiModelProperty("申请编号") |
|||
private String billNo; |
|||
@ApiModelProperty("申请人姓名") |
|||
private String name; |
|||
@ApiModelProperty("款项类别,数据字典") |
|||
private String costTypeKey; |
|||
@ApiModelProperty("款项类别") |
|||
private String costTypeValue; |
|||
@ApiModelProperty("款项名称,数据字典") |
|||
private String costTitleKey; |
|||
@ApiModelProperty("款项名称") |
|||
private String costTitleValue; |
|||
@ApiModelProperty("金额,小数点2位") |
|||
private Integer cost; |
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; |
|||
@ApiModelProperty("付款单位名称") |
|||
private String payCompany; |
|||
@ApiModelProperty("收款单位名称") |
|||
private String receiveCompany; |
|||
@ApiModelProperty("收款银行") |
|||
private String receiveBank; |
|||
@ApiModelProperty("收款银行账号") |
|||
private String receiveBankAccount; |
|||
@ApiModelProperty("关联业务sid") |
|||
private String busSid; |
|||
@ApiModelProperty("创建组织") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织") |
|||
private String useOrgSid; |
|||
|
|||
} |
@ -0,0 +1,88 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentrecord; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentrecord.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecord <br/> |
|||
* Description: fin_paymentrecord. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "fin_paymentrecord", description = "fin_paymentrecord") |
|||
@TableName("fin_paymentrecord") |
|||
public class FinPaymentrecord extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; |
|||
@ApiModelProperty("付款申请sid") |
|||
private String applySid; |
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; |
|||
@ApiModelProperty("付款银行") |
|||
private String payBank; |
|||
@ApiModelProperty("付款账号") |
|||
private String payBankAccount; |
|||
@ApiModelProperty("付款人sid") |
|||
private String userSid; |
|||
@ApiModelProperty("付款人姓名") |
|||
private String name; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("付款日期") |
|||
private Date payDate; |
|||
@ApiModelProperty("付款备注") |
|||
private String payRemark; |
|||
@ApiModelProperty("付款方式Key,支票/转账") |
|||
private String payWayKey; |
|||
@ApiModelProperty("付款方式Value") |
|||
private String payWayValue; |
|||
@ApiModelProperty("付款凭证,上传图片") |
|||
private String payFile; |
|||
@ApiModelProperty("付款类别,1付款/2退款") |
|||
private Integer payType; |
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; |
|||
|
|||
} |
@ -0,0 +1,88 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentrecord; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentrecordVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordVo <br/> |
|||
* Description: fin_paymentrecord 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "fin_paymentrecord 视图数据详情", description = "fin_paymentrecord 视图数据详情") |
|||
public class FinPaymentrecordDetailsVo implements Vo { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; |
|||
@ApiModelProperty("付款申请sid") |
|||
private String applySid; |
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; |
|||
@ApiModelProperty("付款银行") |
|||
private String payBank; |
|||
@ApiModelProperty("付款账号") |
|||
private String payBankAccount; |
|||
@ApiModelProperty("付款人sid") |
|||
private String userSid; |
|||
@ApiModelProperty("付款人姓名") |
|||
private String name; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("付款日期") |
|||
private Date payDate; |
|||
@ApiModelProperty("付款备注") |
|||
private String payRemark; |
|||
@ApiModelProperty("付款方式Key,支票/转账") |
|||
private String payWayKey; |
|||
@ApiModelProperty("付款方式Value") |
|||
private String payWayValue; |
|||
@ApiModelProperty("付款凭证,上传图片") |
|||
private String payFile; |
|||
@ApiModelProperty("付款类别,1付款/2退款") |
|||
private Integer payType; |
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; |
|||
|
|||
} |
@ -0,0 +1,88 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentrecord; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentrecordDto.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordDto <br/> |
|||
* Description: fin_paymentrecord 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "fin_paymentrecord 数据传输对象", description = "fin_paymentrecord 数据传输对象") |
|||
public class FinPaymentrecordDto implements Dto { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; |
|||
@ApiModelProperty("付款申请sid") |
|||
private String applySid; |
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; |
|||
@ApiModelProperty("付款银行") |
|||
private String payBank; |
|||
@ApiModelProperty("付款账号") |
|||
private String payBankAccount; |
|||
@ApiModelProperty("付款人sid") |
|||
private String userSid; |
|||
@ApiModelProperty("付款人姓名") |
|||
private String name; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("付款日期") |
|||
private Date payDate; |
|||
@ApiModelProperty("付款备注") |
|||
private String payRemark; |
|||
@ApiModelProperty("付款方式Key,支票/转账") |
|||
private String payWayKey; |
|||
@ApiModelProperty("付款方式Value") |
|||
private String payWayValue; |
|||
@ApiModelProperty("付款凭证,上传图片") |
|||
private String payFile; |
|||
@ApiModelProperty("付款类别,1付款/2退款") |
|||
private Integer payType; |
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; |
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentrecord; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentrecordFeign.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordFeign <br/> |
|||
* Description: fin_paymentrecord. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "fin_paymentrecord") |
|||
@FeignClient( |
|||
contextId = "anrui-fin-FinPaymentrecord", |
|||
name = "anrui-fin", |
|||
path = "v1/finpaymentrecord", |
|||
fallback = FinPaymentrecordFeignFallback.class) |
|||
public interface FinPaymentrecordFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<FinPaymentrecordVo>> listPage(@RequestBody PagerQuery<FinPaymentrecordQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody FinPaymentrecordDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<FinPaymentrecordDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentrecord; |
|||
|
|||
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; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentrecordFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordFeignFallback <br/> |
|||
* Description: fin_paymentrecord. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class FinPaymentrecordFeignFallback implements FinPaymentrecordFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<FinPaymentrecordVo>> listPage(PagerQuery<FinPaymentrecordQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-fin/finpaymentrecord/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(FinPaymentrecordDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-fin/finpaymentrecord/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-fin/finpaymentrecord/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<FinPaymentrecordDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-fin/finpaymentrecord/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,87 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentrecord; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentrecordQuery.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordQuery <br/> |
|||
* Description: fin_paymentrecord 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "fin_paymentrecord 查询条件", description = "fin_paymentrecord 查询条件") |
|||
public class FinPaymentrecordQuery implements Query { |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; |
|||
@ApiModelProperty("付款申请sid") |
|||
private String applySid; |
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; |
|||
@ApiModelProperty("付款银行") |
|||
private String payBank; |
|||
@ApiModelProperty("付款账号") |
|||
private String payBankAccount; |
|||
@ApiModelProperty("付款人sid") |
|||
private String userSid; |
|||
@ApiModelProperty("付款人姓名") |
|||
private String name; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("付款日期") |
|||
private Date payDateStart; |
|||
private Date payDateEnd; |
|||
@ApiModelProperty("付款备注") |
|||
private String payRemark; |
|||
@ApiModelProperty("付款方式Key,支票/转账") |
|||
private String payWayKey; |
|||
@ApiModelProperty("付款方式Value") |
|||
private String payWayValue; |
|||
@ApiModelProperty("付款凭证,上传图片") |
|||
private String payFile; |
|||
@ApiModelProperty("付款类别,1付款/2退款") |
|||
private Integer payType; |
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; |
|||
|
|||
} |
@ -0,0 +1,88 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentrecord; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentrecordVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordVo <br/> |
|||
* Description: fin_paymentrecord 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "fin_paymentrecord 视图数据对象", description = "fin_paymentrecord 视图数据对象") |
|||
public class FinPaymentrecordVo implements Vo { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; |
|||
@ApiModelProperty("付款申请sid") |
|||
private String applySid; |
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; |
|||
@ApiModelProperty("付款银行") |
|||
private String payBank; |
|||
@ApiModelProperty("付款账号") |
|||
private String payBankAccount; |
|||
@ApiModelProperty("付款人sid") |
|||
private String userSid; |
|||
@ApiModelProperty("付款人姓名") |
|||
private String name; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("付款日期") |
|||
private Date payDate; |
|||
@ApiModelProperty("付款备注") |
|||
private String payRemark; |
|||
@ApiModelProperty("付款方式Key,支票/转账") |
|||
private String payWayKey; |
|||
@ApiModelProperty("付款方式Value") |
|||
private String payWayValue; |
|||
@ApiModelProperty("付款凭证,上传图片") |
|||
private String payFile; |
|||
@ApiModelProperty("付款类别,1付款/2退款") |
|||
private Integer payType; |
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; |
|||
|
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpaymentapply; |
|||
|
|||
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.finpaymentapply.FinPaymentapply; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentapplyMapper.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpaymentapply.FinPaymentapplyMapper <br/> |
|||
* Description: fin_paymentapply. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface FinPaymentapplyMapper extends BaseMapper<FinPaymentapply> { |
|||
|
|||
//@Update("update fin_paymentapply set name=#{msg} where id=#{id}")
|
|||
//IPage<FinPaymentapplyVo> voPage(IPage<FinPaymentapply> page, @Param(Constants.WRAPPER) QueryWrapper<FinPaymentapply> qw);
|
|||
|
|||
IPage<FinPaymentapplyVo> selectPageVo(IPage<FinPaymentapply> page, @Param(Constants.WRAPPER) Wrapper<FinPaymentapply> qw); |
|||
|
|||
List<FinPaymentapplyVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<FinPaymentapply> qw); |
|||
|
|||
@Select("select * from fin_paymentapply") |
|||
List<FinPaymentapplyVo> 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.finpaymentapply.FinPaymentapplyMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyVo"> |
|||
SELECT * FROM fin_paymentapply <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyVo"> |
|||
SELECT * FROM fin_paymentapply <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpaymentapply; |
|||
|
|||
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.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapply; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyQuery; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyVo; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyDetailsVo; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyDto; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyFeign; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentapplyFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpaymentapply.FinPaymentapplyRest <br/> |
|||
* Description: fin_paymentapply. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "fin_paymentapply") |
|||
@RestController("com.yxt.anrui.fin.biz.finpaymentapply.FinPaymentapplyRest") |
|||
@RequestMapping("v1/finpaymentapply") |
|||
public class FinPaymentapplyRest implements FinPaymentapplyFeign { |
|||
|
|||
@Autowired |
|||
private FinPaymentapplyService finPaymentapplyService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<FinPaymentapplyVo>> listPage(@RequestBody PagerQuery<FinPaymentapplyQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<FinPaymentapplyVo> pv = finPaymentapplyService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody FinPaymentapplyDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finPaymentapplyService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finPaymentapplyService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<FinPaymentapplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FinPaymentapplyDetailsVo vo = finPaymentapplyService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,110 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpaymentapply; |
|||
|
|||
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.finpaymentapply.FinPaymentapply; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyQuery; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyVo; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyDetailsVo; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyDto; |
|||
import com.yxt.anrui.fin.api.finpaymentapply.FinPaymentapplyFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentapplyService.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpaymentapply.FinPaymentapplyService <br/> |
|||
* Description: fin_paymentapply 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class FinPaymentapplyService extends MybatisBaseService<FinPaymentapplyMapper, FinPaymentapply> { |
|||
private QueryWrapper<FinPaymentapply> createQueryWrapper(FinPaymentapplyQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<FinPaymentapply> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<FinPaymentapplyVo> listPageVo(PagerQuery<FinPaymentapplyQuery> pq) { |
|||
FinPaymentapplyQuery query = pq.getParams(); |
|||
QueryWrapper<FinPaymentapply> qw = createQueryWrapper(query); |
|||
IPage<FinPaymentapply> page = PagerUtil.queryToPage(pq); |
|||
IPage<FinPaymentapplyVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<FinPaymentapplyVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(FinPaymentapplyDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(FinPaymentapplyDto dto){ |
|||
FinPaymentapply entity = new FinPaymentapply(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(FinPaymentapplyDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
FinPaymentapply entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public FinPaymentapplyDetailsVo fetchDetailsVoBySid(String sid){ |
|||
FinPaymentapply entity = fetchBySid(sid); |
|||
FinPaymentapplyDetailsVo vo = new FinPaymentapplyDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpaymentrecord; |
|||
|
|||
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.finpaymentrecord.FinPaymentrecord; |
|||
import com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentrecordMapper.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpaymentrecord.FinPaymentrecordMapper <br/> |
|||
* Description: fin_paymentrecord. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface FinPaymentrecordMapper extends BaseMapper<FinPaymentrecord> { |
|||
|
|||
//@Update("update fin_paymentrecord set name=#{msg} where id=#{id}")
|
|||
//IPage<FinPaymentrecordVo> voPage(IPage<FinPaymentrecord> page, @Param(Constants.WRAPPER) QueryWrapper<FinPaymentrecord> qw);
|
|||
|
|||
IPage<FinPaymentrecordVo> selectPageVo(IPage<FinPaymentrecord> page, @Param(Constants.WRAPPER) Wrapper<FinPaymentrecord> qw); |
|||
|
|||
List<FinPaymentrecordVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<FinPaymentrecord> qw); |
|||
|
|||
@Select("select * from fin_paymentrecord") |
|||
List<FinPaymentrecordVo> 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.finpaymentrecord.FinPaymentrecordMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordVo"> |
|||
SELECT * FROM fin_paymentrecord <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordVo"> |
|||
SELECT * FROM fin_paymentrecord <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,93 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpaymentrecord; |
|||
|
|||
import com.yxt.anrui.fin.api.finpaymentrecord.*; |
|||
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.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentrecordFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpaymentrecord.FinPaymentrecordRest <br/> |
|||
* Description: fin_paymentrecord. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "fin_paymentrecord") |
|||
@RestController("com.yxt.anrui.fin.biz.finpaymentrecord.FinPaymentrecordRest") |
|||
@RequestMapping("v1/finpaymentrecord") |
|||
public class FinPaymentrecordRest implements FinPaymentrecordFeign { |
|||
|
|||
@Autowired |
|||
private FinPaymentrecordService finPaymentrecordService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<FinPaymentrecordVo>> listPage(@RequestBody PagerQuery<FinPaymentrecordQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<FinPaymentrecordVo> pv = finPaymentrecordService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody FinPaymentrecordDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finPaymentrecordService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finPaymentrecordService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<FinPaymentrecordDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FinPaymentrecordDetailsVo vo = finPaymentrecordService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,110 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpaymentrecord; |
|||
|
|||
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.finpaymentrecord.FinPaymentrecord; |
|||
import com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordQuery; |
|||
import com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordVo; |
|||
import com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordDetailsVo; |
|||
import com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordDto; |
|||
import com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(财务) <br/> |
|||
* File: FinPaymentrecordService.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpaymentrecord.FinPaymentrecordService <br/> |
|||
* Description: fin_paymentrecord 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-06-23 13:45:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class FinPaymentrecordService extends MybatisBaseService<FinPaymentrecordMapper, FinPaymentrecord> { |
|||
private QueryWrapper<FinPaymentrecord> createQueryWrapper(FinPaymentrecordQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<FinPaymentrecord> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<FinPaymentrecordVo> listPageVo(PagerQuery<FinPaymentrecordQuery> pq) { |
|||
FinPaymentrecordQuery query = pq.getParams(); |
|||
QueryWrapper<FinPaymentrecord> qw = createQueryWrapper(query); |
|||
IPage<FinPaymentrecord> page = PagerUtil.queryToPage(pq); |
|||
IPage<FinPaymentrecordVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<FinPaymentrecordVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(FinPaymentrecordDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(FinPaymentrecordDto dto){ |
|||
FinPaymentrecord entity = new FinPaymentrecord(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(FinPaymentrecordDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
FinPaymentrecord entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public FinPaymentrecordDetailsVo fetchDetailsVoBySid(String sid){ |
|||
FinPaymentrecord entity = fetchBySid(sid); |
|||
FinPaymentrecordDetailsVo vo = new FinPaymentrecordDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
Loading…
Reference in new issue