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
d02163c5
Commit
d02163c5
authored
Jun 19, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.61.77.35:9999/gengdidi/precision-effect
parents
95381a30
0cddd05f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
4 deletions
+49
-4
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
+5
-1
index.vue
precision-effect-web/src/views/account/index.vue
+30
-1
No files found.
precision-effect-system/src/main/java/com/zehong/system/domain/TCashOperate.java
View file @
d02163c5
...
@@ -48,6 +48,16 @@ public class TCashOperate extends BaseEntity
...
@@ -48,6 +48,16 @@ public class TCashOperate extends BaseEntity
private
String
operateDeptName
;
private
String
operateDeptName
;
public
String
getDocumentType
()
{
return
documentType
;
}
public
void
setDocumentType
(
String
documentType
)
{
this
.
documentType
=
documentType
;
}
private
String
documentType
;
public
void
setOperateId
(
Long
operateId
)
public
void
setOperateId
(
Long
operateId
)
{
{
this
.
operateId
=
operateId
;
this
.
operateId
=
operateId
;
...
...
precision-effect-system/src/main/java/com/zehong/system/service/impl/tradeSettlement/SettlementTrade.java
View file @
d02163c5
...
@@ -113,7 +113,8 @@ public class SettlementTrade {
...
@@ -113,7 +113,8 @@ public class SettlementTrade {
tAccount
.
setAbleAmount
(
tAccount
.
getAbleAmount
().
add
(
amount
));
tAccount
.
setAbleAmount
(
tAccount
.
getAbleAmount
().
add
(
amount
));
tAccountMapper
.
updateTAccount
(
tAccount
);
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"
);
operate
.
setOperateType
(
amount
.
compareTo
(
BigDecimal
.
ZERO
)
==
1
?
"1"
:
"2"
);
cashOperateMapper
.
insertTCashOperate
(
operate
);
cashOperateMapper
.
insertTCashOperate
(
operate
);
}
}
...
@@ -132,8 +133,9 @@ public class SettlementTrade {
...
@@ -132,8 +133,9 @@ public class SettlementTrade {
project
.
setPendingPayment
(
pendingPayment
);
project
.
setPendingPayment
(
pendingPayment
);
tTradeProjectMapper
.
updateTTradeProject
(
project
);
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
.
setOperateType
(
"3"
);
operate
.
setDocumentType
(
"1"
);
//1.交易单 2.借支单 3.外部采购单 4.借贷单
cashOperateMapper
.
insertTCashOperate
(
operate
);
cashOperateMapper
.
insertTCashOperate
(
operate
);
return
amount
;
return
amount
;
}
}
...
...
precision-effect-system/src/main/resources/mapper/business/TCashOperateMapper.xml
View file @
d02163c5
...
@@ -16,10 +16,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -16,10 +16,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"operateDeptName"
column=
"operate_dept_name"
/>
<result
property=
"operateDeptName"
column=
"operate_dept_name"
/>
<result
property=
"documentType"
column=
"document_type"
/>
</resultMap>
</resultMap>
<sql
id=
"selectTCashOperateVo"
>
<sql
id=
"selectTCashOperateVo"
>
select operate_id, operate_dept_id, operate_type, operate_amount, relation_doc, operate_time, create_time, update_time, is_del, remark,(SELECT dept_name FROM sys_dept WHERE dept_id = operate_dept_id)AS operate_dept_name from t_cash_operate
select operate_id, operate_dept_id, operate_type, operate_amount, relation_doc, operate_time, create_time, update_time, is_del, remark,
document_type,
(SELECT dept_name FROM sys_dept WHERE dept_id = operate_dept_id)AS operate_dept_name from t_cash_operate
</sql>
</sql>
<select
id=
"selectTCashOperateList"
parameterType=
"TCashOperate"
resultMap=
"TCashOperateResult"
>
<select
id=
"selectTCashOperateList"
parameterType=
"TCashOperate"
resultMap=
"TCashOperateResult"
>
...
@@ -52,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -52,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"documentType != null"
>
document_type,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"operateDeptId != null"
>
#{operateDeptId},
</if>
<if
test=
"operateDeptId != null"
>
#{operateDeptId},
</if>
...
@@ -63,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -63,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"documentType != null"
>
#{documentType}
</if>
</trim>
</trim>
</insert>
</insert>
...
...
precision-effect-web/src/views/account/index.vue
View file @
d02163c5
...
@@ -191,6 +191,27 @@
...
@@ -191,6 +191,27 @@
width=
"800px"
width=
"800px"
append-to-body
append-to-body
>
>
<el-form
:model=
"queryAccountDetailParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"98px"
>
<el-form-item
label=
"操作类型"
prop=
"transactionProjectName"
>
<el-select
v-model=
"queryAccountDetailParams.operateType"
placeholder=
"请选择操作类型"
clearable
>
<el-option
label=
"收入"
value=
"1"
/>
<el-option
label=
"支出"
value=
"2"
/>
<el-option
label=
"尾款扣除"
value=
"3"
/>
</el-select>
</el-form-item>
<!-- <el-form-item label="部门" prop="deptId">-->
<!-- <div style="width: 200px">-->
<!-- <treeselect v-model="queryParams.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门" :disabled="disabled"/>-->
<!-- </div>-->
<!-- </el-form-item>-->
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"getOperateList"
>
搜索
</el-button>
</el-form-item>
</el-form>
<el-table
:data=
"cashOperateList"
>
<el-table
:data=
"cashOperateList"
>
<el-table-column
label=
"序号"
width=
"50px"
align=
"center"
>
<el-table-column
label=
"序号"
width=
"50px"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -210,7 +231,15 @@
...
@@ -210,7 +231,15 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"金额"
align=
"center"
prop=
"operateAmount"
/>
<el-table-column
label=
"金额"
align=
"center"
prop=
"operateAmount"
/>
<el-table-column
label=
"操作时间"
align=
"center"
prop=
"operateTime"
/>
<el-table-column
label=
"操作时间"
align=
"center"
prop=
"operateTime"
width=
"150"
/>
<el-table-column
label=
"单据类型"
align=
"center"
prop=
"documentType"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.documentType == '1'"
>
项目交易单
</span>
<span
v-if=
"scope.row.documentType == '2'"
>
借支申请
</span>
<span
v-if=
"scope.row.documentType == '3'"
>
外部采购单
</span>
<span
v-if=
"scope.row.documentType == '4'"
>
借贷申请
</span>
</
template
>
</el-table-column>
</el-table>
</el-table>
<pagination
<pagination
v-show=
"operateListTotal > 0"
v-show=
"operateListTotal > 0"
...
...
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