|
|
|
|
@ -25,7 +25,7 @@ |
|
|
|
|
*/ |
|
|
|
|
package org.springblade.desk.dashboard.service.impl; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.stream.CollectorUtil; |
|
|
|
|
import com.alibaba.nacos.api.utils.StringUtils; |
|
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springblade.desk.dashboard.pojo.entity.BsWorkCenterEntity; |
|
|
|
|
@ -43,7 +43,6 @@ import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
@ -68,7 +67,18 @@ public class DsSpecialProServiceImpl extends BaseServiceImpl<DsSpecialProMapper, |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public IPage<DsSpecialProVO> selectDsSpecialProPage(IPage<DsSpecialProVO> page, DsSpecialProVO dsSpecialPro) { |
|
|
|
|
return page.setRecords(baseMapper.selectDsSpecialProPage(page, dsSpecialPro)); |
|
|
|
|
List<DsSpecialProVO> dsSpecialProVOS = baseMapper.selectDsSpecialProPage(page, dsSpecialPro); |
|
|
|
|
if(!CollectionUtils.isEmpty(dsSpecialProVOS)){ |
|
|
|
|
for (DsSpecialProVO dsSpecialProVO : dsSpecialProVOS) { |
|
|
|
|
if(dsSpecialProVO.getProMan() != null){ |
|
|
|
|
User user = userClient.userInfo(Func.toLong(dsSpecialProVO.getProMan())).getData().getUser(); |
|
|
|
|
if(null != user){ |
|
|
|
|
dsSpecialProVO.setProManName(user.getName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return page.setRecords(dsSpecialProVOS); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -98,7 +108,7 @@ public class DsSpecialProServiceImpl extends BaseServiceImpl<DsSpecialProMapper, |
|
|
|
|
if(null == dsSpecialProExcel.getProMan()){ |
|
|
|
|
throw new ServiceException("工艺员不能为空"); |
|
|
|
|
} |
|
|
|
|
User user = userClient.userInfo(Func.toLong(dsSpecialProExcel.getProMan())).getData().getUser(); |
|
|
|
|
User user = userClient.userByAccountV2(dsSpecialProExcel.getProMan()).getData(); |
|
|
|
|
if(null == user){ |
|
|
|
|
throw new ServiceException("工艺员: "+dsSpecialProExcel.getProMan()+" 不存在"); |
|
|
|
|
} |
|
|
|
|
|