| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.zy.asrs.common.wms.mapper.WrkMastMapper"> |
| | | |
| | | <select id="selectToBeCompleteData" resultType="com.zy.asrs.common.wms.entity.WrkMast"> |
| | | select * from wms_wrk_mast where ((wrk_sts = 99 Or wrk_sts = 199 ) and io_type != 103 and io_type != 104 and io_type != 107 ) order by io_time,wrk_no |
| | | </select> |
| | | |
| | | <select id="selectToBeHistoryData" resultType="com.zy.asrs.common.wms.entity.WrkMast"> |
| | | select * from wms_wrk_mast |
| | | where wrk_sts=100 |
| | | or (wrk_sts=200 and ove_mk='Y' and wrk_no not in (select wrk_no from common_bas_devp where common_bas_devp.host_id = wms_wrk_mast.host_id)) |
| | | or (wrk_sts=200 and dateadd(mi,15,io_time) <= getdate() and wrk_no not in (select wrk_no from common_bas_devp where common_bas_devp.host_id = wms_wrk_mast.host_id)) |
| | | or (wrk_sts=200 and io_time is null and wrk_no not in (select wrk_no from common_bas_devp where common_bas_devp.host_id = wms_wrk_mast.host_id)) |
| | | order by io_time,wrk_no asc |
| | | </select> |
| | | |
| | | </mapper> |