30 changed files with 532 additions and 387 deletions
@ -0,0 +1,43 @@ |
|||
package com.yxt.anrui.fin.api.finpaymentrecord; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/7/6 17:35 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class FinPaymentrecordUpdateDto implements Dto { |
|||
private static final long serialVersionUID = -6119639419254587261L; |
|||
|
|||
private List<String> sids; |
|||
@ApiModelProperty(value = "付款银行") |
|||
private String payBank; |
|||
@ApiModelProperty(value = "付款账号") |
|||
private String payBankAccount; |
|||
|
|||
@ApiModelProperty(value = "付款人sid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "付款人姓名") |
|||
private String name; |
|||
@ApiModelProperty(value = "付款日期") |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date payDate; |
|||
|
|||
@ApiModelProperty(value = "付款备注") |
|||
private String payRemark; |
|||
@ApiModelProperty(value = "付款方式") |
|||
private String payWayKey; |
|||
@ApiModelProperty(value = "付款方式value") |
|||
private String payWayValue; |
|||
|
|||
@ApiModelProperty(value = "付款凭证") |
|||
private String payFile; |
|||
} |
@ -1,13 +1,45 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.anrui.fin.biz.finpaymentrecord.FinPaymentrecordMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordVo"> |
|||
SELECT * FROM fin_paymentrecord <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordVo"> |
|||
SELECT * FROM fin_paymentrecord <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordVo"> |
|||
SELECT fp.sid, |
|||
fp.payBank, |
|||
fp.payBankAccount, |
|||
fp.name, |
|||
DATE_FORMAT(fp.payDate, '%Y-%m-%d') as payDate, |
|||
fp.payRemark, |
|||
case fa.state |
|||
when 1 then '未支付' |
|||
when 2 then '已支付' end as state, |
|||
DATE_FORMAT(fp.createTime, '%Y-%m-%d') as createTime, |
|||
fa.billNo, |
|||
fa.costTitleValue, |
|||
fa.costTypeValue, |
|||
fa.receiveCompany, |
|||
fa.receiveBankAccount, |
|||
fa.cost |
|||
FROM fin_paymentrecord fp |
|||
left join fin_paymentapply fa on fa.sid = fp.applySid |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.fin.api.finpaymentrecord.FinPaymentrecordVo"> |
|||
SELECT * |
|||
FROM fin_paymentrecord |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectApplySids" resultType="java.lang.String"> |
|||
select applySid |
|||
from fin_paymentrecord WHERE sid IN |
|||
<foreach collection="list" item="item" index="index" open="(" separator="," close=")"> |
|||
#{item} |
|||
</foreach> |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue