Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-finance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-finance
Commits
f333a134
Commit
f333a134
authored
Aug 28, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开票户接口
parent
1630290d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
2 deletions
+47
-2
InvoiceAccountDTO.java
.../src/main/java/com/gic/finance/dto/InvoiceAccountDTO.java
+17
-0
InvoiceManageDTO.java
...i/src/main/java/com/gic/finance/dto/InvoiceManageDTO.java
+0
-2
InvoiceAccountApiService.java
...ava/com/gic/finance/service/InvoiceAccountApiService.java
+30
-0
No files found.
gic-platform-finance-api/src/main/java/com/gic/finance/dto/InvoiceAccountDTO.java
View file @
f333a134
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
;
/**
...
...
gic-platform-finance-api/src/main/java/com/gic/finance/dto/InvoiceManageDTO.java
View file @
f333a134
...
...
@@ -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
;
/**
...
...
gic-platform-finance-api/src/main/java/com/gic/finance/service/InvoiceAccountApiService.java
View file @
f333a134
...
...
@@ -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
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment