| | |
| | | import com.fzzy.igds.domain.InoutNoticeIn; |
| | | import com.fzzy.igds.domain.InoutNoticeOut; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.work.data.WorkStatus; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | |
| | | data.setCreateBy(ContextUtil.getLoginUserName()); |
| | | data.setCreateTime(new Date()); |
| | | return data; |
| | | } |
| | | |
| | | /** |
| | | * inoutNoticePR#getNoticeInOne |
| | | * |
| | | * @param businessId |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public InoutNoticeIn getNoticeInOne(String businessId) { |
| | | InoutNoticeIn notice = inoutNoticeService.getNoticeInOne(businessId); |
| | | return notice; |
| | | } |
| | | |
| | | /** |
| | |
| | | data.setCreateTime(new Date()); |
| | | return data; |
| | | } |
| | | |
| | | /** |
| | | * inoutNoticePR#getNoticeOutOne |
| | | * |
| | | * @param businessId |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public InoutNoticeOut getNoticeOutOne(String businessId) { |
| | | InoutNoticeOut notice = inoutNoticeService.getNoticeOutOne(businessId); |
| | | return notice; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * inoutNoticePR#pageQueryOut 获取出库通知单 |
| | |
| | | NoticeParam noticeParam = new NoticeParam(); |
| | | noticeParam.setCompanyId(ContextUtil.getCompanyId()); |
| | | noticeParam.setDeptId(ContextUtil.subDeptId(null)); |
| | | noticeParam.setAuditStatus(WorkStatus.STATUS_50.getCode()); |
| | | noticeParam.setCompleteStatus(Constant.COMPLETE_STATUS_NONE); |
| | | String key = (String)param.get("key"); |
| | | if (StringUtils.isNotEmpty(key)) { |