Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
9883501a
Commit
9883501a
authored
Jun 04, 2022
by
季圣华
Browse files
增加接口:根据出入库单据id查询收付款单号
parent
6e94686a
Changes
4
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/controller/AccountHeadController.java
View file @
9883501a
...
...
@@ -3,6 +3,7 @@ package com.jsh.erp.controller;
import
com.alibaba.fastjson.JSONObject
;
import
com.jsh.erp.constants.BusinessConstants
;
import
com.jsh.erp.constants.ExceptionConstants
;
import
com.jsh.erp.datasource.entities.AccountHead
;
import
com.jsh.erp.datasource.entities.AccountHeadVo4Body
;
import
com.jsh.erp.datasource.entities.AccountHeadVo4ListEx
;
import
com.jsh.erp.service.accountHead.AccountHeadService
;
...
...
@@ -115,4 +116,27 @@ public class AccountHeadController {
}
return
res
;
}
/**
* 根据出入库单据id查询收付款单号
* @param billId
* @param request
* @return
*/
@GetMapping
(
value
=
"/getFinancialBillNoByBillId"
)
@ApiOperation
(
value
=
"根据编号查询单据信息"
)
public
BaseResponseInfo
getFinancialBillNoByBillId
(
@RequestParam
(
"billId"
)
Long
billId
,
HttpServletRequest
request
)
throws
Exception
{
BaseResponseInfo
res
=
new
BaseResponseInfo
();
try
{
List
<
AccountHead
>
list
=
accountHeadService
.
getFinancialBillNoByBillId
(
billId
);
res
.
code
=
200
;
res
.
data
=
list
;
}
catch
(
Exception
e
){
e
.
printStackTrace
();
res
.
code
=
500
;
res
.
data
=
"获取数据失败"
;
}
return
res
;
}
}
jshERP-boot/src/main/java/com/jsh/erp/datasource/mappers/AccountHeadMapperEx.java
View file @
9883501a
...
...
@@ -55,4 +55,7 @@ public interface AccountHeadMapperEx {
List
<
AccountHead
>
getAccountHeadListByOrganIds
(
@Param
(
"organIds"
)
String
[]
organIds
);
List
<
AccountHead
>
getAccountHeadListByHandsPersonIds
(
@Param
(
"handsPersonIds"
)
String
[]
handsPersonIds
);
List
<
AccountHead
>
getFinancialBillNoByBillId
(
@Param
(
"billId"
)
Long
billId
);
}
\ No newline at end of file
jshERP-boot/src/main/java/com/jsh/erp/service/accountHead/AccountHeadService.java
View file @
9883501a
...
...
@@ -392,4 +392,8 @@ public class AccountHeadService {
}
return
resList
;
}
public
List
<
AccountHead
>
getFinancialBillNoByBillId
(
Long
billId
)
{
return
accountHeadMapperEx
.
getFinancialBillNoByBillId
(
billId
);
}
}
jshERP-boot/src/main/resources/mapper_xml/AccountHeadMapperEx.xml
View file @
9883501a
...
...
@@ -176,4 +176,11 @@
)
and ifnull(delete_flag,'0') !='1'
</select>
<select
id=
"getFinancialBillNoByBillId"
resultType=
"com.jsh.erp.datasource.entities.AccountHead"
>
select ah.bill_no from jsh_account_head ah
left join jsh_account_item ai on ah.id=ai.header_id and ifnull(ai.delete_flag,'0') !='1'
where bill_id=#{billId}
and ifnull(ah.delete_flag,'0') !='1'
</select>
</mapper>
\ No newline at end of file
Write
Preview
Supports
Markdown
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