Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
Project
Project
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
耿迪迪
precision-effect
Commits
d60d3763
Commit
d60d3763
authored
Jun 19, 2023
by
lizhichao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资金操作表,添加document_type字段。1.交易单 2.借支单 3.外部采购单 4.借贷单
关联单据,记录单据id
parent
50f60a9f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
TCashOperate.java
.../src/main/java/com/zehong/system/domain/TCashOperate.java
+10
-0
SettlementTrade.java
.../system/service/impl/tradeSettlement/SettlementTrade.java
+4
-2
TCashOperateMapper.xml
...src/main/resources/mapper/business/TCashOperateMapper.xml
+2
-0
No files found.
precision-effect-system/src/main/java/com/zehong/system/domain/TCashOperate.java
View file @
d60d3763
...
...
@@ -48,6 +48,16 @@ public class TCashOperate extends BaseEntity
private
String
operateDeptName
;
public
String
getDocumentType
()
{
return
documentType
;
}
public
void
setDocumentType
(
String
documentType
)
{
this
.
documentType
=
documentType
;
}
private
String
documentType
;
public
void
setOperateId
(
Long
operateId
)
{
this
.
operateId
=
operateId
;
...
...
precision-effect-system/src/main/java/com/zehong/system/service/impl/tradeSettlement/SettlementTrade.java
View file @
d60d3763
...
...
@@ -113,7 +113,8 @@ public class SettlementTrade {
tAccount
.
setAbleAmount
(
tAccount
.
getAbleAmount
().
add
(
amount
));
tAccountMapper
.
updateTAccount
(
tAccount
);
//更新资金变动日志
TCashOperate
operate
=
OperatorParam
(
tAccount
.
getDeptId
(),
amount
,
this
.
tradeProject
.
getReceiptNum
());
TCashOperate
operate
=
OperatorParam
(
tAccount
.
getDeptId
(),
amount
,
this
.
tradeProject
.
getTradeId
().
toString
());
operate
.
setDocumentType
(
"1"
);
//1.交易单 2.借支单 3.外部采购单 4.借贷单
operate
.
setOperateType
(
amount
.
compareTo
(
BigDecimal
.
ZERO
)
==
1
?
"1"
:
"2"
);
cashOperateMapper
.
insertTCashOperate
(
operate
);
}
...
...
@@ -132,8 +133,9 @@ public class SettlementTrade {
project
.
setPendingPayment
(
pendingPayment
);
tTradeProjectMapper
.
updateTTradeProject
(
project
);
//更新资金变动日志
TCashOperate
operate
=
OperatorParam
(
project
.
getTradeDeptId
(),
amount
,
project
.
get
ReceiptNum
());
TCashOperate
operate
=
OperatorParam
(
project
.
getTradeDeptId
(),
amount
,
project
.
get
TradeId
().
toString
());
operate
.
setOperateType
(
"3"
);
operate
.
setDocumentType
(
"1"
);
//1.交易单 2.借支单 3.外部采购单 4.借贷单
cashOperateMapper
.
insertTCashOperate
(
operate
);
return
amount
;
}
...
...
precision-effect-system/src/main/resources/mapper/business/TCashOperateMapper.xml
View file @
d60d3763
...
...
@@ -51,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"documentType != null"
>
document_type,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"operateDeptId != null"
>
#{operateDeptId},
</if>
...
...
@@ -62,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"documentType != null"
>
#{documentType}
</if>
</trim>
</insert>
...
...
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