|
|
@@ -3,11 +3,14 @@ package com.usoftchina.saas.sale.service.impl;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.usoftchina.saas.base.Result;
|
|
|
+import com.usoftchina.saas.commons.api.CommonService;
|
|
|
import com.usoftchina.saas.commons.api.MaxnumberService;
|
|
|
+import com.usoftchina.saas.commons.api.MessageLogService;
|
|
|
import com.usoftchina.saas.commons.dto.DocBaseDTO;
|
|
|
import com.usoftchina.saas.commons.dto.ListReqDTO;
|
|
|
import com.usoftchina.saas.commons.exception.BizExceptionCode;
|
|
|
import com.usoftchina.saas.commons.po.BillCodeSeq;
|
|
|
+import com.usoftchina.saas.commons.po.Operation;
|
|
|
import com.usoftchina.saas.commons.po.Status;
|
|
|
import com.usoftchina.saas.context.BaseContextHolder;
|
|
|
import com.usoftchina.saas.exception.BizException;
|
|
|
@@ -44,6 +47,9 @@ public class SaleDownServiceImpl implements SaleDownService{
|
|
|
@Autowired
|
|
|
private SaleService saleService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private MessageLogService messageLogService;
|
|
|
+
|
|
|
@Override
|
|
|
public PageInfo getListData(PageRequest page, ListReqDTO req) {
|
|
|
PageHelper.startPage(page.getNumber(), page.getSize());
|
|
|
@@ -105,6 +111,7 @@ public class SaleDownServiceImpl implements SaleDownService{
|
|
|
saledownMapper.batchUpdate(updateDetails);
|
|
|
}
|
|
|
baseDTO = new DocBaseDTO(sa_id, sa_code, BillCodeSeq.SALEDOWN.getName());
|
|
|
+ messageLogService.update(baseDTO);
|
|
|
return baseDTO;
|
|
|
}
|
|
|
|
|
|
@@ -157,6 +164,7 @@ public class SaleDownServiceImpl implements SaleDownService{
|
|
|
sd.setSa_turnstatuscode("TURNSALE");
|
|
|
sd.setSa_turndate(new Date());
|
|
|
saledownMapper.updateByPrimaryKeySelective(sd);
|
|
|
+ messageLogService.customizeLog(baseDTO, Operation.TURNSALE);
|
|
|
return baseDTO;
|
|
|
}
|
|
|
|