7213-Pasar-problemas-a-columnas-calculadas #2396

Merged
carlosap merged 15 commits from 7213-Pasar-problemas-a-columnas-calculadas into dev 2024-05-14 09:35:52 +00:00
3 changed files with 3 additions and 5 deletions
Showing only changes of commit 3ce43909e2 - Show all commits

View File

@ -8,7 +8,6 @@ BEGIN
* *
* @param vSelf Id ticket, if NULL ALL tickets * @param vSelf Id ticket, if NULL ALL tickets
*/ */
CREATE OR REPLACE TEMPORARY TABLE tmp.ticket CREATE OR REPLACE TEMPORARY TABLE tmp.ticket
(INDEX(ticketFk)) (INDEX(ticketFk))
ENGINE = MEMORY ENGINE = MEMORY
@ -17,7 +16,6 @@ BEGIN
WHERE t.shipped >= util.midnight() WHERE t.shipped >= util.midnight()
AND (vSelf IS NULL OR t.id = vSelf); AND (vSelf IS NULL OR t.id = vSelf);
UPDATE tmp.ticket t UPDATE tmp.ticket t
carlosap marked this conversation as resolved
Review

dos bots de linea

dos bots de linea
JOIN ticketRequest tr ON tr.ticketFk = t.ticketFk JOIN ticketRequest tr ON tr.ticketFk = t.ticketFk
SET t.hasProblem = TRUE SET t.hasProblem = TRUE

View File

@ -1,12 +1,12 @@
DELIMITER $$ DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` CREATE OR REPLACE DEFINER=`root`@`localhost`
PROCEDURE `vn`.`ticket_setProblemTaxDataChecked`(vSelf INT) PROCEDURE `vn`.`ticket_setProblemTaxDataChecked`(vClientFk INT)
BEGIN BEGIN
/** /**
* Update the problem of tickets, depending on whether * Update the problem of tickets, depending on whether
* the client taxDataCheched is verified or not * the client taxDataCheched is verified or not
* *
* @param vSelf Id ticket, if NULL all tickets * @param vClientFk Id cliente, if NULL all clients
*/ */
CREATE OR REPLACE TEMPORARY TABLE tmp.ticket CREATE OR REPLACE TEMPORARY TABLE tmp.ticket
(INDEX(ticketFk)) (INDEX(ticketFk))