优化根据编号查询单据信息接口
This commit is contained in:
@@ -27,6 +27,14 @@ public class DepotHeadVo4List extends DepotHead{
|
||||
|
||||
private String depotHeadType;
|
||||
|
||||
private String creatorName;
|
||||
|
||||
private String contacts;
|
||||
|
||||
private String telephone;
|
||||
|
||||
private String address;
|
||||
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
@@ -106,4 +114,36 @@ public class DepotHeadVo4List extends DepotHead{
|
||||
public void setDepotHeadType(String 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;
|
||||
}
|
||||
}
|
||||
@@ -652,6 +652,7 @@ public class DepotHeadService {
|
||||
}
|
||||
dh.setOperTimeStr(getCenternTime(dh.getOperTime()));
|
||||
dh.setMaterialsList(findMaterialsListByHeaderId(dh.getId()));
|
||||
dh.setCreatorName(userService.getUser(dh.getCreator()).getUsername());
|
||||
resList.add(dh);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
<result column="OrganName" jdbcType="VARCHAR" property="organName" />
|
||||
<result column="userName" jdbcType="VARCHAR" property="userName" />
|
||||
<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 id="ResultWithInfoExMap" type="com.jsh.erp.datasource.vo.DepotHeadVo4InDetail">
|
||||
@@ -447,7 +450,8 @@
|
||||
</select>
|
||||
|
||||
<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
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user