Last active
July 19, 2017 05:02
-
-
Save BrunoDSouza/9bba54e1207045be4326946c6124cd74 to your computer and use it in GitHub Desktop.
StreamOperations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "tipoMovimentacao": "SAIDA", | |
"setor" : "clinica", | |
"idsetor" : 2, | |
"produto" : "Agulha 3ml" | |
"idproduto" : 12, | |
"qtd_produto" : 7 | |
}, | |
{ "tipoMovimentacao": "ENTRADA", | |
"setor" : "Limpeza", | |
"idsetor" : 7, | |
"produto" : "Pomada 3ml" | |
"idproduto" : 11, | |
"qtd_produto" : 4 | |
}, | |
{ "tipoMovimentacao": "DESCARTE", | |
"setor" : "Cirurgia", | |
"idsetor" : 5, | |
"produto" : "Agulha 6ml" | |
"idproduto" : 10, | |
"qtd_produto" : 9 | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ItemsMovimentacao { | |
private String tipoMovimentacao; | |
private String setor; | |
private Long idsetor; | |
private String produto; | |
private Long idproduto; | |
private Long qtd_produto; | |
//Getters and Setters | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@PostMapping("ajax/item/novo") | |
public @ResponseBody ModelAndView salvar(@RequestBody ItensMovimentacaoDTO items[]){ | |
//Ao passar um array de JSON, será convertido para => items[] | |
// To do, lógica do metoodo.... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment