| | |
| | | <if test="c.npsNo != null and c.npsNo != ''"> |
| | | and po.nps_no like concat('%', #{c.npsNo}, '%') |
| | | </if> |
| | | <if test="c.salesContractNo != null and c.salesContractNo != ''"> |
| | | and po_sales.salesContractNo like concat('%', #{c.salesContractNo}, '%') |
| | | </if> |
| | | <if test="c.productionPlanIds != null and c.productionPlanIds != ''"> |
| | | and po.production_plan_ids like concat('%', #{c.productionPlanIds}, '%') |
| | | </if> |
| | |
| | | <include refid="ProductionOrderVoColumns" /> |
| | | <include refid="ProductionOrderVoFrom" /> |
| | | <include refid="ProductionOrderWhere" /> |
| | | order by po.id desc |
| | | order by po.nps_no desc |
| | | </select> |
| | | |
| | | <select id="listProductionOrder" resultMap="ProductionOrderVoResultMap"> |
| | |
| | | and po.create_time < #{endTime} |
| | | </if> |
| | | </where> |
| | | order by po.id desc |
| | | order by po.nps_no desc |
| | | limit #{offset}, #{size} |
| | | </select> |
| | | |