给单据详情查询接口增加客户基础信息的展示

This commit is contained in:
jishenghua
2025-09-10 12:31:38 +08:00
parent b2f1605d6f
commit 74895eb73a
2 changed files with 57 additions and 1 deletions

View File

@@ -57,6 +57,26 @@ public class DepotHeadVo4List extends DepotHead{
*/
private BigDecimal realNeedDebt;
/**
* 开户行
*/
private String bankName;
/**
* 账号
*/
private String accountNumber;
/**
* 纳税人识别号
*/
private String taxNum;
/**
* 联系电话
*/
private String phoneNum;
public String getProjectName() {
return projectName;
}
@@ -224,4 +244,36 @@ public class DepotHeadVo4List extends DepotHead{
public void setRealNeedDebt(BigDecimal realNeedDebt) {
this.realNeedDebt = realNeedDebt;
}
public String getBankName() {
return bankName;
}
public void setBankName(String bankName) {
this.bankName = bankName;
}
public String getAccountNumber() {
return accountNumber;
}
public void setAccountNumber(String accountNumber) {
this.accountNumber = accountNumber;
}
public String getTaxNum() {
return taxNum;
}
public void setTaxNum(String taxNum) {
this.taxNum = taxNum;
}
public String getPhoneNum() {
return phoneNum;
}
public void setPhoneNum(String phoneNum) {
this.phoneNum = phoneNum;
}
}

View File

@@ -10,6 +10,10 @@
<result column="contacts" jdbcType="VARCHAR" property="contacts" />
<result column="telephone" jdbcType="VARCHAR" property="telephone" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="bank_name" jdbcType="VARCHAR" property="bankName" />
<result column="account_number" jdbcType="VARCHAR" property="accountNumber" />
<result column="tax_num" jdbcType="VARCHAR" property="taxNum" />
<result column="phone_num" jdbcType="VARCHAR" property="phoneNum" />
</resultMap>
<resultMap id="ResultWithInfoExMap" type="com.jsh.erp.datasource.vo.DepotHeadVo4InDetail">
@@ -1065,7 +1069,7 @@
<select id="getDetailByNumber" parameterType="com.jsh.erp.datasource.entities.DepotHeadExample" resultMap="ResultMapEx">
select dh.*, concat(dh.sub_type,dh.type) as depotHeadType, a.name AccountName,
s.supplier OrganName, s.contacts, s.telephone, s.address
s.supplier OrganName, s.contacts, s.telephone, s.address, s.bank_name, s.account_number, s.tax_num, s.phone_num
from jsh_depot_head dh
left join jsh_supplier s on dh.organ_id=s.id and ifnull(s.delete_Flag,'0') !='1'
left join jsh_account a on dh.account_id=a.id and ifnull(a.delete_Flag,'0') !='1'