| | |
| | | import com.vincent.rsf.server.system.service.impl.FieldsItemServiceImpl; |
| | | import com.vincent.rsf.server.system.service.impl.UserServiceImpl; |
| | | import com.vincent.rsf.server.system.utils.SerialRuleUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | .setMaktx(matnr.getName()) |
| | | .setAnfme(item.getCheckQty()); |
| | | |
| | | FieldsItem fieldsItem = fieldsItemService.getOne(new LambdaQueryWrapper<FieldsItem>().eq(FieldsItem::getValue, item.getFieldsIndex()).last("limit 1")); |
| | | if (Objects.isNull(fieldsItem)) { |
| | | throw new CoolException("当前票号不存在库存中,请拿出后重新入库!!"); |
| | | // 票号暂不使用,不校验票号是否存在 |
| | | FieldsItem fieldsItem = null; |
| | | if (StringUtils.isNotBlank(item.getFieldsIndex())) { |
| | | fieldsItem = fieldsItemService.getOne(new LambdaQueryWrapper<FieldsItem>().eq(FieldsItem::getValue, item.getFieldsIndex()).last("limit 1")); |
| | | // if (Objects.isNull(fieldsItem)) { |
| | | // throw new CoolException("当前票号不存在库存中,请拿出后重新入库!!"); |
| | | // } |
| | | } |
| | | if (fieldsItem != null) { |
| | | taskItem.setFieldsIndex(fieldsItem.getUuid()); |
| | | } |
| | | |
| | | taskItems.add(taskItem); |
| | | }); |
| | |
| | | .setPDQty(taskItem.getAnfme()) |
| | | .setEditUser(nickName) |
| | | .setEditDate(taskItem.getUpdateTime()) |
| | | .setGoodsNO(fields.get("crushNo")) |
| | | // .setGoodsNO(fields.get("crushNo")) // 票号暂不使用 |
| | | .setIsBad(0 + "") |
| | | .setMemoDtl(taskItem.getMemo()); |
| | | |