order info improvement

This commit is contained in:
sxu 2024-12-16 18:07:31 +08:00
parent 0d20b8018e
commit 5a1cf0ab5d
2 changed files with 8 additions and 0 deletions

View File

@ -62,6 +62,11 @@ public class OrderInfoDto {
@ApiModelProperty(value = "买方承租方用户id") @ApiModelProperty(value = "买方承租方用户id")
private Integer buyerId; private Integer buyerId;
@ApiModelProperty(value = "买方承租方用户名字")
private Integer buyerName;
@ApiModelProperty(value = "卖方出租方用户名字")
private Integer sellerName;
@ApiModelProperty(value = "买方承租方公司id") @ApiModelProperty(value = "买方承租方公司id")
private Integer buyerCompany; private Integer buyerCompany;
@ApiModelProperty(value = "卖方出租方公司id") @ApiModelProperty(value = "卖方出租方公司id")

View File

@ -101,6 +101,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
up.dept_name AS czcompanyName, up.dept_name AS czcompanyName,
mdi.person_phone AS personPhone, mdi.person_phone AS personPhone,
su.phonenumber AS phoneNumber, su.phonenumber AS phoneNumber,
su.nick_name as buyerName,
su2.nick_name as sellerName,
moi.address, moi.address,
moi.order_id, moi.order_id,
sum(hh.costs) cost, sum(hh.costs) cost,
@ -111,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ma_dev_info mdi ON hh.ma_id = mdi.ma_id LEFT JOIN ma_dev_info mdi ON hh.ma_id = mdi.ma_id
LEFT JOIN ma_type mt ON mdi.type_id = mt.type_id LEFT JOIN ma_type mt ON mdi.type_id = mt.type_id
LEFT JOIN sys_user su ON su.user_id = moi.buyer_id LEFT JOIN sys_user su ON su.user_id = moi.buyer_id
LEFT JOIN sys_user su2 ON su2.user_id = mdi.own_id
left join sys_dept dept on dept.dept_id = moi.buyer_company left join sys_dept dept on dept.dept_id = moi.buyer_company
left join sys_dept up on up.dept_id = mdi.own_co left join sys_dept up on up.dept_id = mdi.own_co
WHERE WHERE