|
@@ -30,13 +30,21 @@ public class FsStoreOrderAuditScrmServiceImpl extends ServiceImpl<FsStoreOrderAu
|
|
|
private final IFsStoreOrderAuditLogScrmService fsStoreOrderAuditLogService;
|
|
private final IFsStoreOrderAuditLogScrmService fsStoreOrderAuditLogService;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 查询订单审核列表
|
|
|
|
|
|
|
+ * 查询订单审核列表 倍力优审核只需一次审核,做出修改
|
|
|
* @param param 参数
|
|
* @param param 参数
|
|
|
* @return list
|
|
* @return list
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
public List<FsStoreOrderAuditVO> selectStoreOrderAuditVOList(FsStoreOrderAuditParam param) {
|
|
public List<FsStoreOrderAuditVO> selectStoreOrderAuditVOList(FsStoreOrderAuditParam param) {
|
|
|
- return baseMapper.selectStoreOrderAuditVOList(param);
|
|
|
|
|
|
|
+ List<FsStoreOrderAuditVO> list=baseMapper.selectStoreOrderAuditVOList(param);
|
|
|
|
|
+ list.forEach(item -> {
|
|
|
|
|
+ if(StringUtils.isNotEmpty(item.getCompanyAuditUserName())){
|
|
|
|
|
+ item.setCompanyAuditUserName("销售端:"+item.getCompanyAuditUserName());
|
|
|
|
|
+ }else if(StringUtils.isNotEmpty(item.getAdminAuditUserName())){
|
|
|
|
|
+ item.setCompanyAuditUserName("总后台:"+item.getAdminAuditUserName());
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return list;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -137,7 +145,11 @@ public class FsStoreOrderAuditScrmServiceImpl extends ServiceImpl<FsStoreOrderAu
|
|
|
|
|
|
|
|
fsStoreOrderAudit.setCompanyAuditTime(now);
|
|
fsStoreOrderAudit.setCompanyAuditTime(now);
|
|
|
fsStoreOrderAudit.setAuditStatus(newStatus.getValue());
|
|
fsStoreOrderAudit.setAuditStatus(newStatus.getValue());
|
|
|
- fsStoreOrderAudit.setCompanyAuditUserId(userId);
|
|
|
|
|
|
|
+ if(isAdmin){
|
|
|
|
|
+ fsStoreOrderAudit.setAdminAuditUserId(userId);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ fsStoreOrderAudit.setCompanyAuditUserId(userId);
|
|
|
|
|
+ }
|
|
|
baseMapper.updateById(fsStoreOrderAudit);
|
|
baseMapper.updateById(fsStoreOrderAudit);
|
|
|
FsStoreOrderAuditLogScrm auditLog = new FsStoreOrderAuditLogScrm();
|
|
FsStoreOrderAuditLogScrm auditLog = new FsStoreOrderAuditLogScrm();
|
|
|
auditLog.setAuditId(fsStoreOrderAudit.getId());
|
|
auditLog.setAuditId(fsStoreOrderAudit.getId());
|
|
@@ -168,7 +180,11 @@ public class FsStoreOrderAuditScrmServiceImpl extends ServiceImpl<FsStoreOrderAu
|
|
|
FsStoreOrderAuditScrm update = new FsStoreOrderAuditScrm();
|
|
FsStoreOrderAuditScrm update = new FsStoreOrderAuditScrm();
|
|
|
update.setAuditStatus(OrderAuditStateEnum.APPROVED.getValue());
|
|
update.setAuditStatus(OrderAuditStateEnum.APPROVED.getValue());
|
|
|
update.setCompanyAuditTime(LocalDateTime.now());
|
|
update.setCompanyAuditTime(LocalDateTime.now());
|
|
|
- update.setCompanyAuditUserId(userId);
|
|
|
|
|
|
|
+ if(b){
|
|
|
|
|
+ update.setAdminAuditUserId(userId);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ update.setCompanyAuditUserId(userId);
|
|
|
|
|
+ }
|
|
|
List<Long> idLists = list.stream().map(FsStoreOrderAuditScrm::getId).collect(Collectors.toList());
|
|
List<Long> idLists = list.stream().map(FsStoreOrderAuditScrm::getId).collect(Collectors.toList());
|
|
|
baseMapper.updateBatchAudit(update,idLists);
|
|
baseMapper.updateBatchAudit(update,idLists);
|
|
|
|
|
|