Rev 240 | Rev 277 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 240 | Rev 270 | ||
|---|---|---|---|
| Line 65... | Line 65... | ||
| 65 | private Double valorVarejoMaximo; |
65 | private Double valorVarejoMaximo; |
| 66 | private Double valorVarejoPopular; |
66 | private Double valorVarejoPopular; |
| 67 | private Double valorAtacado; |
67 | private Double valorAtacado; |
| 68 | private Date dataOnline; |
68 | private Date dataOnline; |
| 69 | private Date dataOnlineShoplog; |
69 | private Date dataOnlineShoplog; |
| - | 70 | private Date dataOnlineMercadoLivre; |
|
| 70 | private Boolean indicadorFavorito; |
71 | private Boolean indicadorFavorito; |
| 71 | private Boolean indicadorComissionado; |
72 | private Boolean indicadorComissionado; |
| 72 | private Boolean indicadorEmissaoNotaFiscal; |
73 | private Boolean indicadorEmissaoNotaFiscal; |
| 73 | 74 | ||
| 74 | private Double valorVarejoSimulacao; |
75 | private Double valorVarejoSimulacao; |
| Line 92... | Line 93... | ||
| 92 | private List<TransferenciaProduto> transferenciasAbertas = new ArrayList<TransferenciaProduto>(); |
93 | private List<TransferenciaProduto> transferenciasAbertas = new ArrayList<TransferenciaProduto>(); |
| 93 | private List<PedidoProduto> pedidosPendentes = new ArrayList<PedidoProduto>(); |
94 | private List<PedidoProduto> pedidosPendentes = new ArrayList<PedidoProduto>(); |
| 94 | 95 | ||
| 95 | private Boolean indicadorOnline; |
96 | private Boolean indicadorOnline; |
| 96 | private Boolean indicadorOnlineShoplog; |
97 | private Boolean indicadorOnlineShoplog; |
| - | 98 | private Boolean indicadorOnlineMercadoLivre; |
|
| 97 | private Date dataUltimaVenda; |
99 | private Date dataUltimaVenda; |
| 98 | // private Set<ProdutoArquivo> fotos;
|
100 | // private Set<ProdutoArquivo> fotos;
|
| 99 | 101 | ||
| 100 | @Id |
102 | @Id |
| 101 | @SequenceGenerator(name = "sq_produto") |
103 | @SequenceGenerator(name = "sq_produto") |
| Line 306... | Line 308... | ||
| 306 | public Date getDataOnlineShoplog() { |
308 | public Date getDataOnlineShoplog() { |
| 307 | return dataOnlineShoplog; |
309 | return dataOnlineShoplog; |
| 308 | }
|
310 | }
|
| 309 | public void setDataOnlineShoplog(Date dataOnlineShoplog) { |
311 | public void setDataOnlineShoplog(Date dataOnlineShoplog) { |
| 310 | this.dataOnlineShoplog = dataOnlineShoplog; |
312 | this.dataOnlineShoplog = dataOnlineShoplog; |
| - | 313 | }
|
|
| - | 314 | ||
| - | 315 | @Column(name="dat_online_mercadolivre") |
|
| - | 316 | public Date getDataOnlineMercadoLivre() { |
|
| - | 317 | return dataOnlineMercadoLivre; |
|
| - | 318 | }
|
|
| - | 319 | public void setDataOnlineMercadoLivre(Date dataOnlineMercadoLivre) { |
|
| - | 320 | this.dataOnlineMercadoLivre = dataOnlineMercadoLivre; |
|
| 311 | }
|
321 | }
|
| 312 | 322 | ||
| 313 | @Column(name="ind_favorito") |
323 | @Column(name="ind_favorito") |
| 314 | public Boolean getIndicadorFavorito() { |
324 | public Boolean getIndicadorFavorito() { |
| 315 | return indicadorFavorito; |
325 | return indicadorFavorito; |
| Line 490... | Line 500... | ||
| 490 | public void atualizarDataOnlineShoplog() { |
500 | public void atualizarDataOnlineShoplog() { |
| 491 | if (VerificadorUtil.estaNulo(this.getDataOnlineShoplog())) { |
501 | if (VerificadorUtil.estaNulo(this.getDataOnlineShoplog())) { |
| 492 | this.setDataOnlineShoplog(DataUtils.getDataAtual()); |
502 | this.setDataOnlineShoplog(DataUtils.getDataAtual()); |
| 493 | } else { |
503 | } else { |
| 494 | this.setDataOnlineShoplog(null); |
504 | this.setDataOnlineShoplog(null); |
| - | 505 | }
|
|
| - | 506 | }
|
|
| - | 507 | ||
| - | 508 | @Transient |
|
| - | 509 | public Boolean getIndicadorOnlineMercadoLivre() { |
|
| - | 510 | if (VerificadorUtil.estaNulo(this.getDataOnlineMercadoLivre()) && VerificadorUtil.estaNulo(this.indicadorOnlineMercadoLivre)) { |
|
| - | 511 | setIndicadorOnlineMercadoLivre(false); |
|
| - | 512 | } else { |
|
| - | 513 | setIndicadorOnlineMercadoLivre(true); |
|
| - | 514 | }
|
|
| - | 515 | return indicadorOnlineMercadoLivre; |
|
| - | 516 | }
|
|
| - | 517 | public void setIndicadorOnlineMercadoLivre(Boolean indicadorOnlineMercadoLivre) { |
|
| - | 518 | this.indicadorOnlineMercadoLivre = indicadorOnlineMercadoLivre; |
|
| - | 519 | }
|
|
| - | 520 | public void atualizarDataOnlineMercadoLivre() { |
|
| - | 521 | if (VerificadorUtil.estaNulo(this.getDataOnlineMercadoLivre())) { |
|
| - | 522 | this.setDataOnlineMercadoLivre(DataUtils.getDataAtual()); |
|
| - | 523 | } else { |
|
| - | 524 | this.setDataOnlineMercadoLivre(null); |
|
| 495 | }
|
525 | }
|
| 496 | }
|
526 | }
|
| 497 | 527 | ||
| 498 | @Transient |
528 | @Transient |
| 499 | public List<TransferenciaProduto> getTransferenciasAbertas() { |
529 | public List<TransferenciaProduto> getTransferenciasAbertas() { |