| | |
| | | <!-- mapper不支持sql语句嵌套时,采用sql片段包含方式,解决xml标签问题 --> |
| | | <sql id="viewWorkInConditionSql"> |
| | | <if test="loc_no!=null and loc_no!='' "> |
| | | and loc_no like '%' + #{loc_no} + '%' |
| | | and loc_no = #{loc_no} |
| | | </if> |
| | | <if test="matnr!=null and matnr!='' "> |
| | | and matnr like '%' + #{matnr} + '%' |
| | | and matnr = #{matnr} |
| | | </if> |
| | | <if test="anfme != null and anfme != ''"> |
| | | and anfme = #{anfme} |
| | |
| | | ROW_NUMBER() OVER(Order by t.io_time desc) as row |
| | | , * |
| | | from ( |
| | | select * |
| | | select manu_date manuDate,man_length manLength,* |
| | | from asr_wrkin_view |
| | | where 1=1 |
| | | <include refid="viewWorkInConditionSql"></include> |
| | |
| | | <!-- from asr_wrkin_view a--> |
| | | <!-- where 1=1--> |
| | | <!-- <include refid="viewWorkInConditionSql"></include>--> |
| | | select * from asr_wrkin_view |
| | | select *,manu_date manuDate,man_length manLength from asr_wrkin_view |
| | | where 1=1 |
| | | <include refid="viewWorkInConditionSql"></include> |
| | | </select> |
| | |
| | | ROW_NUMBER() OVER(Order by t.io_time desc) as row |
| | | , * |
| | | from ( |
| | | select * |
| | | select manu_date manuDate,man_length manLength,* |
| | | from asr_wrkout_view |
| | | where 1=1 |
| | | <include refid="viewWorkInConditionSql"></include> |
| | |
| | | |
| | | <!-- 不分页查询所有信息,用于excel导出 --> |
| | | <select id="getViewWorkOutAll" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultType="com.zy.asrs.entity.ViewWorkInBean"> |
| | | select * |
| | | select *,manu_date manuDate,man_length manLength |
| | | from asr_wrkout_view a |
| | | where 1=1 |
| | | <include refid="viewWorkInConditionSql"></include> |