| | |
| | | <result column="appe_user" property="appeUser" /> |
| | | <result column="appe_time" property="appeTime" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="temp1" property="temp1" /> |
| | | <result column="temp2" property="temp2" /> |
| | | <result column="temp3" property="temp3" /> |
| | | <result column="temp4" property="temp4" /> |
| | | </resultMap> |
| | | |
| | | <sql id="batchSeq"> |
| | |
| | | <!-- and (a.batch IS NULL OR a.batch = '')--> |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | <if test="supp != null and supp != ''"> |
| | | and a.supp = #{supp} |
| | | </if> |
| | | <if test="temp1 != null and temp1 != ''"> |
| | | and a.temp1 = #{temp1} |
| | | </if> |
| | | <if test="temp2 != null and temp2 != ''"> |
| | | and a.temp2 = #{temp2} |
| | | </if> |
| | | <if test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </if> |
| | |
| | | where 1=1 |
| | | group by matnr,batch |
| | | </select> |
| | | <select id="sum" resultType="java.lang.Integer"> |
| | | <select id="sum" resultType="java.lang.Double"> |
| | | SELECT SUM(anfme) FROM asr_loc_detl |
| | | </select> |
| | | <select id="unreason" resultMap="BaseResultMap"> |
| | |
| | | and b.loc_sts = 'F' |
| | | and a.matnr = #{matnr} |
| | | and b.crn_no in (8,9) |
| | | <if test="supp != null and supp != ''"> |
| | | and a.supp = #{supp} |
| | | </if> |
| | | <if test="temp1 != null and temp1 != ''"> |
| | | and a.temp1 = #{temp1} |
| | | </if> |
| | | <if test="temp2 != null and temp2 != ''"> |
| | | and a.temp2 = #{temp2} |
| | | </if> |
| | | <if test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </if> |
| | |
| | | <!-- and (a.batch IS NULL OR a.batch = '')--> |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | <if test="supp != null and supp != ''"> |
| | | and a.supp = #{supp} |
| | | </if> |
| | | <if test="temp1 != null and temp1 != ''"> |
| | | and a.temp1 = #{temp1} |
| | | </if> |
| | | <if test="temp2 != null and temp2 != ''"> |
| | | and a.temp2 = #{temp2} |
| | | </if> |
| | | <if test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </if> |
| | |
| | | <!-- and (a.batch IS NULL OR a.batch = '')--> |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | <if test="supp != null and supp != ''"> |
| | | and a.supp = #{supp} |
| | | </if> |
| | | <if test="temp1 != null and temp1 != ''"> |
| | | and a.temp1 = #{temp1} |
| | | </if> |
| | | <if test="temp2 != null and temp2 != ''"> |
| | | and a.temp2 = #{temp2} |
| | | </if> |
| | | <if test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </if> |