mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-10 18:30:02 +08:00
update 会员发票抬头 新增电子邮箱字段
This commit is contained in:
@@ -392,6 +392,11 @@ public class MemberService {
|
|||||||
public void createMemberInvoiceTitle(CreateInvoiceTitleDTO dto) {
|
public void createMemberInvoiceTitle(CreateInvoiceTitleDTO dto) {
|
||||||
MemberInvoiceTitle title = new MemberInvoiceTitle();
|
MemberInvoiceTitle title = new MemberInvoiceTitle();
|
||||||
BeanUtils.copyProperties(dto, title);
|
BeanUtils.copyProperties(dto, title);
|
||||||
|
if (StringUtils.isEmail(dto.getReception())) {
|
||||||
|
title.setEmail(dto.getReception());
|
||||||
|
} else {
|
||||||
|
title.setPhoneNumber(dto.getReception());
|
||||||
|
}
|
||||||
int i = memberInvoiceTitleService.insertMemberInvoiceTitle(title);
|
int i = memberInvoiceTitleService.insertMemberInvoiceTitle(title);
|
||||||
log.info("新增{}条发票抬头", i);
|
log.info("新增{}条发票抬头", i);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ public class MemberInvoiceTitle extends BaseEntity {
|
|||||||
@Excel(name = "电话号码")
|
@Excel(name = "电话号码")
|
||||||
private String phoneNumber;
|
private String phoneNumber;
|
||||||
|
|
||||||
|
private String email;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 开户银行
|
* 开户银行
|
||||||
*/
|
*/
|
||||||
@@ -76,86 +78,6 @@ public class MemberInvoiceTitle extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
private String delFlag;
|
private String delFlag;
|
||||||
|
|
||||||
public void setId(Long id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMemberId(String memberId) {
|
|
||||||
this.memberId = memberId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMemberId() {
|
|
||||||
return memberId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTitleType(String titleType) {
|
|
||||||
this.titleType = titleType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTitleType() {
|
|
||||||
return titleType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTaxId(String taxId) {
|
|
||||||
this.taxId = taxId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTaxId() {
|
|
||||||
return taxId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnitAddress(String unitAddress) {
|
|
||||||
this.unitAddress = unitAddress;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUnitAddress() {
|
|
||||||
return unitAddress;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPhoneNumber(String phoneNumber) {
|
|
||||||
this.phoneNumber = phoneNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPhoneNumber() {
|
|
||||||
return phoneNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBankName(String bankName) {
|
|
||||||
this.bankName = bankName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getBankName() {
|
|
||||||
return bankName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBankAccountNumber(String bankAccountNumber) {
|
|
||||||
this.bankAccountNumber = bankAccountNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getBankAccountNumber() {
|
|
||||||
return bankAccountNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDelFlag(String delFlag) {
|
|
||||||
this.delFlag = delFlag;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDelFlag() {
|
|
||||||
return delFlag;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
|
||||||
|
|||||||
@@ -54,4 +54,9 @@ public class CreateInvoiceTitleDTO {
|
|||||||
* 默认标识(0-否;1-是)
|
* 默认标识(0-否;1-是)
|
||||||
*/
|
*/
|
||||||
private String defaultFlag;
|
private String defaultFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 接收方式
|
||||||
|
*/
|
||||||
|
private String reception;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<result property="name" column="name" />
|
<result property="name" column="name" />
|
||||||
<result property="taxId" column="tax_id" />
|
<result property="taxId" column="tax_id" />
|
||||||
<result property="unitAddress" column="unit_address" />
|
<result property="unitAddress" column="unit_address" />
|
||||||
|
<result property="email" column="email" />
|
||||||
<result property="phoneNumber" column="phone_number" />
|
<result property="phoneNumber" column="phone_number" />
|
||||||
<result property="bankName" column="bank_name" />
|
<result property="bankName" column="bank_name" />
|
||||||
<result property="bankAccountNumber" column="bank_account_number" />
|
<result property="bankAccountNumber" column="bank_account_number" />
|
||||||
@@ -23,7 +24,7 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, member_id, title_type, name, tax_id, unit_address, phone_number, bank_name, bank_account_number,
|
id, member_id, title_type, name, tax_id, unit_address, email, phone_number, bank_name, bank_account_number,
|
||||||
default_flag, create_time, create_by, update_time, update_by, del_flag
|
default_flag, create_time, create_by, update_time, update_by, del_flag
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@@ -60,6 +61,7 @@
|
|||||||
<if test="name != null">name,</if>
|
<if test="name != null">name,</if>
|
||||||
<if test="taxId != null">tax_id,</if>
|
<if test="taxId != null">tax_id,</if>
|
||||||
<if test="unitAddress != null">unit_address,</if>
|
<if test="unitAddress != null">unit_address,</if>
|
||||||
|
<if test="email != null">email,</if>
|
||||||
<if test="phoneNumber != null">phone_number,</if>
|
<if test="phoneNumber != null">phone_number,</if>
|
||||||
<if test="bankName != null">bank_name,</if>
|
<if test="bankName != null">bank_name,</if>
|
||||||
<if test="bankAccountNumber != null">bank_account_number,</if>
|
<if test="bankAccountNumber != null">bank_account_number,</if>
|
||||||
@@ -76,6 +78,7 @@
|
|||||||
<if test="name != null">#{name},</if>
|
<if test="name != null">#{name},</if>
|
||||||
<if test="taxId != null">#{taxId},</if>
|
<if test="taxId != null">#{taxId},</if>
|
||||||
<if test="unitAddress != null">#{unitAddress},</if>
|
<if test="unitAddress != null">#{unitAddress},</if>
|
||||||
|
<if test="email != null">#{email},</if>
|
||||||
<if test="phoneNumber != null">#{phoneNumber},</if>
|
<if test="phoneNumber != null">#{phoneNumber},</if>
|
||||||
<if test="bankName != null">#{bankName},</if>
|
<if test="bankName != null">#{bankName},</if>
|
||||||
<if test="bankAccountNumber != null">#{bankAccountNumber},</if>
|
<if test="bankAccountNumber != null">#{bankAccountNumber},</if>
|
||||||
@@ -96,6 +99,7 @@
|
|||||||
<if test="name != null">name = #{name},</if>
|
<if test="name != null">name = #{name},</if>
|
||||||
<if test="taxId != null">tax_id = #{taxId},</if>
|
<if test="taxId != null">tax_id = #{taxId},</if>
|
||||||
<if test="unitAddress != null">unit_address = #{unitAddress},</if>
|
<if test="unitAddress != null">unit_address = #{unitAddress},</if>
|
||||||
|
<if test="email != null">email = #{email},</if>
|
||||||
<if test="phoneNumber != null">phone_number = #{phoneNumber},</if>
|
<if test="phoneNumber != null">phone_number = #{phoneNumber},</if>
|
||||||
<if test="bankName != null">bank_name = #{bankName},</if>
|
<if test="bankName != null">bank_name = #{bankName},</if>
|
||||||
<if test="bankAccountNumber != null">bank_account_number = #{bankAccountNumber},</if>
|
<if test="bankAccountNumber != null">bank_account_number = #{bankAccountNumber},</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user