
46 changed files with 3082 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||
yxt-fms-biz |
|||
|
|||
财务管理后台程序及接口 |
@ -0,0 +1,134 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|||
|
|||
<parent> |
|||
<groupId>com.yxt</groupId> |
|||
<artifactId>yxt-parent</artifactId> |
|||
<version>0.0.1</version> |
|||
<relativePath/> |
|||
</parent> |
|||
<modelVersion>4.0.0</modelVersion> |
|||
|
|||
<artifactId>yxt-fms-biz</artifactId> |
|||
<groupId>com.yxt.fms</groupId> |
|||
<version>2.0.1</version> |
|||
|
|||
<dependencies> |
|||
<dependency> |
|||
<groupId>com.yxt</groupId> |
|||
<artifactId>yxt-common-base</artifactId> |
|||
<version>0.0.1</version> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-web</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>com.alibaba.cloud</groupId> |
|||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.cloud</groupId> |
|||
<artifactId>spring-cloud-starter-openfeign</artifactId> |
|||
</dependency> |
|||
|
|||
<!--mysql--> |
|||
<dependency> |
|||
<groupId>mysql</groupId> |
|||
<artifactId>mysql-connector-java</artifactId> |
|||
<scope>runtime</scope> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>com.baomidou</groupId> |
|||
<artifactId>mybatis-plus-boot-starter</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>com.baomidou</groupId> |
|||
<artifactId>mybatis-plus-annotation</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>junit</groupId> |
|||
<artifactId>junit</artifactId> |
|||
<scope>compile</scope> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.projectlombok</groupId> |
|||
<artifactId>lombok</artifactId> |
|||
<version>1.18.26</version> |
|||
<optional>true</optional> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-test</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
|
|||
<!-- Sa-Token 权限认证,在线文档:https://sa-token.cc --> |
|||
<dependency> |
|||
<groupId>cn.dev33</groupId> |
|||
<artifactId>sa-token-spring-boot-starter</artifactId> |
|||
<version>1.37.0</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>cn.hutool</groupId> |
|||
<artifactId>hutool-all</artifactId> |
|||
<version>5.8.23</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>cn.hutool</groupId> |
|||
<artifactId>hutool-core</artifactId> |
|||
<version>5.8.23</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>com.google.zxing</groupId> |
|||
<artifactId>core</artifactId> |
|||
<version>3.5.2</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>com.alibaba</groupId> |
|||
<artifactId>easyexcel</artifactId> |
|||
<version>3.3.2</version> |
|||
</dependency> |
|||
|
|||
</dependencies> |
|||
|
|||
<build> |
|||
<plugins> |
|||
<plugin> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-maven-plugin</artifactId> |
|||
<version>2.5.6</version> |
|||
<executions> |
|||
<execution> |
|||
<goals> |
|||
<goal>repackage</goal> |
|||
</goals> |
|||
</execution> |
|||
</executions> |
|||
</plugin> |
|||
</plugins> |
|||
<resources> |
|||
<resource> |
|||
<directory>src/main/java</directory> |
|||
<includes> |
|||
<include>**/*Mapper.xml</include> |
|||
</includes> |
|||
</resource> |
|||
<resource> |
|||
<directory>src/main/resources</directory> |
|||
<includes> |
|||
<include>**/*.*</include> |
|||
</includes> |
|||
<filtering>false</filtering> |
|||
</resource> |
|||
</resources> |
|||
</build> |
|||
|
|||
</project> |
@ -0,0 +1,22 @@ |
|||
package com.yxt.fms; |
|||
|
|||
import org.springframework.boot.SpringApplication; |
|||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|||
import org.springframework.cloud.openfeign.EnableFeignClients; |
|||
import org.springframework.scheduling.annotation.EnableScheduling; |
|||
|
|||
@SpringBootApplication(scanBasePackages = { |
|||
"com.yxt.fms.config", |
|||
"com.yxt.common.base.config", |
|||
"com.yxt.fms" |
|||
}) |
|||
// 启用自带定时任务
|
|||
@EnableScheduling |
|||
@EnableFeignClients(basePackages = {}) |
|||
public class YxtFmsBizApplication { |
|||
|
|||
public static void main(String[] args) { |
|||
SpringApplication.run(YxtFmsBizApplication.class, args); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,10 @@ |
|||
package com.yxt.fms.apiadmin; |
|||
|
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
@RestController("com.yxt.fms.apiadmin.AdminHomeRest") |
|||
@RequestMapping("/apiadmin/home") |
|||
public class AdminHomeRest { |
|||
|
|||
} |
@ -0,0 +1,109 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.apiadmin; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.fms.biz.fmspaysettle.*; |
|||
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: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsPaysettleFeignFallback.java <br/> |
|||
* Class: biz.biz.fmspaysettle.FmsPaysettleRest <br/> |
|||
* Description: 付款结算. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "付款结算") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/v1/fmspaysettle") |
|||
public class FmsPaysettleRest { |
|||
|
|||
@Autowired |
|||
private FmsPaysettleService fmsPaysettleService; |
|||
|
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<FmsPaysettleVo>> listPage(@RequestBody PagerQuery<FmsPaysettleQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<FmsPaysettleVo> pv = fmsPaysettleService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody FmsPaysettleDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
fmsPaysettleService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
fmsPaysettleService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<FmsPaysettleDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FmsPaysettleDetailsVo vo = fmsPaysettleService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@ApiOperation("采购入库结算") |
|||
@PostMapping("/cgrkPay") |
|||
public ResultBean cgrkPay(@RequestBody FmsPaysettleCGRKDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
fmsPaysettleService.cgrkPay(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据来源SID获取一条记录") |
|||
@GetMapping("/fetchBySourceSid/{sourceBillSid}") |
|||
public ResultBean<FmsPaysettle> fetchBySourceSid(@PathVariable("sourceBillSid") String sourceBillSid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FmsPaysettle paysettle = fmsPaysettleService.fetchBySourceSid(sourceBillSid); |
|||
return rb.success().setData(paysettle); |
|||
} |
|||
} |
@ -0,0 +1,121 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.apiadmin; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.fms.biz.fmspaysettle.FmsPaysettleCGRKDto; |
|||
import com.yxt.fms.biz.fmspaysettle.FmsPaysettleCGTKDto; |
|||
import com.yxt.fms.biz.fmsreceivesettle.*; |
|||
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: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsReceivesettleFeignFallback.java <br/> |
|||
* Class: biz.biz.fmsreceivesettle.FmsReceivesettleRest <br/> |
|||
* Description: 收款结算. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "收款结算") |
|||
@RestController |
|||
@RequestMapping("/apiadmin/v1/fmsreceivesettle") |
|||
public class FmsReceivesettleRest { |
|||
|
|||
@Autowired |
|||
private FmsReceivesettleService fmsReceivesettleService; |
|||
|
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<FmsReceivesettleVo>> listPage(@RequestBody PagerQuery<FmsReceivesettleQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<FmsReceivesettleVo> pv = fmsReceivesettleService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody FmsReceivesettleDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
fmsReceivesettleService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("逻辑删除") |
|||
@PostMapping("/updateIsDelete") |
|||
public ResultBean updateIsDelete(@RequestParam("sourceSid") String sourceSid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
fmsReceivesettleService.updateIsDelete(sourceSid); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
fmsReceivesettleService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<FmsReceivesettleDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FmsReceivesettleDetailsVo vo = fmsReceivesettleService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@ApiOperation("采购退库结算") |
|||
@PostMapping("/cgtkPay") |
|||
public ResultBean cgtkPay(@RequestBody FmsPaysettleCGTKDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
fmsReceivesettleService.cgtkPay(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据来源SID获取一条记录") |
|||
@GetMapping("/fetchBySourceSid/{sourceBillSid}") |
|||
public ResultBean<FmsReceivesettle> fetchBySourceSid(@PathVariable("sourceBillSid") String sourceBillSid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FmsReceivesettle receivesettle = fmsReceivesettleService.fetchBySourceSid(sourceBillSid); |
|||
return rb.success().setData(receivesettle); |
|||
} |
|||
} |
@ -0,0 +1,95 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmspaysettle; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsPaysettle.java <br/> |
|||
* Class: biz.api.fmspaysettle.FmsPaysettle <br/> |
|||
* Description: 付款结算. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款结算", description = "付款结算") |
|||
@TableName("fms_paysettle") |
|||
public class FmsPaysettle extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单编号") |
|||
private String sourceBillNo; // 来源单编号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售退货、采购入库)") |
|||
private String busTypeValue; // 业务类型value(销售退货、采购入库)
|
|||
@ApiModelProperty("收款人编号") |
|||
private String payeeNo; // 收款人编号
|
|||
@ApiModelProperty("收款人名称") |
|||
private String payeeName; // 收款人名称
|
|||
@ApiModelProperty("收款人银行账号") |
|||
private String payeeBankAccount; // 收款人银行账号
|
|||
@ApiModelProperty("应付金额") |
|||
private BigDecimal payableAmount; // 应付金额
|
|||
@ApiModelProperty("预付款抵扣") |
|||
private BigDecimal prepaymentdeductAmount; // 预付款抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private BigDecimal settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleValue; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleAmount; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private BigDecimal debts; // 欠款金额
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("结算时间") |
|||
private Date settleTime; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,93 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmspaysettle; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import com.yxt.fms.feign.pms.pmspurchasebill.PmsPurchaseBillDto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsPaysettleDto.java <br/> |
|||
* Class: biz.api.fmspaysettle.FmsPaysettleDto <br/> |
|||
* Description: 付款结算 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款结算 数据传输对象", description = "付款结算 数据传输对象") |
|||
public class FmsPaysettleCGRKDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("采购单") |
|||
private PmsPurchaseBillDto pmsPurchaseBill; |
|||
@ApiModelProperty("创建者") |
|||
private String createBySid; |
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单编号") |
|||
private String sourceBillNo; // 来源单编号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售退货、采购入库)") |
|||
private String busTypeValue; // 业务类型value(销售退货、采购入库)
|
|||
@ApiModelProperty("收款人编号") |
|||
private String payeeNo; // 收款人编号
|
|||
@ApiModelProperty("收款人名称") |
|||
private String payeeName; // 收款人名称
|
|||
@ApiModelProperty("收款人银行账号") |
|||
private String payeeBankAccount; // 收款人银行账号
|
|||
@ApiModelProperty("应付金额") |
|||
private String payableAmount; // 应付金额
|
|||
@ApiModelProperty("预付款抵扣") |
|||
private String prepaymentdeductAmount; // 预付款抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private String settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleValue; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private String debts; // 欠款金额
|
|||
@ApiModelProperty("结算时间") |
|||
private String settleTime; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,94 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmspaysettle; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import com.yxt.fms.feign.pms.pmspurchasebackbill.PmsPurchasebackBillDto; |
|||
import com.yxt.fms.feign.pms.pmspurchasebill.PmsPurchaseBillDto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsPaysettleDto.java <br/> |
|||
* Class: biz.api.fmspaysettle.FmsPaysettleDto <br/> |
|||
* Description: 付款结算 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款结算 数据传输对象", description = "付款结算 数据传输对象") |
|||
public class FmsPaysettleCGTKDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("采购退货单") |
|||
private PmsPurchasebackBillDto pmsPurchasebackBillDto; |
|||
@ApiModelProperty("创建者") |
|||
private String createBySid; |
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单编号") |
|||
private String sourceBillNo; // 来源单编号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售退货、采购入库)") |
|||
private String busTypeValue; // 业务类型value(销售退货、采购入库)
|
|||
@ApiModelProperty("收款人编号") |
|||
private String payeeNo; // 收款人编号
|
|||
@ApiModelProperty("收款人名称") |
|||
private String payeeName; // 收款人名称
|
|||
@ApiModelProperty("收款人银行账号") |
|||
private String payeeBankAccount; // 收款人银行账号
|
|||
@ApiModelProperty("应付金额") |
|||
private String payableAmount; // 应付金额
|
|||
@ApiModelProperty("预付款抵扣") |
|||
private String prepaymentdeductAmount; // 预付款抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private String settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleValue; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private String debts; // 欠款金额
|
|||
@ApiModelProperty("结算时间") |
|||
private String settleTime; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,97 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmspaysettle; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsPaysettleVo.java <br/> |
|||
* Class: biz.api.fmspaysettle.FmsPaysettleVo <br/> |
|||
* Description: 付款结算 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款结算 视图数据详情", description = "付款结算 视图数据详情") |
|||
public class FmsPaysettleDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单编号") |
|||
private String sourceBillNo; // 来源单编号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售退货、采购入库)") |
|||
private String busTypeValue; // 业务类型value(销售退货、采购入库)
|
|||
@ApiModelProperty("收款人编号") |
|||
private String payeeNo; // 收款人编号
|
|||
@ApiModelProperty("收款人名称") |
|||
private String payeeName; // 收款人名称
|
|||
@ApiModelProperty("收款人银行账号") |
|||
private String payeeBankAccount; // 收款人银行账号
|
|||
@ApiModelProperty("应付金额") |
|||
private BigDecimal payableAmount; // 应付金额
|
|||
@ApiModelProperty("预付款抵扣") |
|||
private BigDecimal prepaymentdeductAmount; // 预付款抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private BigDecimal settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleValue; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleAmount; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private BigDecimal debts; // 欠款金额
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("结算时间") |
|||
private Date settleTimeStart; // 结算时间
|
|||
private Date settleTimeEnd; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,96 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmspaysettle; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsPaysettleDto.java <br/> |
|||
* Class: biz.api.fmspaysettle.FmsPaysettleDto <br/> |
|||
* Description: 付款结算 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款结算 数据传输对象", description = "付款结算 数据传输对象") |
|||
public class FmsPaysettleDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
@ApiModelProperty("创建者") |
|||
private String createBySid; |
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单编号") |
|||
private String sourceBillNo; // 来源单编号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售退货、采购入库)") |
|||
private String busTypeValue; // 业务类型value(销售退货、采购入库)
|
|||
@ApiModelProperty("收款人编号") |
|||
private String payeeNo; // 收款人编号
|
|||
@ApiModelProperty("收款人名称") |
|||
private String payeeName; // 收款人名称
|
|||
@ApiModelProperty("收款人银行账号") |
|||
private String payeeBankAccount; // 收款人银行账号
|
|||
@ApiModelProperty("应付金额") |
|||
private String payableAmount; // 应付金额
|
|||
@ApiModelProperty("预付款抵扣") |
|||
private String prepaymentdeductAmount; // 预付款抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private String settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleValue; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleAmount; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private String debts; // 欠款金额
|
|||
@ApiModelProperty("结算时间") |
|||
private String settleTime; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,66 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmspaysettle; |
|||
|
|||
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 java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsPaysettleMapper.java <br/> |
|||
* Class: biz.biz.fmspaysettle.FmsPaysettleMapper <br/> |
|||
* Description: 付款结算. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface FmsPaysettleMapper extends BaseMapper<FmsPaysettle> { |
|||
|
|||
//@Update("update fms_paysettle set name=#{msg} where id=#{id}")
|
|||
//IPage<FmsPaysettleVo> voPage(IPage<FmsPaysettle> page, @Param(Constants.WRAPPER) QueryWrapper<FmsPaysettle> qw);
|
|||
|
|||
IPage<FmsPaysettleVo> selectPageVo(IPage<FmsPaysettle> page, @Param(Constants.WRAPPER) Wrapper<FmsPaysettle> qw); |
|||
|
|||
List<FmsPaysettleVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<FmsPaysettle> qw); |
|||
|
|||
@Select("select * from fms_paysettle") |
|||
List<FmsPaysettleVo> selectListVo(); |
|||
|
|||
@Select("select * from fms_paysettle where sourceBillSid =#{sourceBillSid}") |
|||
FmsPaysettle fetchBySourceSid(@Param("sourceBillSid") String sourceBillSid); |
|||
} |
@ -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.fms.biz.fmspaysettle.FmsPaysettleMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.fms.biz.fmspaysettle.FmsPaysettleVo"> |
|||
SELECT * FROM fms_paysettle <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.fms.biz.fmspaysettle.FmsPaysettleVo"> |
|||
SELECT * FROM fms_paysettle <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,93 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmspaysettle; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsPaysettleQuery.java <br/> |
|||
* Class: biz.api.fmspaysettle.FmsPaysettleQuery <br/> |
|||
* Description: 付款结算 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款结算 查询条件", description = "付款结算 查询条件") |
|||
public class FmsPaysettleQuery implements Query { |
|||
|
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单编号") |
|||
private String sourceBillNo; // 来源单编号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售退货、采购入库)") |
|||
private String busTypeValue; // 业务类型value(销售退货、采购入库)
|
|||
@ApiModelProperty("收款人编号") |
|||
private String payeeNo; // 收款人编号
|
|||
@ApiModelProperty("收款人名称") |
|||
private String payeeName; // 收款人名称
|
|||
@ApiModelProperty("收款人银行账号") |
|||
private String payeeBankAccount; // 收款人银行账号
|
|||
@ApiModelProperty("应付金额") |
|||
private BigDecimal payableAmount; // 应付金额
|
|||
@ApiModelProperty("预付款抵扣") |
|||
private BigDecimal prepaymentdeductAmount; // 预付款抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private BigDecimal settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleValue; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private BigDecimal debts; // 欠款金额
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("结算时间") |
|||
private Date settleTimeStart; // 结算时间
|
|||
private Date settleTimeEnd; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,120 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmspaysettle; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.fms.feign.pms.pmspurchasebill.PmsPurchaseBillDto; |
|||
import com.yxt.fms.feign.pms.pmspurchasebill.PmsPurchaseBillFeign; |
|||
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.vo.PagerVo; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import javax.annotation.Resource; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsPaysettleService.java <br/> |
|||
* Class: biz.biz.fmspaysettle.FmsPaysettleService <br/> |
|||
* Description: 付款结算 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class FmsPaysettleService extends MybatisBaseService<FmsPaysettleMapper, FmsPaysettle> { |
|||
|
|||
@Resource |
|||
private PmsPurchaseBillFeign pmsPurchaseBillFeign; |
|||
|
|||
public PagerVo<FmsPaysettleVo> listPageVo(PagerQuery<FmsPaysettleQuery> pq) { |
|||
FmsPaysettleQuery query = pq.getParams(); |
|||
QueryWrapper<FmsPaysettle> qw = new QueryWrapper<>(); |
|||
IPage<FmsPaysettle> page = PagerUtil.queryToPage(pq); |
|||
IPage<FmsPaysettleVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<FmsPaysettleVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(FmsPaysettleDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(FmsPaysettleDto dto){ |
|||
FmsPaysettle entity = new FmsPaysettle(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(FmsPaysettleDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
FmsPaysettle entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public FmsPaysettleDetailsVo fetchDetailsVoBySid(String sid){ |
|||
FmsPaysettle entity = fetchBySid(sid); |
|||
FmsPaysettleDetailsVo vo = new FmsPaysettleDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
|
|||
public void cgrkPay(FmsPaysettleCGRKDto dto) { |
|||
PmsPurchaseBillDto pmsPurchaseBillDto = dto.getPmsPurchaseBill(); |
|||
String sid = pmsPurchaseBillFeign.save(pmsPurchaseBillDto).getData(); |
|||
FmsPaysettleDto fmsPaysettleDto = new FmsPaysettleDto(); |
|||
BeanUtil.copyProperties(dto,fmsPaysettleDto); |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
fmsPaysettleDto.setSourceBillSid(sid); |
|||
this.insertByDto(fmsPaysettleDto); |
|||
return; |
|||
} |
|||
this.updateByDto(fmsPaysettleDto); |
|||
} |
|||
|
|||
public FmsPaysettle fetchBySourceSid(String sourceBillSid) { |
|||
return baseMapper.fetchBySourceSid(sourceBillSid); |
|||
} |
|||
} |
@ -0,0 +1,95 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmspaysettle; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsPaysettleVo.java <br/> |
|||
* Class: biz.api.fmspaysettle.FmsPaysettleVo <br/> |
|||
* Description: 付款结算 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "付款结算 视图数据对象", description = "付款结算 视图数据对象") |
|||
public class FmsPaysettleVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单编号") |
|||
private String sourceBillNo; // 来源单编号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售退货、采购入库)") |
|||
private String busTypeValue; // 业务类型value(销售退货、采购入库)
|
|||
@ApiModelProperty("收款人编号") |
|||
private String payeeNo; // 收款人编号
|
|||
@ApiModelProperty("收款人名称") |
|||
private String payeeName; // 收款人名称
|
|||
@ApiModelProperty("收款人银行账号") |
|||
private String payeeBankAccount; // 收款人银行账号
|
|||
@ApiModelProperty("应付金额") |
|||
private BigDecimal payableAmount; // 应付金额
|
|||
@ApiModelProperty("预付款抵扣") |
|||
private BigDecimal prepaymentdeductAmount; // 预付款抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private BigDecimal settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleValue; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private BigDecimal debts; // 欠款金额
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("结算时间") |
|||
private Date settleTimeStart; // 结算时间
|
|||
private Date settleTimeEnd; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,93 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmsreceivesettle; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsReceivesettle.java <br/> |
|||
* Class: biz.api.fmsreceivesettle.FmsReceivesettle <br/> |
|||
* Description: 收款结算. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "收款结算", description = "收款结算") |
|||
@TableName("fms_receivesettle") |
|||
public class FmsReceivesettle extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单号") |
|||
private String sourceBillNo; // 来源单号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售出库、采购退货)") |
|||
private String busTypeValue; // 业务类型value(销售出库、采购退货)
|
|||
@ApiModelProperty("付款人编号") |
|||
private String payerNo; // 付款人编号
|
|||
@ApiModelProperty("付款人名称") |
|||
private String payerName; // 付款人名称
|
|||
@ApiModelProperty("应收金额") |
|||
private BigDecimal receivableAmount; // 应收金额
|
|||
@ApiModelProperty("订金抵扣") |
|||
private BigDecimal depositdeductAmount; // 订金抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private BigDecimal settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleValue; // 其他结算金额
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleAmount; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private BigDecimal debts; // 欠款金额
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("结算时间") |
|||
private Date settleTime; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,95 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmsreceivesettle; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsReceivesettleVo.java <br/> |
|||
* Class: biz.api.fmsreceivesettle.FmsReceivesettleVo <br/> |
|||
* Description: 收款结算 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "收款结算 视图数据详情", description = "收款结算 视图数据详情") |
|||
public class FmsReceivesettleDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单号") |
|||
private String sourceBillNo; // 来源单号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售出库、采购退货)") |
|||
private String busTypeValue; // 业务类型value(销售出库、采购退货)
|
|||
@ApiModelProperty("付款人编号") |
|||
private String payerNo; // 付款人编号
|
|||
@ApiModelProperty("付款人名称") |
|||
private String payerName; // 付款人名称
|
|||
@ApiModelProperty("应收金额") |
|||
private BigDecimal receivableAmount; // 应收金额
|
|||
@ApiModelProperty("订金抵扣") |
|||
private BigDecimal depositdeductAmount; // 订金抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private BigDecimal settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleValue; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleAmount; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private BigDecimal debts; // 欠款金额
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("结算时间") |
|||
private Date settleTimeStart; // 结算时间
|
|||
private Date settleTimeEnd; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,94 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmsreceivesettle; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsReceivesettleDto.java <br/> |
|||
* Class: biz.api.fmsreceivesettle.FmsReceivesettleDto <br/> |
|||
* Description: 收款结算 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "收款结算 数据传输对象", description = "收款结算 数据传输对象") |
|||
public class FmsReceivesettleDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
@ApiModelProperty("创建者") |
|||
private String createBySid; |
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单号") |
|||
private String sourceBillNo; // 来源单号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售出库、采购退货)") |
|||
private String busTypeValue; // 业务类型value(销售出库、采购退货)
|
|||
@ApiModelProperty("付款人编号") |
|||
private String payerNo; // 付款人编号
|
|||
@ApiModelProperty("付款人名称") |
|||
private String payerName; // 付款人名称
|
|||
@ApiModelProperty("应收金额") |
|||
private String receivableAmount; // 应收金额
|
|||
@ApiModelProperty("订金抵扣") |
|||
private String depositdeductAmount; // 订金抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private String settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleValue; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleAmount; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private String debts; // 欠款金额
|
|||
@ApiModelProperty("结算时间") |
|||
private String settleTime; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,66 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmsreceivesettle; |
|||
|
|||
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 java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsReceivesettleMapper.java <br/> |
|||
* Class: biz.biz.fmsreceivesettle.FmsReceivesettleMapper <br/> |
|||
* Description: 收款结算. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface FmsReceivesettleMapper extends BaseMapper<FmsReceivesettle> { |
|||
|
|||
//@Update("update fms_receivesettle set name=#{msg} where id=#{id}")
|
|||
//IPage<FmsReceivesettleVo> voPage(IPage<FmsReceivesettle> page, @Param(Constants.WRAPPER) QueryWrapper<FmsReceivesettle> qw);
|
|||
|
|||
IPage<FmsReceivesettleVo> selectPageVo(IPage<FmsReceivesettle> page, @Param(Constants.WRAPPER) Wrapper<FmsReceivesettle> qw); |
|||
|
|||
List<FmsReceivesettleVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<FmsReceivesettle> qw); |
|||
|
|||
@Select("select * from fms_receivesettle") |
|||
List<FmsReceivesettleVo> selectListVo(); |
|||
|
|||
@Select("select * from fms_receivesettle where sourceBillSid =#{sourceBillSid} and isDelete = 0") |
|||
FmsReceivesettle fetchBySourceSid(@Param("sourceBillSid") String sourceBillSid); |
|||
} |
@ -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.fms.biz.fmsreceivesettle.FmsReceivesettleMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.fms.biz.fmsreceivesettle.FmsReceivesettleVo"> |
|||
SELECT * FROM fms_receivesettle <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.fms.biz.fmsreceivesettle.FmsReceivesettleVo"> |
|||
SELECT * FROM fms_receivesettle <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,91 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmsreceivesettle; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsReceivesettleQuery.java <br/> |
|||
* Class: biz.api.fmsreceivesettle.FmsReceivesettleQuery <br/> |
|||
* Description: 收款结算 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "收款结算 查询条件", description = "收款结算 查询条件") |
|||
public class FmsReceivesettleQuery implements Query { |
|||
|
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单号") |
|||
private String sourceBillNo; // 来源单号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售出库、采购退货)") |
|||
private String busTypeValue; // 业务类型value(销售出库、采购退货)
|
|||
@ApiModelProperty("付款人编号") |
|||
private String payerNo; // 付款人编号
|
|||
@ApiModelProperty("付款人名称") |
|||
private String payerName; // 付款人名称
|
|||
@ApiModelProperty("应收金额") |
|||
private BigDecimal receivableAmount; // 应收金额
|
|||
@ApiModelProperty("订金抵扣") |
|||
private BigDecimal depositdeductAmount; // 订金抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private BigDecimal settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleValue; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private BigDecimal debts; // 欠款金额
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("结算时间") |
|||
private Date settleTimeStart; // 结算时间
|
|||
private Date settleTimeEnd; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,133 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmsreceivesettle; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.yxt.fms.biz.fmspaysettle.FmsPaysettleCGTKDto; |
|||
import com.yxt.fms.biz.fmspaysettle.FmsPaysettleDto; |
|||
import com.yxt.fms.feign.pms.pmspurchasebackbill.PmsPurchaseBackBillFeign; |
|||
import com.yxt.fms.feign.pms.pmspurchasebackbill.PmsPurchasebackBillDto; |
|||
import com.yxt.fms.feign.pms.pmspurchasebill.PmsPurchaseBillDto; |
|||
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 javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsReceivesettleService.java <br/> |
|||
* Class: biz.biz.fmsreceivesettle.FmsReceivesettleService <br/> |
|||
* Description: 收款结算 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class FmsReceivesettleService extends MybatisBaseService<FmsReceivesettleMapper, FmsReceivesettle> { |
|||
|
|||
@Resource |
|||
private PmsPurchaseBackBillFeign pmsPurchaseBackBillFeign; |
|||
|
|||
public PagerVo<FmsReceivesettleVo> listPageVo(PagerQuery<FmsReceivesettleQuery> pq) { |
|||
FmsReceivesettleQuery query = pq.getParams(); |
|||
QueryWrapper<FmsReceivesettle> qw = new QueryWrapper<>(); |
|||
IPage<FmsReceivesettle> page = PagerUtil.queryToPage(pq); |
|||
IPage<FmsReceivesettleVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<FmsReceivesettleVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(FmsReceivesettleDto dto) { |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(FmsReceivesettleDto dto) { |
|||
FmsReceivesettle entity = new FmsReceivesettle(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(FmsReceivesettleDto dto) { |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
FmsReceivesettle entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public FmsReceivesettleDetailsVo fetchDetailsVoBySid(String sid) { |
|||
FmsReceivesettle entity = fetchBySid(sid); |
|||
FmsReceivesettleDetailsVo vo = new FmsReceivesettleDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
|
|||
public FmsReceivesettle fetchBySourceSid(String sourceBillSid) { |
|||
return baseMapper.fetchBySourceSid(sourceBillSid); |
|||
} |
|||
|
|||
public void cgtkPay(FmsPaysettleCGTKDto dto) { |
|||
PmsPurchasebackBillDto pmsPurchasebackBillDto = dto.getPmsPurchasebackBillDto(); |
|||
String sid = pmsPurchaseBackBillFeign.save(pmsPurchasebackBillDto).getData(); |
|||
FmsReceivesettleDto fmsReceivesettleDto = new FmsReceivesettleDto(); |
|||
BeanUtil.copyProperties(dto, fmsReceivesettleDto); |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
fmsReceivesettleDto.setSourceBillSid(sid); |
|||
this.insertByDto(fmsReceivesettleDto); |
|||
return; |
|||
} |
|||
this.updateByDto(fmsReceivesettleDto); |
|||
} |
|||
|
|||
public void updateIsDelete(String sourceSid) { |
|||
FmsReceivesettle receivesettle = baseMapper.fetchBySourceSid(sourceSid); |
|||
if (null != receivesettle) { |
|||
receivesettle.setIsDelete(1); |
|||
baseMapper.updateById(receivesettle); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,93 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.biz.fmsreceivesettle; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: yxt-fms(yxt-fms) <br/> |
|||
* File: FmsReceivesettleVo.java <br/> |
|||
* Class: biz.api.fmsreceivesettle.FmsReceivesettleVo <br/> |
|||
* Description: 收款结算 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-04-01 17:04:33 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "收款结算 视图数据对象", description = "收款结算 视图数据对象") |
|||
public class FmsReceivesettleVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("结算人姓名") |
|||
private String createByName; // 结算人姓名
|
|||
@ApiModelProperty("来源单sid") |
|||
private String sourceBillSid; // 来源单sid
|
|||
@ApiModelProperty("来源单号") |
|||
private String sourceBillNo; // 来源单号
|
|||
@ApiModelProperty("业务类型key") |
|||
private String busTypeKey; // 业务类型key
|
|||
@ApiModelProperty("业务类型value(销售出库、采购退货)") |
|||
private String busTypeValue; // 业务类型value(销售出库、采购退货)
|
|||
@ApiModelProperty("付款人编号") |
|||
private String payerNo; // 付款人编号
|
|||
@ApiModelProperty("付款人名称") |
|||
private String payerName; // 付款人名称
|
|||
@ApiModelProperty("应收金额") |
|||
private BigDecimal receivableAmount; // 应收金额
|
|||
@ApiModelProperty("订金抵扣") |
|||
private BigDecimal depositdeductAmount; // 订金抵扣
|
|||
@ApiModelProperty("结算方式key") |
|||
private String settleKey; // 结算方式key
|
|||
@ApiModelProperty("结算方式value") |
|||
private String settleValue; // 结算方式value
|
|||
@ApiModelProperty("结算金额") |
|||
private BigDecimal settleAmount; // 结算金额
|
|||
@ApiModelProperty("其他结算方式") |
|||
private String otherSettleKey; // 其他结算方式
|
|||
@ApiModelProperty("其他结算金额") |
|||
private String otherSettleValue; // 其他结算金额
|
|||
@ApiModelProperty("欠款金额") |
|||
private BigDecimal debts; // 欠款金额
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("结算时间") |
|||
private Date settleTimeStart; // 结算时间
|
|||
private Date settleTimeEnd; // 结算时间
|
|||
|
|||
} |
@ -0,0 +1,4 @@ |
|||
/** |
|||
* 宇信通 仓库管理 项目后台逻辑和接口 |
|||
*/ |
|||
package com.yxt.fms.biz; |
@ -0,0 +1,114 @@ |
|||
package com.yxt.fms.config;//package com.yxt.wms.config;
|
|||
//
|
|||
//import cn.dev33.satoken.interceptor.SaInterceptor;
|
|||
//import cn.dev33.satoken.stp.StpUtil;
|
|||
//import org.springframework.beans.factory.annotation.Value;
|
|||
//import org.springframework.context.annotation.Configuration;
|
|||
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|||
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|||
//
|
|||
///**
|
|||
// * @author wangpengfei
|
|||
// * @date 2023/5/16 14:43
|
|||
// */
|
|||
//@Configuration
|
|||
//public class SaTokenConfigure implements WebMvcConfigurer {
|
|||
// @Value("${image.url.prefix:http://127.0.0.1:8080/upload/}")
|
|||
// private String urlPrefix;
|
|||
// // 注册 Sa-Token 拦截器
|
|||
// @Override
|
|||
// public void addInterceptors(InterceptorRegistry registry) {
|
|||
// // 注册 Sa-Token 拦截器,校验规则为 StpUtil.checkLogin() 登录校验。
|
|||
//
|
|||
// registry.addInterceptor(new SaInterceptor(handler -> StpUtil.checkLogin()))
|
|||
// .addPathPatterns("/**")
|
|||
// .excludePathPatterns("/sysuser/doLogin")
|
|||
// .excludePathPatterns("/lpkgiftcard/gifCardByCustomerSid")
|
|||
// .excludePathPatterns("/empcardgift/gifCardByCustomerSid")
|
|||
// .excludePathPatterns("/empcard/getEmpCardByCustomerSid")
|
|||
// .excludePathPatterns("/lpkgiftcard/getGifCardBySid/**")
|
|||
// .excludePathPatterns("/empcardgift/getGifCardBySid/**")
|
|||
// .excludePathPatterns("/empcard/getEmpCardBySid/**")
|
|||
// .excludePathPatterns("/lpkgiftcard/isSaturAndSun/**")
|
|||
// .excludePathPatterns("/empcardgift/isSaturAndSun/**")
|
|||
// .excludePathPatterns("/empcard/isSaturAndSun/**")
|
|||
// .excludePathPatterns("/lpkgiftcard/getReservationBySid/**")
|
|||
// .excludePathPatterns("/lpksreservoorder/submission")
|
|||
// .excludePathPatterns("/lpksreservoorder/exportExcelByStore")
|
|||
// .excludePathPatterns("/empsreservoorder/createNewUserBagOrder")
|
|||
// .excludePathPatterns("/lpksreservoorders/submission")
|
|||
// .excludePathPatterns("/empsreservoorder/ordersList")
|
|||
// .excludePathPatterns("/empsreservoorder/submission")
|
|||
// .excludePathPatterns("/empsreservoorder/submissionEmp")
|
|||
// .excludePathPatterns("/empcardgift/generateCard")
|
|||
// .excludePathPatterns("/lpkgiftcard/bindCard")
|
|||
// .excludePathPatterns("/empcard/bindCard")
|
|||
// .excludePathPatterns("/lpksreservoorder/orderByCardSid/**")
|
|||
// .excludePathPatterns("/lpksreservoorder/orderListByUserSid/**")
|
|||
// .excludePathPatterns("/lpksreservoorder/orderDetails/**")
|
|||
// .excludePathPatterns("/newcomerrecorecord/recommendNewUsers")
|
|||
// .excludePathPatterns("/newcomerrecorecord/recommendedAssistance")
|
|||
// .excludePathPatterns("/newcomerrecorecord/recordList/**")
|
|||
// .excludePathPatterns("/transferrecords/transferRecordsList")
|
|||
// .excludePathPatterns("/empsreservoorder/createVegeOrder")
|
|||
// .excludePathPatterns("/empsreservoorder/OrderDetails/**")
|
|||
// .excludePathPatterns("/empsreservoorder/changePayState/**")
|
|||
// .excludePathPatterns("/lpkgoods/goodsDetails/**")
|
|||
// .excludePathPatterns("/lpkstore/getAllStoreByQuery")
|
|||
// .excludePathPatterns("/vegetablecellar/receiveTransferGoods")
|
|||
// .excludePathPatterns("/transferrecords/submission")
|
|||
// .excludePathPatterns("/lpkgiftcard/getCardByBank")
|
|||
// .excludePathPatterns("/empcard/getEmpCard")
|
|||
// .excludePathPatterns("/empcardgift/shareEmpCard/**")
|
|||
// .excludePathPatterns("/empcardgift/generateEmpCardGift")
|
|||
// .excludePathPatterns("/empcardgift/generateEmpCard")
|
|||
// .excludePathPatterns("/lpkcustomer/wxSilentLogin")
|
|||
// .excludePathPatterns("/lpkgiftcard/gifCardsByCustomerSid")
|
|||
// .excludePathPatterns("/lpkgoods/getAllGiftBag")
|
|||
// .excludePathPatterns("/appletgiftbag/getGiftBagBySid/**")
|
|||
// .excludePathPatterns("/appletgiftbag/appletGiftBagList")
|
|||
// .excludePathPatterns("/lpkgiftcard/cardShareDetail/**")
|
|||
// .excludePathPatterns("/lpkgiftcard/cardShareGoodsDetail/**")
|
|||
// .excludePathPatterns("/empcardgift/generateTopEmpCard/**")
|
|||
// .excludePathPatterns("/empsreservoorder/createOrder")
|
|||
// .excludePathPatterns("/appletgiftbag/recommendRecord/**")
|
|||
// //2024-01-17
|
|||
// .excludePathPatterns("/lpkgiftcard/getAllGoodsType/**")
|
|||
// .excludePathPatterns("/appletnotice/getNotice")
|
|||
// .excludePathPatterns("/empsreservoorder/getPreOrder")
|
|||
// .excludePathPatterns("/lpkgoods/getAllGoodsType/**")
|
|||
// .excludePathPatterns("/transferrecords/submission")
|
|||
// .excludePathPatterns("/vegetablecellar/receiveTransferGoods")
|
|||
// .excludePathPatterns("/customerstore/isSaturAndSun")
|
|||
// .excludePathPatterns("/lpkgiftcard/getGoodsByType/**")
|
|||
// .excludePathPatterns("/lpkgoods/getGoodsTypeAndBrand")
|
|||
// .excludePathPatterns("/lpkgoods/getGoodsByType")
|
|||
// .excludePathPatterns("/lpksreservoorders/orderListByUserSid")
|
|||
// .excludePathPatterns("/appletgiftbag/newUserQuota")
|
|||
// .excludePathPatterns("/shoppingcart/addShoppingCart")
|
|||
// .excludePathPatterns("/shoppingcart/getGoodsWeight")
|
|||
// .excludePathPatterns("/shoppingcart/shoppingCartList")
|
|||
// .excludePathPatterns("/shoppingcart/delShoppingCart/**")
|
|||
// .excludePathPatterns("/lpkgoods/vegeCellarTypeList")
|
|||
// .excludePathPatterns("/vegetablecellar/addGoods/**")
|
|||
// .excludePathPatterns("/lpkgoods/vegeCellarList")
|
|||
// .excludePathPatterns("/customerstore/getStoreBySid/**")
|
|||
// .excludePathPatterns("/lpkgiftcard/bindAllCard")
|
|||
// .excludePathPatterns("/lpkcustomer/customerInfo/**")
|
|||
// .excludePathPatterns("/vegetablecellar/saveGoods")
|
|||
// .excludePathPatterns("/transferrecords/getTransferByCode/**")
|
|||
// //2024-01-18
|
|||
// .excludePathPatterns("/lpkcustomer/getCustomerInfo/**")
|
|||
// .excludePathPatterns("/lpkcustomer/modifyUserNickName")
|
|||
// .excludePathPatterns("/lpkcustomer/modifyHeadImage")
|
|||
// .excludePathPatterns("/upload/**")
|
|||
// .excludePathPatterns("/lpkcustomer/getPhoneNumber")
|
|||
// .excludePathPatterns("/lpkcustomer/getRealInfo/**")
|
|||
// .excludePathPatterns("/lpkcustomer/saveRealInfo")
|
|||
// .excludePathPatterns("/pms/PmsBrand/getList")
|
|||
// .excludePathPatterns("/LpkCustomerBank/getBankList")
|
|||
// .excludePathPatterns("/lpkcustomer/updateCustomerBank")
|
|||
// .excludePathPatterns("//wxapi/**")
|
|||
// ;
|
|||
// }
|
|||
//}
|
@ -0,0 +1,67 @@ |
|||
package com.yxt.fms.config; |
|||
|
|||
import com.yxt.common.base.config.handler.GlobalExceptionHandler; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
import org.springframework.validation.BindException; |
|||
import org.springframework.validation.ObjectError; |
|||
import org.springframework.web.bind.MethodArgumentNotValidException; |
|||
import org.springframework.web.bind.annotation.ExceptionHandler; |
|||
import org.springframework.web.bind.annotation.RestControllerAdvice; |
|||
import org.springframework.web.servlet.NoHandlerFoundException; |
|||
|
|||
/** |
|||
* @author dimengzhe |
|||
* @date 2020/9/12 3:23 |
|||
* @description 全局异常处理 |
|||
*/ |
|||
@RestControllerAdvice |
|||
public class SaTokenGloableException extends GlobalExceptionHandler { |
|||
|
|||
private static final Logger L = LoggerFactory.getLogger(GlobalExceptionHandler.class); |
|||
|
|||
public SaTokenGloableException() { |
|||
} |
|||
@ExceptionHandler({Exception.class}) |
|||
public ResultBean handleException(Exception e) { |
|||
if(null !=e.getMessage()){ |
|||
if(e.getMessage().contains("token 无效:")){ |
|||
L.error(e.getMessage(), e); |
|||
return ResultBean.fireFail().setCode("5000").setMsg("系统异常::" + e.getMessage()); |
|||
} |
|||
if(e.getMessage().contains("未能读取到有效 token")){ |
|||
// L.error(e.getMessage(), e);
|
|||
return ResultBean.fireFail().setMsg("系统异常::" + e.getMessage()); |
|||
} |
|||
} |
|||
|
|||
L.error(e.getMessage(), e); |
|||
return ResultBean.fireFail().setMsg("系统异常::" + e.getMessage()); |
|||
} |
|||
@ExceptionHandler({NoHandlerFoundException.class}) |
|||
public ResultBean handlerNoFoundException(Exception e) { |
|||
L.error(e.getMessage(), e); |
|||
return ResultBean.fireFail().setCode("404").setMsg("路径不存在,请检查路径是否正确"); |
|||
} |
|||
|
|||
// @ExceptionHandler({Exception.class})
|
|||
// public ResultBean handleException(Exception e) {
|
|||
// L.error(e.getMessage(), e);
|
|||
// return ResultBean.fireFail().setMsg("系统异常::" + e.getMessage());
|
|||
// }
|
|||
|
|||
@ExceptionHandler({BindException.class}) |
|||
public ResultBean validatedBindException(BindException e) { |
|||
L.error(e.getMessage(), e); |
|||
String message = ((ObjectError)e.getAllErrors().get(0)).getDefaultMessage(); |
|||
return ResultBean.fireFail().setCode("405").setMsg(message); |
|||
} |
|||
|
|||
@ExceptionHandler({MethodArgumentNotValidException.class}) |
|||
public ResultBean validExceptionHandler(MethodArgumentNotValidException e) { |
|||
L.error(e.getMessage(), e); |
|||
String message = e.getBindingResult().getFieldError().getDefaultMessage(); |
|||
return ResultBean.fireFail().setCode("405").setMsg(message); |
|||
} |
|||
} |
@ -0,0 +1,4 @@ |
|||
/** |
|||
* 宇信通监管项目-光伏(山海新能源)项目后台逻辑和接口-接口声明 |
|||
*/ |
|||
package com.yxt.fms.config; |
@ -0,0 +1,4 @@ |
|||
/** |
|||
* 宇信通监管项目-光伏(山海新能源)项目后台逻辑和接口-接口声明 |
|||
*/ |
|||
package com.yxt.fms.feign; |
@ -0,0 +1,25 @@ |
|||
package com.yxt.fms.feign.pms.pmspurchasebackbill; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.fms.feign.pms.pmspurchasebill.PmsPurchaseBillDto; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/3/20 |
|||
**/ |
|||
@FeignClient( |
|||
contextId = "yxt-pms-PmsPurchaseBackBill", |
|||
name = "yxt-pms", |
|||
path = "/apiadmin/pms/pmspurchasebackbill", |
|||
fallback = PmsPurchaseBackBillFeignFallback.class) |
|||
public interface PmsPurchaseBackBillFeign { |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean<String> save(@RequestBody PmsPurchasebackBillDto dto); |
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.yxt.fms.feign.pms.pmspurchasebackbill; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.fms.feign.pms.pmspurchasebill.PmsPurchaseBillDto; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/3/20 |
|||
**/ |
|||
@Component |
|||
public class PmsPurchaseBackBillFeignFallback implements PmsPurchaseBackBillFeign { |
|||
|
|||
@Override |
|||
public ResultBean save(PmsPurchasebackBillDto dto) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,84 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.feign.pms.pmspurchasebackbill; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-pms(采购) <br/> |
|||
* File: PmsPurchasebackBillVo.java <br/> |
|||
* Class: com.yxt.pms.api.pmspurchasebackbill.PmsPurchasebackBillVo <br/> |
|||
* Description: 采购退货单据 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-19 16:16:12 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购退货单据 视图数据详情", description = "采购退货单据 视图数据详情") |
|||
public class PmsPurchasebackBillDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("制单人sid") |
|||
private String createBySid; |
|||
@ApiModelProperty("制单人姓名") |
|||
private String createByName; // 制单人姓名
|
|||
@ApiModelProperty("来源单sid(采购单sid)") |
|||
private String sourceBillSid; // 来源单sid(采购单sid)
|
|||
@ApiModelProperty("来源单编号") |
|||
private String sourceBillNo; // 来源单编号
|
|||
@ApiModelProperty("单据编号") |
|||
private String billNo; // 单据编号
|
|||
@ApiModelProperty("退误差调整金额") |
|||
private BigDecimal backErrorAmount; // 退误差调整金额
|
|||
@ApiModelProperty("退优惠金额") |
|||
private BigDecimal backDiscountAmount; // 退优惠金额
|
|||
@ApiModelProperty("抵扣欠款") |
|||
private BigDecimal deductDebts; // 抵扣欠款
|
|||
@ApiModelProperty("抵扣单号") |
|||
private String deductBillNo; // 抵扣单号
|
|||
@ApiModelProperty("转入预付款") |
|||
private BigDecimal toPrepayment; // 转入预付款
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("采购退货单明细") |
|||
private List<PmsPurchasebackDetailDetailsVo> pmsPurchasebackDetailList; |
|||
} |
@ -0,0 +1,85 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.feign.pms.pmspurchasebackbill; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-pms(采购) <br/> |
|||
* File: PmsPurchasebackBillDto.java <br/> |
|||
* Class: com.yxt.pms.api.pmspurchasebackbill.PmsPurchasebackBillDto <br/> |
|||
* Description: 采购退货单据 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-19 16:16:12 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购退货单据 数据传输对象", description = "采购退货单据 数据传输对象") |
|||
public class PmsPurchasebackBillDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("制单人sid") |
|||
private String createBySid; |
|||
@ApiModelProperty("制单人姓名") |
|||
private String createByName; // 制单人姓名
|
|||
@ApiModelProperty("来源单sid(采购单sid)") |
|||
private String sourceBillSid; // 来源单sid(采购单sid)
|
|||
@ApiModelProperty("来源单编号") |
|||
private String sourceBillNo; // 来源单编号
|
|||
@ApiModelProperty("单据编号") |
|||
private String billNo; // 单据编号
|
|||
@ApiModelProperty("退误差调整金额") |
|||
private BigDecimal backErrorAmount; // 退误差调整金额
|
|||
@ApiModelProperty("退优惠金额") |
|||
private BigDecimal backDiscountAmount; // 退优惠金额
|
|||
@ApiModelProperty("抵扣欠款") |
|||
private BigDecimal deductDebts; // 抵扣欠款
|
|||
@ApiModelProperty("抵扣单号") |
|||
private String deductBillNo; // 抵扣单号
|
|||
@ApiModelProperty("转入预付款") |
|||
private BigDecimal toPrepayment; // 转入预付款
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("采购退货单明细") |
|||
private List<PmsPurchasebackDetailDto> pmsPurchasebackDetailList; |
|||
|
|||
} |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.feign.pms.pmspurchasebackbill; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* Project: yxt-pms(采购) <br/> |
|||
* File: PmsPurchasebackDetailVo.java <br/> |
|||
* Class: com.yxt.pms.api.pmspurchasebackdetail.PmsPurchasebackDetailVo <br/> |
|||
* Description: 采购退货单据明细 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-19 16:16:12 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购退货单据明细 视图数据详情", description = "采购退货单据明细 视图数据详情") |
|||
public class PmsPurchasebackDetailDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("制单人姓名") |
|||
private String createByName; // 制单人姓名
|
|||
@ApiModelProperty("单据sid") |
|||
private String billSid; // 单据sid
|
|||
@ApiModelProperty("商品库存sid") |
|||
private String inventorySid; // 商品库存sid
|
|||
@ApiModelProperty("商品基础信息Sid") |
|||
private String goodsSpuSid; // 商品基础信息Sid
|
|||
@ApiModelProperty("商品名称") |
|||
private String goodsSpuName; // 商品名称
|
|||
@ApiModelProperty("商品Skusid") |
|||
private String goodsSkuSid; // 商品Skusid
|
|||
@ApiModelProperty("商品Sku名称") |
|||
private String goodsSkuTitle; // 商品Sku名称
|
|||
@ApiModelProperty("商品编码(图号)") |
|||
private String goodsSkuCode; // 商品编码(图号)
|
|||
@ApiModelProperty("规格") |
|||
private String goodsSkuOwnSpec; // 规格
|
|||
@ApiModelProperty("退货前的库存数量") |
|||
private BigDecimal currentCount; // 退货前的库存数量
|
|||
@ApiModelProperty("计量单位") |
|||
private String unit; // 计量单位
|
|||
@ApiModelProperty("仓库sid") |
|||
private String warehouseSid; // 仓库sid
|
|||
@ApiModelProperty("仓库名称") |
|||
private String warehouseName; // 仓库名称
|
|||
@ApiModelProperty("库区/货位sid") |
|||
private String areaSid; // 库区/货位sid
|
|||
@ApiModelProperty("库区名称") |
|||
private String warehouseAreaName; // 库区名称
|
|||
@ApiModelProperty("货架sid") |
|||
private String rackSid; // 货架sid
|
|||
@ApiModelProperty("货架名称") |
|||
private String warehouseRackName; // 货架名称
|
|||
@ApiModelProperty("已退数量") |
|||
private BigDecimal returnedCount; // 已退数量
|
|||
@ApiModelProperty("退货数量") |
|||
private BigDecimal backCount; // 退货数量
|
|||
@ApiModelProperty("税额") |
|||
private BigDecimal maxAmount; // 税额
|
|||
@ApiModelProperty("含税价") |
|||
private BigDecimal maxPrice; // 含税价
|
|||
@ApiModelProperty("退货金额") |
|||
private BigDecimal backAmount; // 退货金额
|
|||
|
|||
} |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.feign.pms.pmspurchasebackbill; |
|||
|
|||
|
|||
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: yxt-pms(采购) <br/> |
|||
* File: PmsPurchasebackDetailDto.java <br/> |
|||
* Class: com.yxt.pms.api.pmspurchasebackdetail.PmsPurchasebackDetailDto <br/> |
|||
* Description: 采购退货单据明细 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-19 16:16:12 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购退货单据明细 数据传输对象", description = "采购退货单据明细 数据传输对象") |
|||
public class PmsPurchasebackDetailDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("制单人姓名") |
|||
private String createByName; // 制单人姓名
|
|||
@ApiModelProperty("单据sid") |
|||
private String billSid; // 单据sid
|
|||
@ApiModelProperty("商品库存sid") |
|||
private String inventorySid; // 商品库存sid
|
|||
@ApiModelProperty("商品基础信息Sid") |
|||
private String goodsSpuSid; // 商品基础信息Sid
|
|||
@ApiModelProperty("商品名称") |
|||
private String goodsSpuName; // 商品名称
|
|||
@ApiModelProperty("商品Skusid") |
|||
private String goodsSkuSid; // 商品Skusid
|
|||
@ApiModelProperty("商品Sku名称") |
|||
private String goodsSkuTitle; // 商品Sku名称
|
|||
@ApiModelProperty("商品编码(图号)") |
|||
private String goodsSkuCode; // 商品编码(图号)
|
|||
@ApiModelProperty("规格") |
|||
private String goodsSkuOwnSpec; // 规格
|
|||
@ApiModelProperty("退货前的库存数量") |
|||
private BigDecimal currentCount; // 退货前的库存数量
|
|||
@ApiModelProperty("计量单位") |
|||
private String unit; // 计量单位
|
|||
@ApiModelProperty("仓库sid") |
|||
private String warehouseSid; // 仓库sid
|
|||
@ApiModelProperty("仓库名称") |
|||
private String warehouseName; // 仓库名称
|
|||
@ApiModelProperty("库区/货位sid") |
|||
private String areaSid; // 库区/货位sid
|
|||
@ApiModelProperty("库区名称") |
|||
private String warehouseAreaName; // 库区名称
|
|||
@ApiModelProperty("货架sid") |
|||
private String rackSid; // 货架sid
|
|||
@ApiModelProperty("货架名称") |
|||
private String warehouseRackName; // 货架名称
|
|||
@ApiModelProperty("已退数量") |
|||
private BigDecimal returnedCount; // 已退数量
|
|||
@ApiModelProperty("退货数量") |
|||
private BigDecimal backCount; // 退货数量
|
|||
@ApiModelProperty("税额") |
|||
private BigDecimal maxAmount; // 税额
|
|||
@ApiModelProperty("含税价") |
|||
private BigDecimal maxPrice; // 含税价
|
|||
@ApiModelProperty("退货金额") |
|||
private BigDecimal backAmount; // 退货金额
|
|||
|
|||
} |
@ -0,0 +1,98 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.feign.pms.pmspurchasebill; |
|||
|
|||
|
|||
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: yxt-pms(采购) <br/> |
|||
* File: PmsPurchaseBillDetailDto.java <br/> |
|||
* Class: com.yxt.pms.api.pmspurchasebilldetail.PmsPurchaseBillDetailDto <br/> |
|||
* Description: 采购单据明细 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-19 13:51:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购单据明细 数据传输对象", description = "采购单据明细 数据传输对象") |
|||
public class PmsPurchaseBillDetailDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("单据sid") |
|||
private String billSid; // 单据sid
|
|||
@ApiModelProperty("商品基础信息Sid") |
|||
private String goodSpuSid; // 商品基础信息Sid
|
|||
@ApiModelProperty("商品名称") |
|||
private String goodsSpuName; // 商品名称
|
|||
@ApiModelProperty("商品Skusid") |
|||
private String goodsSkuSid; // 商品Skusid
|
|||
@ApiModelProperty("商品Sku名称") |
|||
private String goodsSkuTitle; // 商品Sku名称
|
|||
@ApiModelProperty("商品编码(图号)") |
|||
private String goodsSkuCode; // 商品编码(图号)
|
|||
@ApiModelProperty("规格型号") |
|||
private String goodsSkuOwnSpec; // 规格型号
|
|||
@ApiModelProperty("采购前库存数量") |
|||
private BigDecimal currentCount; // 采购前库存数量
|
|||
@ApiModelProperty("仓库sid") |
|||
private String warehouseSid; // 仓库sid
|
|||
@ApiModelProperty("仓库名称") |
|||
private String warehouseName; // 仓库名称
|
|||
@ApiModelProperty("库区/货位sid") |
|||
private String warehouseAreaSid; // 库区/货位sid
|
|||
@ApiModelProperty("库区名称") |
|||
private String warehouseAreaName; // 库区名称
|
|||
@ApiModelProperty("货架sid") |
|||
private String warehouseRackSid; // 货架sid
|
|||
@ApiModelProperty("货架名称") |
|||
private String warehouseRackName; // 货架名称
|
|||
@ApiModelProperty("单位成本(进货价)") |
|||
private BigDecimal cost; // 单位成本(进货价)
|
|||
@ApiModelProperty("采购数量") |
|||
private BigDecimal count; // 采购数量
|
|||
@ApiModelProperty("税额") |
|||
private BigDecimal taxAmount; // 税额
|
|||
@ApiModelProperty("含税价") |
|||
private BigDecimal taxPrice; // 含税价
|
|||
@ApiModelProperty("采购金额") |
|||
private BigDecimal amount; // 采购金额
|
|||
@ApiModelProperty("销售单价") |
|||
private BigDecimal salesPrice; // 销售单价
|
|||
@ApiModelProperty("最低零售价") |
|||
private BigDecimal minimumSalesPrice; // 最低零售价
|
|||
|
|||
} |
@ -0,0 +1,108 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.feign.pms.pmspurchasebill; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: yxt-pms(采购) <br/> |
|||
* File: PmsPurchaseBillDto.java <br/> |
|||
* Class: com.yxt.pms.api.pmspurchasebill.PmsPurchaseBillDto <br/> |
|||
* Description: 采购单 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-19 13:51:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购单 数据传输对象", description = "采购单 数据传输对象") |
|||
public class PmsPurchaseBillDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("制单人sid") |
|||
private String createBySid; |
|||
@ApiModelProperty("制单人姓名") |
|||
private String createByName; // 制单人姓名
|
|||
@ApiModelProperty("来源单sid(工单sid)") |
|||
private String sourceBillSid; // 来源单sid(工单sid)
|
|||
@ApiModelProperty("来源单编号/外部编号") |
|||
private String sourceBillNo; // 来源单编号/外部编号
|
|||
@ApiModelProperty("单据编号") |
|||
private String billNo; // 单据编号
|
|||
@ApiModelProperty("采购类型Key") |
|||
private String purchaseTypeKey; // 采购类型Key
|
|||
@ApiModelProperty("采购类型Value(厂家采购、外采、其他)") |
|||
private String purchaseTypeValue; // 采购类型Value(厂家采购、外采、其他)
|
|||
@ApiModelProperty("供应商sid") |
|||
private String supplierSid; // 供应商sid
|
|||
@ApiModelProperty("供应商名称") |
|||
private String supplierName; // 供应商名称
|
|||
@ApiModelProperty("供应商联系电话") |
|||
private String supplierPhone; // 供应商联系电话
|
|||
@ApiModelProperty("票据类型key") |
|||
private String billTypeKey; // 票据类型key
|
|||
@ApiModelProperty("票据类型value(不含税、增值税、普通税、已含增值税)") |
|||
private String billTypeValue; // 票据类型value(不含税、增值税、普通税、已含增值税)
|
|||
@ApiModelProperty("是否需要开发票(是1,否0)") |
|||
private Integer isInvoicing; // 是否需要开发票(是1,否0)
|
|||
@ApiModelProperty("发票号码") |
|||
private String invoiceCode; // 发票号码
|
|||
@ApiModelProperty("采购员sid(单选)") |
|||
private String purchaserSid; // 采购员sid(单选)
|
|||
@ApiModelProperty("采购员姓名") |
|||
private String purchaserName; // 采购员姓名
|
|||
@ApiModelProperty("库管员sid(单选)") |
|||
private String storekeeperSid; // 库管员sid(单选)
|
|||
@ApiModelProperty("库管员姓名") |
|||
private String storekeeperName; // 库管员姓名
|
|||
@ApiModelProperty("运费") |
|||
private BigDecimal freight; // 运费
|
|||
@ApiModelProperty("优惠金额") |
|||
private BigDecimal discountAmount; // 优惠金额
|
|||
@ApiModelProperty("应付金额(=采购金额+运费-优惠金额)") |
|||
private BigDecimal payableAmount; // 应付金额(=采购金额+运费-优惠金额)
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("采购单商品明细") |
|||
private List<PmsPurchaseBillDetailDto> pmsPurchaseBillDetailList; |
|||
@ApiModelProperty("采购单扩展") |
|||
private PmsPurchaseBillExtendDto pmsPurchaseBillExtend; |
|||
} |
@ -0,0 +1,86 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.fms.feign.pms.pmspurchasebill; |
|||
|
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* Project: yxt-pms(采购) <br/> |
|||
* File: PmsPurchaseBillExtendDto.java <br/> |
|||
* Class: com.yxt.pms.api.pmspurchasebillextend.PmsPurchaseBillExtendDto <br/> |
|||
* Description: 采购单扩展 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-03-19 13:51:46 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购单扩展 数据传输对象", description = "采购单扩展 数据传输对象") |
|||
public class PmsPurchaseBillExtendDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("制单人姓名") |
|||
private String createByName; // 制单人姓名
|
|||
@ApiModelProperty("采购单sid") |
|||
private String purchaseBillSid; // 采购单sid
|
|||
@ApiModelProperty("加价方式(统一加价率、区间加价率、仓库加价率)") |
|||
private String markupType; // 加价方式(统一加价率、区间加价率、仓库加价率)
|
|||
@ApiModelProperty("进价不同时的价格策略(加权平均、分别计价)") |
|||
private String priceStrategy; // 进价不同时的价格策略(加权平均、分别计价)
|
|||
@ApiModelProperty("临时加价率") |
|||
private Integer tempMarkupRate; // 临时加价率
|
|||
@ApiModelProperty("误差调整金额") |
|||
private BigDecimal errorAmount; // 误差调整金额
|
|||
@ApiModelProperty("发货人姓名") |
|||
private String shipperName; // 发货人姓名
|
|||
@ApiModelProperty("发货人手机") |
|||
private String shipperMob; // 发货人手机
|
|||
@ApiModelProperty("发货省市区sid") |
|||
private String deliveryAreaSid; // 发货省市区sid
|
|||
@ApiModelProperty("发货详细地址") |
|||
private String deliveryAddress; // 发货详细地址
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("到货日期") |
|||
private Date arrivalDate; |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@ApiModelProperty("付款期限") |
|||
private Date paymentTerm; // 付款期限
|
|||
@ApiModelProperty("仓库sid") |
|||
private String wareHouseSid; // 仓库sid
|
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.yxt.fms.feign.pms.pmspurchasebill; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestParam; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/3/20 |
|||
**/ |
|||
@FeignClient( |
|||
contextId = "yxt-pms-PmsPurchaseBill", |
|||
name = "yxt-pms", |
|||
path = "/apiadmin/pms/pmspurchasebill", |
|||
fallback = PmsPurchaseBillFeignFallback.class) |
|||
public interface PmsPurchaseBillFeign { |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean<String> save(@RequestBody PmsPurchaseBillDto dto); |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.yxt.fms.feign.pms.pmspurchasebill; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/3/20 |
|||
**/ |
|||
@Component |
|||
public class PmsPurchaseBillFeignFallback implements PmsPurchaseBillFeign { |
|||
|
|||
@Override |
|||
public ResultBean<String> save(PmsPurchaseBillDto dto) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,30 @@ |
|||
spring: |
|||
datasource: |
|||
hikari: |
|||
max-lifetime: 500000 |
|||
driver-class-name: com.mysql.cj.jdbc.Driver |
|||
url: jdbc:mysql://39.104.100.138:3306/yxt_fms?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true |
|||
username: root |
|||
password: yxt_mysql_138 |
|||
cloud: |
|||
nacos: |
|||
discovery: |
|||
server-addr: 39.104.100.138:8848 |
|||
register-enabled: false |
|||
redis: |
|||
database: 3 # Redis数据库索引(默认为0) |
|||
host: 39.104.100.138 |
|||
jedis: |
|||
pool: |
|||
max-active: -1 #连接池最大连接数(使用负值表示没有限制) |
|||
max-idle: 8 #连接池中的最大空闲连接 |
|||
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) |
|||
min-idle: 0 # 连接池中的最小空闲连接 |
|||
password: 123456 |
|||
port: 6379 |
|||
timeout: 0 # 连接超时时间(毫秒) |
|||
image: |
|||
upload: |
|||
path: D:\\anrui\\upload\\ |
|||
url: |
|||
prefix: http://192.168.1.106:8111/upload/ |
@ -0,0 +1,27 @@ |
|||
spring: |
|||
datasource: |
|||
driver-class-name: com.mysql.cj.jdbc.Driver |
|||
url: jdbc:mysql://120.46.172.184:3306/yxt_fms?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
|||
username: root |
|||
password: '@anrui18033887500' |
|||
cloud: |
|||
nacos: |
|||
discovery: |
|||
server-addr: 127.0.0.1:8848 |
|||
redis: |
|||
database: 3 # Redis数据库索引(默认为0) |
|||
host: 127.0.0.1 |
|||
jedis: |
|||
pool: |
|||
max-active: -1 #连接池最大连接数(使用负值表示没有限制) |
|||
max-idle: 8 #连接池中的最大空闲连接 |
|||
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) |
|||
min-idle: 0 # 连接池中的最小空闲连接 |
|||
password: 123456 |
|||
port: 6379 |
|||
timeout: 0 # 连接超时时间(毫秒) |
|||
image: |
|||
upload: |
|||
path: D:\anrui\upload\ |
|||
url: |
|||
prefix: http://120.46.172.184/api/upload/ |
@ -0,0 +1,31 @@ |
|||
spring: |
|||
datasource: |
|||
driver-class-name: com.mysql.cj.jdbc.Driver |
|||
url: jdbc:mysql://172.18.0.4:3306/yxt_fms?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
|||
username: root |
|||
password: yxt_mysql_138 |
|||
hikari: |
|||
minimum-idle: 3 |
|||
max-lifetime: 30000 |
|||
maximum-pool-size: 10 |
|||
cloud: |
|||
nacos: |
|||
discovery: |
|||
server-addr: 172.18.0.5:8848 |
|||
redis: |
|||
database: 3 # Redis数据库索引(默认为0) |
|||
host: 172.18.0.7 |
|||
jedis: |
|||
pool: |
|||
max-active: -1 #连接池最大连接数(使用负值表示没有限制) |
|||
max-idle: 8 #连接池中的最大空闲连接 |
|||
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) |
|||
min-idle: 0 # 连接池中的最小空闲连接 |
|||
password: 123456 |
|||
port: 6379 |
|||
timeout: 0 # 连接超时时间(毫秒) |
|||
image: |
|||
upload: |
|||
path: /home/lzh/docker_data/nginx/html/anrui-system-ui/upload/ |
|||
url: |
|||
prefix: http://anrui.yyundong.com/upload/ |
@ -0,0 +1,50 @@ |
|||
spring: |
|||
application: |
|||
name: yxt-fms |
|||
profiles: |
|||
active: devv |
|||
# active: test |
|||
# active: pro |
|||
messages: |
|||
# 国际化资源文件路径 |
|||
basename: i18n/messages |
|||
servlet: |
|||
#上传文件 |
|||
multipart: |
|||
max-file-size: 50MB |
|||
max-request-size: 100MB |
|||
devtools: |
|||
restart: |
|||
# 热部署开关 |
|||
enabled: true |
|||
|
|||
server: |
|||
port: 7304 |
|||
max-http-header-size: 102400 |
|||
undertow: |
|||
max-http-post-size: -1 |
|||
|
|||
#mybatis |
|||
mybatis-plus: |
|||
# 配置mapper的扫描,找到所有的mapper.xml映射文件 |
|||
mapper-locations: classpath*:**Mapper.xml |
|||
global-config: |
|||
refresh: true |
|||
db-config: |
|||
#定义生成ID的类型 |
|||
id-type: Auto |
|||
db-type: mysql |
|||
configuration: |
|||
map-underscore-to-camel-case: false |
|||
cache-enabled: true |
|||
call-setters-on-nulls: true |
|||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
|||
|
|||
#rocketmq: |
|||
# producer: |
|||
# group: yxt-supervise-gf |
|||
# name-server: 127.0.0.1:9876 |
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,50 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<configuration> |
|||
|
|||
<property name="log.base" value="logs/yxt_wms" /> |
|||
|
|||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
|||
<encoder> |
|||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 : |
|||
|%blue(%thread) 线程 如 :DiscoveryClient-CacheRefreshExecutor-0--> |
|||
<!--<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>--> |
|||
<pattern>%yellow(%date{yyyy-MM-dd HH:mm:ss}) |%highlight(%-5level) |%green(%logger:%line) |%blue(%msg%n) |
|||
</pattern> |
|||
<!--<charset>UTF-8</charset> --> |
|||
</encoder> |
|||
</appender> |
|||
|
|||
<!-- 彩色日志 --> |
|||
<!-- 彩色日志依赖的渲染类 --> |
|||
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" /> |
|||
<conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" /> |
|||
<conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" /> |
|||
<!-- 彩色日志格式 --> |
|||
<property name="CONSOLE_LOG_PATTERN" value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/> |
|||
|
|||
<appender name="FILEOUT" |
|||
class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|||
<file>${log.base}.log</file> |
|||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
|||
<fileNamePattern>${log.base}.%d{yyyyMMdd}.%i.log.zip |
|||
</fileNamePattern> |
|||
<!-- 当文件大小超过10MB时触发滚动 --> |
|||
<timeBasedFileNamingAndTriggeringPolicy |
|||
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
|||
<maxFileSize>1MB</maxFileSize> |
|||
</timeBasedFileNamingAndTriggeringPolicy> |
|||
</rollingPolicy> |
|||
<encoder> |
|||
<!--<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>--> |
|||
<Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} |
|||
-%msg%n</Pattern> |
|||
<!--<charset>UTF-8</charset> --> |
|||
</encoder> |
|||
</appender> |
|||
|
|||
<root level="DEBUG"> |
|||
<appender-ref ref="STDOUT" /> |
|||
<appender-ref ref="FILEOUT" /> |
|||
</root> |
|||
|
|||
</configuration> |
@ -0,0 +1,13 @@ |
|||
package com.yxt.fms; |
|||
|
|||
import org.junit.jupiter.api.Test; |
|||
import org.springframework.boot.test.context.SpringBootTest; |
|||
|
|||
@SpringBootTest |
|||
class YxtFmsApplicationTests { |
|||
|
|||
@Test |
|||
void contextLoads() { |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue