| | |
| | | } |
| | | |
| | | @Override |
| | | public VolumeProductionRkgInfoVO getVolumeProductionRkgInfo(Integer id) { |
| | | public VolumeProductionRkgInfoVO getVolumeProductionRkgInfo(Long id) { |
| | | SlVolumeProductionRkgl byId = this.getById(id); |
| | | VolumeProductionRkgInfoVO v=BeanUtils.copyBean(byId, VolumeProductionRkgInfoVO.class); |
| | | SlStoreManagement slStoreManagement = slStoreManagementMapper.selectById(byId.getManagementId()); |
| | |
| | | .collect(Collectors.toSet()); |
| | | |
| | | LambdaQueryWrapper< SlVolumeProductionRkgl> wrapper1= Wrappers.lambdaQuery(); |
| | | wrapper1.eq(SlVolumeProductionRkgl::getPresentState,getVolumeProductionRkQuery.getPresentState()); |
| | | wrapper1.eq(SlVolumeProductionRkgl::getAuditStatus,getVolumeProductionRkQuery.getAuditStatus()); |
| | | if (getVolumeProductionRkQuery.getPresentState()!=0&&getVolumeProductionRkQuery.getPresentState()!=null){ |
| | | wrapper1.eq(SlVolumeProductionRkgl::getPresentState,getVolumeProductionRkQuery.getPresentState()); |
| | | } |
| | | if (getVolumeProductionRkQuery.getAuditStatus()!=0&&getVolumeProductionRkQuery.getAuditStatus()!=null) { |
| | | wrapper1.eq(SlVolumeProductionRkgl::getAuditStatus, getVolumeProductionRkQuery.getAuditStatus()); |
| | | } |
| | | if (goodsSkuIdList.size()>0){ |
| | | wrapper1.in(SlVolumeProductionRkgl::getSysId,goodsSkuIdList); |
| | | }else{ |
| | | |
| | | } |
| | | wrapper1.eq( SlVolumeProductionRkgl::getDelFlag,0); |
| | | wrapper1.orderByDesc(SlVolumeProductionRkgl::getCreateTime); |
| | |
| | | @Override |
| | | public void addVolumeProductionRkgl(VolumeProductionRkglDTO volumeProductionRkglDTO) { |
| | | Long userid = SecurityUtils.getUserId(); |
| | | if (volumeProductionRkglDTO.getId()!=null){ |
| | | if (volumeProductionRkglDTO.getId()==null){ |
| | | SlVolumeProductionRkgl slVolumeProductionRkgl=new SlVolumeProductionRkgl(); |
| | | slVolumeProductionRkgl.setAttachmentUrl(volumeProductionRkglDTO.getAttachmentUrl()); |
| | | slVolumeProductionRkgl.setAuthorization(volumeProductionRkglDTO.getAuthorization()); |
| | | slVolumeProductionRkgl.setAuthorizationUrl(volumeProductionRkglDTO.getAuthorization()); |
| | | slVolumeProductionRkgl.setAuditStatus(1); |
| | | slVolumeProductionRkgl.setManagementId(volumeProductionRkglDTO.getManagementId()); |
| | | slVolumeProductionRkgl.setPresentState(1); |
| | |
| | | byId.setAttachmentUrl(volumeProductionRkglDTO.getAttachmentUrl()); |
| | | } |
| | | if (volumeProductionRkglDTO.getAuthorization()!=null){ |
| | | byId.setAuthorization(volumeProductionRkglDTO.getAuthorization()); |
| | | byId.setAuthorizationUrl(volumeProductionRkglDTO.getAuthorization()); |
| | | } |
| | | this.updateById(byId); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public VolumeProductionRkgInventoryVO getVolumeProductionRkgInventory(Integer id) { |
| | | public VolumeProductionRkgInventoryVO getVolumeProductionRkgInventory(Long id) { |
| | | SlVolumeProductionRkgl byId = this.getById(id); |
| | | VolumeProductionRkgInventoryVO vo = new VolumeProductionRkgInventoryVO(); |
| | | SysUser data = sysUserClient.getSysUser(byId.getId()).getData(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void rk(Integer id) { |
| | | public void rk(Long id) { |
| | | LambdaQueryWrapper<SlVolumeProductionRk> wrapper1 = Wrappers.lambdaQuery(); |
| | | wrapper1.eq(SlVolumeProductionRk::getVolumeProductionRkglId, id); |
| | | wrapper1.eq(SlVolumeProductionRk::getDelFlag, 0); |
| | |
| | | wrapper2.eq(ManagementGoodsMaterials::getManagementId,list.getManagementId()); |
| | | wrapper2.eq(ManagementGoodsMaterials::getDelFlag, 0); |
| | | ManagementGoodsMaterials managementGoodsMaterials = managementGoodsMaterialsMapper.selectOne(wrapper2); |
| | | |
| | | SlGoodsMaterials slGoodsMaterials = slGoodsMaterialsMapper.selectById(list.getMaterialsId()); |
| | | |
| | | if (managementGoodsMaterials!=null){ |
| | | Long repertorySum = managementGoodsMaterials.getRepertorySum(); |
| | | Long repertoryZhai = managementGoodsMaterials.getRepertoryZhai(); |
| | |
| | | Long re1=repertoryZhai+list.getRkNum(); |
| | | managementGoodsMaterials.setRepertorySum(re); |
| | | managementGoodsMaterials.setRepertoryZhai(re1); |
| | | managementGoodsMaterials.setRepertory(slGoodsMaterials.getRepertory()); |
| | | managementGoodsMaterialsMapper.updateById(managementGoodsMaterials); |
| | | }else{ |
| | | ManagementGoodsMaterials managementGoodsMaterials1=new ManagementGoodsMaterials(); |
| | |
| | | managementGoodsMaterials1.setGoodsMaterialsId(list.getMaterialsId()); |
| | | managementGoodsMaterials1.setRepertoryZhai(list.getRkNum()); |
| | | managementGoodsMaterials1.setRepertorySum(list.getRkNum()); |
| | | managementGoodsMaterials.setRepertory(slGoodsMaterials.getRepertory()); |
| | | managementGoodsMaterialsMapper.insert(managementGoodsMaterials1); |
| | | } |
| | | } |