| | |
| | | <if test="delFlag != null and delFlag != ''"> and del_flag = #{delFlag}</if> |
| | | <if test="opStatus != null and opStatus != ''"> and op_status = #{opStatus}</if> |
| | | <if test="nextOpName != null and nextOpName != ''"> and next_op_name = #{nextOpName}</if> |
| | | and doc_no is not null |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectApsWorkOrderJobListDocNoNotNull" parameterType="ApsWorkOrderJob" resultMap="ApsWorkOrderJobResult"> |
| | | <include refid="selectApsWorkOrderJobVo"/> |
| | | <where> |
| | | <if test="orderId != null and orderId != ''"> and order_id = #{orderId}</if> |
| | | <if test="docNo != null and docNo != ''"> and doc_no = #{docNo}</if> |
| | | <if test="mainitemCode != null and mainitemCode != ''"> and mainitem_code = #{mainitemCode}</if> |
| | | <if test="mainitemFigure != null and mainitemFigure != ''"> and mainitem_figure = #{mainitemFigure}</if> |
| | | <if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if> |
| | | <if test="businessType != null "> and business_type = #{businessType}</if> |
| | | <if test="demandType != null and demandType != ''"> and demand_type = #{demandType}</if> |
| | | <if test="docStatus != null "> and doc_status = #{docStatus}</if> |
| | | <if test="itemCode != null and itemCode != ''"> and item_code = #{itemCode}</if> |
| | | <if test="itemFigure != null and itemFigure != ''"> and item_figure = #{itemFigure}</if> |
| | | <if test="itemFigureVersion != null and itemFigureVersion != ''"> and item_figure_version = #{itemFigureVersion}</if> |
| | | <if test="pruductQty != null "> and pruduct_qty = #{pruductQty}</if> |
| | | <if test="workQty != null "> and work_qty = #{workQty}</if> |
| | | <if test="opNum != null and opNum != ''"> and op_num = #{opNum}</if> |
| | | <if test="workCenter != null "> and work_center = #{workCenter}</if> |
| | | <if test="dept != null and dept != ''"> and dept = #{dept}</if> |
| | | <if test="startDate != null and startDate != ''"> and start_date = #{startDate}</if> |
| | | <if test="completeDate != null and completeDate != ''"> and complete_date = #{completeDate}</if> |
| | | <if test="nextDept != null and nextDept != ''"> and next_dept = #{nextDept}</if> |
| | | <if test="isHoldRelease != null "> and is_hold_release = #{isHoldRelease}</if> |
| | | <if test="isOutSource != null and isOutSource != ''"> and is_out_source = #{isOutSource}</if> |
| | | <if test="org != null and org != ''"> and org = #{org}</if> |
| | | <if test="pageNum != null "> and page_num = #{pageNum}</if> |
| | | <if test="pageIndex != null "> and page_index = #{pageIndex}</if> |
| | | <if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
| | | <if test="processStatus != null and processStatus != ''"> and process_status = #{processStatus}</if> |
| | | <if test="delFlag != null and delFlag != ''"> and del_flag = #{delFlag}</if> |
| | | <if test="opStatus != null and opStatus != ''"> and op_status = #{opStatus}</if> |
| | | <if test="nextOpName != null and nextOpName != ''"> and next_op_name = #{nextOpName}</if> |
| | | and doc_no is not null |
| | | </where> |
| | | </select> |
| | | |