
65 changed files with 2825 additions and 266 deletions
@ -0,0 +1,70 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpayment; |
|||
|
|||
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: FinPayment.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpayment.FinPayment <br/> |
|||
* Description: 付款信息管理. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 14:27:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款信息管理", description = "付款信息管理") |
|||
@TableName("fin_payment") |
|||
public class FinPayment extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("单位编码") |
|||
private String companyCode; // 单位编码
|
|||
@ApiModelProperty("单位名称") |
|||
private String companyName; // 单位名称
|
|||
@ApiModelProperty("开户行") |
|||
private String bank; // 开户行
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String receivingAccount; // 收款银行账号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String businessTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value") |
|||
private String businessTypeValue; // 业务类型value
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
|
|||
} |
@ -0,0 +1,71 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpayment; |
|||
|
|||
|
|||
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: FinPaymentVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpayment.FinPaymentVo <br/> |
|||
* Description: 付款信息管理 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 14:27:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款信息管理 视图数据详情", description = "付款信息管理 视图数据详情") |
|||
public class FinPaymentDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
private String remarks; |
|||
@ApiModelProperty("单位编码") |
|||
private String companyCode; // 单位编码
|
|||
@ApiModelProperty("单位名称") |
|||
private String companyName; // 单位名称
|
|||
@ApiModelProperty("开户行") |
|||
private String bank; // 开户行
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String receivingAccount; // 收款银行账号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String businessTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value") |
|||
private String businessTypeValue; // 业务类型value
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
} |
@ -0,0 +1,71 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpayment; |
|||
|
|||
|
|||
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: FinPaymentDto.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpayment.FinPaymentDto <br/> |
|||
* Description: 付款信息管理 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 14:27:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款信息管理 数据传输对象", description = "付款信息管理 数据传输对象") |
|||
public class FinPaymentDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
private String remarks; |
|||
@ApiModelProperty("单位编码") |
|||
private String companyCode; // 单位编码
|
|||
@ApiModelProperty("单位名称") |
|||
private String companyName; // 单位名称
|
|||
@ApiModelProperty("开户行") |
|||
private String bank; // 开户行
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String receivingAccount; // 收款银行账号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String businessTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value") |
|||
private String businessTypeValue; // 业务类型value
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
} |
@ -0,0 +1,82 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpayment; |
|||
|
|||
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: FinPaymentFeign.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpayment.FinPaymentFeign <br/> |
|||
* Description: 付款信息管理. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 14:27:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "付款信息管理") |
|||
@FeignClient( |
|||
contextId = "anrui-fin-FinPayment", |
|||
name = "anrui-fin", |
|||
path = "v1/finpayment") |
|||
public interface FinPaymentFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<FinPaymentVo>> listPage(@RequestBody PagerQuery<FinPaymentQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody FinPaymentDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<FinPaymentDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("按分公司查询") |
|||
@GetMapping("/selectByUseOrgSid") |
|||
@ResponseBody |
|||
public ResultBean<List<FinPaymentDetailsVo>> selectByUseOrgSid(@RequestParam("useOrgSid") String useOrgSid); |
|||
} |
@ -0,0 +1,68 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpayment; |
|||
|
|||
|
|||
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: FinPaymentQuery.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpayment.FinPaymentQuery <br/> |
|||
* Description: 付款信息管理 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 14:27:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款信息管理 查询条件", description = "付款信息管理 查询条件") |
|||
public class FinPaymentQuery implements Query { |
|||
|
|||
@ApiModelProperty("单位编码") |
|||
private String companyCode; // 单位编码
|
|||
@ApiModelProperty("单位名称") |
|||
private String companyName; // 单位名称
|
|||
@ApiModelProperty("开户行") |
|||
private String bank; // 开户行
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String receivingAccount; // 收款银行账号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String businessTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value") |
|||
private String businessTypeValue; // 业务类型value
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
} |
@ -0,0 +1,70 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpayment; |
|||
|
|||
|
|||
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: FinPaymentVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpayment.FinPaymentVo <br/> |
|||
* Description: 付款信息管理 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 14:27:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款信息管理 视图数据对象", description = "付款信息管理 视图数据对象") |
|||
public class FinPaymentVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("单位编码") |
|||
private String companyCode; // 单位编码
|
|||
@ApiModelProperty("单位名称") |
|||
private String companyName; // 单位名称
|
|||
@ApiModelProperty("开户行") |
|||
private String bank; // 开户行
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String receivingAccount; // 收款银行账号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String businessTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value") |
|||
private String businessTypeValue; // 业务类型value
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
} |
@ -0,0 +1,70 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve; |
|||
|
|||
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; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
@Data |
|||
@ApiModel(value = "付款申请明细-明细-平仓", description = "付款申请明细-明细-平仓") |
|||
@TableName("fin_paymentapply_details_below_eve") |
|||
public class FinPaymentapplyDetailsBelowEve extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("平仓款名称") |
|||
private String costTitleValue; |
|||
@ApiModelProperty("款项类别,数据字典") |
|||
private String costTypeKey; |
|||
@ApiModelProperty("款项类别") |
|||
private String costTypeValue; |
|||
@ApiModelProperty("付款申请明细的明细sid") |
|||
private String detailSid; // 付款申请明细的明细sid
|
|||
@ApiModelProperty("融资付款开通日期") |
|||
private String openDate; // 融资付款开通日期
|
|||
@ApiModelProperty("期数") |
|||
private String period; // 期数
|
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; // 付款单位sid
|
|||
@ApiModelProperty("付款单位名称") |
|||
private String payCompany; // 付款单位名称
|
|||
@ApiModelProperty("收款单位名称") |
|||
private String receiveCompany; // 收款单位名称
|
|||
@ApiModelProperty("收款单位sid") |
|||
private String receiveCompanySid; // 收款单位sid
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String receivingAccount; // 收款银行账号
|
|||
@ApiModelProperty("开户行") |
|||
private String bank; // 开户行
|
|||
@ApiModelProperty("平仓付款日期") |
|||
private String exePayDate; |
|||
@ApiModelProperty("平仓付款金额") |
|||
private BigDecimal exePayPrice; |
|||
} |
@ -0,0 +1,86 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* Project: anrui-fin(平仓) <br/> |
|||
* File: FinPaymentapplyDetailsBelowEveVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveVo <br/> |
|||
* Description: 付款申请明细-明细-平仓 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 10:03:07 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款申请明细-明细-平仓 视图数据详情", description = "付款申请明细-明细-平仓 视图数据详情") |
|||
public class FinPaymentapplyDetailsBelowEveDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("平仓款名称") |
|||
private String costTitleValue; |
|||
@ApiModelProperty("款项类别,数据字典") |
|||
private String costTypeKey; |
|||
@ApiModelProperty("款项类别") |
|||
private String costTypeValue; |
|||
@ApiModelProperty("付款申请明细的明细sid") |
|||
private String detailSid; // 付款申请明细的明细sid
|
|||
@ApiModelProperty("融资付款开通日期") |
|||
private String openDate; // 融资付款开通日期
|
|||
@ApiModelProperty("期数") |
|||
private String period; // 期数
|
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; // 付款单位sid
|
|||
@ApiModelProperty("付款单位名称") |
|||
private String payCompany; // 付款单位名称
|
|||
@ApiModelProperty("收款单位名称") |
|||
private String receiveCompany; // 收款单位名称
|
|||
@ApiModelProperty("收款单位sid") |
|||
private String receiveCompanySid; // 收款单位sid
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String receivingAccount; // 收款银行账号
|
|||
@ApiModelProperty("开户行") |
|||
private String bank; // 开户行
|
|||
@ApiModelProperty("平仓付款日期") |
|||
private String exePayDate; |
|||
@ApiModelProperty("平仓付款金额") |
|||
private BigDecimal exePayPrice; |
|||
} |
@ -0,0 +1,86 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* Project: anrui-fin(平仓) <br/> |
|||
* File: FinPaymentapplyDetailsBelowEveDto.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveDto <br/> |
|||
* Description: 付款申请明细-明细-平仓 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 10:03:07 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款申请明细-明细-平仓 数据传输对象", description = "付款申请明细-明细-平仓 数据传输对象") |
|||
public class FinPaymentapplyDetailsBelowEveDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("平仓款名称") |
|||
private String costTitleValue; |
|||
@ApiModelProperty("款项类别,数据字典") |
|||
private String costTypeKey; |
|||
@ApiModelProperty("款项类别") |
|||
private String costTypeValue; |
|||
@ApiModelProperty("付款申请明细的明细sid") |
|||
private String detailSid; // 付款申请明细的明细sid
|
|||
@ApiModelProperty("融资付款开通日期") |
|||
private String openDate; // 融资付款开通日期
|
|||
@ApiModelProperty("期数") |
|||
private String period; // 期数
|
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; // 付款单位sid
|
|||
@ApiModelProperty("付款单位名称") |
|||
private String payCompany; // 付款单位名称
|
|||
@ApiModelProperty("收款单位名称") |
|||
private String receiveCompany; // 收款单位名称
|
|||
@ApiModelProperty("收款单位sid") |
|||
private String receiveCompanySid; // 收款单位sid
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String receivingAccount; // 收款银行账号
|
|||
@ApiModelProperty("开户行") |
|||
private String bank; // 开户行
|
|||
@ApiModelProperty("平仓付款日期") |
|||
private String exePayDate; |
|||
@ApiModelProperty("平仓付款金额") |
|||
private BigDecimal exePayPrice; |
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve; |
|||
|
|||
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: FinPaymentapplyDetailsBelowEveFeign.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveFeign <br/> |
|||
* Description: 付款申请明细-明细-平仓. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 10:03:07 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "付款申请明细-明细-平仓") |
|||
@FeignClient( |
|||
contextId = "anrui-fin-FinPaymentapplyDetailsBelowEve", |
|||
name = "anrui-fin", |
|||
path = "v1/finpaymentapplydetailsbeloweve", |
|||
fallback = FinPaymentapplyDetailsBelowEveFeignFallback.class) |
|||
public interface FinPaymentapplyDetailsBelowEveFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<FinPaymentapplyDetailsBelowEveVo>> listPage(@RequestBody PagerQuery<FinPaymentapplyDetailsBelowEveQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody FinPaymentapplyDetailsBelowEveDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<FinPaymentapplyDetailsBelowEveDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve; |
|||
|
|||
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: FinPaymentapplyDetailsBelowEveFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveFeignFallback <br/> |
|||
* Description: 付款申请明细-明细-平仓. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 10:03:07 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class FinPaymentapplyDetailsBelowEveFeignFallback implements FinPaymentapplyDetailsBelowEveFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<FinPaymentapplyDetailsBelowEveVo>> listPage(PagerQuery<FinPaymentapplyDetailsBelowEveQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-fin/finpaymentapplydetailsbeloweve/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(FinPaymentapplyDetailsBelowEveDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-fin/finpaymentapplydetailsbeloweve/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-fin/finpaymentapplydetailsbeloweve/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<FinPaymentapplyDetailsBelowEveDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-fin/finpaymentapplydetailsbeloweve/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,82 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* Project: anrui-fin(平仓) <br/> |
|||
* File: FinPaymentapplyDetailsBelowEveQuery.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveQuery <br/> |
|||
* Description: 付款申请明细-明细-平仓 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 10:03:07 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款申请明细-明细-平仓 查询条件", description = "付款申请明细-明细-平仓 查询条件") |
|||
public class FinPaymentapplyDetailsBelowEveQuery implements Query { |
|||
|
|||
@ApiModelProperty("平仓款名称") |
|||
private String costTitleValue; |
|||
@ApiModelProperty("款项类别,数据字典") |
|||
private String costTypeKey; |
|||
@ApiModelProperty("款项类别") |
|||
private String costTypeValue; |
|||
@ApiModelProperty("付款申请明细的明细sid") |
|||
private String detailSid; // 付款申请明细的明细sid
|
|||
@ApiModelProperty("融资付款开通日期") |
|||
private String openDate; // 融资付款开通日期
|
|||
@ApiModelProperty("期数") |
|||
private String period; // 期数
|
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; // 付款单位sid
|
|||
@ApiModelProperty("付款单位名称") |
|||
private String payCompany; // 付款单位名称
|
|||
@ApiModelProperty("收款单位名称") |
|||
private String receiveCompany; // 收款单位名称
|
|||
@ApiModelProperty("收款单位sid") |
|||
private String receiveCompanySid; // 收款单位sid
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String receivingAccount; // 收款银行账号
|
|||
@ApiModelProperty("开户行") |
|||
private String bank; // 开户行
|
|||
@ApiModelProperty("平仓付款日期") |
|||
private String exePayDate; |
|||
@ApiModelProperty("平仓付款金额") |
|||
private BigDecimal exePayPrice; |
|||
} |
@ -0,0 +1,84 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* Project: anrui-fin(平仓) <br/> |
|||
* File: FinPaymentapplyDetailsBelowEveVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveVo <br/> |
|||
* Description: 付款申请明细-明细-平仓 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 10:03:07 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款申请明细-明细-平仓 视图数据对象", description = "付款申请明细-明细-平仓 视图数据对象") |
|||
public class FinPaymentapplyDetailsBelowEveVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("平仓款名称") |
|||
private String costTitleValue; |
|||
@ApiModelProperty("款项类别,数据字典") |
|||
private String costTypeKey; |
|||
@ApiModelProperty("款项类别") |
|||
private String costTypeValue; |
|||
@ApiModelProperty("付款申请明细的明细sid") |
|||
private String detailSid; // 付款申请明细的明细sid
|
|||
@ApiModelProperty("融资付款开通日期") |
|||
private String openDate; // 融资付款开通日期
|
|||
@ApiModelProperty("期数") |
|||
private String period; // 期数
|
|||
@ApiModelProperty("付款单位sid") |
|||
private String payCompanySid; // 付款单位sid
|
|||
@ApiModelProperty("付款单位名称") |
|||
private String payCompany; // 付款单位名称
|
|||
@ApiModelProperty("收款单位名称") |
|||
private String receiveCompany; // 收款单位名称
|
|||
@ApiModelProperty("收款单位sid") |
|||
private String receiveCompanySid; // 收款单位sid
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String receivingAccount; // 收款银行账号
|
|||
@ApiModelProperty("开户行") |
|||
private String bank; // 开户行
|
|||
@ApiModelProperty("平仓付款日期") |
|||
private String exePayDate; |
|||
@ApiModelProperty("平仓付款金额") |
|||
private BigDecimal exePayPrice; |
|||
} |
@ -0,0 +1,69 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpayment; |
|||
|
|||
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 com.yxt.anrui.fin.api.finpayment.FinPaymentDetailsVo; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPayment; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPaymentVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(付款信息管理) <br/> |
|||
* File: FinPaymentMapper.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpayment.FinPaymentMapper <br/> |
|||
* Description: 付款信息管理. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 14:27:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface FinPaymentMapper extends BaseMapper<FinPayment> { |
|||
|
|||
//@Update("update fin_payment set name=#{msg} where id=#{id}")
|
|||
//IPage<FinPaymentVo> voPage(IPage<FinPayment> page, @Param(Constants.WRAPPER) QueryWrapper<FinPayment> qw);
|
|||
|
|||
IPage<FinPaymentVo> selectPageVo(IPage<FinPayment> page, @Param(Constants.WRAPPER) Wrapper<FinPayment> qw); |
|||
|
|||
List<FinPaymentVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<FinPayment> qw); |
|||
|
|||
@Select("select * from fin_payment") |
|||
List<FinPaymentVo> selectListVo(); |
|||
|
|||
@Select("select * from fin_payment where useOrgSid = #{useOrgSid}") |
|||
List<FinPaymentDetailsVo> selectByUseOrgSid(String useOrgSid); |
|||
} |
@ -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.finpayment.FinPaymentMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.fin.api.finpayment.FinPaymentVo"> |
|||
SELECT * FROM fin_payment <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.fin.api.finpayment.FinPaymentVo"> |
|||
SELECT * FROM fin_payment <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,107 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpayment; |
|||
|
|||
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.finpayment.FinPayment; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPaymentQuery; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPaymentVo; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPaymentDetailsVo; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPaymentDto; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPaymentFeign; |
|||
|
|||
/** |
|||
* Project: anrui-fin(付款信息管理) <br/> |
|||
* File: FinPaymentFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpayment.FinPaymentRest <br/> |
|||
* Description: 付款信息管理. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 14:27:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "付款信息管理") |
|||
@RestController("com.yxt.anrui.fin.biz.finpayment.FinPaymentRest") |
|||
@RequestMapping("v1/finpayment") |
|||
public class FinPaymentRest implements FinPaymentFeign { |
|||
|
|||
@Autowired |
|||
private FinPaymentService finPaymentService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<FinPaymentVo>> listPage(@RequestBody PagerQuery<FinPaymentQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<FinPaymentVo> pv = finPaymentService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody FinPaymentDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finPaymentService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finPaymentService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<FinPaymentDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FinPaymentDetailsVo vo = finPaymentService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<FinPaymentDetailsVo>> selectByUseOrgSid(String useOrgSid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<FinPaymentDetailsVo> voList = finPaymentService.selectByUseOrgSid(useOrgSid); |
|||
return rb.success().setData(voList); |
|||
} |
|||
} |
@ -0,0 +1,114 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpayment; |
|||
|
|||
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.finpayment.FinPayment; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPaymentQuery; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPaymentVo; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPaymentDetailsVo; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPaymentDto; |
|||
import com.yxt.anrui.fin.api.finpayment.FinPaymentFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(付款信息管理) <br/> |
|||
* File: FinPaymentService.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpayment.FinPaymentService <br/> |
|||
* Description: 付款信息管理 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 14:27:54 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class FinPaymentService extends MybatisBaseService<FinPaymentMapper, FinPayment> { |
|||
private QueryWrapper<FinPayment> createQueryWrapper(FinPaymentQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<FinPayment> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<FinPaymentVo> listPageVo(PagerQuery<FinPaymentQuery> pq) { |
|||
FinPaymentQuery query = pq.getParams(); |
|||
QueryWrapper<FinPayment> qw = createQueryWrapper(query); |
|||
IPage<FinPayment> page = PagerUtil.queryToPage(pq); |
|||
IPage<FinPaymentVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<FinPaymentVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(FinPaymentDto dto) { |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(FinPaymentDto dto) { |
|||
FinPayment entity = new FinPayment(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(FinPaymentDto dto) { |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
FinPayment entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public FinPaymentDetailsVo fetchDetailsVoBySid(String sid) { |
|||
FinPayment entity = fetchBySid(sid); |
|||
FinPaymentDetailsVo vo = new FinPaymentDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
|
|||
public List<FinPaymentDetailsVo> selectByUseOrgSid(String useOrgSid) { |
|||
return baseMapper.selectByUseOrgSid(useOrgSid); |
|||
} |
|||
} |
@ -0,0 +1,69 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpaymentapplydetailsbeloweve; |
|||
|
|||
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 com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveDetailsVo; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEve; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(平仓) <br/> |
|||
* File: FinPaymentapplyDetailsBelowEveMapper.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveMapper <br/> |
|||
* Description: 付款申请明细-明细-平仓. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 10:03:07 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface FinPaymentapplyDetailsBelowEveMapper extends BaseMapper<FinPaymentapplyDetailsBelowEve> { |
|||
|
|||
//@Update("update fin_paymentapply_details_below_eve set name=#{msg} where id=#{id}")
|
|||
//IPage<FinPaymentapplyDetailsBelowEveVo> voPage(IPage<FinPaymentapplyDetailsBelowEve> page, @Param(Constants.WRAPPER) QueryWrapper<FinPaymentapplyDetailsBelowEve> qw);
|
|||
|
|||
IPage<FinPaymentapplyDetailsBelowEveVo> selectPageVo(IPage<FinPaymentapplyDetailsBelowEve> page, @Param(Constants.WRAPPER) Wrapper<FinPaymentapplyDetailsBelowEve> qw); |
|||
|
|||
List<FinPaymentapplyDetailsBelowEveVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<FinPaymentapplyDetailsBelowEve> qw); |
|||
|
|||
@Select("select * from fin_paymentapply_details_below_eve") |
|||
List<FinPaymentapplyDetailsBelowEveVo> selectListVo(); |
|||
|
|||
@Select("select * from fin_paymentapply_details_below_eve where detailSid = #{mainSid}") |
|||
List<FinPaymentapplyDetailsBelowEveDetailsVo> selByMainSid(String mainSid); |
|||
} |
@ -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.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveVo"> |
|||
SELECT * FROM fin_paymentapply_details_below_eve <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveVo"> |
|||
SELECT * FROM fin_paymentapply_details_below_eve <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpaymentapplydetailsbeloweve; |
|||
|
|||
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.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEve; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveQuery; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveVo; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveDetailsVo; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveDto; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveFeign; |
|||
|
|||
/** |
|||
* Project: anrui-fin(平仓) <br/> |
|||
* File: FinPaymentapplyDetailsBelowEveFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveRest <br/> |
|||
* Description: 付款申请明细-明细-平仓. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 10:03:07 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "付款申请明细-明细-平仓") |
|||
@RestController |
|||
@RequestMapping("v1/finpaymentapplydetailsbeloweve") |
|||
public class FinPaymentapplyDetailsBelowEveRest implements FinPaymentapplyDetailsBelowEveFeign { |
|||
|
|||
@Autowired |
|||
private FinPaymentapplyDetailsBelowEveService finPaymentapplyDetailsBelowEveService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<FinPaymentapplyDetailsBelowEveVo>> listPage(@RequestBody PagerQuery<FinPaymentapplyDetailsBelowEveQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<FinPaymentapplyDetailsBelowEveVo> pv = finPaymentapplyDetailsBelowEveService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody FinPaymentapplyDetailsBelowEveDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finPaymentapplyDetailsBelowEveService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finPaymentapplyDetailsBelowEveService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<FinPaymentapplyDetailsBelowEveDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FinPaymentapplyDetailsBelowEveDetailsVo vo = finPaymentapplyDetailsBelowEveService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,114 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finpaymentapplydetailsbeloweve; |
|||
|
|||
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.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEve; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveQuery; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveVo; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveDetailsVo; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveDto; |
|||
import com.yxt.anrui.fin.api.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(平仓) <br/> |
|||
* File: FinPaymentapplyDetailsBelowEveService.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finpaymentapplydetailsbeloweve.FinPaymentapplyDetailsBelowEveService <br/> |
|||
* Description: 付款申请明细-明细-平仓 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-12-13 10:03:07 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class FinPaymentapplyDetailsBelowEveService extends MybatisBaseService<FinPaymentapplyDetailsBelowEveMapper, FinPaymentapplyDetailsBelowEve> { |
|||
private QueryWrapper<FinPaymentapplyDetailsBelowEve> createQueryWrapper(FinPaymentapplyDetailsBelowEveQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<FinPaymentapplyDetailsBelowEve> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<FinPaymentapplyDetailsBelowEveVo> listPageVo(PagerQuery<FinPaymentapplyDetailsBelowEveQuery> pq) { |
|||
FinPaymentapplyDetailsBelowEveQuery query = pq.getParams(); |
|||
QueryWrapper<FinPaymentapplyDetailsBelowEve> qw = createQueryWrapper(query); |
|||
IPage<FinPaymentapplyDetailsBelowEve> page = PagerUtil.queryToPage(pq); |
|||
IPage<FinPaymentapplyDetailsBelowEveVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<FinPaymentapplyDetailsBelowEveVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(FinPaymentapplyDetailsBelowEveDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(FinPaymentapplyDetailsBelowEveDto dto){ |
|||
FinPaymentapplyDetailsBelowEve entity = new FinPaymentapplyDetailsBelowEve(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(FinPaymentapplyDetailsBelowEveDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
FinPaymentapplyDetailsBelowEve entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public FinPaymentapplyDetailsBelowEveDetailsVo fetchDetailsVoBySid(String sid){ |
|||
FinPaymentapplyDetailsBelowEve entity = fetchBySid(sid); |
|||
FinPaymentapplyDetailsBelowEveDetailsVo vo = new FinPaymentapplyDetailsBelowEveDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
|
|||
public List<FinPaymentapplyDetailsBelowEveDetailsVo> selByMainSid(String mainSid) { |
|||
return baseMapper.selByMainSid(mainSid); |
|||
} |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.yxt.anrui.scm.api.scmcollectionrebatecheckapply.flow; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class ScmCollectionRebateCheckApplyDelegateQuery { |
|||
|
|||
private String userSid; |
|||
@ApiModelProperty("流程实例id") |
|||
private String instanceId; |
|||
@ApiModelProperty("任务Id") |
|||
private String taskId; |
|||
@ApiModelProperty("审批人sid") |
|||
private String assignee; |
|||
@ApiModelProperty("填写意见") |
|||
private String views; |
|||
} |
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply; |
|||
|
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-scm(回款返利) <br/> |
|||
* File: ScmCollectionrebateCheckapplyVo.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcollectionrebatecheckapply.ScmCollectionrebateCheckapplyVo <br/> |
|||
* Description: 回款返利核对申请表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-27 15:14:19 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "回款返利核对申请表 视图数据详情", description = "回款返利核对申请表 视图数据详情") |
|||
public class AppCollectionrebateCheckapplyDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("核对申请标题") |
|||
private String checkApply; |
|||
@ApiModelProperty("部门") |
|||
private String deptName; |
|||
@ApiModelProperty("创建人姓名") |
|||
private String createByName; |
|||
@ApiModelProperty("申请日期") |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date createTime; |
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("流程实例的sid") |
|||
private String procInsId; |
|||
@ApiModelProperty("taskId") |
|||
private String taskId; |
|||
@ApiModelProperty("按返利类型统计") |
|||
private List<AppCollectionrebateCheckapplydetailDetailsVo> scmWhenCollectionrebateCheckapplydetailDetails; |
|||
@ApiModelProperty("按预提年月统计") |
|||
private List<AppCollectionrebateCheckapplydetailDetailsVo> scmLastCollectionrebateCheckapplydetailDetails; |
|||
} |
@ -0,0 +1,74 @@ |
|||
package com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply; |
|||
|
|||
|
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.flowable.AppDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.flowable.AppFlowDto; |
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.flowable.AppFlowQuery; |
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.flowable.AppFlowTaskQuery; |
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatewithapply.AppCollectionRebateDetailsVo; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.cloud.openfeign.SpringQueryMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author |
|||
* @Date |
|||
* @Description |
|||
*/ |
|||
@Api(tags = "售后盘盈入库") |
|||
@FeignClient( |
|||
contextId = "terminal-AppCollectionrebateCheckapply", |
|||
name = "anrui-terminal", |
|||
path = "v1/collectionrebatecheckapply") |
|||
public interface AppCollectionrebateCheckapplyFeign { |
|||
|
|||
@ApiOperation("详情") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<AppCollectionrebateCheckapplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("明细") |
|||
@GetMapping("/collectionRebateCheckDetails/{sid}") |
|||
public ResultBean<List<AppCollectionRebateDetailsVo>> collectionRebateCheckDetails(@PathVariable("sid") String sid); |
|||
|
|||
/**********************************************流程********************************************/ |
|||
|
|||
@ApiOperation("办理") |
|||
@PutMapping("/agreeCreditInfo") |
|||
@ResponseBody |
|||
ResultBean agreeCreditInfo(@RequestBody AppFlowDto dto); |
|||
|
|||
@ApiOperation("驳回") |
|||
@PutMapping("/rejectCreditInfo") |
|||
@ResponseBody |
|||
ResultBean rejectCreditInfo(@RequestBody AppFlowTaskQuery query); |
|||
|
|||
@ApiOperation("撤回") |
|||
@PutMapping("/recallCreditInfo") |
|||
@ResponseBody |
|||
ResultBean recallCreditInfo(@RequestBody AppFlowTaskQuery query); |
|||
|
|||
@ApiOperation("终止") |
|||
@PutMapping("/stopCreditInfo") |
|||
@ResponseBody |
|||
ResultBean stopCreditInfo(@RequestBody AppFlowTaskQuery query); |
|||
|
|||
@ApiOperation("获取流程操作标题") |
|||
@GetMapping("/getFlowOperateTitle") |
|||
@ResponseBody |
|||
ResultBean<String> getFlowOperateTitle(@SpringQueryMap AppFlowQuery query); |
|||
|
|||
@ApiOperation(value = "加签") |
|||
@PutMapping(value = "/delegate") |
|||
@ResponseBody |
|||
public ResultBean delegate(@RequestBody AppDelegateQuery delegateQuery); |
|||
|
|||
@ApiOperation(value = "转办") |
|||
@PutMapping(value = "/assignTask") |
|||
@ResponseBody |
|||
public ResultBean assignTask(@RequestBody AppDelegateQuery delegateQuery); |
|||
} |
@ -0,0 +1,69 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-scm(回款返利) <br/> |
|||
* File: ScmCollectionrebateCheckapplydetailVo.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcollectionrebatecheckapplydetail.ScmCollectionrebateCheckapplydetailVo <br/> |
|||
* Description: 回款返利核对申请表_返利列表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-27 15:14:19 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "回款返利核对申请表_返利列表 视图数据详情", description = "回款返利核对申请表_返利列表 视图数据详情") |
|||
public class AppCollectionrebateCheckapplydetailDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("预提日期") |
|||
private String withholdingDate; // 预提日期
|
|||
@ApiModelProperty("返利类型value") |
|||
private String rebateTypeValue; // 返利类型value
|
|||
@ApiModelProperty("台数") |
|||
private String num; // 台数
|
|||
@ApiModelProperty("预提金额") |
|||
private String estimateRebate; |
|||
@ApiModelProperty("上传金额") |
|||
private String uploadMoney; // 上传金额
|
|||
@ApiModelProperty("调整金额") |
|||
private String adjustmentMoney; // 调整金额
|
|||
@ApiModelProperty("回款返利sid") |
|||
private String collectionRebateSid; // 回款返利sid
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/9/28 10:16 |
|||
*/ |
|||
@Data |
|||
public class AppDelegateQuery { |
|||
@ApiModelProperty |
|||
private String userSid; |
|||
@ApiModelProperty("流程实例id") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
@ApiModelProperty("任务Id") |
|||
private String taskId; |
|||
@ApiModelProperty("审批人sid") |
|||
private String assignee; |
|||
@ApiModelProperty("填写意见") |
|||
private String views; |
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/8/9 14:09 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class AppFlowDto implements Dto { |
|||
private static final long serialVersionUID = 3626473483180150495L; |
|||
|
|||
@ApiModelProperty(value = "任务id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
@ApiModelProperty(value = "流程id") |
|||
@NotBlank(message = "参数错误:procInsId") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
@ApiModelProperty(value = "意见") |
|||
private String comment; |
|||
@ApiModelProperty(value = "业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "用户sid") |
|||
@NotBlank(message = "参数错误:userSid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "节点id") |
|||
@NotBlank(message = "参数错误:taskDefKey") |
|||
private String taskDefKey; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.flowable; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/8/9 14:15 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class AppFlowQuery implements Query { |
|||
private static final long serialVersionUID = 5514095179438249641L; |
|||
|
|||
@ApiModelProperty(value = "节点key") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "业务sid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "0 上一环节 1下一环节") |
|||
@NotNull(message = "参数错误:next") |
|||
private Integer next; |
|||
|
|||
@ApiModelProperty("组织机构全路径") |
|||
private String orgPath; |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/8/9 14:11 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class AppFlowTaskQuery implements Query { |
|||
private static final long serialVersionUID = -7082170710942810289L; |
|||
|
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("任务Id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
/** |
|||
* 终止、驳回 |
|||
*/ |
|||
@ApiModelProperty("任务意见") |
|||
private String comment; |
|||
/** |
|||
* 终止、撤回、驳回 |
|||
*/ |
|||
@ApiModelProperty("用户Sid") |
|||
private String userSid; |
|||
/** |
|||
* 终止 |
|||
*/ |
|||
@ApiModelProperty("流程实例Id") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
} |
@ -0,0 +1,90 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.supplychain.collectionrebatecheckapply; |
|||
|
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.AppCollectionrebateCheckapplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.AppCollectionrebateCheckapplyFeign; |
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatewithapply.AppCollectionRebateDetailsVo; |
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.flowable.*; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
@RestController |
|||
@RequestMapping("v1/collectionrebatecheckapply") |
|||
public class AppCollectionrebateCheckapplyRest implements AppCollectionrebateCheckapplyFeign { |
|||
|
|||
@Autowired |
|||
private AppCollectionrebateCheckapplyService appCollectionRebateWithApplyService; |
|||
|
|||
@Override |
|||
public ResultBean<AppCollectionrebateCheckapplyDetailsVo> fetchDetailsBySid(String sid) { |
|||
return appCollectionRebateWithApplyService.fetchDetailsBySid(sid); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<AppCollectionRebateDetailsVo>> collectionRebateCheckDetails(String sid) { |
|||
return appCollectionRebateWithApplyService.collectionRebateCheckDetails(sid); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(AppFlowDto dto) { |
|||
return appCollectionRebateWithApplyService.agreeCreditInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(AppFlowTaskQuery query) { |
|||
return appCollectionRebateWithApplyService.rejectCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(AppFlowTaskQuery query) { |
|||
return appCollectionRebateWithApplyService.recallCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(AppFlowTaskQuery query) { |
|||
return appCollectionRebateWithApplyService.stopCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(AppFlowQuery query) { |
|||
return appCollectionRebateWithApplyService.getFlowOperateTitle(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppDelegateQuery delegateQuery) { |
|||
return appCollectionRebateWithApplyService.delegate(delegateQuery); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean assignTask(AppDelegateQuery delegateQuery) { |
|||
return appCollectionRebateWithApplyService.assignTask(delegateQuery); |
|||
} |
|||
} |
@ -0,0 +1,199 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.supplychain.collectionrebatecheckapply; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrg; |
|||
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
|||
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|||
import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
|||
import com.yxt.anrui.scm.api.flow.FlowTaskVo; |
|||
import com.yxt.anrui.scm.api.scmcollectionrebate.ScmCollectionRebateDetailsVo; |
|||
import com.yxt.anrui.scm.api.scmcollectionrebatecheckapply.ScmCollectionrebateCheckapplyDetailsVo; |
|||
import com.yxt.anrui.scm.api.scmcollectionrebatecheckapply.ScmCollectionrebateCheckapplyFeign; |
|||
import com.yxt.anrui.scm.api.scmcollectionrebatecheckapply.flow.ScmCollectionRebateCheckApplyCompleteDto; |
|||
import com.yxt.anrui.scm.api.scmcollectionrebatecheckapply.flow.ScmCollectionRebateCheckApplyDelegateQuery; |
|||
import com.yxt.anrui.scm.api.scmcollectionrebatecheckapplydetail.ScmCollectionrebateCheckapplydetailFeign; |
|||
import com.yxt.anrui.scm.api.scmcollectionrebatewithapply.flow.GetNodeQuery; |
|||
import com.yxt.anrui.scm.api.scmcollectionrebatewithapply.flow.GetNodeVo; |
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.AppCollectionrebateCheckapplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.AppCollectionrebateCheckapplydetailDetailsVo; |
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatewithapply.AppCollectionRebateDetailsVo; |
|||
import com.yxt.anrui.terminal.api.supplychain.collectionrebatecheckapply.flowable.*; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.ArrayList; |
|||
import java.util.Collections; |
|||
import java.util.List; |
|||
|
|||
@Service |
|||
public class AppCollectionrebateCheckapplyService { |
|||
|
|||
@Resource |
|||
private ScmCollectionrebateCheckapplyFeign scmCollectionrebateCheckapplyFeign; |
|||
@Autowired |
|||
private ScmCollectionrebateCheckapplydetailFeign scmCollectionrebateCheckapplydetailFeign; |
|||
@Autowired |
|||
private SysStaffOrgFeign sysStaffOrgFeign; |
|||
@Autowired |
|||
private SysUserFeign sysUserFeign; |
|||
|
|||
public ResultBean<AppCollectionrebateCheckapplyDetailsVo> fetchDetailsBySid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
ScmCollectionrebateCheckapplyDetailsVo data = scmCollectionrebateCheckapplyFeign.fetchDetailsBySid(sid).getData(); |
|||
AppCollectionrebateCheckapplyDetailsVo appCollectionrebateCheckapplyDetailsVo = new AppCollectionrebateCheckapplyDetailsVo(); |
|||
appCollectionrebateCheckapplyDetailsVo.setProcInsId(data.getProcInstId()); |
|||
BeanUtil.copyProperties(data, appCollectionrebateCheckapplyDetailsVo); |
|||
List<AppCollectionrebateCheckapplydetailDetailsVo> when = appCollectionrebateCheckapplyDetailsVo.getScmWhenCollectionrebateCheckapplydetailDetails(); |
|||
List<AppCollectionrebateCheckapplydetailDetailsVo> last = appCollectionrebateCheckapplyDetailsVo.getScmLastCollectionrebateCheckapplydetailDetails(); |
|||
for (AppCollectionrebateCheckapplydetailDetailsVo collectionrebateCheckapplydetailDetailsVo : when) { |
|||
collectionrebateCheckapplydetailDetailsVo.setSid(collectionrebateCheckapplydetailDetailsVo.getCollectionRebateSid()); |
|||
} |
|||
for (AppCollectionrebateCheckapplydetailDetailsVo collectionrebateCheckapplydetailDetailsVo : last) { |
|||
collectionrebateCheckapplydetailDetailsVo.setSid(collectionrebateCheckapplydetailDetailsVo.getCollectionRebateSid()); |
|||
} |
|||
return rb.success().setData(appCollectionrebateCheckapplyDetailsVo); |
|||
} |
|||
|
|||
public ResultBean<List<AppCollectionRebateDetailsVo>> collectionRebateCheckDetails(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<AppCollectionRebateDetailsVo> appCollectionRebateDetailsVos = new ArrayList<>(); |
|||
List<ScmCollectionRebateDetailsVo> data = scmCollectionrebateCheckapplydetailFeign.collectionRebateCheckDetails(sid).getData(); |
|||
for (ScmCollectionRebateDetailsVo datum : data) { |
|||
AppCollectionRebateDetailsVo appCollectionRebateDetailsVo = new AppCollectionRebateDetailsVo(); |
|||
BeanUtil.copyProperties(datum,appCollectionRebateDetailsVo); |
|||
appCollectionRebateDetailsVos.add(appCollectionRebateDetailsVo); |
|||
} |
|||
return rb.success().setData(appCollectionRebateDetailsVos); |
|||
} |
|||
|
|||
public ResultBean agreeCreditInfo(AppFlowDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
//根据用户sid获取staffSid
|
|||
ResultBean<SysUserVo> userVoResultBean = sysUserFeign.fetchBySid(dto.getUserSid()); |
|||
if (!userVoResultBean.getSuccess()) { |
|||
return rb.setMsg(userVoResultBean.getMsg()); |
|||
} |
|||
//根据staffSid获取用户的组织全路径
|
|||
ResultBean<SysStaffOrg> staffOrgResultBean = sysStaffOrgFeign.getOrgByStaffSid(userVoResultBean.getData().getStaffSid()); |
|||
if (!staffOrgResultBean.getSuccess()) { |
|||
return rb.setMsg(staffOrgResultBean.getMsg()); |
|||
} |
|||
//用户的组织全路径
|
|||
String orgSidPath = staffOrgResultBean.getData().getOrgSidPath(); |
|||
ScmCollectionRebateCheckApplyCompleteDto scmCollectionRebateCheckApplyCompleteDto = new ScmCollectionRebateCheckApplyCompleteDto(); |
|||
BeanUtil.copyProperties(dto, scmCollectionRebateCheckApplyCompleteDto); |
|||
scmCollectionRebateCheckApplyCompleteDto.setOrgSidPath(orgSidPath); |
|||
ResultBean resultBean = scmCollectionrebateCheckapplyFeign.complete(scmCollectionRebateCheckApplyCompleteDto); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean rejectCreditInfo(AppFlowTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FlowTaskVo flowTaskVo = new FlowTaskVo(); |
|||
BeanUtil.copyProperties(query, flowTaskVo); |
|||
ResultBean resultBean = scmCollectionrebateCheckapplyFeign.taskReject(flowTaskVo); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean recallCreditInfo(AppFlowTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FlowTaskVo flowTaskVo = new FlowTaskVo(); |
|||
BeanUtil.copyProperties(query, flowTaskVo); |
|||
ResultBean resultBean = scmCollectionrebateCheckapplyFeign.revokeProcess(flowTaskVo); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean stopCreditInfo(AppFlowTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FlowTaskVo flowTaskVo = new FlowTaskVo(); |
|||
BeanUtil.copyProperties(query, flowTaskVo); |
|||
ResultBean resultBean = scmCollectionrebateCheckapplyFeign.breakProcess(flowTaskVo); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean<String> getFlowOperateTitle(AppFlowQuery query) { |
|||
ResultBean<String> rb = ResultBean.fireFail(); |
|||
//0 上一环节 1下一环节
|
|||
int next = query.getNext(); |
|||
GetNodeQuery getNodeQuery = new GetNodeQuery(); |
|||
BeanUtil.copyProperties(query, getNodeQuery); |
|||
String data = ""; |
|||
if (next == 0) { |
|||
ResultBean<List<GetNodeVo>> getPreviousNodesForReject = scmCollectionrebateCheckapplyFeign.getPreviousNodesForReject(getNodeQuery); |
|||
if (getPreviousNodesForReject.getSuccess()) { |
|||
getPreviousNodesForReject.getData().removeAll(Collections.singleton(null)); |
|||
data = getPreviousNodesForReject.getData().get(0).getName(); |
|||
} else { |
|||
return rb.setMsg(getPreviousNodesForReject.getMsg()); |
|||
} |
|||
} else if (next == 1) { |
|||
ResultBean<List<GetNodeVo>> getNextNodesForSubmit = scmCollectionrebateCheckapplyFeign.getNextNodesForSubmit(getNodeQuery); |
|||
if (getNextNodesForSubmit.getSuccess()) { |
|||
getNextNodesForSubmit.getData().removeAll(Collections.singleton(null)); |
|||
data = getNextNodesForSubmit.getData().get(0).getName(); |
|||
} else { |
|||
return rb.setMsg(getNextNodesForSubmit.getMsg()); |
|||
} |
|||
} else { |
|||
return rb.setMsg("参数错误:next"); |
|||
} |
|||
return rb.success().setData(data); |
|||
} |
|||
|
|||
public ResultBean delegate(AppDelegateQuery delegateQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
ScmCollectionRebateCheckApplyDelegateQuery delegateQuery1 = new |
|||
ScmCollectionRebateCheckApplyDelegateQuery(); |
|||
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
|||
scmCollectionrebateCheckapplyFeign.delegate(delegateQuery1); |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean assignTask(AppDelegateQuery delegateQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
ScmCollectionRebateCheckApplyDelegateQuery delegateQuery1 = new |
|||
ScmCollectionRebateCheckApplyDelegateQuery(); |
|||
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
|||
scmCollectionrebateCheckapplyFeign.assignTask(delegateQuery1); |
|||
return rb.success(); |
|||
} |
|||
} |
Loading…
Reference in new issue