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
2c395b39
Commit
2c395b39
authored
Dec 05, 2021
by
季圣华
Browse files
优化根据编号查询单据信息接口
parent
46a588e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/datasource/vo/DepotHeadVo4List.java
View file @
2c395b39
...
@@ -27,6 +27,14 @@ public class DepotHeadVo4List extends DepotHead{
...
@@ -27,6 +27,14 @@ public class DepotHeadVo4List extends DepotHead{
private
String
depotHeadType
;
private
String
depotHeadType
;
private
String
creatorName
;
private
String
contacts
;
private
String
telephone
;
private
String
address
;
public
String
getProjectName
()
{
public
String
getProjectName
()
{
return
projectName
;
return
projectName
;
}
}
...
@@ -106,4 +114,36 @@ public class DepotHeadVo4List extends DepotHead{
...
@@ -106,4 +114,36 @@ public class DepotHeadVo4List extends DepotHead{
public
void
setDepotHeadType
(
String
depotHeadType
)
{
public
void
setDepotHeadType
(
String
depotHeadType
)
{
this
.
depotHeadType
=
depotHeadType
;
this
.
depotHeadType
=
depotHeadType
;
}
}
public
String
getCreatorName
()
{
return
creatorName
;
}
public
void
setCreatorName
(
String
creatorName
)
{
this
.
creatorName
=
creatorName
;
}
public
String
getContacts
()
{
return
contacts
;
}
public
void
setContacts
(
String
contacts
)
{
this
.
contacts
=
contacts
;
}
public
String
getTelephone
()
{
return
telephone
;
}
public
void
setTelephone
(
String
telephone
)
{
this
.
telephone
=
telephone
;
}
public
String
getAddress
()
{
return
address
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
}
}
\ No newline at end of file
jshERP-boot/src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java
View file @
2c395b39
...
@@ -652,6 +652,7 @@ public class DepotHeadService {
...
@@ -652,6 +652,7 @@ public class DepotHeadService {
}
}
dh
.
setOperTimeStr
(
getCenternTime
(
dh
.
getOperTime
()));
dh
.
setOperTimeStr
(
getCenternTime
(
dh
.
getOperTime
()));
dh
.
setMaterialsList
(
findMaterialsListByHeaderId
(
dh
.
getId
()));
dh
.
setMaterialsList
(
findMaterialsListByHeaderId
(
dh
.
getId
()));
dh
.
setCreatorName
(
userService
.
getUser
(
dh
.
getCreator
()).
getUsername
());
resList
.
add
(
dh
);
resList
.
add
(
dh
);
}
}
}
}
...
...
jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml
View file @
2c395b39
...
@@ -7,6 +7,9 @@
...
@@ -7,6 +7,9 @@
<result
column=
"OrganName"
jdbcType=
"VARCHAR"
property=
"organName"
/>
<result
column=
"OrganName"
jdbcType=
"VARCHAR"
property=
"organName"
/>
<result
column=
"userName"
jdbcType=
"VARCHAR"
property=
"userName"
/>
<result
column=
"userName"
jdbcType=
"VARCHAR"
property=
"userName"
/>
<result
column=
"AccountName"
jdbcType=
"VARCHAR"
property=
"accountName"
/>
<result
column=
"AccountName"
jdbcType=
"VARCHAR"
property=
"accountName"
/>
<result
column=
"contacts"
jdbcType=
"VARCHAR"
property=
"contacts"
/>
<result
column=
"telephone"
jdbcType=
"VARCHAR"
property=
"telephone"
/>
<result
column=
"address"
jdbcType=
"VARCHAR"
property=
"address"
/>
</resultMap>
</resultMap>
<resultMap
id=
"ResultWithInfoExMap"
type=
"com.jsh.erp.datasource.vo.DepotHeadVo4InDetail"
>
<resultMap
id=
"ResultWithInfoExMap"
type=
"com.jsh.erp.datasource.vo.DepotHeadVo4InDetail"
>
...
@@ -447,7 +450,8 @@
...
@@ -447,7 +450,8 @@
</select>
</select>
<select
id=
"getDetailByNumber"
parameterType=
"com.jsh.erp.datasource.entities.DepotHeadExample"
resultMap=
"ResultMapEx"
>
<select
id=
"getDetailByNumber"
parameterType=
"com.jsh.erp.datasource.entities.DepotHeadExample"
resultMap=
"ResultMapEx"
>
select dh.*, concat(dh.sub_type,dh.type) as depotHeadType, s.supplier OrganName, a.name AccountName
select dh.*, concat(dh.sub_type,dh.type) as depotHeadType, a.name AccountName,
s.supplier OrganName, s.contacts, s.telephone, s.address
from jsh_depot_head dh
from jsh_depot_head dh
left join jsh_supplier s on dh.organ_id=s.id and ifnull(s.delete_Flag,'0') !='1'
left join jsh_supplier s on dh.organ_id=s.id and ifnull(s.delete_Flag,'0') !='1'
left join jsh_account a on dh.account_id=a.id and ifnull(a.delete_Flag,'0') !='1'
left join jsh_account a on dh.account_id=a.id and ifnull(a.delete_Flag,'0') !='1'
...
...
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