Skip to content

Commit 9f0bf06

Browse files
committed
Projeto do curso
1 parent 415cf0d commit 9f0bf06

File tree

245 files changed

+51140
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+51140
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SELECT v.data_criacao AS data_criacao
2+
, v.valor_total AS valor_total
3+
, c.nome AS nome_cliente
4+
, u.nome AS nome_vendedor
5+
, v.codigo AS codigo
6+
FROM venda v INNER JOIN cliente c ON v.codigo_cliente = c.codigo
7+
INNER JOIN usuario u ON v.codigo_usuario = u.codigo
8+
WHERE v.status = 'EMITIDA'
9+
AND v.data_criacao BETWEEN '2016-02-01 00:00:00' AND '2016-09-08 23:59:59'
10+
ORDER BY v.data_criacao ASC
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
insert into venda (data_criacao, valor_total, status, codigo_cliente, codigo_usuario)
2+
values (
3+
FROM_UNIXTIME(ROUND((RAND() * (1473292800 - 1454284800) + 1454284800)))
4+
, round(rand() * 10000, 2)
5+
, 'EMITIDA'
6+
, round(rand() * 7) + 1
7+
, round(rand() * 2) + 1)
8+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: java $JAVA_OPTS -Dspring.profiles.active=prod -jar target/dependency/webapp-runner.jar --port $PORT target/*.war

0 commit comments

Comments
 (0)