| | |
| | | SlStoreManagement slStoreManagement = slStoreManagementMapper.selectById(byId.getManagementId()); |
| | | v.setStoreManagementName(slStoreManagement.getStoreManagementName()); |
| | | SysUser data = sysUserClient.getSysUser(Long.valueOf(byId.getSupplierId())).getData(); |
| | | v.setSupplierId(byId.getSupplierId()); |
| | | v.setSupplierName(data.getNickName()); |
| | | v.setSupplierPhone(data.getPhonenumber()); |
| | | SysUser data1 = sysUserClient.getSysUser(Long.valueOf(byId.getSysId())).getData(); |
| | | v.setSysName(data1.getNickName()); |
| | | v.setSysPhone(data1.getPhonenumber()); |
| | | v.setAuthorization(byId.getAuthorizationUrl()); |
| | | return v; |
| | | } |
| | | |
| | |
| | | .collect(Collectors.toSet()); |
| | | |
| | | LambdaQueryWrapper< SlVolumeProductionRkgl> wrapper1= Wrappers.lambdaQuery(); |
| | | if (getVolumeProductionRkQuery.getPresentState()!=0&&getVolumeProductionRkQuery.getPresentState()!=null){ |
| | | if (getVolumeProductionRkQuery.getPresentState()!=null && getVolumeProductionRkQuery.getPresentState()!=0){ |
| | | wrapper1.eq(SlVolumeProductionRkgl::getPresentState,getVolumeProductionRkQuery.getPresentState()); |
| | | } |
| | | if (getVolumeProductionRkQuery.getAuditStatus()!=0&&getVolumeProductionRkQuery.getAuditStatus()!=null) { |
| | | if (getVolumeProductionRkQuery.getAuditStatus()!=null && getVolumeProductionRkQuery.getAuditStatus()!=0) { |
| | | wrapper1.eq(SlVolumeProductionRkgl::getAuditStatus, getVolumeProductionRkQuery.getAuditStatus()); |
| | | } |
| | | if (goodsSkuIdList.size()>0){ |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void addVolumeProductionRkgl(VolumeProductionRkglDTO volumeProductionRkglDTO) { |
| | | public Long addVolumeProductionRkgl(VolumeProductionRkglDTO volumeProductionRkglDTO) { |
| | | Long userid = SecurityUtils.getUserId(); |
| | | SlVolumeProductionRkgl slVolumeProductionRkgl=null; |
| | | if (volumeProductionRkglDTO.getId()==null){ |
| | | SlVolumeProductionRkgl slVolumeProductionRkgl=new SlVolumeProductionRkgl(); |
| | | new SlVolumeProductionRkgl(); |
| | | slVolumeProductionRkgl.setAttachmentUrl(volumeProductionRkglDTO.getAttachmentUrl()); |
| | | slVolumeProductionRkgl.setAuthorizationUrl(volumeProductionRkglDTO.getAuthorization()); |
| | | slVolumeProductionRkgl.setAuditStatus(1); |
| | |
| | | slVolumeProductionRkgl.setRemark(volumeProductionRkglDTO.getRemark()); |
| | | this.save(slVolumeProductionRkgl); |
| | | }else{ |
| | | SlVolumeProductionRkgl byId = this.getById(volumeProductionRkglDTO.getId()); |
| | | slVolumeProductionRkgl = this.getById(volumeProductionRkglDTO.getId()); |
| | | slVolumeProductionRkgl.setPresentState(1); |
| | | slVolumeProductionRkgl.setAuditStatus(1); |
| | | if (volumeProductionRkglDTO.getSource()!=null){ |
| | | byId.setSource(volumeProductionRkglDTO.getSource()); |
| | | slVolumeProductionRkgl.setSource(volumeProductionRkglDTO.getSource()); |
| | | } |
| | | if (volumeProductionRkglDTO.getRemark()!=null){ |
| | | byId.setRemark(volumeProductionRkglDTO.getRemark()); |
| | | slVolumeProductionRkgl.setRemark(volumeProductionRkglDTO.getRemark()); |
| | | } |
| | | if (volumeProductionRkglDTO.getSupplierId()!=null){ |
| | | byId.setSupplierId(volumeProductionRkglDTO.getSupplierId()); |
| | | slVolumeProductionRkgl.setSupplierId(volumeProductionRkglDTO.getSupplierId()); |
| | | } |
| | | if (volumeProductionRkglDTO.getAttachmentUrl()!=null){ |
| | | byId.setAttachmentUrl(volumeProductionRkglDTO.getAttachmentUrl()); |
| | | slVolumeProductionRkgl.setAttachmentUrl(volumeProductionRkglDTO.getAttachmentUrl()); |
| | | } |
| | | if (volumeProductionRkglDTO.getAuthorization()!=null){ |
| | | byId.setAuthorizationUrl(volumeProductionRkglDTO.getAuthorization()); |
| | | slVolumeProductionRkgl.setAuthorizationUrl(volumeProductionRkglDTO.getAuthorization()); |
| | | } |
| | | this.updateById(byId); |
| | | this.updateById(slVolumeProductionRkgl); |
| | | |
| | | } |
| | | return slVolumeProductionRkgl.getId(); |
| | | } |
| | | |
| | | @Override |
| | |
| | | managementGoodsMaterials1.setGoodsMaterialsId(list.getMaterialsId()); |
| | | managementGoodsMaterials1.setRepertoryZhai(list.getRkNum()); |
| | | managementGoodsMaterials1.setRepertorySum(list.getRkNum()); |
| | | managementGoodsMaterials.setRepertory(slGoodsMaterials.getRepertory()); |
| | | managementGoodsMaterials1.setCreateTime(new Date()); |
| | | managementGoodsMaterials1.setRepertory(slGoodsMaterials.getRepertory()); |
| | | managementGoodsMaterialsMapper.insert(managementGoodsMaterials1); |
| | | } |
| | | } |