1
zhang
3 天以前 38ce5bc7cd58a218f89d8f9ca6aacd7e14d6d93e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?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="com.zy.asrs.mapper.JobMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.Job">
        <id column="id" property="id"/>
        <result column="task_no" property="taskNo"/>
        <result column="batch_no" property="batchNo"/>
        <result column="loc" property="loc"/>
        <result column="sta_no" property="staNo"/>
        <result column="job_no" property="jobNo"/>
        <result column="job_sts" property="jobSts"/>
        <result column="wms_time" property="wmsTime"/>
        <result column="rcs_time" property="rcsTime"/>
        <result column="status" property="status"/>
        <result column="deleted" property="deleted"/>
        <result column="tenant_id" property="tenantId"/>
        <result column="create_by" property="createBy"/>
        <result column="create_time" property="createTime"/>
        <result column="update_by" property="updateBy"/>
        <result column="update_time" property="updateTime"/>
        <result column="memo" property="memo"/>
    </resultMap>
 
    <select id="getJobByTaskNo" resultMap="BaseResultMap">
        select *
        from cv_job
        where task_no = #{seqNum}
    </select>
 
 
    <select id="getJobByJobNo" resultMap="BaseResultMap">
        select *
        from cv_job
        where job_no = #{workNo}
    </select>
 
    <select id="getJobByJobNoAndJobSts" resultMap="BaseResultMap">
        select *
        from cv_job
        where job_no = #{workNo}
          and job_sts = #{jobSts}
    </select>
 
 
    <select id="listJobByJobSts" resultMap="BaseResultMap">
        select *
        from cv_job
        where job_sts = #{jobSts}
    </select>
 
</mapper>