Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
fcccdc70
Commit
fcccdc70
authored
Sep 06, 2021
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复dmp 收入上传
parent
1b084492
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
175 additions
and
164 deletions
+175
-164
DmpIncomeController.java
src/main/java/common/controller/DmpIncomeController.java
+2
-2
DmpIncome.java
src/main/java/common/model/DmpIncome.java
+165
-155
DmpIncomeRepository.java
src/main/java/common/repository/DmpIncomeRepository.java
+1
-0
DmpIncomeService.java
src/main/java/common/service/DmpIncomeService.java
+7
-7
DmpIncomeServiceImpl.java
src/main/java/common/service/impl/DmpIncomeServiceImpl.java
+0
-0
No files found.
src/main/java/common/controller/DmpIncomeController.java
View file @
fcccdc70
...
...
@@ -38,9 +38,9 @@ public class DmpIncomeController {
}
@PostMapping
(
"/delete"
)
public
ResultModel
deleteItem
(
Long
id
)
{
public
ResultModel
deleteItem
(
@RequestBody
DmpIncome
dmpIncome
)
{
//删除数据
return
ResultModel
.
OK
(
dmpIncomeService
.
delete
(
id
));
return
ResultModel
.
OK
(
dmpIncomeService
.
delete
(
dmpIncome
));
}
...
...
src/main/java/common/model/DmpIncome.java
View file @
fcccdc70
...
...
@@ -9,159 +9,169 @@ import java.util.Date;
@Entity
public
class
DmpIncome
{
private
Long
id
;
// ID
private
String
contractCode
;
//合同编号
private
String
incomeMonth
;
//收入月份
private
String
period
;
//结算周期
private
String
sysSettlement
;
//系统结算
private
String
monthSettlement
;
//按月结算
private
String
confirmSettlement
;
//确认结算
private
String
taxRate
;
//税率
private
Date
createTime
;
private
Date
modifyTime
;
private
String
uploadUser
;
//contract_code, my_body_name, customer_body, customer_short, business_type, agreement_type
private
String
myBodyName
,
customerBody
,
customerShort
,
businessType
,
agreementType
;
@Id
@GeneratedValue
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getContractCode
()
{
return
contractCode
;
}
public
void
setContractCode
(
String
contractCode
)
{
this
.
contractCode
=
contractCode
;
}
public
String
getIncomeMonth
()
{
return
incomeMonth
;
}
public
void
setIncomeMonth
(
String
incomeMonth
)
{
this
.
incomeMonth
=
incomeMonth
;
}
public
String
getPeriod
()
{
return
period
;
}
public
void
setPeriod
(
String
period
)
{
this
.
period
=
period
;
}
public
String
getSysSettlement
()
{
return
sysSettlement
;
}
public
void
setSysSettlement
(
String
sysSettlement
)
{
this
.
sysSettlement
=
sysSettlement
;
}
public
String
getMonthSettlement
()
{
return
monthSettlement
;
}
public
void
setMonthSettlement
(
String
monthSettlement
)
{
this
.
monthSettlement
=
monthSettlement
;
}
public
String
getConfirmSettlement
()
{
return
confirmSettlement
;
}
public
void
setConfirmSettlement
(
String
confirmSettlement
)
{
this
.
confirmSettlement
=
confirmSettlement
;
}
public
String
getTaxRate
()
{
return
taxRate
;
}
public
void
setTaxRate
(
String
taxRate
)
{
this
.
taxRate
=
taxRate
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getModifyTime
()
{
return
modifyTime
;
}
public
void
setModifyTime
(
Date
modifyTime
)
{
this
.
modifyTime
=
modifyTime
;
}
public
String
getUploadUser
()
{
return
uploadUser
;
}
public
void
setUploadUser
(
String
uploadUser
)
{
this
.
uploadUser
=
uploadUser
;
}
@Transient
public
String
getMyBodyName
()
{
return
myBodyName
;
}
public
void
setMyBodyName
(
String
myBodyName
)
{
this
.
myBodyName
=
myBodyName
;
}
@Transient
public
String
getCustomerBody
()
{
return
customerBody
;
}
public
void
setCustomerBody
(
String
customerBody
)
{
this
.
customerBody
=
customerBody
;
}
@Transient
public
String
getCustomerShort
()
{
return
customerShort
;
}
public
void
setCustomerShort
(
String
customerShort
)
{
this
.
customerShort
=
customerShort
;
}
@Transient
public
String
getBusinessType
()
{
return
businessType
;
}
public
void
setBusinessType
(
String
businessType
)
{
this
.
businessType
=
businessType
;
}
@Transient
public
String
getAgreementType
()
{
return
agreementType
;
}
public
void
setAgreementType
(
String
agreementType
)
{
this
.
agreementType
=
agreementType
;
}
private
Long
id
;
// ID
private
String
contractCode
;
//合同编号
private
String
incomeMonth
;
//收入月份
private
String
period
;
//结算周期
private
String
sysSettlement
;
//系统结算
private
String
monthSettlement
;
//按月结算
private
String
confirmSettlement
;
//确认结算
private
String
taxRate
;
//税率
private
Date
createTime
;
private
Date
modifyTime
;
private
String
uploadUser
;
private
int
index
;
//contract_code, my_body_name, customer_body, customer_short, business_type, agreement_type
private
String
myBodyName
,
customerBody
,
customerShort
,
businessType
,
agreementType
;
@Id
@GeneratedValue
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getContractCode
()
{
return
contractCode
;
}
public
void
setContractCode
(
String
contractCode
)
{
this
.
contractCode
=
contractCode
;
}
public
String
getIncomeMonth
()
{
return
incomeMonth
;
}
public
void
setIncomeMonth
(
String
incomeMonth
)
{
this
.
incomeMonth
=
incomeMonth
;
}
public
String
getPeriod
()
{
return
period
;
}
public
void
setPeriod
(
String
period
)
{
this
.
period
=
period
;
}
public
String
getSysSettlement
()
{
return
sysSettlement
;
}
public
void
setSysSettlement
(
String
sysSettlement
)
{
this
.
sysSettlement
=
sysSettlement
;
}
public
String
getMonthSettlement
()
{
return
monthSettlement
;
}
public
void
setMonthSettlement
(
String
monthSettlement
)
{
this
.
monthSettlement
=
monthSettlement
;
}
public
String
getConfirmSettlement
()
{
return
confirmSettlement
;
}
public
void
setConfirmSettlement
(
String
confirmSettlement
)
{
this
.
confirmSettlement
=
confirmSettlement
;
}
public
String
getTaxRate
()
{
return
taxRate
;
}
public
void
setTaxRate
(
String
taxRate
)
{
this
.
taxRate
=
taxRate
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getModifyTime
()
{
return
modifyTime
;
}
public
void
setModifyTime
(
Date
modifyTime
)
{
this
.
modifyTime
=
modifyTime
;
}
public
String
getUploadUser
()
{
return
uploadUser
;
}
public
void
setUploadUser
(
String
uploadUser
)
{
this
.
uploadUser
=
uploadUser
;
}
@Transient
public
String
getMyBodyName
()
{
return
myBodyName
;
}
public
void
setMyBodyName
(
String
myBodyName
)
{
this
.
myBodyName
=
myBodyName
;
}
@Transient
public
String
getCustomerBody
()
{
return
customerBody
;
}
public
void
setCustomerBody
(
String
customerBody
)
{
this
.
customerBody
=
customerBody
;
}
@Transient
public
String
getCustomerShort
()
{
return
customerShort
;
}
public
void
setCustomerShort
(
String
customerShort
)
{
this
.
customerShort
=
customerShort
;
}
@Transient
public
String
getBusinessType
()
{
return
businessType
;
}
public
void
setBusinessType
(
String
businessType
)
{
this
.
businessType
=
businessType
;
}
@Transient
public
String
getAgreementType
()
{
return
agreementType
;
}
public
void
setAgreementType
(
String
agreementType
)
{
this
.
agreementType
=
agreementType
;
}
@Transient
public
int
getIndex
()
{
return
index
;
}
public
void
setIndex
(
int
index
)
{
this
.
index
=
index
;
}
}
src/main/java/common/repository/DmpIncomeRepository.java
View file @
fcccdc70
...
...
@@ -16,4 +16,5 @@ public interface DmpIncomeRepository extends JpaRepository<DmpIncome, Long> {
@Query
(
value
=
"select * from dmp_income where contract_code = ?1 and income_month =?2 limit 1 "
,
nativeQuery
=
true
)
DmpIncome
findByCodeMonth
(
String
contractCode
,
String
incomeMonth
);
}
src/main/java/common/service/DmpIncomeService.java
View file @
fcccdc70
...
...
@@ -10,17 +10,17 @@ import java.util.List;
public
interface
DmpIncomeService
{
List
<
DmpIncome
>
listByCode
(
String
contractCode
);
List
<
DmpIncome
>
listByCode
(
String
contractCode
);
List
<
DmpIncome
>
listByDs
(
String
start
,
String
end
);
List
<
DmpIncome
>
listByDs
(
String
start
,
String
end
);
HSSFWorkbook
exportIncomeList
(
String
startDate
,
String
endDate
,
String
bodyCode
,
String
serchName
);
HSSFWorkbook
exportIncomeList
(
String
startDate
,
String
endDate
,
String
bodyCode
,
String
serchName
);
DmpIncome
update
(
DmpIncome
dmpIncome
);
DmpIncome
update
(
DmpIncome
dmpIncome
);
Long
delete
(
Long
id
);
Long
delete
(
DmpIncome
dmpIncome
);
ResultModel
uploadFile
(
MultipartFile
file
,
String
platform
,
User
loginAccount
);
ResultModel
uploadFile
(
MultipartFile
file
,
String
platform
,
User
loginAccount
);
ResultModel
contractUploadFile
(
MultipartFile
file
,
String
platform
,
User
loginAccount
);
ResultModel
contractUploadFile
(
MultipartFile
file
,
String
platform
,
User
loginAccount
);
}
src/main/java/common/service/impl/DmpIncomeServiceImpl.java
View file @
fcccdc70
This diff is collapsed.
Click to expand it.
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