IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2010, 10:50:29 AM (16 years ago)
Author:
bills
Message:

Add table Label which through priority column may be used to order
items pending for processing.
Implement usage of this table in the pstamptool pending modes and
chiptool -pendingimfile.
Various other postage stamp changes including adding pstampDependent.outdir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/pstamptool_pendingdependent.sql

    r27795 r27856  
    1 SELECT DISTINCT pstampDependent.*
     1SELECT DISTINCT pstampDependent.*,
     2    IFNULL(Label.priority, 10000) AS priority
    23FROM pstampDependent
    34JOIN pstampJob USING(dep_id)
    45JOIN pstampRequest USING(req_id)
     6JOIN Label ON pstampRequest.label = Label.label
    57WHERE pstampDependent.state = 'new'
    68    AND pstampDependent.fault = 0
    79    AND pstampJob.state = 'run'
    810    AND pstampRequest.state = 'run'
     11    AND (Label.active OR Label.active IS NULL)
Note: See TracChangeset for help on using the changeset viewer.