Showing
7 changed files
with
23 additions
and
9 deletions
| @@ -64,6 +64,12 @@ public class DelayedShipmentDetail extends BaseEntity implements BaseDto { | @@ -64,6 +64,12 @@ public class DelayedShipmentDetail extends BaseEntity implements BaseDto { | ||
| 64 | private String workshopName; | 64 | private String workshopName; |
| 65 | 65 | ||
| 66 | /** | 66 | /** |
| 67 | + * 所属分厂Code | ||
| 68 | + */ | ||
| 69 | + @TableField(exist = false) | ||
| 70 | + private String workshopCode; | ||
| 71 | + | ||
| 72 | + /** | ||
| 67 | * 客户ID | 73 | * 客户ID |
| 68 | */ | 74 | */ |
| 69 | @TableField(exist = false) | 75 | @TableField(exist = false) |
| @@ -187,6 +187,12 @@ public class PurchaseOrderInfo extends BaseEntity implements BaseDto { | @@ -187,6 +187,12 @@ public class PurchaseOrderInfo extends BaseEntity implements BaseDto { | ||
| 187 | @TableField(exist = false) | 187 | @TableField(exist = false) |
| 188 | private String workshopName; | 188 | private String workshopName; |
| 189 | 189 | ||
| 190 | + /** | ||
| 191 | + * 生产厂code(非持久化字段) | ||
| 192 | + */ | ||
| 193 | + @TableField(exist = false) | ||
| 194 | + private String workshopCode; | ||
| 195 | + | ||
| 190 | 196 | ||
| 191 | /** | 197 | /** |
| 192 | * 客户资信Id | 198 | * 客户资信Id |
| @@ -246,7 +246,7 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde | @@ -246,7 +246,7 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde | ||
| 246 | if (StringUtils.isNotEmpty(data.getWorkshopId())) { | 246 | if (StringUtils.isNotEmpty(data.getWorkshopId())) { |
| 247 | Workshop workshop = workshopService.findById(data.getWorkshopId()); | 247 | Workshop workshop = workshopService.findById(data.getWorkshopId()); |
| 248 | if (workshop != null) { | 248 | if (workshop != null) { |
| 249 | - data.setWorkshopName(workshop.getName()); | 249 | + data.setWorkshopCode(workshop.getCode()); |
| 250 | } | 250 | } |
| 251 | } | 251 | } |
| 252 | flowInstanceWrapperService.startInstance(BPM_FLAG, data.getId(), BPM_FLAG, data); | 252 | flowInstanceWrapperService.startInstance(BPM_FLAG, data.getId(), BPM_FLAG, data); |
| @@ -163,7 +163,7 @@ public class DelayedShipmentServiceImpl extends BaseMpServiceImpl<DelayedShipmen | @@ -163,7 +163,7 @@ public class DelayedShipmentServiceImpl extends BaseMpServiceImpl<DelayedShipmen | ||
| 163 | if (delayedExceedOneDay && !hasAny) { | 163 | if (delayedExceedOneDay && !hasAny) { |
| 164 | //开启审核 | 164 | //开启审核 |
| 165 | DelayedShipmentDetail delayedShipmentDetail = delayedShipmentDetailService.findById(id); | 165 | DelayedShipmentDetail delayedShipmentDetail = delayedShipmentDetailService.findById(id); |
| 166 | - vo.setWorkshopName(delayedShipmentDetail.getWorkshopName()); | 166 | + vo.setWorkshopCode(delayedShipmentDetail.getWorkshopCode()); |
| 167 | 167 | ||
| 168 | flowInstanceWrapperService.startInstance(BPM_FLAG, data.getId(), BPM_FLAG, vo); | 168 | flowInstanceWrapperService.startInstance(BPM_FLAG, data.getId(), BPM_FLAG, vo); |
| 169 | } else { | 169 | } else { |
| @@ -259,7 +259,7 @@ public class DelayedShipmentServiceImpl extends BaseMpServiceImpl<DelayedShipmen | @@ -259,7 +259,7 @@ public class DelayedShipmentServiceImpl extends BaseMpServiceImpl<DelayedShipmen | ||
| 259 | if (delayedExceedOneDay && !hasAny) { | 259 | if (delayedExceedOneDay && !hasAny) { |
| 260 | //开启审核 | 260 | //开启审核 |
| 261 | DelayedShipmentDetail delayedShipmentDetail = delayedShipmentDetailService.findById(id); | 261 | DelayedShipmentDetail delayedShipmentDetail = delayedShipmentDetailService.findById(id); |
| 262 | - vo.setWorkshopName(delayedShipmentDetail.getWorkshopName()); | 262 | + vo.setWorkshopCode(delayedShipmentDetail.getWorkshopCode()); |
| 263 | 263 | ||
| 264 | flowInstanceWrapperService.startInstance(BPM_FLAG, vo.getId(), BPM_FLAG, vo); | 264 | flowInstanceWrapperService.startInstance(BPM_FLAG, vo.getId(), BPM_FLAG, vo); |
| 265 | } else { | 265 | } else { |
| @@ -49,9 +49,9 @@ public class CreateDelayedShipmentVo implements BaseVo, Serializable { | @@ -49,9 +49,9 @@ public class CreateDelayedShipmentVo implements BaseVo, Serializable { | ||
| 49 | private List<CreateDelayedShipmentDetailVo> delayedShipmentDetailList; | 49 | private List<CreateDelayedShipmentDetailVo> delayedShipmentDetailList; |
| 50 | 50 | ||
| 51 | /** | 51 | /** |
| 52 | - * 厂办名称 | 52 | + * 厂办Code |
| 53 | */ | 53 | */ |
| 54 | - @ApiModelProperty("厂办名称") | ||
| 55 | - private String workshopName; | 54 | + @ApiModelProperty("厂办Code") |
| 55 | + private String workshopCode; | ||
| 56 | 56 | ||
| 57 | } | 57 | } |
| @@ -57,10 +57,10 @@ public class UpdateDelayedShipmentVo implements BaseVo, Serializable { | @@ -57,10 +57,10 @@ public class UpdateDelayedShipmentVo implements BaseVo, Serializable { | ||
| 57 | private List<UpdateDelayedShipmentDetailVo> delayedShipmentDetailList; | 57 | private List<UpdateDelayedShipmentDetailVo> delayedShipmentDetailList; |
| 58 | 58 | ||
| 59 | /** | 59 | /** |
| 60 | - * 厂办名称 | 60 | + * 厂办Code |
| 61 | */ | 61 | */ |
| 62 | - @ApiModelProperty("厂办名称") | ||
| 63 | - private String workshopName; | 62 | + @ApiModelProperty("厂办Code") |
| 63 | + private String workshopCode; | ||
| 64 | 64 | ||
| 65 | 65 | ||
| 66 | } | 66 | } |
| @@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
| 10 | <result column="order_type" property="orderType"/> | 10 | <result column="order_type" property="orderType"/> |
| 11 | <result column="workshop_id" property="workshopId"/> | 11 | <result column="workshop_id" property="workshopId"/> |
| 12 | <result column="workshop_name" property="workshopName"/> | 12 | <result column="workshop_name" property="workshopName"/> |
| 13 | + <result column="workshop_code" property="workshopCode"/> | ||
| 13 | <result column="customer_id" property="customerId"/> | 14 | <result column="customer_id" property="customerId"/> |
| 14 | <result column="customer_name" property="customerName"/> | 15 | <result column="customer_name" property="customerName"/> |
| 15 | <result column="shipments_plan_detail_id" property="shipmentsPlanDetailId"/> | 16 | <result column="shipments_plan_detail_id" property="shipmentsPlanDetailId"/> |
| @@ -41,6 +42,7 @@ | @@ -41,6 +42,7 @@ | ||
| 41 | END AS order_type, | 42 | END AS order_type, |
| 42 | o.workshop_id, | 43 | o.workshop_id, |
| 43 | ws.name AS workshop_name, | 44 | ws.name AS workshop_name, |
| 45 | + ws.code AS workshop_code, | ||
| 44 | o.ordering_unit AS customer_id, | 46 | o.ordering_unit AS customer_id, |
| 45 | c.name AS customer_name, | 47 | c.name AS customer_name, |
| 46 | tb.shipments_plan_detail_id, | 48 | tb.shipments_plan_detail_id, |