Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
windows
Project
Project
Details
Activity
Releases
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
zhanhai
windows
Commits
1867e29b
Commit
1867e29b
authored
Sep 22, 2023
by
LSL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还款部分
parent
8063339c
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
837 additions
and
19 deletions
+837
-19
BackedCommand.java
src/main/java/com/jqtx/windows/command/BackedCommand.java
+271
-0
BackedDetailComponent.java
...ava/com/jqtx/windows/component/BackedDetailComponent.java
+4
-0
LoanPlanComponent.java
...in/java/com/jqtx/windows/component/LoanPlanComponent.java
+8
-3
LoanRepayComponent.java
...n/java/com/jqtx/windows/component/LoanRepayComponent.java
+3
-0
BackedDetailComponentImpl.java
...qtx/windows/component/impl/BackedDetailComponentImpl.java
+8
-0
LoanPlanComponentImpl.java
...om/jqtx/windows/component/impl/LoanPlanComponentImpl.java
+24
-2
LoanReapyComponentImpl.java
...m/jqtx/windows/component/impl/LoanReapyComponentImpl.java
+9
-0
BackedDetailModel.java
...a/com/jqtx/windows/component/model/BackedDetailModel.java
+43
-0
RepayModel.java
...ain/java/com/jqtx/windows/component/model/RepayModel.java
+36
-0
WindowsRepay.java
...java/com/jqtx/windows/repository/entity/WindowsRepay.java
+4
-4
WindowsRepayExample.java
...m/jqtx/windows/repository/entity/WindowsRepayExample.java
+20
-10
BackedDetail.java
src/main/java/com/jqtx/windows/web/request/BackedDetail.java
+31
-0
BackedRequest.java
...main/java/com/jqtx/windows/web/request/BackedRequest.java
+42
-0
WindowsRepayMapper.xml
src/main/resources/mybatis/mapper/WindowsRepayMapper.xml
+334
-0
No files found.
src/main/java/com/jqtx/windows/command/BackedCommand.java
0 → 100644
View file @
1867e29b
This diff is collapsed.
Click to expand it.
src/main/java/com/jqtx/windows/component/BackedDetailComponent.java
View file @
1867e29b
package
com
.
jqtx
.
windows
.
component
;
import
com.jqtx.windows.component.model.BackedDetailModel
;
public
interface
BackedDetailComponent
{
void
insert
(
BackedDetailModel
model
);
}
src/main/java/com/jqtx/windows/component/LoanPlanComponent.java
View file @
1867e29b
package
com
.
jqtx
.
windows
.
component
;
import
com.jqtx.windows.component.model.LoanModel
;
import
com.jqtx.windows.component.model.LoanPlanModel
;
import
com.jqtx.windows.repository.
mapper.WindowsLoanMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.jqtx.windows.repository.
entity.WindowsPlan
;
import
java.util.List
;
public
interface
LoanPlanComponent
{
int
insert
(
LoanPlanModel
loanPlanModel
);
List
<
LoanPlanModel
>
getByLoan
(
String
loanNo
);
int
updateByLoanPlanModel
(
LoanPlanModel
loanPlanModel
);
}
src/main/java/com/jqtx/windows/component/LoanRepayComponent.java
View file @
1867e29b
package
com
.
jqtx
.
windows
.
component
;
import
com.jqtx.windows.component.model.RepayModel
;
public
interface
LoanRepayComponent
{
int
insert
(
RepayModel
repayModel
);
}
src/main/java/com/jqtx/windows/component/impl/BackedDetailComponentImpl.java
View file @
1867e29b
package
com
.
jqtx
.
windows
.
component
.
impl
;
import
cn.hutool.extra.cglib.CglibUtil
;
import
com.jqtx.windows.component.BackedDetailComponent
;
import
com.jqtx.windows.component.model.BackedDetailModel
;
import
com.jqtx.windows.repository.entity.WindowsBackedDetail
;
import
com.jqtx.windows.repository.mapper.WindowsBackedDetailMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -9,4 +12,9 @@ import org.springframework.stereotype.Service;
public
class
BackedDetailComponentImpl
implements
BackedDetailComponent
{
@Autowired
private
WindowsBackedDetailMapper
windowsBackedDetailMapper
;
@Override
public
void
insert
(
BackedDetailModel
model
)
{
windowsBackedDetailMapper
.
insertSelective
(
CglibUtil
.
copy
(
model
,
WindowsBackedDetail
.
class
));
}
}
src/main/java/com/jqtx/windows/component/impl/LoanPlanComponentImpl.java
View file @
1867e29b
package
com
.
jqtx
.
windows
.
component
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.jqtx.windows.component.LoanComponent
;
import
com.jqtx.windows.component.LoanPlanComponent
;
import
com.jqtx.windows.component.model.LoanPlanModel
;
import
com.jqtx.windows.repository.entity.WindowsLoan
;
import
com.jqtx.windows.repository.entity.WindowsLoanExample
;
import
com.jqtx.windows.repository.entity.WindowsPlan
;
import
com.jqtx.windows.repository.
mapper.WindowsLoanMapper
;
import
com.jqtx.windows.repository.
entity.WindowsPlanExample
;
import
com.jqtx.windows.repository.mapper.WindowsPlanMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
LoanPlanComponentImpl
implements
LoanPlanComponent
{
...
...
@@ -22,4 +25,23 @@ public class LoanPlanComponentImpl implements LoanPlanComponent {
int
i
=
windowsPlanMapper
.
insertSelective
(
windowsPlan
);
return
i
;
}
@Override
public
List
<
LoanPlanModel
>
getByLoan
(
String
loanNo
)
{
WindowsPlanExample
example
=
new
WindowsPlanExample
();
WindowsPlanExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andLoanNoEqualTo
(
loanNo
);
List
<
LoanPlanModel
>
loanPlanModels
=
BeanUtil
.
copyToList
(
windowsPlanMapper
.
selectByExample
(
example
),
LoanPlanModel
.
class
);
return
loanPlanModels
;
}
@Override
public
int
updateByLoanPlanModel
(
LoanPlanModel
loanPlanModel
)
{
WindowsPlanExample
example
=
new
WindowsPlanExample
();
WindowsPlanExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andIdEqualTo
(
loanPlanModel
.
getId
());
WindowsPlan
windowsLoan
=
BeanUtil
.
toBean
(
loanPlanModel
,
WindowsPlan
.
class
);
int
i
=
windowsPlanMapper
.
updateByExampleSelective
(
windowsLoan
,
example
);
return
i
;
}
}
src/main/java/com/jqtx/windows/component/impl/LoanReapyComponentImpl.java
View file @
1867e29b
package
com
.
jqtx
.
windows
.
component
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.jqtx.windows.component.LoanPlanComponent
;
import
com.jqtx.windows.component.LoanRepayComponent
;
import
com.jqtx.windows.component.model.RepayModel
;
import
com.jqtx.windows.repository.entity.WindowsPlan
;
import
com.jqtx.windows.repository.entity.WindowsRepay
;
import
com.jqtx.windows.repository.mapper.WindowsPlanMapper
;
import
com.jqtx.windows.repository.mapper.WindowsRepayMapper
;
...
...
@@ -14,4 +17,10 @@ public class LoanReapyComponentImpl implements LoanRepayComponent {
@Autowired
private
WindowsRepayMapper
windowsRepayMapper
;
@Override
public
int
insert
(
RepayModel
repayModel
)
{
WindowsRepay
windowsPlan
=
BeanUtil
.
toBean
(
repayModel
,
WindowsRepay
.
class
);
int
i
=
windowsRepayMapper
.
insertSelective
(
windowsPlan
);
return
i
;
}
}
src/main/java/com/jqtx/windows/component/model/BackedDetailModel.java
0 → 100644
View file @
1867e29b
package
com
.
jqtx
.
windows
.
component
.
model
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
@Data
public
class
BackedDetailModel
{
private
Integer
id
;
private
String
backedNo
;
private
String
planNo
;
private
LocalDate
backedDate
;
private
BigDecimal
backedAmt
;
private
BigDecimal
backedBen
;
private
BigDecimal
backedXi
;
private
BigDecimal
backedFu
;
private
BigDecimal
backedFa
;
private
BigDecimal
backedBurden
;
private
BigDecimal
backedSpeaccount
;
private
BigDecimal
backedBreak
;
private
String
backedType
;
private
LocalDateTime
gmtCreated
;
private
LocalDateTime
gmtModified
;
private
String
memo
;
}
src/main/java/com/jqtx/windows/component/model/RepayModel.java
0 → 100644
View file @
1867e29b
package
com
.
jqtx
.
windows
.
component
.
model
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
@Data
public
class
RepayModel
{
private
Long
id
;
private
String
loanNo
;
private
String
backedNo
;
private
String
bankAccount
;
private
BigDecimal
backedAmt
;
private
Integer
isSettle
;
private
String
backedType
;
private
String
repayResult
;
private
String
repayStatus
;
private
String
creator
;
private
LocalDateTime
gmtCreated
;
private
LocalDateTime
gmtModified
;
private
String
memo
;
}
src/main/java/com/jqtx/windows/repository/entity/WindowsRepay.java
View file @
1867e29b
...
...
@@ -16,7 +16,7 @@ public class WindowsRepay {
private
Integer
isSettle
;
private
Integer
backedType
;
private
String
backedType
;
private
String
repayResult
;
...
...
@@ -78,12 +78,12 @@ public class WindowsRepay {
this
.
isSettle
=
isSettle
;
}
public
Integer
getBackedType
()
{
public
String
getBackedType
()
{
return
backedType
;
}
public
void
setBackedType
(
Integer
backedType
)
{
this
.
backedType
=
backedType
;
public
void
setBackedType
(
String
backedType
)
{
this
.
backedType
=
backedType
==
null
?
null
:
backedType
.
trim
()
;
}
public
String
getRepayResult
()
{
...
...
src/main/java/com/jqtx/windows/repository/entity/WindowsRepayExample.java
View file @
1867e29b
...
...
@@ -506,52 +506,62 @@ public class WindowsRepayExample {
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeEqualTo
(
Integer
value
)
{
public
Criteria
andBackedTypeEqualTo
(
String
value
)
{
addCriterion
(
"backed_type ="
,
value
,
"backedType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeNotEqualTo
(
Integer
value
)
{
public
Criteria
andBackedTypeNotEqualTo
(
String
value
)
{
addCriterion
(
"backed_type <>"
,
value
,
"backedType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeGreaterThan
(
Integer
value
)
{
public
Criteria
andBackedTypeGreaterThan
(
String
value
)
{
addCriterion
(
"backed_type >"
,
value
,
"backedType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeGreaterThanOrEqualTo
(
Integer
value
)
{
public
Criteria
andBackedTypeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"backed_type >="
,
value
,
"backedType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeLessThan
(
Integer
value
)
{
public
Criteria
andBackedTypeLessThan
(
String
value
)
{
addCriterion
(
"backed_type <"
,
value
,
"backedType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeLessThanOrEqualTo
(
Integer
value
)
{
public
Criteria
andBackedTypeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"backed_type <="
,
value
,
"backedType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeIn
(
List
<
Integer
>
values
)
{
public
Criteria
andBackedTypeLike
(
String
value
)
{
addCriterion
(
"backed_type like"
,
value
,
"backedType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeNotLike
(
String
value
)
{
addCriterion
(
"backed_type not like"
,
value
,
"backedType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeIn
(
List
<
String
>
values
)
{
addCriterion
(
"backed_type in"
,
values
,
"backedType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeNotIn
(
List
<
Integer
>
values
)
{
public
Criteria
andBackedTypeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"backed_type not in"
,
values
,
"backedType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeBetween
(
Integer
value1
,
Integer
value2
)
{
public
Criteria
andBackedTypeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"backed_type between"
,
value1
,
value2
,
"backedType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBackedTypeNotBetween
(
Integer
value1
,
Integer
value2
)
{
public
Criteria
andBackedTypeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"backed_type not between"
,
value1
,
value2
,
"backedType"
);
return
(
Criteria
)
this
;
}
...
...
src/main/java/com/jqtx/windows/web/request/BackedDetail.java
0 → 100644
View file @
1867e29b
package
com
.
jqtx
.
windows
.
web
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
@Data
@ApiModel
(
description
=
"还款明细"
)
public
class
BackedDetail
{
@ApiModelProperty
(
name
=
"期数"
)
private
String
planIndex
;
@ApiModelProperty
(
name
=
"还款本金"
)
private
String
backedBen
;
@ApiModelProperty
(
name
=
"还款利息"
)
private
String
backedXi
;
@ApiModelProperty
(
name
=
"计划服务费"
)
private
String
backedFu
;
@ApiModelProperty
(
name
=
"计划罚息"
)
private
String
backedFa
;
@ApiModelProperty
(
name
=
"还款融单费"
)
private
String
backedBurden
;
}
src/main/java/com/jqtx/windows/web/request/BackedRequest.java
0 → 100644
View file @
1867e29b
package
com
.
jqtx
.
windows
.
web
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.List
;
@Data
@ApiModel
(
description
=
"调第三方请求参数基类"
)
public
class
BackedRequest
{
@ApiModelProperty
(
name
=
"流水号"
)
private
String
transNo
;
@ApiModelProperty
(
name
=
"还款编号"
)
private
String
backedNo
;
@ApiModelProperty
(
name
=
"借款编号"
)
private
String
loanNo
;
@ApiModelProperty
(
name
=
"还款银行卡"
)
private
String
bankAccount
;
@ApiModelProperty
(
name
=
"还款总金额"
)
private
String
backAmt
;
@ApiModelProperty
(
name
=
"还款明细"
)
private
ArrayList
<
BackedDetail
>
List
;
@ApiModelProperty
(
name
=
"还款时间 格式YYYY-MM-DD hh:mm:ss"
)
private
String
backedDate
;
@ApiModelProperty
(
name
=
"还款类型"
)
private
String
backWay
;
@ApiModelProperty
(
name
=
"是否结清还款 是:1 否: 0"
)
private
String
isSettle
;
}
src/main/resources/mybatis/mapper/WindowsRepayMapper.xml
View file @
1867e29b
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