|
|
@ -32,6 +32,8 @@ import com.logpm.aftersales.vo.AftersalesProcessingResultsVO; |
|
|
|
import com.logpm.aftersales.excel.AftersalesProcessingResultsExcel; |
|
|
|
import com.logpm.aftersales.excel.AftersalesProcessingResultsExcel; |
|
|
|
import com.logpm.aftersales.mapper.AftersalesProcessingResultsMapper; |
|
|
|
import com.logpm.aftersales.mapper.AftersalesProcessingResultsMapper; |
|
|
|
import com.logpm.aftersales.service.IAftersalesProcessingResultsService; |
|
|
|
import com.logpm.aftersales.service.IAftersalesProcessingResultsService; |
|
|
|
|
|
|
|
import com.logpm.basicdata.entity.BasicdataWarehouseEntity; |
|
|
|
|
|
|
|
import com.logpm.basicdata.feign.IBasicdataWarehouseClient; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import org.springblade.common.constant.DictBizConstant; |
|
|
|
import org.springblade.common.constant.DictBizConstant; |
|
|
|
import org.springblade.common.constant.aftersales.WorkOrderStatusConstant; |
|
|
|
import org.springblade.common.constant.aftersales.WorkOrderStatusConstant; |
|
|
@ -52,6 +54,7 @@ import java.math.BigDecimal; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 异常工单处理结果 服务实现类 |
|
|
|
* 异常工单处理结果 服务实现类 |
|
|
@ -64,6 +67,8 @@ import java.util.List; |
|
|
|
public class AftersalesProcessingResultsServiceImpl extends BaseServiceImpl<AftersalesProcessingResultsMapper, AftersalesProcessingResultsEntity> implements IAftersalesProcessingResultsService { |
|
|
|
public class AftersalesProcessingResultsServiceImpl extends BaseServiceImpl<AftersalesProcessingResultsMapper, AftersalesProcessingResultsEntity> implements IAftersalesProcessingResultsService { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final IBasicdataWarehouseClient warehouseClient; |
|
|
|
|
|
|
|
|
|
|
|
private final IAftersalesProcessingMoneyService aftersalesProcessingMoneyService; |
|
|
|
private final IAftersalesProcessingMoneyService aftersalesProcessingMoneyService; |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public IPage<AftersalesProcessingResultsVO> selectAftersalesProcessingResultsPage(IPage<AftersalesProcessingResultsVO> page, AftersalesProcessingResultsVO aftersalesProcessingResults) { |
|
|
|
public IPage<AftersalesProcessingResultsVO> selectAftersalesProcessingResultsPage(IPage<AftersalesProcessingResultsVO> page, AftersalesProcessingResultsVO aftersalesProcessingResults) { |
|
|
@ -94,9 +99,13 @@ public class AftersalesProcessingResultsServiceImpl extends BaseServiceImpl<Afte |
|
|
|
// if(ObjectUtil.isNotNull(aftersalesProcessingResults.getId())){
|
|
|
|
// if(ObjectUtil.isNotNull(aftersalesProcessingResults.getId())){
|
|
|
|
// baseMapper.deleteById(aftersalesProcessingResults.getId());
|
|
|
|
// baseMapper.deleteById(aftersalesProcessingResults.getId());
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
|
|
|
if (Objects.isNull(myCurrentWarehouse)){ |
|
|
|
|
|
|
|
throw new ServiceException("未选择仓库"); |
|
|
|
|
|
|
|
} |
|
|
|
if(ObjectUtil.isNull(aftersalesProcessingResults.getId())){ |
|
|
|
if(ObjectUtil.isNull(aftersalesProcessingResults.getId())){ |
|
|
|
aftersalesProcessingResults.setCreateUser(AuthUtil.getUserId()); |
|
|
|
aftersalesProcessingResults.setCreateUser(AuthUtil.getUserId()); |
|
|
|
aftersalesProcessingResults.setCreateDept(Long.valueOf(AuthUtil.getDeptId())); |
|
|
|
aftersalesProcessingResults.setCreateDept(myCurrentWarehouse.getDepartment()); |
|
|
|
aftersalesProcessingResults.setCreateTime(new Date()); |
|
|
|
aftersalesProcessingResults.setCreateTime(new Date()); |
|
|
|
aftersalesProcessingResults.setStatus(1); |
|
|
|
aftersalesProcessingResults.setStatus(1); |
|
|
|
aftersalesProcessingResults.setIsDeleted(0); |
|
|
|
aftersalesProcessingResults.setIsDeleted(0); |
|
|
|