| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.mes.mapper.MesKittingCompletenessCheckMapper"> |
| | | |
| | | <select id="queryCompletenessCheckByWorkOrderId" resultType="org.jeecg.modules.mes.entity.MesKittingCompletenessCheck"> |
| | | select mkcc.*,mpwo.work_order_code as workOrderCode from mes_kitting_completeness_check mkcc |
| | | left join mes_production_work_order mpwo on mkcc.work_order_id = mpwo.id |
| | | where mkcc.work_order_id = #{workOrderId} |
| | | </select> |
| | | <select id="queryPageList" resultType="org.jeecg.modules.mes.entity.MesKittingCompletenessCheck"> |
| | | SELECT |
| | | t1.*, |
| | | t2.work_order_code workOrderCode |
| | | FROM mes_kitting_completeness_check t1 |
| | | LEFT JOIN mes_production_work_order t2 ON t1.work_order_id = t2.id |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |