业务单据流转bug修改

master
郑明梁 2 years ago
parent 106909d8be
commit 56b06e0be6

@ -238,7 +238,7 @@ public class IoPurChangeService {
//最后一层,无法流转业务单
BasicBusTypeChangeEntity basicBusTypeChangeEntity = basicBusTypeChangeService.selectByOriginAction(ConstantStatus.BUS_ORDER_CGDD);
if (basicBusTypeChangeEntity != null && StrUtil.isNotEmpty(basicBusTypeChangeEntity.getTargetBusAction()) && basicBusTypeChangeEntity.isEnable() == true) {
if (basicBusTypeChangeEntity != null && StrUtil.isNotEmpty(basicBusTypeChangeEntity.getTargetAction()) && basicBusTypeChangeEntity.isEnable() == true) {
purOrderGen(purOrderEntity);
}
@ -362,6 +362,7 @@ public class IoPurChangeService {
//采购计划生成扫码单据
public void purPlanGen(PurPlanEntity purPlanEntity) {
BasicBusTypeChangeEntity basicBusTypeChangeEntity = new BasicBusTypeChangeEntity();
basicBusTypeChangeEntity = basicBusTypeChangeService.selectByOriginAction("CGJH");
List<PurPlanDetailEntity> purPlanDetailEntities = purPlanDetailService.findByOrderId(purPlanEntity.getId() + "");
//对计划单里面的供应商进行分组
Map<String, List<PurPlanDetailEntity>> map = purPlanDetailEntities.stream().collect(Collectors.groupingBy(PurPlanDetailEntity::getSupId));

@ -189,7 +189,7 @@ public class PurPlanController {
purPlanEntity.setAuditUser(userId + "");
purPlanEntity.setAuditUser(userId + "");
purPlanEntity.setStatus(postPurPlanRequest.getEditStatus());
// purPlanService.update(purApplyEntity);
purPlanService.update(purPlanEntity);
if (purPlanEntity.getStatus() == 3) {
purChangeService.purPlanChange(purPlanEntity);
// generateDocument(purPlanEntity);

Loading…
Cancel
Save