TaskHeaderMapper.xml 4.46 KB
<?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.huaheng.pc.task.taskHeader.mapper.TaskHeaderMapper">
  <resultMap id="BaseResultMap" type="com.huaheng.pc.task.taskHeader.domain.TaskHeader">
    <!--@mbg.generated-->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="code" jdbcType="VARCHAR" property="code" />
    <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" />
    <result column="companyCode" jdbcType="VARCHAR" property="companyCode" />
    <result column="taskType" jdbcType="VARCHAR" property="taskType" />
    <result column="internalTaskType" jdbcType="VARCHAR" property="internalTaskType" />
    <result column="referenceId" jdbcType="INTEGER" property="referenceId" />
    <result column="referenceCode" jdbcType="VARCHAR" property="referenceCode" />
    <result column="assignedUser" jdbcType="VARCHAR" property="assignedUser" />
    <result column="confirmedBy" jdbcType="VARCHAR" property="confirmedBy" />
    <result column="enable" jdbcType="INTEGER" property="enable" />
    <result column="waveId" jdbcType="INTEGER" property="waveId" />
    <result column="pickingCartCode" jdbcType="VARCHAR" property="pickingCartCode" />
    <result column="pickingCartPos" jdbcType="VARCHAR" property="pickingCartPos" />
    <result column="containerCode" jdbcType="VARCHAR" property="containerCode" />
    <result column="startPickDateTime" jdbcType="TIMESTAMP" property="startPickDateTime" />
    <result column="endPickDateTime" jdbcType="TIMESTAMP" property="endPickDateTime" />
    <result column="rebatchLoc" jdbcType="VARCHAR" property="rebatchLoc" />
    <result column="finishRebatch" jdbcType="INTEGER" property="finishRebatch" />
    <result column="rebatchGroupCode" jdbcType="VARCHAR" property="rebatchGroupCode" />
    <result column="allowRebatch" jdbcType="INTEGER" property="allowRebatch" />
    <result column="taskProcessType" jdbcType="VARCHAR" property="taskProcessType" />
    <result column="rebinBench" jdbcType="VARCHAR" property="rebinBench" />
    <result column="rebined" jdbcType="INTEGER" property="rebined" />
    <result column="startRebinDateTime" jdbcType="TIMESTAMP" property="startRebinDateTime" />
    <result column="endRebinDateTime" jdbcType="TIMESTAMP" property="endRebinDateTime" />
    <result column="rebinedBy" jdbcType="VARCHAR" property="rebinedBy" />
    <result column="exceptionCode" jdbcType="VARCHAR" property="exceptionCode" />
    <result column="exceptionHandledBy" jdbcType="VARCHAR" property="exceptionHandledBy" />
    <result column="created" jdbcType="TIMESTAMP" property="created" />
    <result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
    <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" />
    <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" />
    <result column="version" jdbcType="INTEGER" property="version" />
    <result column="userDef1" jdbcType="VARCHAR" property="userDef1" />
    <result column="userDef2" jdbcType="VARCHAR" property="userDef2" />
    <result column="userDef3" jdbcType="VARCHAR" property="userDef3" />
    <result column="userDef4" jdbcType="VARCHAR" property="userDef4" />
    <result column="userDef5" jdbcType="VARCHAR" property="userDef5" />
    <result column="userDef6" jdbcType="VARCHAR" property="userDef6" />
    <result column="userDef7" jdbcType="VARCHAR" property="userDef7" />
    <result column="userDef8" jdbcType="VARCHAR" property="userDef8" />
    <result column="processStamp" jdbcType="VARCHAR" property="processStamp" />
  </resultMap>
<select id="getReceiptTask" resultType="java.util.Map">
  SELECT *
  FROM task_detail td
  INNER JOIN receipt_detail rd ON rd.id = td.billDetailId AND td.taskId = #{taskId,jdbcType=INTEGER}
</select>

  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    id, code, warehouseCode, companyCode, taskType, internalTaskType, referenceId, referenceCode, 
    assignedUser, confirmedBy, `enable`, waveId, pickingCartCode, pickingCartPos, containerCode, 
    startPickDateTime, endPickDateTime, rebatchLoc, finishRebatch, rebatchGroupCode, 
    allowRebatch, taskProcessType, rebinBench, rebined, startRebinDateTime, endRebinDateTime, 
    rebinedBy, exceptionCode, exceptionHandledBy, created, createdBy, lastUpdated, lastUpdatedBy, 
    version, userDef1, userDef2, userDef3, userDef4, userDef5, userDef6, userDef7, userDef8, 
    processStamp
  </sql>
</mapper>