|
|
|
|
@ -1,6 +1,5 @@ |
|
|
|
|
package org.springblade.wms.controller; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
@ -119,12 +118,12 @@ public class StOtherOutRecordController extends BladeController { |
|
|
|
|
stOtherOutRecord.setCreateDept(Long.valueOf(user.getDeptId())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String userRoleName = user.getRoleName(); |
|
|
|
|
stOtherOutRecord.setUserRoleName(userRoleName); |
|
|
|
|
if (StrUtil.isNotBlank(userRoleName) && userRoleName.contains("rb_craft")) { |
|
|
|
|
// 工艺员:可查询审批状态为「审批中」的数据
|
|
|
|
|
stOtherOutRecord.setApprovalStatus(StOtherOutRecord.APPROVAL_STATUS_CHECKING); |
|
|
|
|
} |
|
|
|
|
// String userRoleName = user.getRoleName();
|
|
|
|
|
// stOtherOutRecord.setUserRoleName(userRoleName);
|
|
|
|
|
// if (StrUtil.isNotBlank(userRoleName) && userRoleName.contains("rb_craft")) {
|
|
|
|
|
// // 工艺员:可查询审批状态为「审批中」的数据
|
|
|
|
|
// stOtherOutRecord.setApprovalStatus(StOtherOutRecord.APPROVAL_STATUS_CHECKING);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
IPage<StOtherOutRecordVO> pages = stOtherOutRecordService.selectStOtherOutRecordPage(Condition.getPage(query), stOtherOutRecord); |
|
|
|
|
|
|
|
|
|
|