Showing
4 changed files
with
34 additions
and
0 deletions
| ... | ... | @@ -31,6 +31,12 @@ public class GetPurchaseOrderInfoBo extends BaseBo<PurchaseOrderInfo> { |
| 31 | 31 | private String id; |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | + * 合同ID | |
| 35 | + */ | |
| 36 | + @ApiModelProperty("合同ID") | |
| 37 | + private String contractId; | |
| 38 | + | |
| 39 | + /** | |
| 34 | 40 | * 订单编号 |
| 35 | 41 | */ |
| 36 | 42 | @ApiModelProperty("订单编号") |
| ... | ... | @@ -255,6 +261,12 @@ public class GetPurchaseOrderInfoBo extends BaseBo<PurchaseOrderInfo> { |
| 255 | 261 | private boolean contractCreateBy; |
| 256 | 262 | |
| 257 | 263 | /** |
| 264 | + * 下单人(非持久化字段) | |
| 265 | + */ | |
| 266 | + @ApiModelProperty("下单人") | |
| 267 | + private String contractCreateByName; | |
| 268 | + | |
| 269 | + /** | |
| 258 | 270 | * 是否展示审核按钮(非持久化字段) |
| 259 | 271 | */ |
| 260 | 272 | @TableField(exist = false) | ... | ... |
| ... | ... | @@ -30,6 +30,11 @@ public class PurchaseOrderInfo extends BaseEntity implements BaseDto { |
| 30 | 30 | private String id; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | + * 合同ID | |
| 34 | + */ | |
| 35 | + private String contractId; | |
| 36 | + | |
| 37 | + /** | |
| 33 | 38 | * 订单编号 |
| 34 | 39 | */ |
| 35 | 40 | private String orderNo; |
| ... | ... | @@ -199,6 +204,12 @@ public class PurchaseOrderInfo extends BaseEntity implements BaseDto { |
| 199 | 204 | */ |
| 200 | 205 | private String contractCreateById; |
| 201 | 206 | |
| 207 | + /** | |
| 208 | + * 下单人(非持久化字段) | |
| 209 | + */ | |
| 210 | + @TableField(exist = false) | |
| 211 | + private String contractCreateByName; | |
| 212 | + | |
| 202 | 213 | |
| 203 | 214 | /** |
| 204 | 215 | * 是否展示审核按钮(非持久化字段) | ... | ... |
| ... | ... | @@ -17,6 +17,12 @@ public class CreatePurchaseOrderInfoVo implements BaseVo, Serializable { |
| 17 | 17 | private static final long serialVersionUID = 1L; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | + * 合同ID | |
| 21 | + */ | |
| 22 | + @ApiModelProperty("合同ID") | |
| 23 | + private String contractId; | |
| 24 | + | |
| 25 | + /** | |
| 20 | 26 | * 订单编号 |
| 21 | 27 | */ |
| 22 | 28 | @ApiModelProperty("订单编号") | ... | ... |
| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | |
| 5 | 5 | <resultMap id="PurchaseOrderInfo" type="com.lframework.xingyun.sc.entity.PurchaseOrderInfo"> |
| 6 | 6 | <id column="id" property="id"/> |
| 7 | + <result column="contract_id" property="contractId"/> | |
| 7 | 8 | <result column="order_no" property="orderNo"/> |
| 8 | 9 | <result column="supply_unit" property="supplyUnit"/> |
| 9 | 10 | <result column="ordering_unit" property="orderingUnit"/> |
| ... | ... | @@ -36,6 +37,7 @@ |
| 36 | 37 | <result column="total_quantity" property="totalQuantity"/> |
| 37 | 38 | <result column="packaging_fee" property="packagingFee"/> |
| 38 | 39 | <result column="contract_create_by_id" property="contractCreateById"/> |
| 40 | + <result column="contract_create_by_name" property="contractCreateByName"/> | |
| 39 | 41 | <result column="create_by_id" property="createById"/> |
| 40 | 42 | <result column="create_by" property="createBy"/> |
| 41 | 43 | <result column="update_by_id" property="updateById"/> |
| ... | ... | @@ -47,6 +49,7 @@ |
| 47 | 49 | <sql id="PurchaseOrderInfo_sql"> |
| 48 | 50 | SELECT |
| 49 | 51 | tb.id, |
| 52 | + tb.contract_id, | |
| 50 | 53 | tb.order_no, |
| 51 | 54 | tb.supply_unit, |
| 52 | 55 | tb.ordering_unit, |
| ... | ... | @@ -79,6 +82,7 @@ |
| 79 | 82 | tb.total_quantity, |
| 80 | 83 | tb.packaging_fee, |
| 81 | 84 | tb.contract_create_by_id, |
| 85 | + su.name as contract_create_by_name, | |
| 82 | 86 | tb.create_by_id, |
| 83 | 87 | tb.create_by, |
| 84 | 88 | tb.update_by_id, |
| ... | ... | @@ -90,6 +94,7 @@ |
| 90 | 94 | left join sys_dept as sd on sd.id = tb.dept_id |
| 91 | 95 | left join base_data_workshop as ws on ws.id = tb.workshop_id |
| 92 | 96 | left join customer_credit as cc on cc.id = tb.customer_credit_id |
| 97 | + left join sys_user as su on su.id = tb.contract_create_by_id | |
| 93 | 98 | </sql> |
| 94 | 99 | |
| 95 | 100 | <select id="query" resultMap="PurchaseOrderInfo"> | ... | ... |