TMineStopeMapper.xml 1.18 KB
Newer Older
1 2 3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.wise.sc.acquisition.business.mapper.TMineStopeMapper">
罗贤顺's avatar
罗贤顺 committed
4 5 6
    <select id="getStopeName" resultType="cn.wise.sc.acquisition.business.entity.TMineStope">
        select StopeName,StepName,BlastAreaName from T_Mine_Stope
    </select>
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27


    <select id="getStopeNewList" resultType="cn.wise.sc.acquisition.business.entity.TMineStope">
        select Uid,StopeName,StepName,BlastAreaName,IsUsing,AddDate FROM T_Mine_Stope a
        where Isusing =1 and 
                not exists (
                select StopeName , StepName , BlastAreaName  from T_Processes_BlastDesign_Hole b
                where (a.StopeName=b.StopeName and a.StepName=b.StepName and a.BlastAreaName=b.BlastAreaName)
                <if test="designDate != null and designDate != ''">
                    and Convert(varchar(100),DesignDate,23) <![CDATA[ <> ]]> #{designDate}
                </if>
                group by  StopeName, StepName, BlastAreaName
                ) 
        order by AddDate desc
    </select>






28
</mapper>