| | |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.data.BaseResp; |
| | | import com.fzzy.igds.data.NoticeDto; |
| | | import com.fzzy.igds.data.NoticeParam; |
| | | import com.fzzy.igds.service.InoutNoticeService; |
| | |
| | | InoutNoticeIn data = new InoutNoticeIn(); |
| | | data.setId(ContextUtil.generateOrderId("RK")); |
| | | data.setName("入库通知单"); |
| | | data.setType("20"); |
| | | data.setCompanyId(user.getCompanyId()); |
| | | data.setDeptId(ContextUtil.subDeptId(user)); |
| | | data.setYear(DateFormatUtils.format(new Date(), "yyyy")); |
| | | 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; |
| | | } |
| | | |
| | | /** |
| | |
| | | * inoutNoticePR#saveIn 更新入库通知单 |
| | | */ |
| | | @DataResolver |
| | | public String saveIn(InoutNoticeIn data) { |
| | | public BaseResp saveIn(InoutNoticeIn data) { |
| | | InoutNoticeIn inoutNoticeIn = new InoutNoticeIn(); |
| | | BeanUtils.copyProperties(data, inoutNoticeIn); |
| | | return inoutNoticeService.saveOrUpdateIn(inoutNoticeIn); |
| | |
| | | } |
| | | |
| | | /** |
| | | * inoutNoticePR#getNoticeOutOne |
| | | * |
| | | * @param businessId |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public InoutNoticeOut getNoticeOutOne(String businessId) { |
| | | InoutNoticeOut notice = inoutNoticeService.getNoticeOutOne(businessId); |
| | | return notice; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * inoutNoticePR#pageQueryOut 获取出库通知单 |
| | | * @param page |
| | | * @param param |
| | |
| | | * @return |
| | | */ |
| | | @DataResolver |
| | | public String saveOut(InoutNoticeOut data) { |
| | | public BaseResp saveOut(InoutNoticeOut data) { |
| | | InoutNoticeOut inoutNoticeOut = new InoutNoticeOut(); |
| | | BeanUtils.copyProperties(data, inoutNoticeOut); |
| | | return inoutNoticeService.saveOrUpdateOut(inoutNoticeOut); |