| 
					
				 | 
			
			
				@@ -0,0 +1,404 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<?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.steerinfo.dil.mapper.WmspOutboundResultMaterialMapper"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.WmspOutboundResultMaterial"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <id column="RESULT_MATERIAL_ID" jdbcType="DECIMAL" property="resultMaterialId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="OUTBOUND_RESULT_ID" jdbcType="DECIMAL" property="outboundResultId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="DELETED" jdbcType="DECIMAL" property="deleted" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="MATERIAL_NUMBER" jdbcType="DECIMAL" property="materialNumber" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="MATERIAL_WEIGHT" jdbcType="DECIMAL" property="materialWeight" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <sql id="columns"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    RESULT_MATERIAL_ID, OUTBOUND_RESULT_ID, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, MATERIAL_ID,MATERIAL_NUMBER,MATERIAL_WEIGHT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <sql id="columns_alias"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t.RESULT_MATERIAL_ID, t.OUTBOUND_RESULT_ID, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED, t.MATERIAL_ID,t.MATERIAL_NUMBER,t.MATERIAL_WEIGHT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <sql id="select"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    SELECT <include refid="columns" /> FROM WMSP_OUTBOUND_RESULT_MATERIAL 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <sql id="select_alias"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    SELECT <include refid="columns_alias" /> FROM WMSP_OUTBOUND_RESULT_MATERIAL t 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <sql id="where"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <where>  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="resultMaterialId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and RESULT_MATERIAL_ID = #{resultMaterialId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="outboundResultId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and OUTBOUND_RESULT_ID = #{outboundResultId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUsername != null and insertUsername != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and INSERT_USERNAME = #{insertUsername} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateUsername != null and updateUsername != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and UPDATE_USERNAME = #{updateUsername} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUpdateRemark != null and insertUpdateRemark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and INSERT_UPDATE_REMARK = #{insertUpdateRemark} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and DELETED = #{deleted} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and MATERIAL_ID = #{materialId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialNumber != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and MATERIAL_NUMBER = #{materialNumber} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialWeight != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and MATERIAL_WEIGHT = #{materialWeight} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <sql id="whereLike"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <where>  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="resultMaterialId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and RESULT_MATERIAL_ID = #{resultMaterialId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="outboundResultId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and OUTBOUND_RESULT_ID = #{outboundResultId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUsername != null and insertUsername != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and INSERT_USERNAME LIKE '%${insertUsername}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateUsername != null and updateUsername != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and UPDATE_USERNAME LIKE '%${updateUsername}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUpdateRemark != null and insertUpdateRemark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and DELETED = #{deleted} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and MATERIAL_ID = #{materialId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialNumber != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and MATERIAL_NUMBER = #{materialNumber} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialWeight != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and MATERIAL_WEIGHT = #{materialWeight} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    delete from WMSP_OUTBOUND_RESULT_MATERIAL 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    where RESULT_MATERIAL_ID = #{resultMaterialId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    delete from WMSP_OUTBOUND_RESULT_MATERIAL 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    where 1!=1  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="outboundResultId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        or OUTBOUND_RESULT_ID = #{outboundResultId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUsername != null and insertUsername != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        or INSERT_USERNAME = #{insertUsername} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateUsername != null and updateUsername != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        or UPDATE_USERNAME = #{updateUsername} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUpdateRemark != null and insertUpdateRemark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        or INSERT_UPDATE_REMARK = #{insertUpdateRemark} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        or DELETED = #{deleted} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        or MATERIAL_ID = #{materialId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialNumber != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        or MATERIAL_NUMBER = #{materialNumber} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialWeight != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    or MATERIAL_WEIGHT = #{materialWeight} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <insert id="insert" parameterType="com.steerinfo.dil.model.WmspOutboundResultMaterial"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    insert into WMSP_OUTBOUND_RESULT_MATERIAL (RESULT_MATERIAL_ID, OUTBOUND_RESULT_ID,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      MATERIAL_ID,MATERIAL_NUMBER,MATERIAL_WEIGHT) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    values (#{resultMaterialId,jdbcType=DECIMAL}, #{outboundResultId,jdbcType=DECIMAL},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{materialId,jdbcType=DECIMAL},#{materialNumber,jdbcType=DECIMAL},#{materialWeight,jdbcType=DECIMAL}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <insert id="insertSelective" parameterType="com.steerinfo.dil.model.WmspOutboundResultMaterial"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    insert into WMSP_OUTBOUND_RESULT_MATERIAL 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <trim prefix="(" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="resultMaterialId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        RESULT_MATERIAL_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="outboundResultId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        OUTBOUND_RESULT_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUsername != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        INSERT_USERNAME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        INSERT_TIME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateUsername != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        UPDATE_USERNAME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        UPDATE_TIME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUpdateRemark != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        INSERT_UPDATE_REMARK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        DELETED, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        MATERIAL_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialNumber != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        MATERIAL_NUMBER, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialWeight != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        MATERIAL_WEIGHT, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="resultMaterialId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{resultMaterialId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="outboundResultId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{outboundResultId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUsername != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{insertUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{insertTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateUsername != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{updateUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{updateTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUpdateRemark != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{deleted,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialNumber != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{materialNumber,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialWeight != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{materialWeight,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.WmspOutboundResultMaterial"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    update WMSP_OUTBOUND_RESULT_MATERIAL 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    set OUTBOUND_RESULT_ID = #{outboundResultId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      DELETED = #{deleted,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      MATERIAL_ID = #{materialId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      MATERIAL_NUMBER = #{materialNumber,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      MATERIAL_WEIGHT = #{materialWeight,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    where RESULT_MATERIAL_ID = #{resultMaterialId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.WmspOutboundResultMaterial"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    update WMSP_OUTBOUND_RESULT_MATERIAL 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="outboundResultId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        OUTBOUND_RESULT_ID = #{outboundResultId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUsername != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateUsername != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="insertUpdateRemark != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        DELETED = #{deleted,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        MATERIAL_ID = #{materialId,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialNumber != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        MATERIAL_NUMBER = #{materialNumber,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="materialWeight != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        MATERIAL_WEIGHT = #{materialWeight,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    where RESULT_MATERIAL_ID = #{resultMaterialId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <include refid="select" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    where RESULT_MATERIAL_ID = #{resultMaterialId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <include refid="select" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <include refid="where" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <include refid="select" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <include refid="whereLike" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <insert id="batchInsert" parameterType="java.util.List"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    insert into WMSP_OUTBOUND_RESULT_MATERIAL  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      (RESULT_MATERIAL_ID,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      OUTBOUND_RESULT_ID, INSERT_USERNAME,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      INSERT_TIME, UPDATE_USERNAME,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      UPDATE_TIME, INSERT_UPDATE_REMARK,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      DELETED, MATERIAL_ID,MATERIAL_NUMBER,MATERIAL_WEIGHT) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ( <foreach collection="list" item="item" separator="union all">  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   select   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{item.resultMaterialId,jdbcType=DECIMAL},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{item.outboundResultId,jdbcType=DECIMAL}, #{item.insertUsername,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{item.deleted,jdbcType=DECIMAL}, #{item.materialId,jdbcType=DECIMAL} , #{item.materialNumber,jdbcType=DECIMAL} , #{item.materialWeight,jdbcType=DECIMAL} from dual 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   </foreach> ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <update id="batchUpdate" parameterType="java.util.List"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     update WMSP_OUTBOUND_RESULT_MATERIAL 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     set 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       RESULT_MATERIAL_ID= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_MATERIAL_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          when #{item.resultMaterialId,jdbcType=DECIMAL} then #{item.resultMaterialId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       ,OUTBOUND_RESULT_ID= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_MATERIAL_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          when #{item.resultMaterialId,jdbcType=DECIMAL} then #{item.outboundResultId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       ,INSERT_USERNAME= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_MATERIAL_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          when #{item.resultMaterialId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       ,INSERT_TIME= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_MATERIAL_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          when #{item.resultMaterialId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       ,UPDATE_USERNAME= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_MATERIAL_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          when #{item.resultMaterialId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       ,UPDATE_TIME= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_MATERIAL_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          when #{item.resultMaterialId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       ,INSERT_UPDATE_REMARK= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_MATERIAL_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          when #{item.resultMaterialId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       ,DELETED= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_MATERIAL_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          when #{item.resultMaterialId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       ,MATERIAL_ID= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       <foreach close="end" collection="list" index="index" item="item" open="case RESULT_MATERIAL_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          when #{item.resultMaterialId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      ,MATERIAL_NUMBER= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <foreach close="end" collection="list" index="index" item="item" open="case RESULT_MATERIAL_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        when #{item.resultMaterialId,jdbcType=DECIMAL} then #{item.materialNumber,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      ,MATERIAL_WEIGHT= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <foreach close="end" collection="list" index="index" item="item" open="case RESULT_MATERIAL_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        when #{item.resultMaterialId,jdbcType=DECIMAL} then #{item.materialWeight,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     where RESULT_MATERIAL_ID in  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     <foreach close=")" collection="list" index="index" item="item" open="(" separator=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    #{item.resultMaterialId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     </foreach>  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <delete id="batchDelete" parameterType="java.util.List"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    delete from WMSP_OUTBOUND_RESULT_MATERIAL 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    where RESULT_MATERIAL_ID in  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach close=")" collection="list" item="id" open="(" separator=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <!-- 友情提示!!!--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <insert id="insertOutboundMaterial"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    insert into WMSP_OUTBOUND_RESULT_MATERIAL(RESULT_MATERIAL_ID,OUTBOUND_RESULT_ID,MATERIAL_ID,INSERT_USERNAME,INSERT_TIME,MATERIAL_NUMBER) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="orderList" index="index" item="item" separator="union all" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{item.resultMaterialId},#{orderId},#{item.materialId},#{user},#{nowDate},#{item.materialNumber} from dual 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--  <id column="RESULT_MATERIAL_ID" jdbcType="DECIMAL" property="resultMaterialId" />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--  <result column="OUTBOUND_RESULT_ID" jdbcType="DECIMAL" property="outboundResultId" />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--  <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--  <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--  <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--  <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--  <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--  <result column="DELETED" jdbcType="DECIMAL" property="deleted" />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--  <result column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId" />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--  <result column="MATERIAL_NUMBER" jdbcType="DECIMAL" property="materialNumber" />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--  <result column="MATERIAL_WEIGHT" jdbcType="DECIMAL" property="materialWeight" />--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <select id="getOutBoundTypeDetailedInfo" resultType="com.steerinfo.dil.vo.OutBoundTypeDetailedInfo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RM.material_Id "materialId", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RM.MATERIAL_CODE "materialCode", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RM.MATERIAL_NAME "materialName", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RM.MATERIAL_SPECIFICATION "materialSpecification", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RM.MATERIAL_MODEL "materialModel", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      worm.MATERIAL_NUMBER "number" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    FROM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      WMSP_OUTBOUND_RESULT_MATERIAL worm 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        LEFT JOIN RMS_MATERIAL RM ON worm.material_id = RM.MATERIAL_ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    where worm.OUTBOUND_RESULT_ID=#{resultId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <select id="isOutboundResultMaterial" resultType="java.lang.Integer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     select material_number 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     from  wmsp_outbound_result_material 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     where material_id in ( select material_id from rms_material_steel  where  material_only_code=#{onlycode}) and OUTBOUND_RESULT_ID=#{resultId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</mapper> 
			 |