Compare commits
3 Commits
571f8620b9
...
0af1800e20
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0af1800e20 | ||
![]() |
d8440645b8 | ||
![]() |
10f044147c |
@ -103,7 +103,7 @@ public class BpmProcessCcController {
|
||||
.collect(Collectors.joining("、")));
|
||||
// 设置公司名称
|
||||
data.setCompanyName(data.getCompanyDeptId().stream()
|
||||
.map(item -> deptMap.get(item).getName())
|
||||
.map(item -> deptMap.get(item) != null ? deptMap.get(item).getName() : "")
|
||||
.collect(Collectors.joining("、")));
|
||||
});
|
||||
return success(respVOPageResult);
|
||||
|
@ -233,7 +233,9 @@ public class BpmTaskServiceImpl implements BpmTaskService {
|
||||
|
||||
// 判断搜索条件是否选择用户
|
||||
List<Long> userIds = null;
|
||||
if (pageVO.getDeptId() != null) {
|
||||
if (pageVO.getUserId() != null) {
|
||||
userIds = Collections.singletonList(pageVO.getUserId());
|
||||
}else if (pageVO.getDeptId() != null) {
|
||||
|
||||
List<AdminUserRespDTO> users = adminUserApi.getUserByDeptIdAll(pageVO.getDeptId()).getCheckedData();
|
||||
userIds = users.stream().map(AdminUserRespDTO::getId).collect(Collectors.toList());
|
||||
|
@ -30,7 +30,7 @@
|
||||
AND a.pay_flag = 0
|
||||
AND a.deleted = 0
|
||||
<if test="type != null">
|
||||
AND a.procure_type = #{type}
|
||||
AND (a.procure_type = #{type} or a.procure_type = 3)
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
|
@ -334,6 +334,8 @@ public class DeptServiceImpl implements DeptService {
|
||||
|
||||
return deptMapper.selectList(new LambdaQueryWrapperX<DeptDO>()
|
||||
.eq(DeptDO::getType, DeptTypeEnum.COMPANY.getValue())
|
||||
.or()
|
||||
.eq(DeptDO::getType, DeptTypeEnum.HEAD_COMPANY.getValue())
|
||||
.eq(DeptDO::getVirtuallyStatus, 0)
|
||||
.eq(DeptDO::getStatus, CommonStatusEnum.ENABLE.getStatus()));
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.smartfactory.service.factoryinfo;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
|
||||
import cn.iocoder.yudao.framework.common.enums.DeptTypeEnum;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import cn.iocoder.yudao.framework.ip.core.Area;
|
||||
@ -71,6 +72,7 @@ public class FactoryInfoServiceImpl implements FactoryInfoService {
|
||||
deptRespDTO.setParentId(169L); //这里设置上级部门为 生产部
|
||||
deptRespDTO.setLeaderUserId(createReqVO.getLeaderUserId());
|
||||
deptRespDTO.setStatus(CommonStatusEnum.ENABLE.getStatus());
|
||||
deptRespDTO.setType(DeptTypeEnum.PRODUCTION_DEPT.getValue());
|
||||
deptRespDTO.setVirtuallyStatus(0);
|
||||
deptApi.createDept(deptRespDTO);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user