| | |
| | | <?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.pms.mapper.PmsProcessBillMaterialsMapper"> |
| | | <select id="getpmsProcessBillMaterialsListData" parameterType="Map" resultType="Map"> |
| | | select * from pms_process_bill_materials WHERE 1=1 |
| | | <if test="params.materialNumber != null and params.materialNumber != ''"> |
| | | AND material_number LIKE CONCAT('%', #{params.materialNumber}, '%') |
| | | </if> |
| | | <if test="params.materialName != null and params.materialName != ''"> |
| | | AND material_name LIKE CONCAT('%', #{params.materialName}, '%') |
| | | </if> |
| | | <select id="queryPageList" resultType="org.jeecg.modules.pms.entity.PmsProcessBillMaterials"> |
| | | select pbm.*, po.order_code |
| | | from pms_process_bill_materials pbm |
| | | left join mes_production_order po on pbm.order_id = po.id |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |