
51 changed files with 5276 additions and 0 deletions
@ -0,0 +1,81 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscollectionconfirmation; |
|||
|
|||
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; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCollectionConfirmation.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscollectionconfirmation.BusCollectionConfirmation <br/> |
|||
* Description: 收款确认表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "收款确认表", description = "收款确认表") |
|||
@Data |
|||
@TableName("bus_collection_confirmation") |
|||
public class BusCollectionConfirmation extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
@ApiModelProperty("收款日期") |
|||
private String collectionDate; // 收款日期
|
|||
@ApiModelProperty("收款银行") |
|||
private String collectionBank; // 收款银行
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String collectionBankNum; // 收款银行账号
|
|||
@ApiModelProperty("收款方式key") |
|||
private String collectionTypeKey; // 收款方式key
|
|||
@ApiModelProperty("收款方式value") |
|||
private String collectionTypeValue; // 收款方式value
|
|||
@ApiModelProperty("付款方名称") |
|||
private String payerName; // 付款方名称
|
|||
@ApiModelProperty("收款金额") |
|||
private BigDecimal collectionMoney; // 收款金额
|
|||
@ApiModelProperty("打款凭证Url") |
|||
private String paymentVoucherUrl; // 打款凭证Url
|
|||
@ApiModelProperty("汇款确认书Url") |
|||
private String remittanceConfirmationUrl; // 汇款确认书Url
|
|||
@ApiModelProperty("余额") |
|||
private BigDecimal balance; // 余额
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("认款状态") |
|||
private Integer subscriptionState; // 认款状态
|
|||
} |
@ -0,0 +1,87 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscollectionconfirmation; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCollectionConfirmationVo.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscollectionconfirmation.BusCollectionConfirmationVo <br/> |
|||
* Description: 收款确认表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "收款确认表 视图数据对象", description = "收款确认表 视图数据对象") |
|||
@Data |
|||
public class BusCollectionConfirmationDetailsVo implements Vo { |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("收款日期") |
|||
private String collectionDate; // 收款日期
|
|||
|
|||
@ApiModelProperty("收款银行") |
|||
private String collectionBank; // 收款银行
|
|||
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String collectionBankNum; // 收款银行账号
|
|||
|
|||
@ApiModelProperty("收款方式key") |
|||
private String collectionTypeKey; // 收款方式key
|
|||
|
|||
@ApiModelProperty("收款方式value") |
|||
private String collectionTypeValue; // 收款方式value
|
|||
|
|||
@ApiModelProperty("付款方名称") |
|||
private String payerName; // 付款方名称
|
|||
|
|||
@ApiModelProperty("收款金额") |
|||
private String collectionMoney; // 收款金额
|
|||
|
|||
@ApiModelProperty("打款凭证Url") |
|||
private String paymentVoucherUrl; // 打款凭证Url
|
|||
|
|||
@ApiModelProperty("汇款确认书Url") |
|||
private String remittanceConfirmationUrl; // 汇款确认书Url
|
|||
|
|||
@ApiModelProperty("余额") |
|||
private String balance; // 余额
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
} |
@ -0,0 +1,83 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscollectionconfirmation; |
|||
|
|||
|
|||
import com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedDto; |
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCollectionConfirmationDto.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscollectionconfirmation.BusCollectionConfirmationDto <br/> |
|||
* Description: 收款确认表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "收款确认表 数据传输对象", description = "收款确认表 数据传输对象") |
|||
@Data |
|||
public class BusCollectionConfirmationDto implements Dto { |
|||
|
|||
@ApiModelProperty("收款确认单sid") |
|||
private String sid; // 收款确认单sid
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
@ApiModelProperty("收款日期") |
|||
private String collectionDate; // 收款日期
|
|||
@ApiModelProperty("收款银行") |
|||
private String collectionBank; // 收款银行
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String collectionBankNum; // 收款银行账号
|
|||
@ApiModelProperty("收款方式key") |
|||
private String collectionTypeKey; // 收款方式key
|
|||
@ApiModelProperty("收款方式value") |
|||
private String collectionTypeValue; // 收款方式value
|
|||
@ApiModelProperty("付款方名称") |
|||
private String payerName; // 付款方名称
|
|||
@ApiModelProperty("收款金额") |
|||
private String collectionMoney; // 收款金额
|
|||
@ApiModelProperty("打款凭证Url") |
|||
private String paymentVoucherUrl; // 打款凭证Url
|
|||
@ApiModelProperty("汇款确认书Url") |
|||
private String remittanceConfirmationUrl; // 汇款确认书Url
|
|||
@ApiModelProperty("余额") |
|||
private String balance; // 余额
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("已选应收款项明细") |
|||
private List<BusSelectedReceivablesDetailedDto> busSelectedReceivablesDetailedDtos; // 已选应收款项明细
|
|||
} |
@ -0,0 +1,74 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscollectionconfirmation; |
|||
|
|||
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-buscenter(销售相关) <br/> |
|||
* File: BusCollectionConfirmationFeign.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscollectionconfirmation.BusCollectionConfirmationFeign <br/> |
|||
* Description: 收款确认表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "收款确认表") |
|||
@FeignClient( |
|||
contextId = "anrui-buscenter-BusCollectionConfirmation", |
|||
name = "anrui-buscenter", |
|||
path = "buscollectionconfirmation", |
|||
fallback = BusCollectionConfirmationFeignFallback.class) |
|||
public interface BusCollectionConfirmationFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<BusCollectionConfirmationVo>> listPage(@RequestBody PagerQuery<BusCollectionConfirmationQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改保存") |
|||
@PostMapping("/saveOrUpdate") |
|||
public ResultBean saveOrUpdate(@RequestBody BusCollectionConfirmationDto dto); |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("编辑回显或详情") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<BusCollectionConfirmationDetailsVo> fetchBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscollectionconfirmation; |
|||
|
|||
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-buscenter(销售相关) <br/> |
|||
* File: BusCollectionConfirmationFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscollectionconfirmation.BusCollectionConfirmationFeignFallback <br/> |
|||
* Description: 收款确认表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class BusCollectionConfirmationFeignFallback implements BusCollectionConfirmationFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<BusCollectionConfirmationVo>> listPage(PagerQuery<BusCollectionConfirmationQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscollectionconfirmation/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean saveOrUpdate(BusCollectionConfirmationDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/buscollectionconfirmation/saveOrUpdate无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/buscollectionconfirmation/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<BusCollectionConfirmationDetailsVo> fetchBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscollectionconfirmation/fetchBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,60 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscollectionconfirmation; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCollectionConfirmationQuery.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscollectionconfirmation.BusCollectionConfirmationQuery <br/> |
|||
* Description: 收款确认表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "收款确认表 查询条件", description = "收款确认表 查询条件") |
|||
@Data |
|||
public class BusCollectionConfirmationQuery implements Query { |
|||
|
|||
@ApiModelProperty("收款日期") |
|||
private String collectionDate; // 收款日期
|
|||
@ApiModelProperty("收款银行") |
|||
private String collectionBank; // 收款银行
|
|||
@ApiModelProperty("收款方式key") |
|||
private String collectionTypeKey; // 收款方式key
|
|||
@ApiModelProperty("认款状态") |
|||
private String subscriptionState; // 认款状态
|
|||
} |
@ -0,0 +1,68 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscollectionconfirmation; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCollectionConfirmationVo.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscollectionconfirmation.BusCollectionConfirmationVo <br/> |
|||
* Description: 收款确认表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "收款确认表 视图数据对象", description = "收款确认表 视图数据对象") |
|||
@Data |
|||
public class BusCollectionConfirmationVo implements Vo { |
|||
|
|||
@ApiModelProperty("收款日期") |
|||
private String collectionDate; // 收款日期
|
|||
@ApiModelProperty("收款银行") |
|||
private String collectionBank; // 收款银行
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String collectionBankNum; // 收款银行账号
|
|||
@ApiModelProperty("收款方式value") |
|||
private String collectionTypeValue; // 收款方式value
|
|||
@ApiModelProperty("付款方名称") |
|||
private String payerName; // 付款方名称
|
|||
@ApiModelProperty("收款金额") |
|||
private String collectionMoney; // 收款金额
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; // 备注
|
|||
@ApiModelProperty("认款状态") |
|||
private String subscriptionState; // 认款状态
|
|||
} |
@ -0,0 +1,294 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbill; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBill.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBill <br/> |
|||
* Description: 客户账单表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "客户账单表", description = "客户账单表") |
|||
@TableName("bus_customer_bill") |
|||
public class BusCustomerBill extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("款项类型key") |
|||
private String paymentTypeKey; // 款项类型key
|
|||
|
|||
@ApiModelProperty("款项类型value") |
|||
private String paymentTypeValue; // 款项类型value
|
|||
|
|||
@ApiModelProperty("款项名称") |
|||
private String paymentName; // 款项名称
|
|||
|
|||
@ApiModelProperty("款项状态") |
|||
private Integer paymentState; // 款项状态
|
|||
|
|||
@ApiModelProperty("应收金额") |
|||
private BigDecimal receivableMoney; // 应收金额
|
|||
|
|||
@ApiModelProperty("实收金额") |
|||
private BigDecimal netReceiptsMoney; // 实收金额
|
|||
|
|||
@ApiModelProperty("未收金额") |
|||
private BigDecimal uncollectedMoney; // 未收金额
|
|||
|
|||
@ApiModelProperty("生成时间") |
|||
private String generateDate; // 生成时间
|
|||
|
|||
@ApiModelProperty("最新处理时间") |
|||
private String latestProcessingDate; // 最新处理时间
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
|
|||
/** |
|||
* @return 创建人接口 |
|||
*/ |
|||
public String getCreateByName(){ |
|||
return createByName; |
|||
} |
|||
|
|||
/** |
|||
* @param createByName 创建人接口 to set |
|||
*/ |
|||
public void setCreateByName(String createByName){ |
|||
this.createByName = createByName; |
|||
} |
|||
/** |
|||
* @return 合同sid |
|||
*/ |
|||
public String getContractSid(){ |
|||
return contractSid; |
|||
} |
|||
|
|||
/** |
|||
* @param contractSid 合同sid to set |
|||
*/ |
|||
public void setContractSid(String contractSid){ |
|||
this.contractSid = contractSid; |
|||
} |
|||
/** |
|||
* @return 合同编号 |
|||
*/ |
|||
public String getContractNo(){ |
|||
return contractNo; |
|||
} |
|||
|
|||
/** |
|||
* @param contractNo 合同编号 to set |
|||
*/ |
|||
public void setContractNo(String contractNo){ |
|||
this.contractNo = contractNo; |
|||
} |
|||
/** |
|||
* @return 客户sid |
|||
*/ |
|||
public String getCustomerSid(){ |
|||
return customerSid; |
|||
} |
|||
|
|||
/** |
|||
* @param customerSid 客户sid to set |
|||
*/ |
|||
public void setCustomerSid(String customerSid){ |
|||
this.customerSid = customerSid; |
|||
} |
|||
/** |
|||
* @return 客户名称 |
|||
*/ |
|||
public String getCustomerName(){ |
|||
return customerName; |
|||
} |
|||
|
|||
/** |
|||
* @param customerName 客户名称 to set |
|||
*/ |
|||
public void setCustomerName(String customerName){ |
|||
this.customerName = customerName; |
|||
} |
|||
/** |
|||
* @return 款项类型key |
|||
*/ |
|||
public String getPaymentTypeKey(){ |
|||
return paymentTypeKey; |
|||
} |
|||
|
|||
/** |
|||
* @param paymentTypeKey 款项类型key to set |
|||
*/ |
|||
public void setPaymentTypeKey(String paymentTypeKey){ |
|||
this.paymentTypeKey = paymentTypeKey; |
|||
} |
|||
/** |
|||
* @return 款项类型value |
|||
*/ |
|||
public String getPaymentTypeValue(){ |
|||
return paymentTypeValue; |
|||
} |
|||
|
|||
/** |
|||
* @param paymentTypeValue 款项类型value to set |
|||
*/ |
|||
public void setPaymentTypeValue(String paymentTypeValue){ |
|||
this.paymentTypeValue = paymentTypeValue; |
|||
} |
|||
/** |
|||
* @return 款项名称 |
|||
*/ |
|||
public String getPaymentName(){ |
|||
return paymentName; |
|||
} |
|||
|
|||
/** |
|||
* @param paymentName 款项名称 to set |
|||
*/ |
|||
public void setPaymentName(String paymentName){ |
|||
this.paymentName = paymentName; |
|||
} |
|||
/** |
|||
* @return 款项状态 |
|||
*/ |
|||
public Integer getPaymentState(){ |
|||
return paymentState; |
|||
} |
|||
|
|||
/** |
|||
* @param paymentState 款项状态 to set |
|||
*/ |
|||
public void setPaymentState(Integer paymentState){ |
|||
this.paymentState = paymentState; |
|||
} |
|||
/** |
|||
* @return 应收金额 |
|||
*/ |
|||
public BigDecimal getReceivableMoney(){ |
|||
return receivableMoney; |
|||
} |
|||
|
|||
/** |
|||
* @param receivableMoney 应收金额 to set |
|||
*/ |
|||
public void setReceivableMoney(BigDecimal receivableMoney){ |
|||
this.receivableMoney = receivableMoney; |
|||
} |
|||
/** |
|||
* @return 实收金额 |
|||
*/ |
|||
public BigDecimal getNetReceiptsMoney(){ |
|||
return netReceiptsMoney; |
|||
} |
|||
|
|||
/** |
|||
* @param netReceiptsMoney 实收金额 to set |
|||
*/ |
|||
public void setNetReceiptsMoney(BigDecimal netReceiptsMoney){ |
|||
this.netReceiptsMoney = netReceiptsMoney; |
|||
} |
|||
/** |
|||
* @return 未收金额 |
|||
*/ |
|||
public BigDecimal getUncollectedMoney(){ |
|||
return uncollectedMoney; |
|||
} |
|||
|
|||
/** |
|||
* @param uncollectedMoney 未收金额 to set |
|||
*/ |
|||
public void setUncollectedMoney(BigDecimal uncollectedMoney){ |
|||
this.uncollectedMoney = uncollectedMoney; |
|||
} |
|||
/** |
|||
* @return 生成时间 |
|||
*/ |
|||
public String getGenerateDate(){ |
|||
return generateDate; |
|||
} |
|||
|
|||
/** |
|||
* @param generateDate 生成时间 to set |
|||
*/ |
|||
public void setGenerateDate(String generateDate){ |
|||
this.generateDate = generateDate; |
|||
} |
|||
/** |
|||
* @return 最新处理时间 |
|||
*/ |
|||
public String getLatestProcessingDate(){ |
|||
return latestProcessingDate; |
|||
} |
|||
|
|||
/** |
|||
* @param latestProcessingDate 最新处理时间 to set |
|||
*/ |
|||
public void setLatestProcessingDate(String latestProcessingDate){ |
|||
this.latestProcessingDate = latestProcessingDate; |
|||
} |
|||
/** |
|||
* @return 分公司sid |
|||
*/ |
|||
public String getUseOrgSid(){ |
|||
return useOrgSid; |
|||
} |
|||
|
|||
/** |
|||
* @param useOrgSid 分公司sid to set |
|||
*/ |
|||
public void setUseOrgSid(String useOrgSid){ |
|||
this.useOrgSid = useOrgSid; |
|||
} |
|||
} |
@ -0,0 +1,99 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbill; |
|||
|
|||
|
|||
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-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillDto.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillDto <br/> |
|||
* Description: 客户账单表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "客户账单表 数据传输对象", description = "客户账单表 数据传输对象") |
|||
@Data |
|||
public class BusCustomerBillDto implements Dto { |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("款项类型key") |
|||
private String paymentTypeKey; // 款项类型key
|
|||
|
|||
@ApiModelProperty("款项类型value") |
|||
private String paymentTypeValue; // 款项类型value
|
|||
|
|||
@ApiModelProperty("款项名称") |
|||
private String paymentName; // 款项名称
|
|||
|
|||
@ApiModelProperty("款项状态") |
|||
private Integer paymentState; // 款项状态
|
|||
|
|||
@ApiModelProperty("应收金额") |
|||
private String receivableMoney; // 应收金额
|
|||
|
|||
@ApiModelProperty("实收金额") |
|||
private String netReceiptsMoney; // 实收金额
|
|||
|
|||
@ApiModelProperty("未收金额") |
|||
private String uncollectedMoney; // 未收金额
|
|||
|
|||
@ApiModelProperty("生成时间") |
|||
private String generateDate; // 生成时间
|
|||
|
|||
@ApiModelProperty("最新处理时间") |
|||
private String latestProcessingDate; // 最新处理时间
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
} |
@ -0,0 +1,94 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbill; |
|||
|
|||
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-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillFeign.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillFeign <br/> |
|||
* Description: 客户账单表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "客户账单表") |
|||
@FeignClient( |
|||
contextId = "anrui-buscenter-BusCustomerBill", |
|||
name = "anrui-buscenter", |
|||
path = "buscustomerbill", |
|||
fallback = BusCustomerBillFeignFallback.class) |
|||
public interface BusCustomerBillFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<BusCustomerBillVo>> listPage(@RequestBody PagerQuery<BusCustomerBillQuery> pq); |
|||
|
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<BusCustomerBillVo>> listAll(@RequestBody BusCustomerBillQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<BusCustomerBillVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody BusCustomerBillDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody BusCustomerBillDto dto, @PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<BusCustomerBillVo> fetch(@PathVariable("id") String id); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<BusCustomerBillVo> fetchBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbill; |
|||
|
|||
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-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillFeignFallback <br/> |
|||
* Description: 客户账单表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class BusCustomerBillFeignFallback implements BusCustomerBillFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<BusCustomerBillVo>> listPage(PagerQuery<BusCustomerBillQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscustomerbill/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<BusCustomerBillVo>> listAll(BusCustomerBillQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscustomerbill/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<BusCustomerBillVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscustomerbill/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(BusCustomerBillDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/buscustomerbill/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(BusCustomerBillDto dto, String sid){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/buscustomerbill/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean del(String ids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/buscustomerbill/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/buscustomerbill/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<BusCustomerBillVo> fetch(String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscustomerbill/fetch无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<BusCustomerBillVo> fetchBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscustomerbill/fetchBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,96 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbill; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillQuery.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillQuery <br/> |
|||
* Description: 客户账单表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "客户账单表 查询条件", description = "客户账单表 查询条件") |
|||
@Data |
|||
public class BusCustomerBillQuery implements Query { |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("款项类型key") |
|||
private String paymentTypeKey; // 款项类型key
|
|||
|
|||
@ApiModelProperty("款项类型value") |
|||
private String paymentTypeValue; // 款项类型value
|
|||
|
|||
@ApiModelProperty("款项名称") |
|||
private String paymentName; // 款项名称
|
|||
|
|||
@ApiModelProperty("款项状态") |
|||
private Integer paymentState; // 款项状态
|
|||
|
|||
@ApiModelProperty("应收金额") |
|||
private String receivableMoney; // 应收金额
|
|||
|
|||
@ApiModelProperty("实收金额") |
|||
private String netReceiptsMoney; // 实收金额
|
|||
|
|||
@ApiModelProperty("未收金额") |
|||
private String uncollectedMoney; // 未收金额
|
|||
|
|||
@ApiModelProperty("生成时间") |
|||
private String generateDate; // 生成时间
|
|||
|
|||
@ApiModelProperty("最新处理时间") |
|||
private String latestProcessingDate; // 最新处理时间
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
} |
@ -0,0 +1,97 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbill; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillVo.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillVo <br/> |
|||
* Description: 客户账单表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "客户账单表 视图数据对象", description = "客户账单表 视图数据对象") |
|||
@Data |
|||
public class BusCustomerBillVo implements Vo { |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("款项类型key") |
|||
private String paymentTypeKey; // 款项类型key
|
|||
|
|||
@ApiModelProperty("款项类型value") |
|||
private String paymentTypeValue; // 款项类型value
|
|||
|
|||
@ApiModelProperty("款项名称") |
|||
private String paymentName; // 款项名称
|
|||
|
|||
@ApiModelProperty("款项状态") |
|||
private Integer paymentState; // 款项状态
|
|||
|
|||
@ApiModelProperty("应收金额") |
|||
private String receivableMoney; // 应收金额
|
|||
|
|||
@ApiModelProperty("实收金额") |
|||
private String netReceiptsMoney; // 实收金额
|
|||
|
|||
@ApiModelProperty("未收金额") |
|||
private String uncollectedMoney; // 未收金额
|
|||
|
|||
@ApiModelProperty("生成时间") |
|||
private String generateDate; // 生成时间
|
|||
|
|||
@ApiModelProperty("最新处理时间") |
|||
private String latestProcessingDate; // 最新处理时间
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
} |
@ -0,0 +1,278 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbilldetailed; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillDetailed.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailed <br/> |
|||
* Description: 客户账单明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "客户账单明细表", description = "客户账单明细表") |
|||
@TableName("bus_customer_bill_detailed") |
|||
public class BusCustomerBillDetailed extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("款项类型key") |
|||
private String paymentTypeKey; // 款项类型key
|
|||
|
|||
@ApiModelProperty("款项类型value") |
|||
private String paymentTypeValue; // 款项类型value
|
|||
|
|||
@ApiModelProperty("款项名称") |
|||
private String paymentName; // 款项名称
|
|||
|
|||
@ApiModelProperty("款项状态") |
|||
private Integer paymentState; // 款项状态
|
|||
|
|||
@ApiModelProperty("应收金额") |
|||
private BigDecimal receivableMoney; // 应收金额
|
|||
|
|||
@ApiModelProperty("实收金额") |
|||
private BigDecimal netReceiptsMoney; // 实收金额
|
|||
|
|||
@ApiModelProperty("未收金额") |
|||
private BigDecimal uncollectedMoney; // 未收金额
|
|||
|
|||
@ApiModelProperty("生成时间") |
|||
private String generateDate; // 生成时间
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
|
|||
/** |
|||
* @return 创建人接口 |
|||
*/ |
|||
public String getCreateByName(){ |
|||
return createByName; |
|||
} |
|||
|
|||
/** |
|||
* @param createByName 创建人接口 to set |
|||
*/ |
|||
public void setCreateByName(String createByName){ |
|||
this.createByName = createByName; |
|||
} |
|||
/** |
|||
* @return 合同sid |
|||
*/ |
|||
public String getContractSid(){ |
|||
return contractSid; |
|||
} |
|||
|
|||
/** |
|||
* @param contractSid 合同sid to set |
|||
*/ |
|||
public void setContractSid(String contractSid){ |
|||
this.contractSid = contractSid; |
|||
} |
|||
/** |
|||
* @return 合同编号 |
|||
*/ |
|||
public String getContractNo(){ |
|||
return contractNo; |
|||
} |
|||
|
|||
/** |
|||
* @param contractNo 合同编号 to set |
|||
*/ |
|||
public void setContractNo(String contractNo){ |
|||
this.contractNo = contractNo; |
|||
} |
|||
/** |
|||
* @return 客户sid |
|||
*/ |
|||
public String getCustomerSid(){ |
|||
return customerSid; |
|||
} |
|||
|
|||
/** |
|||
* @param customerSid 客户sid to set |
|||
*/ |
|||
public void setCustomerSid(String customerSid){ |
|||
this.customerSid = customerSid; |
|||
} |
|||
/** |
|||
* @return 客户名称 |
|||
*/ |
|||
public String getCustomerName(){ |
|||
return customerName; |
|||
} |
|||
|
|||
/** |
|||
* @param customerName 客户名称 to set |
|||
*/ |
|||
public void setCustomerName(String customerName){ |
|||
this.customerName = customerName; |
|||
} |
|||
/** |
|||
* @return 款项类型key |
|||
*/ |
|||
public String getPaymentTypeKey(){ |
|||
return paymentTypeKey; |
|||
} |
|||
|
|||
/** |
|||
* @param paymentTypeKey 款项类型key to set |
|||
*/ |
|||
public void setPaymentTypeKey(String paymentTypeKey){ |
|||
this.paymentTypeKey = paymentTypeKey; |
|||
} |
|||
/** |
|||
* @return 款项类型value |
|||
*/ |
|||
public String getPaymentTypeValue(){ |
|||
return paymentTypeValue; |
|||
} |
|||
|
|||
/** |
|||
* @param paymentTypeValue 款项类型value to set |
|||
*/ |
|||
public void setPaymentTypeValue(String paymentTypeValue){ |
|||
this.paymentTypeValue = paymentTypeValue; |
|||
} |
|||
/** |
|||
* @return 款项名称 |
|||
*/ |
|||
public String getPaymentName(){ |
|||
return paymentName; |
|||
} |
|||
|
|||
/** |
|||
* @param paymentName 款项名称 to set |
|||
*/ |
|||
public void setPaymentName(String paymentName){ |
|||
this.paymentName = paymentName; |
|||
} |
|||
/** |
|||
* @return 款项状态 |
|||
*/ |
|||
public Integer getPaymentState(){ |
|||
return paymentState; |
|||
} |
|||
|
|||
/** |
|||
* @param paymentState 款项状态 to set |
|||
*/ |
|||
public void setPaymentState(Integer paymentState){ |
|||
this.paymentState = paymentState; |
|||
} |
|||
/** |
|||
* @return 应收金额 |
|||
*/ |
|||
public BigDecimal getReceivableMoney(){ |
|||
return receivableMoney; |
|||
} |
|||
|
|||
/** |
|||
* @param receivableMoney 应收金额 to set |
|||
*/ |
|||
public void setReceivableMoney(BigDecimal receivableMoney){ |
|||
this.receivableMoney = receivableMoney; |
|||
} |
|||
/** |
|||
* @return 实收金额 |
|||
*/ |
|||
public BigDecimal getNetReceiptsMoney(){ |
|||
return netReceiptsMoney; |
|||
} |
|||
|
|||
/** |
|||
* @param netReceiptsMoney 实收金额 to set |
|||
*/ |
|||
public void setNetReceiptsMoney(BigDecimal netReceiptsMoney){ |
|||
this.netReceiptsMoney = netReceiptsMoney; |
|||
} |
|||
/** |
|||
* @return 未收金额 |
|||
*/ |
|||
public BigDecimal getUncollectedMoney(){ |
|||
return uncollectedMoney; |
|||
} |
|||
|
|||
/** |
|||
* @param uncollectedMoney 未收金额 to set |
|||
*/ |
|||
public void setUncollectedMoney(BigDecimal uncollectedMoney){ |
|||
this.uncollectedMoney = uncollectedMoney; |
|||
} |
|||
/** |
|||
* @return 生成时间 |
|||
*/ |
|||
public String getGenerateDate(){ |
|||
return generateDate; |
|||
} |
|||
|
|||
/** |
|||
* @param generateDate 生成时间 to set |
|||
*/ |
|||
public void setGenerateDate(String generateDate){ |
|||
this.generateDate = generateDate; |
|||
} |
|||
/** |
|||
* @return 分公司sid |
|||
*/ |
|||
public String getUseOrgSid(){ |
|||
return useOrgSid; |
|||
} |
|||
|
|||
/** |
|||
* @param useOrgSid 分公司sid to set |
|||
*/ |
|||
public void setUseOrgSid(String useOrgSid){ |
|||
this.useOrgSid = useOrgSid; |
|||
} |
|||
} |
@ -0,0 +1,94 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbilldetailed; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillDetailedDto.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedDto <br/> |
|||
* Description: 客户账单明细表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "客户账单明细表 数据传输对象", description = "客户账单明细表 数据传输对象") |
|||
@Data |
|||
public class BusCustomerBillDetailedDto implements Dto { |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("款项类型key") |
|||
private String paymentTypeKey; // 款项类型key
|
|||
|
|||
@ApiModelProperty("款项类型value") |
|||
private String paymentTypeValue; // 款项类型value
|
|||
|
|||
@ApiModelProperty("款项名称") |
|||
private String paymentName; // 款项名称
|
|||
|
|||
@ApiModelProperty("款项状态") |
|||
private Integer paymentState; // 款项状态
|
|||
|
|||
@ApiModelProperty("应收金额") |
|||
private String receivableMoney; // 应收金额
|
|||
|
|||
@ApiModelProperty("实收金额") |
|||
private String netReceiptsMoney; // 实收金额
|
|||
|
|||
@ApiModelProperty("未收金额") |
|||
private String uncollectedMoney; // 未收金额
|
|||
|
|||
@ApiModelProperty("生成时间") |
|||
private String generateDate; // 生成时间
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
} |
@ -0,0 +1,94 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbilldetailed; |
|||
|
|||
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-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillDetailedFeign.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedFeign <br/> |
|||
* Description: 客户账单明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "客户账单明细表") |
|||
@FeignClient( |
|||
contextId = "anrui-buscenter-BusCustomerBillDetailed", |
|||
name = "anrui-buscenter", |
|||
path = "buscustomerbilldetailed", |
|||
fallback = BusCustomerBillDetailedFeignFallback.class) |
|||
public interface BusCustomerBillDetailedFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<BusCustomerBillDetailedVo>> listPage(@RequestBody PagerQuery<BusCustomerBillDetailedQuery> pq); |
|||
|
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<BusCustomerBillDetailedVo>> listAll(@RequestBody BusCustomerBillDetailedQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<BusCustomerBillDetailedVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody BusCustomerBillDetailedDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody BusCustomerBillDetailedDto dto, @PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<BusCustomerBillDetailedVo> fetch(@PathVariable("id") String id); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<BusCustomerBillDetailedVo> fetchBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbilldetailed; |
|||
|
|||
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-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillDetailedFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedFeignFallback <br/> |
|||
* Description: 客户账单明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class BusCustomerBillDetailedFeignFallback implements BusCustomerBillDetailedFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<BusCustomerBillDetailedVo>> listPage(PagerQuery<BusCustomerBillDetailedQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscustomerbilldetailed/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<BusCustomerBillDetailedVo>> listAll(BusCustomerBillDetailedQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscustomerbilldetailed/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<BusCustomerBillDetailedVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscustomerbilldetailed/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(BusCustomerBillDetailedDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/buscustomerbilldetailed/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(BusCustomerBillDetailedDto dto, String sid){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/buscustomerbilldetailed/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean del(String ids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/buscustomerbilldetailed/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/buscustomerbilldetailed/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<BusCustomerBillDetailedVo> fetch(String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscustomerbilldetailed/fetch无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<BusCustomerBillDetailedVo> fetchBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/buscustomerbilldetailed/fetchBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,94 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbilldetailed; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillDetailedQuery.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedQuery <br/> |
|||
* Description: 客户账单明细表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "客户账单明细表 查询条件", description = "客户账单明细表 查询条件") |
|||
@Data |
|||
public class BusCustomerBillDetailedQuery implements Query { |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("款项类型key") |
|||
private String paymentTypeKey; // 款项类型key
|
|||
|
|||
@ApiModelProperty("款项类型value") |
|||
private String paymentTypeValue; // 款项类型value
|
|||
|
|||
@ApiModelProperty("款项名称") |
|||
private String paymentName; // 款项名称
|
|||
|
|||
@ApiModelProperty("款项状态") |
|||
private Integer paymentState; // 款项状态
|
|||
|
|||
@ApiModelProperty("应收金额") |
|||
private String receivableMoney; // 应收金额
|
|||
|
|||
@ApiModelProperty("实收金额") |
|||
private String netReceiptsMoney; // 实收金额
|
|||
|
|||
@ApiModelProperty("未收金额") |
|||
private String uncollectedMoney; // 未收金额
|
|||
|
|||
@ApiModelProperty("生成时间") |
|||
private String generateDate; // 生成时间
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
} |
@ -0,0 +1,94 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.buscustomerbilldetailed; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillDetailedVo.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedVo <br/> |
|||
* Description: 客户账单明细表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "客户账单明细表 视图数据对象", description = "客户账单明细表 视图数据对象") |
|||
@Data |
|||
public class BusCustomerBillDetailedVo implements Vo { |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("款项类型key") |
|||
private String paymentTypeKey; // 款项类型key
|
|||
|
|||
@ApiModelProperty("款项类型value") |
|||
private String paymentTypeValue; // 款项类型value
|
|||
|
|||
@ApiModelProperty("款项名称") |
|||
private String paymentName; // 款项名称
|
|||
|
|||
@ApiModelProperty("款项状态") |
|||
private Integer paymentState; // 款项状态
|
|||
|
|||
@ApiModelProperty("应收金额") |
|||
private String receivableMoney; // 应收金额
|
|||
|
|||
@ApiModelProperty("实收金额") |
|||
private String netReceiptsMoney; // 实收金额
|
|||
|
|||
@ApiModelProperty("未收金额") |
|||
private String uncollectedMoney; // 未收金额
|
|||
|
|||
@ApiModelProperty("生成时间") |
|||
private String generateDate; // 生成时间
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
} |
@ -0,0 +1,262 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusSelectedReceivablesDetailed.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailed <br/> |
|||
* Description: 已选应收款项明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:00 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "已选应收款项明细表", description = "已选应收款项明细表") |
|||
@TableName("bus_selected_receivables_detailed") |
|||
public class BusSelectedReceivablesDetailed extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("车架号") |
|||
private String VIN; // 车架号
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
|
|||
@ApiModelProperty("联系电话") |
|||
private String customerPhone; // 联系电话
|
|||
|
|||
@ApiModelProperty("应收项目名称") |
|||
private String receivablesName; // 应收项目名称
|
|||
|
|||
@ApiModelProperty("当前应收金额") |
|||
private BigDecimal currentReceivableMoney; // 当前应收金额
|
|||
|
|||
@ApiModelProperty("认款金额") |
|||
private BigDecimal subscriptionMoney; // 认款金额
|
|||
|
|||
@ApiModelProperty("认款申请日期") |
|||
private String subscriptionDate; // 认款申请日期
|
|||
|
|||
@ApiModelProperty("收款确认单sid") |
|||
private String collSid; // 收款确认单sid
|
|||
|
|||
/** |
|||
* @return 创建人接口 |
|||
*/ |
|||
public String getCreateByName(){ |
|||
return createByName; |
|||
} |
|||
|
|||
/** |
|||
* @param createByName 创建人接口 to set |
|||
*/ |
|||
public void setCreateByName(String createByName){ |
|||
this.createByName = createByName; |
|||
} |
|||
/** |
|||
* @return 合同sid |
|||
*/ |
|||
public String getContractSid(){ |
|||
return contractSid; |
|||
} |
|||
|
|||
/** |
|||
* @param contractSid 合同sid to set |
|||
*/ |
|||
public void setContractSid(String contractSid){ |
|||
this.contractSid = contractSid; |
|||
} |
|||
/** |
|||
* @return 合同编号 |
|||
*/ |
|||
public String getContractNo(){ |
|||
return contractNo; |
|||
} |
|||
|
|||
/** |
|||
* @param contractNo 合同编号 to set |
|||
*/ |
|||
public void setContractNo(String contractNo){ |
|||
this.contractNo = contractNo; |
|||
} |
|||
/** |
|||
* @return 客户sid |
|||
*/ |
|||
public String getCustomerSid(){ |
|||
return customerSid; |
|||
} |
|||
|
|||
/** |
|||
* @param customerSid 客户sid to set |
|||
*/ |
|||
public void setCustomerSid(String customerSid){ |
|||
this.customerSid = customerSid; |
|||
} |
|||
/** |
|||
* @return 客户名称 |
|||
*/ |
|||
public String getCustomerName(){ |
|||
return customerName; |
|||
} |
|||
|
|||
/** |
|||
* @param customerName 客户名称 to set |
|||
*/ |
|||
public void setCustomerName(String customerName){ |
|||
this.customerName = customerName; |
|||
} |
|||
/** |
|||
* @return 车架号 |
|||
*/ |
|||
public String getVIN(){ |
|||
return VIN; |
|||
} |
|||
|
|||
/** |
|||
* @param VIN 车架号 to set |
|||
*/ |
|||
public void setVIN(String VIN){ |
|||
this.VIN = VIN; |
|||
} |
|||
/** |
|||
* @return 分公司sid |
|||
*/ |
|||
public String getUseOrgSid(){ |
|||
return useOrgSid; |
|||
} |
|||
|
|||
/** |
|||
* @param useOrgSid 分公司sid to set |
|||
*/ |
|||
public void setUseOrgSid(String useOrgSid){ |
|||
this.useOrgSid = useOrgSid; |
|||
} |
|||
/** |
|||
* @return 联系电话 |
|||
*/ |
|||
public String getCustomerPhone(){ |
|||
return customerPhone; |
|||
} |
|||
|
|||
/** |
|||
* @param customerPhone 联系电话 to set |
|||
*/ |
|||
public void setCustomerPhone(String customerPhone){ |
|||
this.customerPhone = customerPhone; |
|||
} |
|||
/** |
|||
* @return 应收项目名称 |
|||
*/ |
|||
public String getReceivablesName(){ |
|||
return receivablesName; |
|||
} |
|||
|
|||
/** |
|||
* @param receivablesName 应收项目名称 to set |
|||
*/ |
|||
public void setReceivablesName(String receivablesName){ |
|||
this.receivablesName = receivablesName; |
|||
} |
|||
/** |
|||
* @return 当前应收金额 |
|||
*/ |
|||
public BigDecimal getCurrentReceivableMoney(){ |
|||
return currentReceivableMoney; |
|||
} |
|||
|
|||
/** |
|||
* @param currentReceivableMoney 当前应收金额 to set |
|||
*/ |
|||
public void setCurrentReceivableMoney(BigDecimal currentReceivableMoney){ |
|||
this.currentReceivableMoney = currentReceivableMoney; |
|||
} |
|||
/** |
|||
* @return 认款金额 |
|||
*/ |
|||
public BigDecimal getSubscriptionMoney(){ |
|||
return subscriptionMoney; |
|||
} |
|||
|
|||
/** |
|||
* @param subscriptionMoney 认款金额 to set |
|||
*/ |
|||
public void setSubscriptionMoney(BigDecimal subscriptionMoney){ |
|||
this.subscriptionMoney = subscriptionMoney; |
|||
} |
|||
/** |
|||
* @return 认款申请日期 |
|||
*/ |
|||
public String getSubscriptionDate(){ |
|||
return subscriptionDate; |
|||
} |
|||
|
|||
/** |
|||
* @param subscriptionDate 认款申请日期 to set |
|||
*/ |
|||
public void setSubscriptionDate(String subscriptionDate){ |
|||
this.subscriptionDate = subscriptionDate; |
|||
} |
|||
/** |
|||
* @return 收款确认单sid |
|||
*/ |
|||
public String getCollSid(){ |
|||
return collSid; |
|||
} |
|||
|
|||
/** |
|||
* @param collSid 收款确认单sid to set |
|||
*/ |
|||
public void setCollSid(String collSid){ |
|||
this.collSid = collSid; |
|||
} |
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusSelectedReceivablesDetailedDto.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedDto <br/> |
|||
* Description: 已选应收款项明细表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:00 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "已选应收款项明细表 数据传输对象", description = "已选应收款项明细表 数据传输对象") |
|||
@Data |
|||
public class BusSelectedReceivablesDetailedDto implements Dto { |
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
@ApiModelProperty("车架号") |
|||
private String VIN; // 车架号
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("联系电话") |
|||
private String customerPhone; // 联系电话
|
|||
@ApiModelProperty("应收项目名称") |
|||
private String receivablesName; // 应收项目名称
|
|||
@ApiModelProperty("当前应收金额") |
|||
private String currentReceivableMoney; // 当前应收金额
|
|||
@ApiModelProperty("认款金额") |
|||
private String subscriptionMoney; // 认款金额
|
|||
@ApiModelProperty("认款申请日期") |
|||
private String subscriptionDate; // 认款申请日期
|
|||
@ApiModelProperty("收款确认单sid") |
|||
private String collSid; // 收款确认单sid
|
|||
} |
@ -0,0 +1,94 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed; |
|||
|
|||
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-buscenter(销售相关) <br/> |
|||
* File: BusSelectedReceivablesDetailedFeign.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedFeign <br/> |
|||
* Description: 已选应收款项明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:00 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "已选应收款项明细表") |
|||
@FeignClient( |
|||
contextId = "anrui-buscenter-BusSelectedReceivablesDetailed", |
|||
name = "anrui-buscenter", |
|||
path = "busselectedreceivablesdetailed", |
|||
fallback = BusSelectedReceivablesDetailedFeignFallback.class) |
|||
public interface BusSelectedReceivablesDetailedFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<BusSelectedReceivablesDetailedVo>> listPage(@RequestBody PagerQuery<BusSelectedReceivablesDetailedQuery> pq); |
|||
|
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<BusSelectedReceivablesDetailedVo>> listAll(@RequestBody BusSelectedReceivablesDetailedQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<BusSelectedReceivablesDetailedVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody BusSelectedReceivablesDetailedDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody BusSelectedReceivablesDetailedDto dto, @PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<BusSelectedReceivablesDetailedVo> fetch(@PathVariable("id") String id); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<BusSelectedReceivablesDetailedVo> fetchBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed; |
|||
|
|||
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-buscenter(销售相关) <br/> |
|||
* File: BusSelectedReceivablesDetailedFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedFeignFallback <br/> |
|||
* Description: 已选应收款项明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:00 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class BusSelectedReceivablesDetailedFeignFallback implements BusSelectedReceivablesDetailedFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<BusSelectedReceivablesDetailedVo>> listPage(PagerQuery<BusSelectedReceivablesDetailedQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/busselectedreceivablesdetailed/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<BusSelectedReceivablesDetailedVo>> listAll(BusSelectedReceivablesDetailedQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/busselectedreceivablesdetailed/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<BusSelectedReceivablesDetailedVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/busselectedreceivablesdetailed/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(BusSelectedReceivablesDetailedDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/busselectedreceivablesdetailed/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(BusSelectedReceivablesDetailedDto dto, String sid){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/busselectedreceivablesdetailed/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean del(String ids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/busselectedreceivablesdetailed/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/busselectedreceivablesdetailed/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<BusSelectedReceivablesDetailedVo> fetch(String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/busselectedreceivablesdetailed/fetch无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<BusSelectedReceivablesDetailedVo> fetchBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/busselectedreceivablesdetailed/fetchBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,91 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusSelectedReceivablesDetailedQuery.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedQuery <br/> |
|||
* Description: 已选应收款项明细表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:00 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "已选应收款项明细表 查询条件", description = "已选应收款项明细表 查询条件") |
|||
@Data |
|||
public class BusSelectedReceivablesDetailedQuery implements Query { |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("车架号") |
|||
private String VIN; // 车架号
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
|
|||
@ApiModelProperty("联系电话") |
|||
private String customerPhone; // 联系电话
|
|||
|
|||
@ApiModelProperty("应收项目名称") |
|||
private String receivablesName; // 应收项目名称
|
|||
|
|||
@ApiModelProperty("当前应收金额") |
|||
private String currentReceivableMoney; // 当前应收金额
|
|||
|
|||
@ApiModelProperty("认款金额") |
|||
private String subscriptionMoney; // 认款金额
|
|||
|
|||
@ApiModelProperty("认款申请日期") |
|||
private String subscriptionDate; // 认款申请日期
|
|||
|
|||
@ApiModelProperty("收款确认单sid") |
|||
private String collSid; // 收款确认单sid
|
|||
} |
@ -0,0 +1,91 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusSelectedReceivablesDetailedVo.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedVo <br/> |
|||
* Description: 已选应收款项明细表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:00 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "已选应收款项明细表 视图数据对象", description = "已选应收款项明细表 视图数据对象") |
|||
@Data |
|||
public class BusSelectedReceivablesDetailedVo implements Vo { |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("车架号") |
|||
private String VIN; // 车架号
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
|
|||
@ApiModelProperty("联系电话") |
|||
private String customerPhone; // 联系电话
|
|||
|
|||
@ApiModelProperty("应收项目名称") |
|||
private String receivablesName; // 应收项目名称
|
|||
|
|||
@ApiModelProperty("当前应收金额") |
|||
private String currentReceivableMoney; // 当前应收金额
|
|||
|
|||
@ApiModelProperty("认款金额") |
|||
private String subscriptionMoney; // 认款金额
|
|||
|
|||
@ApiModelProperty("认款申请日期") |
|||
private String subscriptionDate; // 认款申请日期
|
|||
|
|||
@ApiModelProperty("收款确认单sid") |
|||
private String collSid; // 收款确认单sid
|
|||
} |
@ -0,0 +1,214 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusUncollectedReceivablesDetailed.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailed <br/> |
|||
* Description: 应收未收款项明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "应收未收款项明细表", description = "应收未收款项明细表") |
|||
@TableName("bus_uncollected_receivables_detailed") |
|||
public class BusUncollectedReceivablesDetailed extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("车架号") |
|||
private String VIN; // 车架号
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
|
|||
@ApiModelProperty("联系电话") |
|||
private String customerPhone; // 联系电话
|
|||
|
|||
@ApiModelProperty("应收项目名称") |
|||
private String receivablesName; // 应收项目名称
|
|||
|
|||
@ApiModelProperty("当前应收金额") |
|||
private BigDecimal currentReceivableMoney; // 当前应收金额
|
|||
|
|||
/** |
|||
* @return 创建人接口 |
|||
*/ |
|||
public String getCreateByName(){ |
|||
return createByName; |
|||
} |
|||
|
|||
/** |
|||
* @param createByName 创建人接口 to set |
|||
*/ |
|||
public void setCreateByName(String createByName){ |
|||
this.createByName = createByName; |
|||
} |
|||
/** |
|||
* @return 合同sid |
|||
*/ |
|||
public String getContractSid(){ |
|||
return contractSid; |
|||
} |
|||
|
|||
/** |
|||
* @param contractSid 合同sid to set |
|||
*/ |
|||
public void setContractSid(String contractSid){ |
|||
this.contractSid = contractSid; |
|||
} |
|||
/** |
|||
* @return 合同编号 |
|||
*/ |
|||
public String getContractNo(){ |
|||
return contractNo; |
|||
} |
|||
|
|||
/** |
|||
* @param contractNo 合同编号 to set |
|||
*/ |
|||
public void setContractNo(String contractNo){ |
|||
this.contractNo = contractNo; |
|||
} |
|||
/** |
|||
* @return 客户sid |
|||
*/ |
|||
public String getCustomerSid(){ |
|||
return customerSid; |
|||
} |
|||
|
|||
/** |
|||
* @param customerSid 客户sid to set |
|||
*/ |
|||
public void setCustomerSid(String customerSid){ |
|||
this.customerSid = customerSid; |
|||
} |
|||
/** |
|||
* @return 客户名称 |
|||
*/ |
|||
public String getCustomerName(){ |
|||
return customerName; |
|||
} |
|||
|
|||
/** |
|||
* @param customerName 客户名称 to set |
|||
*/ |
|||
public void setCustomerName(String customerName){ |
|||
this.customerName = customerName; |
|||
} |
|||
/** |
|||
* @return 车架号 |
|||
*/ |
|||
public String getVIN(){ |
|||
return VIN; |
|||
} |
|||
|
|||
/** |
|||
* @param VIN 车架号 to set |
|||
*/ |
|||
public void setVIN(String VIN){ |
|||
this.VIN = VIN; |
|||
} |
|||
/** |
|||
* @return 分公司sid |
|||
*/ |
|||
public String getUseOrgSid(){ |
|||
return useOrgSid; |
|||
} |
|||
|
|||
/** |
|||
* @param useOrgSid 分公司sid to set |
|||
*/ |
|||
public void setUseOrgSid(String useOrgSid){ |
|||
this.useOrgSid = useOrgSid; |
|||
} |
|||
/** |
|||
* @return 联系电话 |
|||
*/ |
|||
public String getCustomerPhone(){ |
|||
return customerPhone; |
|||
} |
|||
|
|||
/** |
|||
* @param customerPhone 联系电话 to set |
|||
*/ |
|||
public void setCustomerPhone(String customerPhone){ |
|||
this.customerPhone = customerPhone; |
|||
} |
|||
/** |
|||
* @return 应收项目名称 |
|||
*/ |
|||
public String getReceivablesName(){ |
|||
return receivablesName; |
|||
} |
|||
|
|||
/** |
|||
* @param receivablesName 应收项目名称 to set |
|||
*/ |
|||
public void setReceivablesName(String receivablesName){ |
|||
this.receivablesName = receivablesName; |
|||
} |
|||
/** |
|||
* @return 当前应收金额 |
|||
*/ |
|||
public BigDecimal getCurrentReceivableMoney(){ |
|||
return currentReceivableMoney; |
|||
} |
|||
|
|||
/** |
|||
* @param currentReceivableMoney 当前应收金额 to set |
|||
*/ |
|||
public void setCurrentReceivableMoney(BigDecimal currentReceivableMoney){ |
|||
this.currentReceivableMoney = currentReceivableMoney; |
|||
} |
|||
} |
@ -0,0 +1,82 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusUncollectedReceivablesDetailedDto.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedDto <br/> |
|||
* Description: 应收未收款项明细表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "应收未收款项明细表 数据传输对象", description = "应收未收款项明细表 数据传输对象") |
|||
@Data |
|||
public class BusUncollectedReceivablesDetailedDto implements Dto { |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("车架号") |
|||
private String VIN; // 车架号
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
|
|||
@ApiModelProperty("联系电话") |
|||
private String customerPhone; // 联系电话
|
|||
|
|||
@ApiModelProperty("应收项目名称") |
|||
private String receivablesName; // 应收项目名称
|
|||
|
|||
@ApiModelProperty("当前应收金额") |
|||
private String currentReceivableMoney; // 当前应收金额
|
|||
} |
@ -0,0 +1,94 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed; |
|||
|
|||
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-buscenter(销售相关) <br/> |
|||
* File: BusUncollectedReceivablesDetailedFeign.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedFeign <br/> |
|||
* Description: 应收未收款项明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "应收未收款项明细表") |
|||
@FeignClient( |
|||
contextId = "anrui-buscenter-BusUncollectedReceivablesDetailed", |
|||
name = "anrui-buscenter", |
|||
path = "busuncollectedreceivablesdetailed", |
|||
fallback = BusUncollectedReceivablesDetailedFeignFallback.class) |
|||
public interface BusUncollectedReceivablesDetailedFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<BusUncollectedReceivablesDetailedVo>> listPage(@RequestBody PagerQuery<BusUncollectedReceivablesDetailedQuery> pq); |
|||
|
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<BusUncollectedReceivablesDetailedVo>> listAll(@RequestBody BusUncollectedReceivablesDetailedQuery query); |
|||
|
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<BusUncollectedReceivablesDetailedVo>> list(); |
|||
|
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody BusUncollectedReceivablesDetailedDto dto); |
|||
|
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody BusUncollectedReceivablesDetailedDto dto, @PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids); |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<BusUncollectedReceivablesDetailedVo> fetch(@PathVariable("id") String id); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<BusUncollectedReceivablesDetailedVo> fetchBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed; |
|||
|
|||
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-buscenter(销售相关) <br/> |
|||
* File: BusUncollectedReceivablesDetailedFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedFeignFallback <br/> |
|||
* Description: 应收未收款项明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class BusUncollectedReceivablesDetailedFeignFallback implements BusUncollectedReceivablesDetailedFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<BusUncollectedReceivablesDetailedVo>> listPage(PagerQuery<BusUncollectedReceivablesDetailedQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/busuncollectedreceivablesdetailed/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<BusUncollectedReceivablesDetailedVo>> listAll(BusUncollectedReceivablesDetailedQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/busuncollectedreceivablesdetailed/listAll无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<BusUncollectedReceivablesDetailedVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/busuncollectedreceivablesdetailed/list无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(BusUncollectedReceivablesDetailedDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/busuncollectedreceivablesdetailed/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean update(BusUncollectedReceivablesDetailedDto dto, String sid){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/busuncollectedreceivablesdetailed/update无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean del(String ids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/busuncollectedreceivablesdetailed/del无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-buscenter/busuncollectedreceivablesdetailed/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<BusUncollectedReceivablesDetailedVo> fetch(String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/busuncollectedreceivablesdetailed/fetch无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<BusUncollectedReceivablesDetailedVo> fetchBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-buscenter/busuncollectedreceivablesdetailed/fetchBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,82 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusUncollectedReceivablesDetailedQuery.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedQuery <br/> |
|||
* Description: 应收未收款项明细表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "应收未收款项明细表 查询条件", description = "应收未收款项明细表 查询条件") |
|||
@Data |
|||
public class BusUncollectedReceivablesDetailedQuery implements Query { |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("车架号") |
|||
private String VIN; // 车架号
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
|
|||
@ApiModelProperty("联系电话") |
|||
private String customerPhone; // 联系电话
|
|||
|
|||
@ApiModelProperty("应收项目名称") |
|||
private String receivablesName; // 应收项目名称
|
|||
|
|||
@ApiModelProperty("当前应收金额") |
|||
private String currentReceivableMoney; // 当前应收金额
|
|||
} |
@ -0,0 +1,82 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusUncollectedReceivablesDetailedVo.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedVo <br/> |
|||
* Description: 应收未收款项明细表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "应收未收款项明细表 视图数据对象", description = "应收未收款项明细表 视图数据对象") |
|||
@Data |
|||
public class BusUncollectedReceivablesDetailedVo implements Vo { |
|||
|
|||
|
|||
@ApiModelProperty("创建人接口") |
|||
private String createByName; // 创建人接口
|
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; // 合同sid
|
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; // 合同编号
|
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; // 客户sid
|
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; // 客户名称
|
|||
|
|||
@ApiModelProperty("车架号") |
|||
private String VIN; // 车架号
|
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
|
|||
@ApiModelProperty("联系电话") |
|||
private String customerPhone; // 联系电话
|
|||
|
|||
@ApiModelProperty("应收项目名称") |
|||
private String receivablesName; // 应收项目名称
|
|||
|
|||
@ApiModelProperty("当前应收金额") |
|||
private String currentReceivableMoney; // 当前应收金额
|
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.buscollectionconfirmation; |
|||
|
|||
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.buscenter.api.buscollectionconfirmation.BusCollectionConfirmation; |
|||
import com.yxt.anrui.buscenter.api.buscollectionconfirmation.BusCollectionConfirmationVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCollectionConfirmationMapper.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.buscollectionconfirmation.BusCollectionConfirmationMapper <br/> |
|||
* Description: 收款确认表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface BusCollectionConfirmationMapper extends BaseMapper<BusCollectionConfirmation> { |
|||
|
|||
//@Update("update bus_collection_confirmation set name=#{msg} where id=#{id}")
|
|||
//IPage<BusCollectionConfirmationVo> voPage(IPage<BusCollectionConfirmation> page, @Param(Constants.WRAPPER) QueryWrapper<BusCollectionConfirmation> qw);
|
|||
|
|||
IPage<BusCollectionConfirmationVo> selectPageVo(IPage<BusCollectionConfirmation> page, @Param(Constants.WRAPPER) Wrapper<BusCollectionConfirmation> qw); |
|||
|
|||
List<BusCollectionConfirmationVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<BusCollectionConfirmation> qw); |
|||
|
|||
@Select("select * from bus_collection_confirmation") |
|||
List<BusCollectionConfirmationVo> 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.buscenter.biz.buscollectionconfirmation.BusCollectionConfirmationMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.buscenter.api.buscollectionconfirmation.BusCollectionConfirmationVo"> |
|||
SELECT * FROM bus_collection_confirmation <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.buscenter.api.buscollectionconfirmation.BusCollectionConfirmationVo"> |
|||
SELECT * FROM bus_collection_confirmation <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,91 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.buscollectionconfirmation; |
|||
|
|||
import com.yxt.anrui.buscenter.api.buscollectionconfirmation.*; |
|||
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; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCollectionConfirmationFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.buscollectionconfirmation.BusCollectionConfirmationRest <br/> |
|||
* Description: 收款确认表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "收款确认表") |
|||
@RestController("com.yxt.anrui.buscenter.biz.buscollectionconfirmation.BusCollectionConfirmationRest") |
|||
@RequestMapping("/buscollectionconfirmation") |
|||
public class BusCollectionConfirmationRest implements BusCollectionConfirmationFeign { |
|||
|
|||
@Autowired |
|||
private BusCollectionConfirmationService busCollectionConfirmationService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<BusCollectionConfirmationVo>> listPage(@RequestBody PagerQuery<BusCollectionConfirmationQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<BusCollectionConfirmationVo> pv = busCollectionConfirmationService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改保存") |
|||
@PostMapping("/saveOrUpdate") |
|||
public ResultBean saveOrUpdate(@RequestBody BusCollectionConfirmationDto dto){ |
|||
return busCollectionConfirmationService.saveOrUpdateAllDto(dto); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busCollectionConfirmationService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<BusCollectionConfirmationDetailsVo> fetchBySid(@PathVariable("sid") String sid){ |
|||
return busCollectionConfirmationService.fetchByAllSid(sid); |
|||
} |
|||
} |
@ -0,0 +1,134 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.buscollectionconfirmation; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.anrui.buscenter.api.buscollectionconfirmation.*; |
|||
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 org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCollectionConfirmationService.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.buscollectionconfirmation.BusCollectionConfirmationService <br/> |
|||
* Description: 收款确认表 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class BusCollectionConfirmationService extends MybatisBaseService<BusCollectionConfirmationMapper, BusCollectionConfirmation> { |
|||
public PagerVo<BusCollectionConfirmation> listPage(PagerQuery<BusCollectionConfirmationQuery> pq) { |
|||
BusCollectionConfirmationQuery query = pq.getParams(); |
|||
QueryWrapper<BusCollectionConfirmation> qw = createQueryWrapper(query); |
|||
IPage<BusCollectionConfirmation> page = PagerUtil.queryToPage(pq); |
|||
IPage<BusCollectionConfirmation> pagging = baseMapper.selectPage(page, qw); |
|||
PagerVo<BusCollectionConfirmation> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
public List<BusCollectionConfirmation> listAll(BusCollectionConfirmationQuery query) { |
|||
QueryWrapper<BusCollectionConfirmation> qw = createQueryWrapper(query); |
|||
return baseMapper.selectList(qw); |
|||
} |
|||
private QueryWrapper<BusCollectionConfirmation> createQueryWrapper(BusCollectionConfirmationQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<BusCollectionConfirmation> qw = new QueryWrapper<>(); |
|||
|
|||
if (StringUtils.isNotBlank(query.getCollectionDate())) { |
|||
qw.eq("collectionDate", query.getCollectionDate()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getCollectionBank())) { |
|||
qw.eq("collectionBank", query.getCollectionBank()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getCollectionTypeKey())) { |
|||
qw.eq("collectionTypeKey", query.getCollectionTypeKey()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getSubscriptionState())) { |
|||
qw.eq("subscriptionState", query.getSubscriptionState()); |
|||
} |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<BusCollectionConfirmationVo> listPageVo(PagerQuery<BusCollectionConfirmationQuery> pq) { |
|||
BusCollectionConfirmationQuery query = pq.getParams(); |
|||
QueryWrapper<BusCollectionConfirmation> qw = createQueryWrapper(query); |
|||
IPage<BusCollectionConfirmation> page = PagerUtil.queryToPage(pq); |
|||
IPage<BusCollectionConfirmationVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<BusCollectionConfirmationVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public List<BusCollectionConfirmationVo> listAllVo(BusCollectionConfirmationQuery query) { |
|||
QueryWrapper<BusCollectionConfirmation> qw = createQueryWrapper(query); |
|||
return baseMapper.selectListAllVo(qw); |
|||
} |
|||
|
|||
public List<BusCollectionConfirmationVo> listVo() { |
|||
return baseMapper.selectListVo(); |
|||
} |
|||
|
|||
public void saveOrUpdateDto(BusCollectionConfirmationDto dto){ |
|||
BusCollectionConfirmation entity = new BusCollectionConfirmation(); |
|||
dto.fillEntity(entity); |
|||
this.saveOrUpdate(entity); |
|||
} |
|||
|
|||
public BusCollectionConfirmationVo fetchByIdVo(String id){ |
|||
BusCollectionConfirmation entity = this.fetchById(id); |
|||
BusCollectionConfirmationVo vo = new BusCollectionConfirmationVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
|
|||
public ResultBean saveOrUpdateAllDto(BusCollectionConfirmationDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String sid = dto.getSid(); |
|||
if (StringUtils.isBlank(sid)){ |
|||
|
|||
} |
|||
return null; |
|||
} |
|||
|
|||
public ResultBean<BusCollectionConfirmationDetailsVo> fetchByAllSid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.buscustomerbill; |
|||
|
|||
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.buscenter.api.buscustomerbill.BusCustomerBill; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillMapper.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.buscustomerbill.BusCustomerBillMapper <br/> |
|||
* Description: 客户账单表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface BusCustomerBillMapper extends BaseMapper<BusCustomerBill> { |
|||
|
|||
//@Update("update bus_customer_bill set name=#{msg} where id=#{id}")
|
|||
//IPage<BusCustomerBillVo> voPage(IPage<BusCustomerBill> page, @Param(Constants.WRAPPER) QueryWrapper<BusCustomerBill> qw);
|
|||
|
|||
IPage<BusCustomerBillVo> selectPageVo(IPage<BusCustomerBill> page, @Param(Constants.WRAPPER) Wrapper<BusCustomerBill> qw); |
|||
|
|||
List<BusCustomerBillVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<BusCustomerBill> qw); |
|||
|
|||
@Select("select * from bus_customer_bill") |
|||
List<BusCustomerBillVo> 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.buscenter.biz.buscustomerbill.BusCustomerBillMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillVo"> |
|||
SELECT * FROM bus_customer_bill <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillVo"> |
|||
SELECT * FROM bus_customer_bill <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,144 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.buscustomerbill; |
|||
|
|||
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.buscenter.api.buscustomerbill.BusCustomerBill; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillQuery; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillVo; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillDto; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillFeign; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.buscustomerbill.BusCustomerBillRest <br/> |
|||
* Description: 客户账单表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "客户账单表") |
|||
@RestController("com.yxt.anrui.buscenter.biz.buscustomerbill.BusCustomerBillRest") |
|||
@RequestMapping("/buscustomerbill") |
|||
public class BusCustomerBillRest implements BusCustomerBillFeign { |
|||
|
|||
@Autowired |
|||
private BusCustomerBillService busCustomerBillService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<BusCustomerBillVo>> listPage(@RequestBody PagerQuery<BusCustomerBillQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<BusCustomerBillVo> pv = busCustomerBillService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<BusCustomerBillVo>> listAll(@RequestBody BusCustomerBillQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<BusCustomerBillVo> list = busCustomerBillService.listAllVo(query); |
|||
return rb.success().setData(list); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<BusCustomerBillVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<BusCustomerBillVo> list = busCustomerBillService.listVo(); |
|||
return rb.success().setData(list); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody BusCustomerBillDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busCustomerBillService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody BusCustomerBillDto dto, @PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busCustomerBillService.updateBySid(dto.toMap(),sid); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busCustomerBillService.delByIds(ids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busCustomerBillService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<BusCustomerBillVo> fetch(@PathVariable("id") String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BusCustomerBillVo vo = busCustomerBillService.fetchByIdVo(id); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<BusCustomerBillVo> fetchBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BusCustomerBillVo vo =new BusCustomerBillVo(); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,172 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.buscustomerbill; |
|||
|
|||
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.buscenter.api.buscustomerbill.BusCustomerBill; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillQuery; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillVo; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillDto; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbill.BusCustomerBillFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillService.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.buscustomerbill.BusCustomerBillService <br/> |
|||
* Description: 客户账单表 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class BusCustomerBillService extends MybatisBaseService<BusCustomerBillMapper, BusCustomerBill> { |
|||
public PagerVo<BusCustomerBill> listPage(PagerQuery<BusCustomerBillQuery> pq) { |
|||
BusCustomerBillQuery query = pq.getParams(); |
|||
QueryWrapper<BusCustomerBill> qw = createQueryWrapper(query); |
|||
IPage<BusCustomerBill> page = PagerUtil.queryToPage(pq); |
|||
IPage<BusCustomerBill> pagging = baseMapper.selectPage(page, qw); |
|||
PagerVo<BusCustomerBill> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
public List<BusCustomerBill> listAll(BusCustomerBillQuery query) { |
|||
QueryWrapper<BusCustomerBill> qw = createQueryWrapper(query); |
|||
return baseMapper.selectList(qw); |
|||
} |
|||
private QueryWrapper<BusCustomerBill> createQueryWrapper(BusCustomerBillQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<BusCustomerBill> qw = new QueryWrapper<>(); |
|||
|
|||
|
|||
if (StringUtils.isNotBlank(query.getCreateByName())) { |
|||
qw.eq("createByName", query.getCreateByName()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getContractSid())) { |
|||
qw.eq("contractSid", query.getContractSid()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getContractNo())) { |
|||
qw.eq("contractNo", query.getContractNo()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getCustomerSid())) { |
|||
qw.eq("customerSid", query.getCustomerSid()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getCustomerName())) { |
|||
qw.eq("customerName", query.getCustomerName()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getPaymentTypeKey())) { |
|||
qw.eq("paymentTypeKey", query.getPaymentTypeKey()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getPaymentTypeValue())) { |
|||
qw.eq("paymentTypeValue", query.getPaymentTypeValue()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getPaymentName())) { |
|||
qw.eq("paymentName", query.getPaymentName()); |
|||
} |
|||
|
|||
if (query.getPaymentState() != null) { |
|||
qw.eq("paymentState", query.getPaymentState()); |
|||
} |
|||
|
|||
if (query.getReceivableMoney() != null) { |
|||
qw.eq("receivableMoney", query.getReceivableMoney()); |
|||
} |
|||
|
|||
if (query.getNetReceiptsMoney() != null) { |
|||
qw.eq("netReceiptsMoney", query.getNetReceiptsMoney()); |
|||
} |
|||
|
|||
if (query.getUncollectedMoney() != null) { |
|||
qw.eq("uncollectedMoney", query.getUncollectedMoney()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getGenerateDate())) { |
|||
qw.eq("generateDate", query.getGenerateDate()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getLatestProcessingDate())) { |
|||
qw.eq("latestProcessingDate", query.getLatestProcessingDate()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getUseOrgSid())) { |
|||
qw.eq("useOrgSid", query.getUseOrgSid()); |
|||
} |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<BusCustomerBillVo> listPageVo(PagerQuery<BusCustomerBillQuery> pq) { |
|||
BusCustomerBillQuery query = pq.getParams(); |
|||
QueryWrapper<BusCustomerBill> qw = createQueryWrapper(query); |
|||
IPage<BusCustomerBill> page = PagerUtil.queryToPage(pq); |
|||
IPage<BusCustomerBillVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<BusCustomerBillVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public List<BusCustomerBillVo> listAllVo(BusCustomerBillQuery query) { |
|||
QueryWrapper<BusCustomerBill> qw = createQueryWrapper(query); |
|||
return baseMapper.selectListAllVo(qw); |
|||
} |
|||
|
|||
public List<BusCustomerBillVo> listVo() { |
|||
return baseMapper.selectListVo(); |
|||
} |
|||
|
|||
public void saveOrUpdateDto(BusCustomerBillDto dto){ |
|||
BusCustomerBill entity = new BusCustomerBill(); |
|||
dto.fillEntity(entity); |
|||
this.saveOrUpdate(entity); |
|||
} |
|||
|
|||
public BusCustomerBillVo fetchByIdVo(String id){ |
|||
BusCustomerBill entity = this.fetchById(id); |
|||
BusCustomerBillVo vo = new BusCustomerBillVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.buscustomerbilldetailed; |
|||
|
|||
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.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailed; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillDetailedMapper.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.buscustomerbilldetailed.BusCustomerBillDetailedMapper <br/> |
|||
* Description: 客户账单明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface BusCustomerBillDetailedMapper extends BaseMapper<BusCustomerBillDetailed> { |
|||
|
|||
//@Update("update bus_customer_bill_detailed set name=#{msg} where id=#{id}")
|
|||
//IPage<BusCustomerBillDetailedVo> voPage(IPage<BusCustomerBillDetailed> page, @Param(Constants.WRAPPER) QueryWrapper<BusCustomerBillDetailed> qw);
|
|||
|
|||
IPage<BusCustomerBillDetailedVo> selectPageVo(IPage<BusCustomerBillDetailed> page, @Param(Constants.WRAPPER) Wrapper<BusCustomerBillDetailed> qw); |
|||
|
|||
List<BusCustomerBillDetailedVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<BusCustomerBillDetailed> qw); |
|||
|
|||
@Select("select * from bus_customer_bill_detailed") |
|||
List<BusCustomerBillDetailedVo> 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.buscenter.biz.buscustomerbilldetailed.BusCustomerBillDetailedMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedVo"> |
|||
SELECT * FROM bus_customer_bill_detailed <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedVo"> |
|||
SELECT * FROM bus_customer_bill_detailed <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,144 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.buscustomerbilldetailed; |
|||
|
|||
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.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailed; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedQuery; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedVo; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedDto; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedFeign; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillDetailedFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.buscustomerbilldetailed.BusCustomerBillDetailedRest <br/> |
|||
* Description: 客户账单明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "客户账单明细表") |
|||
@RestController("com.yxt.anrui.buscenter.biz.buscustomerbilldetailed.BusCustomerBillDetailedRest") |
|||
@RequestMapping("/buscustomerbilldetailed") |
|||
public class BusCustomerBillDetailedRest implements BusCustomerBillDetailedFeign { |
|||
|
|||
@Autowired |
|||
private BusCustomerBillDetailedService busCustomerBillDetailedService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<BusCustomerBillDetailedVo>> listPage(@RequestBody PagerQuery<BusCustomerBillDetailedQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<BusCustomerBillDetailedVo> pv = busCustomerBillDetailedService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<BusCustomerBillDetailedVo>> listAll(@RequestBody BusCustomerBillDetailedQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<BusCustomerBillDetailedVo> list = busCustomerBillDetailedService.listAllVo(query); |
|||
return rb.success().setData(list); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<BusCustomerBillDetailedVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<BusCustomerBillDetailedVo> list = busCustomerBillDetailedService.listVo(); |
|||
return rb.success().setData(list); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody BusCustomerBillDetailedDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busCustomerBillDetailedService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody BusCustomerBillDetailedDto dto, @PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busCustomerBillDetailedService.updateBySid(dto.toMap(),sid); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busCustomerBillDetailedService.delByIds(ids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busCustomerBillDetailedService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<BusCustomerBillDetailedVo> fetch(@PathVariable("id") String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BusCustomerBillDetailedVo vo = busCustomerBillDetailedService.fetchByIdVo(id); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<BusCustomerBillDetailedVo> fetchBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BusCustomerBillDetailedVo vo = new BusCustomerBillDetailedVo(); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,168 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.buscustomerbilldetailed; |
|||
|
|||
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.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailed; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedQuery; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedVo; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedDto; |
|||
import com.yxt.anrui.buscenter.api.buscustomerbilldetailed.BusCustomerBillDetailedFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusCustomerBillDetailedService.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.buscustomerbilldetailed.BusCustomerBillDetailedService <br/> |
|||
* Description: 客户账单明细表 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class BusCustomerBillDetailedService extends MybatisBaseService<BusCustomerBillDetailedMapper, BusCustomerBillDetailed> { |
|||
public PagerVo<BusCustomerBillDetailed> listPage(PagerQuery<BusCustomerBillDetailedQuery> pq) { |
|||
BusCustomerBillDetailedQuery query = pq.getParams(); |
|||
QueryWrapper<BusCustomerBillDetailed> qw = createQueryWrapper(query); |
|||
IPage<BusCustomerBillDetailed> page = PagerUtil.queryToPage(pq); |
|||
IPage<BusCustomerBillDetailed> pagging = baseMapper.selectPage(page, qw); |
|||
PagerVo<BusCustomerBillDetailed> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
public List<BusCustomerBillDetailed> listAll(BusCustomerBillDetailedQuery query) { |
|||
QueryWrapper<BusCustomerBillDetailed> qw = createQueryWrapper(query); |
|||
return baseMapper.selectList(qw); |
|||
} |
|||
private QueryWrapper<BusCustomerBillDetailed> createQueryWrapper(BusCustomerBillDetailedQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<BusCustomerBillDetailed> qw = new QueryWrapper<>(); |
|||
|
|||
|
|||
if (StringUtils.isNotBlank(query.getCreateByName())) { |
|||
qw.eq("createByName", query.getCreateByName()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getContractSid())) { |
|||
qw.eq("contractSid", query.getContractSid()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getContractNo())) { |
|||
qw.eq("contractNo", query.getContractNo()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getCustomerSid())) { |
|||
qw.eq("customerSid", query.getCustomerSid()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getCustomerName())) { |
|||
qw.eq("customerName", query.getCustomerName()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getPaymentTypeKey())) { |
|||
qw.eq("paymentTypeKey", query.getPaymentTypeKey()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getPaymentTypeValue())) { |
|||
qw.eq("paymentTypeValue", query.getPaymentTypeValue()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getPaymentName())) { |
|||
qw.eq("paymentName", query.getPaymentName()); |
|||
} |
|||
|
|||
if (query.getPaymentState() != null) { |
|||
qw.eq("paymentState", query.getPaymentState()); |
|||
} |
|||
|
|||
if (query.getReceivableMoney() != null) { |
|||
qw.eq("receivableMoney", query.getReceivableMoney()); |
|||
} |
|||
|
|||
if (query.getNetReceiptsMoney() != null) { |
|||
qw.eq("netReceiptsMoney", query.getNetReceiptsMoney()); |
|||
} |
|||
|
|||
if (query.getUncollectedMoney() != null) { |
|||
qw.eq("uncollectedMoney", query.getUncollectedMoney()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getGenerateDate())) { |
|||
qw.eq("generateDate", query.getGenerateDate()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getUseOrgSid())) { |
|||
qw.eq("useOrgSid", query.getUseOrgSid()); |
|||
} |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<BusCustomerBillDetailedVo> listPageVo(PagerQuery<BusCustomerBillDetailedQuery> pq) { |
|||
BusCustomerBillDetailedQuery query = pq.getParams(); |
|||
QueryWrapper<BusCustomerBillDetailed> qw = createQueryWrapper(query); |
|||
IPage<BusCustomerBillDetailed> page = PagerUtil.queryToPage(pq); |
|||
IPage<BusCustomerBillDetailedVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<BusCustomerBillDetailedVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public List<BusCustomerBillDetailedVo> listAllVo(BusCustomerBillDetailedQuery query) { |
|||
QueryWrapper<BusCustomerBillDetailed> qw = createQueryWrapper(query); |
|||
return baseMapper.selectListAllVo(qw); |
|||
} |
|||
|
|||
public List<BusCustomerBillDetailedVo> listVo() { |
|||
return baseMapper.selectListVo(); |
|||
} |
|||
|
|||
public void saveOrUpdateDto(BusCustomerBillDetailedDto dto){ |
|||
BusCustomerBillDetailed entity = new BusCustomerBillDetailed(); |
|||
dto.fillEntity(entity); |
|||
this.saveOrUpdate(entity); |
|||
} |
|||
|
|||
public BusCustomerBillDetailedVo fetchByIdVo(String id){ |
|||
BusCustomerBillDetailed entity = this.fetchById(id); |
|||
BusCustomerBillDetailedVo vo = new BusCustomerBillDetailedVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.busselectedreceivablesdetailed; |
|||
|
|||
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.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailed; |
|||
import com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusSelectedReceivablesDetailedMapper.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedMapper <br/> |
|||
* Description: 已选应收款项明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:00 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface BusSelectedReceivablesDetailedMapper extends BaseMapper<BusSelectedReceivablesDetailed> { |
|||
|
|||
//@Update("update bus_selected_receivables_detailed set name=#{msg} where id=#{id}")
|
|||
//IPage<BusSelectedReceivablesDetailedVo> voPage(IPage<BusSelectedReceivablesDetailed> page, @Param(Constants.WRAPPER) QueryWrapper<BusSelectedReceivablesDetailed> qw);
|
|||
|
|||
IPage<BusSelectedReceivablesDetailedVo> selectPageVo(IPage<BusSelectedReceivablesDetailed> page, @Param(Constants.WRAPPER) Wrapper<BusSelectedReceivablesDetailed> qw); |
|||
|
|||
List<BusSelectedReceivablesDetailedVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<BusSelectedReceivablesDetailed> qw); |
|||
|
|||
@Select("select * from bus_selected_receivables_detailed") |
|||
List<BusSelectedReceivablesDetailedVo> 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.buscenter.biz.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedVo"> |
|||
SELECT * FROM bus_selected_receivables_detailed <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedVo"> |
|||
SELECT * FROM bus_selected_receivables_detailed <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,144 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.busselectedreceivablesdetailed; |
|||
|
|||
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.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailed; |
|||
import com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedQuery; |
|||
import com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedVo; |
|||
import com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedDto; |
|||
import com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedFeign; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusSelectedReceivablesDetailedFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedRest <br/> |
|||
* Description: 已选应收款项明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:00 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "已选应收款项明细表") |
|||
@RestController("com.yxt.anrui.buscenter.biz.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedRest") |
|||
@RequestMapping("/busselectedreceivablesdetailed") |
|||
public class BusSelectedReceivablesDetailedRest implements BusSelectedReceivablesDetailedFeign { |
|||
|
|||
@Autowired |
|||
private BusSelectedReceivablesDetailedService busSelectedReceivablesDetailedService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<BusSelectedReceivablesDetailedVo>> listPage(@RequestBody PagerQuery<BusSelectedReceivablesDetailedQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<BusSelectedReceivablesDetailedVo> pv = busSelectedReceivablesDetailedService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<BusSelectedReceivablesDetailedVo>> listAll(@RequestBody BusSelectedReceivablesDetailedQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<BusSelectedReceivablesDetailedVo> list = busSelectedReceivablesDetailedService.listAllVo(query); |
|||
return rb.success().setData(list); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<BusSelectedReceivablesDetailedVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<BusSelectedReceivablesDetailedVo> list = busSelectedReceivablesDetailedService.listVo(); |
|||
return rb.success().setData(list); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody BusSelectedReceivablesDetailedDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busSelectedReceivablesDetailedService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody BusSelectedReceivablesDetailedDto dto, @PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busSelectedReceivablesDetailedService.updateBySid(dto.toMap(),sid); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busSelectedReceivablesDetailedService.delByIds(ids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busSelectedReceivablesDetailedService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<BusSelectedReceivablesDetailedVo> fetch(@PathVariable("id") String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BusSelectedReceivablesDetailedVo vo = busSelectedReceivablesDetailedService.fetchByIdVo(id); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<BusSelectedReceivablesDetailedVo> fetchBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BusSelectedReceivablesDetailedVo vo = new BusSelectedReceivablesDetailedVo(); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,164 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.busselectedreceivablesdetailed; |
|||
|
|||
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.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailed; |
|||
import com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedQuery; |
|||
import com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedVo; |
|||
import com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedDto; |
|||
import com.yxt.anrui.buscenter.api.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusSelectedReceivablesDetailedService.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.busselectedreceivablesdetailed.BusSelectedReceivablesDetailedService <br/> |
|||
* Description: 已选应收款项明细表 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:00 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class BusSelectedReceivablesDetailedService extends MybatisBaseService<BusSelectedReceivablesDetailedMapper, BusSelectedReceivablesDetailed> { |
|||
public PagerVo<BusSelectedReceivablesDetailed> listPage(PagerQuery<BusSelectedReceivablesDetailedQuery> pq) { |
|||
BusSelectedReceivablesDetailedQuery query = pq.getParams(); |
|||
QueryWrapper<BusSelectedReceivablesDetailed> qw = createQueryWrapper(query); |
|||
IPage<BusSelectedReceivablesDetailed> page = PagerUtil.queryToPage(pq); |
|||
IPage<BusSelectedReceivablesDetailed> pagging = baseMapper.selectPage(page, qw); |
|||
PagerVo<BusSelectedReceivablesDetailed> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
public List<BusSelectedReceivablesDetailed> listAll(BusSelectedReceivablesDetailedQuery query) { |
|||
QueryWrapper<BusSelectedReceivablesDetailed> qw = createQueryWrapper(query); |
|||
return baseMapper.selectList(qw); |
|||
} |
|||
private QueryWrapper<BusSelectedReceivablesDetailed> createQueryWrapper(BusSelectedReceivablesDetailedQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<BusSelectedReceivablesDetailed> qw = new QueryWrapper<>(); |
|||
|
|||
|
|||
if (StringUtils.isNotBlank(query.getCreateByName())) { |
|||
qw.eq("createByName", query.getCreateByName()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getContractSid())) { |
|||
qw.eq("contractSid", query.getContractSid()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getContractNo())) { |
|||
qw.eq("contractNo", query.getContractNo()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getCustomerSid())) { |
|||
qw.eq("customerSid", query.getCustomerSid()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getCustomerName())) { |
|||
qw.eq("customerName", query.getCustomerName()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getVIN())) { |
|||
qw.eq("VIN", query.getVIN()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getUseOrgSid())) { |
|||
qw.eq("useOrgSid", query.getUseOrgSid()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getCustomerPhone())) { |
|||
qw.eq("customerPhone", query.getCustomerPhone()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getReceivablesName())) { |
|||
qw.eq("receivablesName", query.getReceivablesName()); |
|||
} |
|||
|
|||
if (query.getCurrentReceivableMoney() != null) { |
|||
qw.eq("currentReceivableMoney", query.getCurrentReceivableMoney()); |
|||
} |
|||
|
|||
if (query.getSubscriptionMoney() != null) { |
|||
qw.eq("subscriptionMoney", query.getSubscriptionMoney()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getSubscriptionDate())) { |
|||
qw.eq("subscriptionDate", query.getSubscriptionDate()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getCollSid())) { |
|||
qw.eq("collSid", query.getCollSid()); |
|||
} |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<BusSelectedReceivablesDetailedVo> listPageVo(PagerQuery<BusSelectedReceivablesDetailedQuery> pq) { |
|||
BusSelectedReceivablesDetailedQuery query = pq.getParams(); |
|||
QueryWrapper<BusSelectedReceivablesDetailed> qw = createQueryWrapper(query); |
|||
IPage<BusSelectedReceivablesDetailed> page = PagerUtil.queryToPage(pq); |
|||
IPage<BusSelectedReceivablesDetailedVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<BusSelectedReceivablesDetailedVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public List<BusSelectedReceivablesDetailedVo> listAllVo(BusSelectedReceivablesDetailedQuery query) { |
|||
QueryWrapper<BusSelectedReceivablesDetailed> qw = createQueryWrapper(query); |
|||
return baseMapper.selectListAllVo(qw); |
|||
} |
|||
|
|||
public List<BusSelectedReceivablesDetailedVo> listVo() { |
|||
return baseMapper.selectListVo(); |
|||
} |
|||
|
|||
public void saveOrUpdateDto(BusSelectedReceivablesDetailedDto dto){ |
|||
BusSelectedReceivablesDetailed entity = new BusSelectedReceivablesDetailed(); |
|||
dto.fillEntity(entity); |
|||
this.saveOrUpdate(entity); |
|||
} |
|||
|
|||
public BusSelectedReceivablesDetailedVo fetchByIdVo(String id){ |
|||
BusSelectedReceivablesDetailed entity = this.fetchById(id); |
|||
BusSelectedReceivablesDetailedVo vo = new BusSelectedReceivablesDetailedVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.busuncollectedreceivablesdetailed; |
|||
|
|||
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.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailed; |
|||
import com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusUncollectedReceivablesDetailedMapper.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedMapper <br/> |
|||
* Description: 应收未收款项明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface BusUncollectedReceivablesDetailedMapper extends BaseMapper<BusUncollectedReceivablesDetailed> { |
|||
|
|||
//@Update("update bus_uncollected_receivables_detailed set name=#{msg} where id=#{id}")
|
|||
//IPage<BusUncollectedReceivablesDetailedVo> voPage(IPage<BusUncollectedReceivablesDetailed> page, @Param(Constants.WRAPPER) QueryWrapper<BusUncollectedReceivablesDetailed> qw);
|
|||
|
|||
IPage<BusUncollectedReceivablesDetailedVo> selectPageVo(IPage<BusUncollectedReceivablesDetailed> page, @Param(Constants.WRAPPER) Wrapper<BusUncollectedReceivablesDetailed> qw); |
|||
|
|||
List<BusUncollectedReceivablesDetailedVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<BusUncollectedReceivablesDetailed> qw); |
|||
|
|||
@Select("select * from bus_uncollected_receivables_detailed") |
|||
List<BusUncollectedReceivablesDetailedVo> 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.buscenter.biz.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedVo"> |
|||
SELECT * FROM bus_uncollected_receivables_detailed <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedVo"> |
|||
SELECT * FROM bus_uncollected_receivables_detailed <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,144 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.busuncollectedreceivablesdetailed; |
|||
|
|||
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.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailed; |
|||
import com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedQuery; |
|||
import com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedVo; |
|||
import com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedDto; |
|||
import com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedFeign; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusUncollectedReceivablesDetailedFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedRest <br/> |
|||
* Description: 应收未收款项明细表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "应收未收款项明细表") |
|||
@RestController("com.yxt.anrui.buscenter.biz.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedRest") |
|||
@RequestMapping("/busuncollectedreceivablesdetailed") |
|||
public class BusUncollectedReceivablesDetailedRest implements BusUncollectedReceivablesDetailedFeign { |
|||
|
|||
@Autowired |
|||
private BusUncollectedReceivablesDetailedService busUncollectedReceivablesDetailedService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<BusUncollectedReceivablesDetailedVo>> listPage(@RequestBody PagerQuery<BusUncollectedReceivablesDetailedQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<BusUncollectedReceivablesDetailedVo> pv = busUncollectedReceivablesDetailedService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件查询所有数据列表") |
|||
@PostMapping("/listAll") |
|||
public ResultBean<List<BusUncollectedReceivablesDetailedVo>> listAll(@RequestBody BusUncollectedReceivablesDetailedQuery query){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<BusUncollectedReceivablesDetailedVo> list = busUncollectedReceivablesDetailedService.listAllVo(query); |
|||
return rb.success().setData(list); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("所有数据列表") |
|||
@GetMapping("/list") |
|||
public ResultBean<List<BusUncollectedReceivablesDetailedVo>> list(){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<BusUncollectedReceivablesDetailedVo> list = busUncollectedReceivablesDetailedService.listVo(); |
|||
return rb.success().setData(list); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody BusUncollectedReceivablesDetailedDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busUncollectedReceivablesDetailedService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody BusUncollectedReceivablesDetailedDto dto, @PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busUncollectedReceivablesDetailedService.updateBySid(dto.toMap(),sid); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("删除记录") |
|||
@GetMapping("/del/{ids}") |
|||
public ResultBean del(@PathVariable("ids") String ids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busUncollectedReceivablesDetailedService.delByIds(ids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busUncollectedReceivablesDetailedService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("获取一条记录") |
|||
@GetMapping("/fetch/{id}") |
|||
public ResultBean<BusUncollectedReceivablesDetailedVo> fetch(@PathVariable("id") String id){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BusUncollectedReceivablesDetailedVo vo = busUncollectedReceivablesDetailedService.fetchByIdVo(id); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<BusUncollectedReceivablesDetailedVo> fetchBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BusUncollectedReceivablesDetailedVo vo = new BusUncollectedReceivablesDetailedVo(); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,152 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.busuncollectedreceivablesdetailed; |
|||
|
|||
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.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailed; |
|||
import com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedQuery; |
|||
import com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedVo; |
|||
import com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedDto; |
|||
import com.yxt.anrui.buscenter.api.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售相关) <br/> |
|||
* File: BusUncollectedReceivablesDetailedService.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.busuncollectedreceivablesdetailed.BusUncollectedReceivablesDetailedService <br/> |
|||
* Description: 应收未收款项明细表 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-12 17:57:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class BusUncollectedReceivablesDetailedService extends MybatisBaseService<BusUncollectedReceivablesDetailedMapper, BusUncollectedReceivablesDetailed> { |
|||
public PagerVo<BusUncollectedReceivablesDetailed> listPage(PagerQuery<BusUncollectedReceivablesDetailedQuery> pq) { |
|||
BusUncollectedReceivablesDetailedQuery query = pq.getParams(); |
|||
QueryWrapper<BusUncollectedReceivablesDetailed> qw = createQueryWrapper(query); |
|||
IPage<BusUncollectedReceivablesDetailed> page = PagerUtil.queryToPage(pq); |
|||
IPage<BusUncollectedReceivablesDetailed> pagging = baseMapper.selectPage(page, qw); |
|||
PagerVo<BusUncollectedReceivablesDetailed> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
public List<BusUncollectedReceivablesDetailed> listAll(BusUncollectedReceivablesDetailedQuery query) { |
|||
QueryWrapper<BusUncollectedReceivablesDetailed> qw = createQueryWrapper(query); |
|||
return baseMapper.selectList(qw); |
|||
} |
|||
private QueryWrapper<BusUncollectedReceivablesDetailed> createQueryWrapper(BusUncollectedReceivablesDetailedQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<BusUncollectedReceivablesDetailed> qw = new QueryWrapper<>(); |
|||
|
|||
|
|||
if (StringUtils.isNotBlank(query.getCreateByName())) { |
|||
qw.eq("createByName", query.getCreateByName()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getContractSid())) { |
|||
qw.eq("contractSid", query.getContractSid()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getContractNo())) { |
|||
qw.eq("contractNo", query.getContractNo()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getCustomerSid())) { |
|||
qw.eq("customerSid", query.getCustomerSid()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getCustomerName())) { |
|||
qw.eq("customerName", query.getCustomerName()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getVIN())) { |
|||
qw.eq("VIN", query.getVIN()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getUseOrgSid())) { |
|||
qw.eq("useOrgSid", query.getUseOrgSid()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getCustomerPhone())) { |
|||
qw.eq("customerPhone", query.getCustomerPhone()); |
|||
} |
|||
|
|||
if (StringUtils.isNotBlank(query.getReceivablesName())) { |
|||
qw.eq("receivablesName", query.getReceivablesName()); |
|||
} |
|||
|
|||
if (query.getCurrentReceivableMoney() != null) { |
|||
qw.eq("currentReceivableMoney", query.getCurrentReceivableMoney()); |
|||
} |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<BusUncollectedReceivablesDetailedVo> listPageVo(PagerQuery<BusUncollectedReceivablesDetailedQuery> pq) { |
|||
BusUncollectedReceivablesDetailedQuery query = pq.getParams(); |
|||
QueryWrapper<BusUncollectedReceivablesDetailed> qw = createQueryWrapper(query); |
|||
IPage<BusUncollectedReceivablesDetailed> page = PagerUtil.queryToPage(pq); |
|||
IPage<BusUncollectedReceivablesDetailedVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<BusUncollectedReceivablesDetailedVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public List<BusUncollectedReceivablesDetailedVo> listAllVo(BusUncollectedReceivablesDetailedQuery query) { |
|||
QueryWrapper<BusUncollectedReceivablesDetailed> qw = createQueryWrapper(query); |
|||
return baseMapper.selectListAllVo(qw); |
|||
} |
|||
|
|||
public List<BusUncollectedReceivablesDetailedVo> listVo() { |
|||
return baseMapper.selectListVo(); |
|||
} |
|||
|
|||
public void saveOrUpdateDto(BusUncollectedReceivablesDetailedDto dto){ |
|||
BusUncollectedReceivablesDetailed entity = new BusUncollectedReceivablesDetailed(); |
|||
dto.fillEntity(entity); |
|||
this.saveOrUpdate(entity); |
|||
} |
|||
|
|||
public BusUncollectedReceivablesDetailedVo fetchByIdVo(String id){ |
|||
BusUncollectedReceivablesDetailed entity = this.fetchById(id); |
|||
BusUncollectedReceivablesDetailedVo vo = new BusUncollectedReceivablesDetailedVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
Loading…
Reference in new issue