Commit f333a134 by guojuxing

开票户接口

parent 1630290d
package com.gic.finance.dto;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
/**
......@@ -11,39 +13,54 @@ import java.util.Date;
*/
public class InvoiceAccountDTO implements Serializable{
private static final long serialVersionUID = -8590063187778073490L;
public interface Save {
}
public interface Edit {
}
/**
*
*/
@NotNull(message = "主键不能为空", groups = {Edit.class})
private Integer invoiceAccountId;
/**
* 开户单位名称
*/
@NotBlank(message = "单位名称不能为空", groups = {Save.class})
private String accountName;
/**
* 纳税识别号
*/
@NotBlank(message = "纳税号不能为空", groups = {Save.class})
private String taxNumber;
/**
* 地址
*/
@NotBlank(message = "地址不能为空", groups = {Save.class})
private String address;
/**
* 开户行
*/
@NotBlank(message = "开户行不能为空", groups = {Save.class})
private String bank;
/**
* 开户电话
*/
@NotBlank(message = "电话不能为空", groups = {Save.class})
private String accountPhone;
/**
* 开户账号
*/
@NotBlank(message = "开户账号不能为空", groups = {Save.class})
private String bankAccount;
/**
......
......@@ -50,8 +50,6 @@ public class InvoiceManageDTO implements Serializable {
* 开票金额
*/
@NotNull(message = "开票金额不能为空", groups = ApplyInvoiceValid.class)
@Pattern(message = "金额数据有误(小数点最多2位),请确认", regexp = "^(([1-9]{1}\\d*)|([0]{1}))(\\.(\\d){0,2})?$", groups = {
ApplyInvoiceValid.class })
private Double billingAmount;
/**
......
......@@ -22,6 +22,27 @@ public interface InvoiceAccountApiService {
ServiceResponse<Void> save(InvoiceAccountDTO invoiceAccountDTO);
/**
* 编辑
* @Title: update

* @Description:

 * @author guojuxing
* @param invoiceAccountDTO

* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


 */
ServiceResponse<Void> update(InvoiceAccountDTO invoiceAccountDTO);
/**
* 启用
* @Title: enable

* @Description:

 * @author guojuxing
* @param id

* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


 */
ServiceResponse<Void> enable(Integer id);
/**
* 详情
* @Title: getById

* @Description:
......@@ -31,4 +52,13 @@ public interface InvoiceAccountApiService {

 */
ServiceResponse<InvoiceAccountDTO> getById(Integer invoiceAccountId);
/**
* 查询启用的那条数据
* @Title: getEnable

* @Description:

 * @author guojuxing 

* @return com.gic.api.base.commons.ServiceResponse<com.gic.finance.dto.InvoiceAccountDTO>


 */
ServiceResponse<InvoiceAccountDTO> getEnable();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment