| | |
| | | <result column="memo" property="memo" /> |
| | | <result column="owner" property="owner" /> |
| | | <result column="payment" property="payment" /> |
| | | <result column="uuid" property="uuid" /> |
| | | <result column="real_anfme" property="realAnfme" /> |
| | | <result column="order_no" property="orderNo" /> |
| | | </resultMap> |
| | | |
| | | <sql id="locDetlCondition"> |
| | |
| | | </if> |
| | | <if test="maktx != null and maktx != ''"> |
| | | and mld.maktx like concat('%',#{maktx},'%') |
| | | </if> |
| | | <if test="zpallet != null and zpallet != ''"> |
| | | and mld.zpallet like concat('%',#{zpallet},'%') |
| | | </if> |
| | | <if test="startTime!=null and endTime!=null"> |
| | | and mld.update_time between #{startTime} and #{endTime} |
| | |
| | | </if> |
| | | </sql> |
| | | |
| | | <select id="listByPage" resultMap="BaseResultMap"> |
| | | <select id="listByPage" resultMap="BaseResultMap" parameterType="java.util.Map"> |
| | | select * from |
| | | ( |
| | | SELECT |
| | |
| | | LEFT JOIN man_mat mm ON mld.matnr = mm.matnr |
| | | LEFT JOIN man_tag mt ON mm.tag_id = mt.id |
| | | WHERE 1=1 |
| | | AND (CHARINDEX(','+#{node_id}+',', ','+mn.path+',') > 0 OR mn.id = #{node_id}) |
| | | AND (CHARINDEX(','+#{tag_id}+',', ','+mt.path+',') > 0 OR mt.id = #{tag_id}) |
| | | AND (CHARINDEX(#{node_id}, mn.path) > 0 OR mn.id = #{node_id}) |
| | | <include refid="locDetlCondition"></include> |
| | | ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | </select> |
| | |
| | | LEFT JOIN man_mat mm ON mld.matnr = mm.matnr |
| | | LEFT JOIN man_tag mt ON mm.tag_id = mt.id |
| | | WHERE 1=1 |
| | | AND (CHARINDEX(','+#{node_id}+',', ','+mn.path+',') > 0 OR mn.id = #{node_id}) |
| | | AND (CHARINDEX(','+#{tag_id}+',', ','+mt.path+',') > 0 OR mt.id = #{tag_id}) |
| | | AND (CHARINDEX(#{node_id}, mn.path) > 0 OR mn.id = #{node_id}) |
| | | <include refid="locDetlCondition"></include> |
| | | </select> |
| | | |
| | |
| | | where loc_no = #{locNo} |
| | | and matnr = #{matnr} |
| | | </select> |
| | | <select id="selectItem" resultType="com.zy.asrs.entity.ManLocDetl"> |
| | | <select id="selectItem" resultMap="BaseResultMap"> |
| | | select top 1 * from man_loc_detl |
| | | where loc_no = #{locNo} |
| | | and matnr = #{matnr} |