|
|
@@ -39,18 +39,8 @@ import com.lframework.xingyun.sc.dto.purchase.receive.GetPaymentDateDto;
|
|
39
|
39
|
import com.lframework.xingyun.sc.dto.retail.RetailProductDto;
|
|
40
|
40
|
import com.lframework.xingyun.sc.dto.retail.out.RetailOutSheetFullDto;
|
|
41
|
41
|
import com.lframework.xingyun.sc.dto.retail.out.RetailOutSheetWithReturnDto;
|
|
42
|
|
-import com.lframework.xingyun.sc.entity.LogisticsSheetDetail;
|
|
43
|
|
-import com.lframework.xingyun.sc.entity.OrderPayType;
|
|
44
|
|
-import com.lframework.xingyun.sc.entity.RetailConfig;
|
|
45
|
|
-import com.lframework.xingyun.sc.entity.RetailOutSheet;
|
|
46
|
|
-import com.lframework.xingyun.sc.entity.RetailOutSheetDetail;
|
|
47
|
|
-import com.lframework.xingyun.sc.entity.RetailOutSheetDetailBundle;
|
|
48
|
|
-import com.lframework.xingyun.sc.entity.RetailOutSheetDetailLot;
|
|
49
|
|
-import com.lframework.xingyun.sc.enums.LogisticsSheetDetailBizType;
|
|
50
|
|
-import com.lframework.xingyun.sc.enums.ProductStockBizType;
|
|
51
|
|
-import com.lframework.xingyun.sc.enums.RetailOutSheetStatus;
|
|
52
|
|
-import com.lframework.xingyun.sc.enums.ScOpLogType;
|
|
53
|
|
-import com.lframework.xingyun.sc.enums.SettleStatus;
|
|
|
42
|
+import com.lframework.xingyun.sc.entity.*;
|
|
|
43
|
+import com.lframework.xingyun.sc.enums.*;
|
|
54
|
44
|
import com.lframework.xingyun.sc.mappers.RetailOutSheetMapper;
|
|
55
|
45
|
import com.lframework.xingyun.sc.service.logistics.LogisticsSheetDetailService;
|
|
56
|
46
|
import com.lframework.xingyun.sc.service.paytype.OrderPayTypeService;
|
|
|
@@ -452,9 +442,12 @@ public class RetailOutSheetServiceImpl extends
|
|
452
|
442
|
// 这里需要重新统计明细信息,因为明细发生变动了
|
|
453
|
443
|
Wrapper<RetailOutSheet> updateWrapper = Wrappers.lambdaUpdate(RetailOutSheet.class)
|
|
454
|
444
|
.set(RetailOutSheet::getTotalNum, totalNum).set(RetailOutSheet::getTotalGiftNum, giftNum)
|
|
455
|
|
- .set(RetailOutSheet::getTotalAmount, totalAmount).eq(RetailOutSheet::getId, sheet.getId());
|
|
|
445
|
+ .set(RetailOutSheet::getTotalAmount, totalAmount).eq(RetailOutSheet::getId, sheet.getId())
|
|
|
446
|
+ .set(RetailOutSheet::getSettleStatus, SettleStatus.SETTLED)
|
|
|
447
|
+ ;
|
|
456
|
448
|
this.update(updateWrapper);
|
|
457
|
|
-
|
|
|
449
|
+ // sheet.setSettleStatus(SettleStatus.SETTLED);
|
|
|
450
|
+ this.sendApprovePassEvent(sheet);
|
|
458
|
451
|
OpLogUtil.setVariable("code", sheet.getCode());
|
|
459
|
452
|
OpLogUtil.setExtra(vo);
|
|
460
|
453
|
}
|